GhostFlying / LocationReportEnabler

A simple android app to enable Google Location Report, Google Now and related functions in China mainland or somewhere like.
GNU General Public License v3.0
1.07k stars 114 forks source link

日志记录器记录到错误 #70

Closed liyufan closed 7 years ago

liyufan commented 7 years ago

FATAL EXCEPTION: main
 Process: org.cafeboy.locationreportenabler, PID: 2456
 java.lang.RuntimeException: Unable to start receiver com.ghostflying.locationreportenabler.EnablerReceiver: java.lang.StringIndexOutOfBoundsException: length=100; regionStart=0; regionLength=-1
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:3181)
    at android.app.ActivityThread.-wrap18(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1634)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6322)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
 Caused by: java.lang.StringIndexOutOfBoundsException: length=100; regionStart=0; regionLength=-1
    at java.lang.StringFactory.newStringFromBytes(StringFactory.java:69)
    at java.lang.StringFactory.newStringFromBytes(StringFactory.java:53)
    at com.ghostflying.locationreportenabler.PropUtil.getShellOutput(PropUtil.java:152)
    at com.ghostflying.locationreportenabler.PropUtil.setFakerCarrierForDualCard(PropUtil.java:114)
    at com.ghostflying.locationreportenabler.PropUtil.setFakeCarrier(PropUtil.java:100)
    at com.ghostflying.locationreportenabler.PropUtil.enableLocationReport(PropUtil.java:46)
    at com.ghostflying.locationreportenabler.EnablerReceiver.onReceive(EnablerReceiver.java:24)
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:3169)
    ... 8 more
GhostFlying commented 7 years ago

我记得没错的话这是一个已经修复的 bug,请告诉我你的版本号

On Sun, May 21, 2017, 8:37 PM liyufan notifications@github.com wrote:

FATAL EXCEPTION: main Process: org.cafeboy.locationreportenabler, PID: 2456 java.lang.RuntimeException: Unable to start receiver com.ghostflying.locationreportenabler.EnablerReceiver: java.lang.StringIndexOutOfBoundsException: length=100; regionStart=0; regionLength=-1 at android.app.ActivityThread.handleReceiver(ActivityThread.java:3181) at android.app.ActivityThread.-wrap18(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1634) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6322) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Caused by: java.lang.StringIndexOutOfBoundsException: length=100; regionStart=0; regionLength=-1 at java.lang.StringFactory.newStringFromBytes(StringFactory.java:69) at java.lang.StringFactory.newStringFromBytes(StringFactory.java:53) at com.ghostflying.locationreportenabler.PropUtil.getShellOutput(PropUtil.java:152) at com.ghostflying.locationreportenabler.PropUtil.setFakerCarrierForDualCard(PropUtil.java:114) at com.ghostflying.locationreportenabler.PropUtil.setFakeCarrier(PropUtil.java:100) at com.ghostflying.locationreportenabler.PropUtil.enableLocationReport(PropUtil.java:46) at com.ghostflying.locationreportenabler.EnablerReceiver.onReceive(EnablerReceiver.java:24) at android.app.ActivityThread.handleReceiver(ActivityThread.java:3169) ... 8 more

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GhostFlying/LocationReportEnabler/issues/70, or mute the thread https://github.com/notifications/unsubscribe-auth/AD1VcTlL_CfAyLP6ynC8dfGkPKnAmTaKks5r8C_0gaJpZM4Nhljk .

liyufan commented 7 years ago

@GhostFlying Play上的最新版1.4.3 general

GhostFlying commented 7 years ago

更新到 release 页面的 1.4.5 应该就修复了

On Sun, May 21, 2017, 10:33 PM liyufan notifications@github.com wrote:

@GhostFlying https://github.com/ghostflying Play上的最新版1.4.3general

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/GhostFlying/LocationReportEnabler/issues/70#issuecomment-302940484, or mute the thread https://github.com/notifications/unsubscribe-auth/AD1VcdFRQyxiZHPXjCFPqkA9zSUfauBZks5r8EtRgaJpZM4Nhljk .