GithubHelp home page GithubHelp logo

支付宝问题 about stepchanger HOT 9 CLOSED

iweizime avatar iweizime commented on June 9, 2024
支付宝问题

from stepchanger.

Comments (9)

ASFLY61 avatar ASFLY61 commented on June 9, 2024

可以看看/data/data/me.iweizi.stepchanger/shared_prefs下是否有NewPedoMeter_private.xml和NewPedoMeter.xml两个文件

from stepchanger.

HuiNIMA avatar HuiNIMA commented on June 9, 2024

两个文件都有的

from stepchanger.

Testlyy avatar Testlyy commented on June 9, 2024

支付宝10.1.15版本,提示获取读取存储权限后就没反应,加载不到数据,目录下面没有文件/data/data/me.iweizi.stepchanger/shared_prefs,支付宝有启动过获取到运动步数了,然后杀掉进程才启动步数修改器的,手机小米5 安卓7.0

from stepchanger.

olympicjun avatar olympicjun commented on June 9, 2024

将目录下面没有文件/data/data/me.iweizi.stepchanger/shared_prefs删除,重新加载就可以了。原文件中有一个steps -22540的数据,不是是否由此引起

from stepchanger.

ASFLY61 avatar ASFLY61 commented on June 9, 2024

@olympicjun 我的删了还是不行。依旧加载不出来,不论哪个支付宝版本都不行。

from stepchanger.

ttimasdf avatar ttimasdf commented on June 9, 2024

问题在于,这两个文件现在chmod以后还是不可读。

OnePlus3:/data/data/com.eg.android.AlipayGphone/shared_prefs # ls -l NewPedoMeter*
-rw-rw-rw- 1 u0_a107 u0_a107 441 2018-02-08 07:25 NewPedoMeter.xml
-rw-rw-rw- 1 u0_a107 u0_a107 331 2018-02-08 07:25 NewPedoMeter_private.xml
OnePlus3:/data/data/com.eg.android.AlipayGphone/shared_prefs # ^D
OnePlus3:/ $ cat /data/data/com.eg.android.AlipayGphone/shared_prefs/NewPedoMeter.xml
/system/bin/sh: cat: /data/data/com.eg.android.AlipayGphone/shared_prefs/NewPedoMeter.xml: Permission denied

from stepchanger.

iweizime avatar iweizime commented on June 9, 2024

现在我自己的手机上支付宝也改不了了,现在没时间,等过两天放了假搞一下

from stepchanger.

ttimasdf avatar ttimasdf commented on June 9, 2024

似乎遇到了算法更新。稍微修正了一下现在能正常读写文件。但是发现现在会检查NewPedoMeter_private.xml中的读数是否为负数了。所以 newLastRecord.setSteps((int) (sensorStep - stepDiff)); 这一句不奏效了。


edit: 并没有更新。只是写文件失败而已。已修复。稍后发PR。

from stepchanger.

iweizime avatar iweizime commented on June 9, 2024

OK, 跟我想的差不多,就是把cat命令也用root权限执行。当初想的是只用root权限执行chmod,普通权限执行cat,尽量减少root权限的申请,但后来发现sharedpreferences文件的权限每次都会被改。 @ttimasdf

from stepchanger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.