flode / setandroidprocesslimit Goto Github PK
View Code? Open in Web Editor NEWPersistently sets the android process limit. NOTE: This app is required to install as a system app on Android 4.2+.
Persistently sets the android process limit. NOTE: This app is required to install as a system app on Android 4.2+.
can i have the apk of latest version?
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
I want to set the process limit to higher values, so menu entries like 1, 2, 5, 10, 20, 50, 100 would be very helpful instead of 1, 2, 3, 4, 5, 6, 7 (as modern phones tend to have 2 or 3GB of ram). The phone already has an option to limit them to 1, 2, 3 or 4.
just installed the provided apk, i have one question regarding the provided value meaning.
i understand that 1-100 is the limit of the process that allowed to run.
0 (zero) i assuming disabled preserving any background process.
is -1 means standard limit of the os, or unlimited background process?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.