Xposed模块“三步走”在Android 7.0上崩溃

问题描述

在运行Android 7.0的ZTE Blade v8 Mini上,我安装了Magisk,Magisk v89的Xposed框架和Xposed模块Three Steps Ahead(在官方存储库中缺失)。重新启动了我的设备,并且可以看到在Xposed Installer中激活了该模块。当我从Xposed或通常的Android应用程序中启动模块时,它会无休止地崩溃。我安装了Logcat Extreme并记录了应用程序的日志:

08-24 09:59:45.149  1486  5663 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.github.spezifisch.threestepsahead/.MainActivity bnds=[184,638][360,828] (has extras)} from uid 10029 on display 0

08-24 09:59:45.190  1486  1874 I ActivityManager: Start proc 7884:com.github.spezifisch.threestepsahead/u0a121 for activity com.github.spezifisch.threestepsahead/.MainActivity

08-24 09:59:45.219  7884  7884 W System  : ClassLoader referenced unknown path: /data/app/com.github.spezifisch.threestepsahead-1/lib/arm64

08-24 09:59:45.224  7884  7884 I Xposed  : com.github.spezifisch.threestepsahead app loaded

08-24 09:59:45.261  7884  7884 I XLua.Xposed: Loaded com.github.spezifisch.threestepsahead:10121

08-24 09:59:45.603  7884  7884 E AndroidRuntime: Process: com.github.spezifisch.threestepsahead,PID: 7884

08-24 09:59:45.603  7884  7884 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.github.spezifisch.threestepsahead/com.github.spezifisch.threestepsahead.MainActivity}: java.lang.SecurityException: MODE_WORLD_READABLE no longer supported

08-24 09:59:45.603  7884  7884 E AndroidRuntime:    at com.github.spezifisch.threestepsahead.SettingsStorage.<init>(SettingsStorage.java:74)

08-24 09:59:45.603  7884  7884 E AndroidRuntime:    at com.github.spezifisch.threestepsahead.SettingsStorage.getSettingsStorage(SettingsStorage.java:49)

08-24 09:59:45.603  7884  7884 E AndroidRuntime:    at com.github.spezifisch.threestepsahead.MainActivity.onCreate(MainActivity.java:70)

08-24 09:59:45.607  1486  2466 W ActivityManager:   Force finishing activity com.github.spezifisch.threestepsahead/.MainActivity

08-24 09:59:46.111  1486  1523 W ActivityManager: Activity pause timeout for ActivityRecord{4666c9b u0 com.github.spezifisch.threestepsahead/.MainActivity t572 f}

08-24 09:59:46.423  1486  1530 I WindowManager: Destroying surface Surface(name=Starting com.github.spezifisch.threestepsahead) called by com.android.server.wm.WindowStateAnimator.destroySurface:2027 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:882 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2659 com.android.server.wm.AppWindowToken.destroySurfaces:365 com.android.server.wm.WindowStateAnimator.finishExit:566 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:434 com.android.server.wm.WindowAnimator.updateAppWindowsLocked:176 

08-24 09:59:50.651  1486  2466 W ActivityManager:   Force finishing activity com.github.spezifisch.threestepsahead/.MainActivity

08-24 09:59:50.651  1486  2466 I ActivityManager: Killing 7884:com.github.spezifisch.threestepsahead/u0a121 (adj 900): crash

08-24 09:59:50.663  1486  1524 I WindowManager: Destroying surface Surface(name=Application Error: com.github.spezifisch.threestepsahead) called by com.android.server.wm.WindowStateAnimator.destroySurface:2027 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:882 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2659 com.android.server.wm.WindowManagerService.removeWindowLocked:2617 com.android.server.wm.WindowManagerService.removeWindowLocked:2486 com.android.server.wm.WindowManagerService.removeWindow:2481 com.android.server.wm.Session.remove:196 

08-24 10:04:53.198  1486  2581 I ActivityManager: Start proc 8119:com.github.spezifisch.threestepsahead/u0a121 for service com.github.spezifisch.threestepsahead/.JoystickService

08-24 10:04:53.221  8119  8119 W System  : ClassLoader referenced unknown path: /data/app/com.github.spezifisch.threestepsahead-1/lib/arm64

08-24 10:04:53.226  8119  8119 I Xposed  : com.github.spezifisch.threestepsahead app loaded

08-24 10:04:53.256  8119  8119 I XLua.Xposed: Loaded com.github.spezifisch.threestepsahead:10121

有人可以帮我弄清楚为什么模块/应用程序崩溃以及如何解决吗?

P.S。它在我尝试的任何8.x和9.x设备上也崩溃

解决方法

我们应该使用Context.MODE_PRIVATE它将起作用!

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...