yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Just use the hard to kill launcher menu item.

That doesn't modify minfree values
[Android Software/Hacking General [Developers Only]] ms2sf:
Great Job! V6 has made a real difference for me. I have Original Droid Liquid Gingerbread 1.9 settings 6,8,16,20,32,40 with 46.6 mb of system ROM free (Yipee)

Using Auto Memory Manager I can see which programs are in which slots. Here are my noob questions.

1. Does lowering the priority mean it will be one of the first programs to close?

2. I see several programs, for example the stock Email In hidden apps OOM:7 Mem Used 16MB. I never use this program, I use K9 and Gmail only. Can I prevent this? Do I need to bother.

3. I use Robo Defense , a game all the time. Sometimes I like to use Google Listen and listen to pod casts at the same time. Is there something that I can do, so these run as best as possible?

4. Sometimes, after playing Robo Defense for a long time, I see flashes that Script Manager has been granted super user permission. Why would it start an hour later? Was there a Out of Memory that caused this?

5. Even before I started using V6 when ever I first restart, not coming out of sleep, Launcher Pro freezes. This is not a big issue because I just need to reset LP and it is fine. But, is there a way to avoid this?

Again A GREAT JOB. Thanks
[Android Software/Hacking General [Developers Only]] BryanChung:
Ermmm, I've not ran a heavy app that requires heavy usage of my phone. So I'm still trying out for the general multi-tasking purpose. :)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
That's cool.

I assume that all is well then :D

1. A low number means greater priority. Higher numbers get killed first.

2. You can freeze the Email app that you don't use but since it's a 7, it gets killed off pretty quickly.

3. You can try the "bulletproof background apps" script that I link to at the bottom of the OP. It's kinda hit and miss but it should keep GListen running for longer than usual :P

4. Interesting... you are on a custom rom. Did you need to manually have script manager load /system/etc/init.d/99SuperCharger on boot for the minfrees to persist? That file should load automatically although for some reason, some ROMs have a bug where the init.d/99SuperCharger doesn't load and using script manager is the quick fix.

5. Double check to be sure Launcher Pro is you default launcher/home app. For example, Widget Locker is known to screw this up and it configures itself to be the home launcher.
[Android Software/Hacking General [Developers Only]] DrNO[PL]:
zeppelinrox, thx for the scipt, worked like a charm :)
[Android Software/Hacking General [Developers Only]] ms2sf:
Thanks for your time and response. I read your bulletproof background apps and I will give it a try and let you know how it works for me. Script Manager does run at boot so I assume your script has run as well. Thanks again.
[Android Software/Hacking General [Developers Only]] Izeltokatl:
thanks for this cool script, worked on my wife's Eris, but can I just use this script on a Samsung Fascinate? I haven't heard any mention on the other forums... but I assume i'll just have to nandbackup and test it and be the first guinea pig?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
That sounds good to me lol

How much ram on facinate?

Googling spits out 384mb?

If so you can probably try 6,8,35,40,45,50
[Android Software/Hacking General [Developers Only]] avrin1:
im using CM7 on milestone.

i applied your script through andridiani with gaming preset, rebooted and it worked fine.

then i applied the OOM+BulletProof script, rebooted, and it enered an endless bootloop :(

now im trying to reinstall the rom and pray to got itll work..

any idea why it happened?

edit:

ok, reinstalling cm7 worked :)

i will try once again to use supercharger, what preset will give me the best battery saving with good performance?

thanks!
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Balanced 3 should work well enough without bulletproofing
[Android Software/Hacking General [Developers Only]] silversg:
Gave version 8 a try on my Droid X with stock Gingerbread (I picked option 6), and I ended up stuck on a black screen after the red "M" on rebooting. Waited at least 20 minutes, did a battery pull, no go, tried a couple more battery pulls, still no go. Ended up having to do a factory reset (Titanium Backup to the rescue!). I had version 1.18.2 of busybox, used Script Manager to run the install script, and then used SM to set 99SuperCharger.sh to run at boot. I have AKMO installed, and I had already disabled the option to apply settings at boot.

Any ideas what might have gone wrong?
[Android Software/Hacking General [Developers Only]] wraithdu:
I just picked up my Verizon Galaxy Nexus yesterday, and I'm going to start testing out the SuperCharger script. Well, first problem I ran into was this obscure /sqlite_stmt_journals missing directory error. Being me, I fixed it.

