-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Well apparently lollipop breaks this app.
I'm running the latest 5.1.1 and it runs, but when it boots and tries to change the limit, it breaks pretty hard.
I/art ( 2380): Late-enabling -Xcheck:jni
I/ActivityManager( 519): Start proc 2380:de.florian.processlimit/u0a25 for broadcast de.florian.processlimit/.BootReceiver
D/de.florian.processlimit( 2380): New limit: 4
W/System.err( 2380): java.io.IOException: Unable to open '/system/priv-app/Settings.apk' : No such file or directory
W/System.err( 2380): at dalvik.system.DexFile.openDexFileNative(Native Method)
W/System.err( 2380): at dalvik.system.DexFile.openDexFile(DexFile.java:295)
W/System.err( 2380): at dalvik.system.DexFile.(DexFile.java:80)
W/System.err( 2380): at dalvik.system.DexFile.(DexFile.java:59)
W/System.err( 2380): at de.florian.processlimit.SetProcessLimitActivity.setProcessLimit(SetProcessLimitActivity.java:57)
W/System.err( 2380): at de.florian.processlimit.BootReceiver.onReceive(BootReceiver.java:20)
W/System.err( 2380): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2631)
W/System.err( 2380): at android.app.ActivityThread.access$1700(ActivityThread.java:154)
W/System.err( 2380): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1388)
W/System.err( 2380): at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err( 2380): at android.os.Looper.loop(Looper.java:135)
W/System.err( 2380): at android.app.ActivityThread.main(ActivityThread.java:5338)
W/System.err( 2380): at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 2380): at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err( 2380): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:917)
W/System.err( 2380): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)
W/System.err( 2380): Caused by: java.io.IOException: Failed to open oat file from dex location '/system/priv-app/Settings.apk'
W/System.err( 2380): ... 16 more
W/System.err( 2380): Caused by: java.io.IOException: Failed to open oat file from /system/priv-app/arm/Settings.odex (error Failed to open oat filename for reading: No such file or directory) (no dalvik_cache availible) and relocation failed.
W/System.err( 2380): ... 16 more
W/System.err( 2380): Caused by: java.io.IOException:
W/System.err( 2380): ... 16 more
I'm pretty sure it's because of the hardcoded /system/priv-app/Settings.apk
That file is now in /system/priv-app/Settings/Settings.apk