For whatever reason, this temp file system is missing on some devices. The solution is to create it, and mount it on device startup. You'll need to create the following script somewhere where it will run on device boot, or use ScriptManager to do it.

Also, it looks like the build.prop method might be needed on this phone, local.prop doesn't seem to have worked. I'll update when I'm sure.

So here it is:

#!/system/bin/sh

if [ ! -e /sqlite_stmt_journals ]; then
busybox mount -o remount,rw /
mkdir /sqlite_stmt_journals
busybox mount -o remount,ro /
fi

busybox mount -t tmpfs -o size=4096k tmpfs /sqlite_stmt_journals
[Android Software/Hacking General [Developers Only]] jun_ng_1208:
I thought u don't need to run it at boot since the code is fixed?
[Android Software/Hacking General [Developers Only]] wraithdu:
Actually it looks like Die Hard doesn't work at all on the Nexus. I tried both local.prop and build.prop and both end up with a weak launcher having ADJ=6. We'll see how the rest of the script helps with smoothness and multitasking though.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
That's strange...

Well since you're on stock it never got to the point of loading 99SuperCharger.sh since that would happen after android loads up and then script manager runs it.

Are you sure busybox installed correctly?

btw if you decide to try again my autostarts script works on droidx so init.d scripts will work.

heh... actually I do have the fix in the script already but it happens after a menu selection is made.

If the folder doesn't exist it gets created and gets deleted before returning to the menu.

Only in the last day or so somebody else posted a screen shot of that error which occured as soon as the script loaded up so I have already "fixed the folder fix" for the next version lol

Did the entries get written to build.prop?

There should be no processess with ADJ 1 except for the die hard launcher or whatever process has the home status.
[Android Software/Hacking General [Developers Only]] sag7392:
Yeah and I'm knocking on wood right now...but I have had a few scares, lol. Looking forward to your update too!
[Android Software/Hacking General [Developers Only]] aLNG:
zep,

if we change priority with renice 1 'pgrep com.android.launcher'

is it the same with adj 1? because when i checked with ps -p the NICE value changed to 1, but when checked with bOOM still adj 6.

what is the difference? can u tell me :)
[Android Software/Hacking General [Developers Only]] silversg:
Ah, interesting... Well, I used JRummy16's BusyBox Installer app... It said it was installed... What's the best way to verify the installation?

I'm definitely tempted by your autostarts script, plus I *am* rather stubborn, so I might just give it another try.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Cool... I'm looking at improving the tcp speed tweaks too... they are prop entries but dunno if I should put it with 3g turbocharger, kak (has alot of tcp tweaks too) or just put it in with V6's 99SuperCharger boot script... they work with the setprop if not in build.prop...

sheesh... lol

no it's different...

Easiest to bulletproof it and make a one-shot script for it.. it makes it priority -17 though so you can change it to 1 or 0...

Sill no luck with the ADJ entries being in effect?

You still have a bunch of ADJ 1s?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
lol... me too... hehe...

Try the update 9 rc4 (download link in sig) because it has more features and as ALOT of pre-emptive checks in place...
[Android Software/Hacking General [Developers Only]] aLNG:
Yea..lol

Can u tell me how you check app's adj? I know I can check with boom, but can u give me command in terminal?I just want to make small script just for quick check..pls and thanks
[Android Software/Hacking General [Developers Only]] wraithdu:
I'm not sure what you mean by "fixed the fix". However I will say creating the folder only works if the root file system / is mounted RW. But this is actually a larger issue that can affect the cat command in general when used in the form

cat > file.ext <<EOF
hello world
EOF

My solution is a permanent fix that doesn't require the root / to remain RW.

Yes. I verified all entries were written to either build.prop or local.prop (I tried both). Using the OOM verifier, there was nothing with ADJ=1, and com.android.launcher sits at ADJ=6 as SECONDARY_SERVER.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yes I also remount it ro immediately... before returning to the menu.

Weird... so you have ICS right?

Can you post that oom verifier output... I'm curious about all the adjs/groupings

Maybe you can double check with auto memory manager to verify that the prop ADJs are being used.
[Android Software/Hacking General [Developers Only]] wraithdu:
And you don't get any errors? Weird. I tried manually creating the folder, then instead of a does not exist error, I get a read-only file system error from the cat command.

Anyway... I'll get that output for you a bit later.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yes rc4 currently does that.

After certain selections are made, rootfs and / are mounted rw and the temp folder is made.

Before the menu appears the folder is deleted and all is mounted back to ro.
[Android Software/Hacking General [Developers Only]] andreasy:
One clarification in regards to the battery calibrator: in what way does it differ from just clearing battery stats in recovery? cause that's what I realize it does. Am I wrong? I mean, if i charge my phone full while it's on and then wipe battery stats, is that the same or this script does something more?
[Android Software/Hacking General [Developers Only]] wraithdu:
Here's my output:

================================================
zOOM Stick Verifier (Quick) selected...
================================================

----====zeppelinrox's bOOM Stick Verifier====---

Using zOOM Stick Mode (Quick)...

ADJ PID Process

FOREGROUND_APP OOM GROUPING
===========================
-16 1 init
-16 105 servicemanager
-16 106 vold
-16 111 netd
-16 113 rild
-16 114 surfaceflinger
-16 115 bin--zygote--start-system-server
-16 116 drmserver
-16 117 mediaserver
-16 11762 sh-
-16 11768 sh-
-16 11794 shV6_SuperCharger_for_Android-update9_RC4.sh
-16 118 dbus-daemon--system--nofork
-16 119 installd
-16 121 keystore
-16 123 media10231023
-16 127 adbd
-16 177 smc_normal_world_android_cfg.ini
-16 183 system_server
-16 231 ttyO1
-12 262 com.android.systemui
-12 407 com.android.phone
-12 422 com.sec.android.internal.ims
-12 431 com.android.nfc3
-16 541 bluetoothd-n
-16 6890 debuggerd
-16 92 ueventd
-16 self cmdline
0 5683 com.teslacoilsw.widgetlocker
0 6387 RewtHelper
0 7563 sh-

VISIBLE_APP OOM GROUPING
========================
1 389 com.google.android.inputmethod.latin
1 510 android.process.acore
1 631 net.dinglisch.android.taskerm
1 7169 net.igecelabs.android.MissedIt

SECONDARY_SERVER OOM GROUPING
=============================

HOME LAUNCHER IS IN HERE! (ADJ=6)

5 1363 root-p127.0.0.1:80,127.0.0.1:443
6 448 com.android.launcher
5 4631 com.android.vending
5 6485 android.process.media
5 7091 com.levelup.touiteur
5 7205 de.j4velin.delayedlock2:unlocker
5 7345 de.devmil.minimaltext
5 9658 com.lookout
5 9683 logcat-bsystem-bmain-bevents-vtimebrowser_page_loaded:I *:S ActivityManager:I SearchDialog:I PackageManager:W
5 9688 com.google.android.apps.maps:NetworkLocationService
5 9737 com.android.bip
5 9757 com.samsung.syncservice
5 9985 com.fusionone.android.sync.sprimebaclient

HIDDEN_APP OOM GROUPING
=======================
8 11770 com.noshufou.android.su
7 11868 com.vzw.hss.myverizonged
7 2081 com.levelup.beautifulwidgets
7 341 com.google.process.gapps
7 685 com.th.android.widget.gTabsimiClock
8 7407 com.google.android.gm

CONTENT_PROVIDER OOM GROUPING
=============================
9 10575 com.google.android.gsf.login
11 11502 com.touchtype.swiftkey
10 11528 com.amazon.venezia
11 11546 com.weather.Weather
9 11571 com.google.android.apps.googlevoice
10 11628 com.google.android.talk
10 11677 com.google.android.apps.maps
9 7330 com.google.android.apps.plus
11 7544 os.tools.scriptmanagerpro

EMPTY_APP OOM GROUPING
======================

================================================
zOOM Stick Complete!
================================================

---------- Post added at 02:00 PM ---------- Previous post was at 01:35 PM ----------

Auto Memory Manager shows some weird values, assuming the initial screen shows the current values:

foreground: 6 MB
visible: 8 MB
secondary 16 MB
hidden: 20 MB
content: 32 MB
empty: 40 MB

However terminal shows what your script set:

cat /sys/module/lowmemorykiller/parameters/minfree ->
1536,3072,19200,23040,24320,32000

cat /sys/module/lowmemorykiller/parameters/adj ->
0,4,6,8,14,15
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yes it does more... just try it out and follow instructions as you go along...

Oh AMM doesnt show the current values when it loads... its dumb...

But check the OOM Grouping feature to double check the groupings.

I see that there are indeed a few ADJ 1s in the output though so maybe the rom doesn't use the build.prop ADJ values.

AMM should be able to verify that.

Do you have any rc files in /system or /system/etc that isn't named init.goldfish.rc?

If there is putting the ADJ entries in there should work.
[Android Software/Hacking General [Developers Only]] mykegger:
They are written in my build.prop for ICS with only the home app with an ADJ 1.

Could the issue be the duel home launchers in ICS? Especially since both launchers are in the same app with different activity names.

com.android.launcher2.Launcher & com.android.launcher2.RocketLauncher

Even after manually BulletProofing com.android.launcher; it still defaults to ADJ 6

OOM Grouping fixes still work; as does KAK and 3G turbocharger.
[Android Software/Hacking General [Developers Only]] wraithdu:
Yes, AMM verified the groupings showed by your script.

All of my .rc files are in the root:

/ueventd.tuna.rc
/ueventd.rc
/ueventd.goldfish.rc
/init.tuna.usb.rc
/init.tuna.rc
/init.rc
/init.omap4pandaboard.rc
/init.goldfish.rc

Random oddity... the sdcard is also mounted at /data/media on this phone.

I've unsupercharged for now. I think without the proper groupings in effect, the minfrees are wreaking havoc on multitasking, I had stuff closing down left and right. I also have some new dalvik properties in build.prop that are interesting:

dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=64m
dalvik.vm.heapsize=256m
dalvik.vm.dexopt-flags=m=y

And in case you were interested in stock values:

shell@android:/ # cat /sys/module/lowmemorykiller/parameters/minfree
8115,10150,12185,14233,16268,20326
shell@android:/ # cat /sys/module/lowmemorykiller/parameters/adj
0,1,2,4,7,15
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Wow... how do all these launchers show up in OOM verifier?

Can you post the output too please...

Ok thanks for the info :)
[Android Software/Hacking General [Developers Only]] mykegger:
They show up as one app.....

SECONDARY_SERVER OOM GROUPING

=============================

HOME LAUNCHER IS IN HERE! (ADJ=6)

Segmentation fault

5 2665 com.facebook.katana

Segmentation fault

6 311 com.android.launcher

Segmentation fault

5 504 com.google.android.apps.googlevoice

Segmentation fault

5 7708 com.google.android.apps.maps:LocationFriendService

Segmentation fault

5 858 de.devmil.minimaltext

Full output: http://pastebin.com/Mggm2WEA
[Android Software/Hacking General [Developers Only]] andreasy:
Is there going to be a newer version of the scripts with MFK included? do we have any estimate on when that will happen? no pressure, just wanted to see if it's better to flashing the scripts on a new setup now or if it's better to wait for a few days when we'll have the updated onces. :D
[Android Software/Hacking General [Developers Only]] aLNG:
zep,

i found the problem :)

rc4 cannot supercharge launcher in ics..i dont know why

when i flash back to gb..everything works as charm

maybe in next update u can fix that :)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
This is gonna be a hassle.

The ADJs in your prop file don't match the ADJs in the OOM Stick.

You have many ADJ 1s can you do this last thing:

getprop | grep ADJ

If that matches the build. prop file ADJs and not the OOM stick then I dunno what to do yet...

It will be in both KAK and V6.

Should be this weekend... thought of another feature...

I dunno if its a CM9 issue or ICS.

MV's ICS rom did supercharge at first... and now it doesn't
[Android Software/Hacking General [Developers Only]] aLNG:
actually i tested almost all custom rom ics available here
[Android Software/Hacking General [Developers Only]] mykegger:
Here you go, looks like it does match the build.prop...

sh-3.2$ export PATH=/data/local/bin:$PATH

sh-3.2$ su

sh-3.2# getprop | grep ADJ

[ro.BACKUP_APP_ADJ]: [7]

[ro.CONTENT_PROVIDER_ADJ]: [9]

[ro.EMPTY_APP_ADJ]: [15]

[ro.FOREGROUND_APP_ADJ]: [0]

[ro.HIDDEN_APP_MIN_ADJ]: [8]

[ro.HOME_APP_ADJ]: [1]

[ro.SECONDARY_SERVER_ADJ]: [6]

[ro.VISIBLE_APP_ADJ]: [4]

sh-3.2#
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Oh okay I was pretty sure MVs first non CM9 versions worked tho.

So as far as I can tell:

1. the getprop command shows ADJ values that match supercharger ADJs in build.prop

2. Both don't match the OOM Stick since it finds a few processes with ADJ 1

Which rom are you on?

So it looks like my statement above is correct?

Edit: yes its very scrambled...

Looking at your oom verifier output...

If your rom was using the getprop ADJs, your input.latin (ie. keyboard) would be a 4 (not 1) and facebook a 6 (not 5)

Also, the categories go back to froyo since there is no perceptible and heavyweight apps (gingerbread has them) and there is content providers (not in gingerbread)
[Android Software/Hacking General [Developers Only]] mykegger:
I'm running ICS by texasice right now for the N1.

I believe it is CM9 based.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ok... can you pastebin your init.rc file?
[Android Software/Hacking General [Developers Only]] mykegger:
ICS init.rc pastebin: http://pastebin.com/1KqC5MzA
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Doh... that's SuperCharged.. lol

Can you disable integration, reboot and pastebin the default one... sorry I didn't remember to say to disable that beforehand :p
[Android Software/Hacking General [Developers Only]] mykegger:
Unsupercharged init.rc posted to the same pastebin as before.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Welp no ADJs in there :p
[Android Software/Hacking General [Developers Only]] mykegger:
As an update, I switched from the stock ICS launcher to the CM Trebuchet launcher and same issue applies.

Also still contains two launchers in one.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yeah... it isn't launcher specific...

If it works, it works for any launcher and vice versa.

Android is not applying ANY of the ADJs shown by the getprop output.

So ALL groups have the wrong ADJ priority - not just the home launcher
[Android Software/Hacking General [Developers Only]] mykegger:
I have complete faith in your ultimate ability to rock the socks off ICS.

(Totally not my increasing BAC talking)

Thanks for everything you have done. :)
[Android Software/Hacking General [Developers Only]] skatin707:
Zep sure is the best. His scripts are fantastic.

Next update should be V6 Supercharger 20psi edition :cool:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
So here's a clue.

CM7 Gingerbread ActivityManagerService.java https://github.com/nadlabak/android...android/server/am/ActivityManagerService.java

CM9 ICS ActivityManagerService.java https://gist.github.com/CyanogenMod...android/server/am/ActivityManagerService.java

All the OOM/ADJ stuff is missing from the ics version...

hmm... but this is new https://gist.github.com/CyanogenMod...s/java/com/android/server/am/ProcessList.java
[Android Software/Hacking General [Developers Only]] vinokirk:
I'm getting the error "bad number" and "643"

Stock Galaxy Note. Any ideas?
[Android Software/Hacking General [Developers Only]] aLNG:
interesting...no more ro.XXX_APP_ADJ and ro.XXX_APP_MEM in ICS

the values is given directly in processList class..

edit: interesting article https://plus.google.com/u/0/105051985738280261832/posts/XAZ4CeVP6DC
[Android Software/Hacking General [Developers Only]] Drunkpilot:
I'm tempted to go back to rc4 to check the difference in values, not just launcher. Launcher would not stick. It would be die hard then very weak. Rom loaded with launcher2, but I use Zeam. I never use launcher2 and deleted, but still not sticking. Went back to rc3.2 and no issue.

Rc4 is the 1st time I have experienced this and have done all of the root/ boot options which I have always had to do on this little hero running 2.3.7. Using built in busybox 1.19.3, but same when reverting to 1.18.2.

Due to my very low memory I use a partition tweak and doing the full cache wipe just destroys a market fix that I need to do because of small cache. I guess it really scrubs, like in the deal.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Makes sure to run as root and bb is installed properly.

it may be the reporting issue.

Supercharge with RC4 and check with RC3.2 :p

Yeah...

Say... on ics defaults, what shows up with getprop | grep ADJ

Anything?

I also wonder if removing the ro. prefix can possibly get applied... wanna try? lol

So instead of ro.XXX_APP_ADJ you have simply XXX_APP_ADJ
[Android Software/Hacking General [Developers Only]] aLNG:
lol

i dont think that will work :)
[Android Software/Hacking General [Developers Only]] jeffcavicchi:
Question for Zep (and anyone else who might know) - I recently changed to 512 aggressive settings. All seems good, but now I have am having a strange problem with Google music. Tracks play fine at first, but, randomly, audio cuts out. The track is still playing, and if I hit the external volume buttons audio instantly returns.

Wondering if audio is getting killed because of the aggressive minifrees? Not even sure if that is possible.

Any thoughts?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Something HAS to... lol

Well it might be the more aggressive settings if its fine on the lower ones and everything else is the same.

You can try bulletproofing the media and music processes that should help.