yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] :
Heh, thanks , now I understand.

Maybe raising all priorities in all slots may improve multitasking?

Oom will longer wait for app priority raise to higher value.

And, in logcat, what is the entry:

"hidden #16" ?

It shows in logs when

"No longer want"

Command from activity manager shows.

I suppose that seems that app from HIDDEN slot has priority of 16- and must be killed? It's so interesting :)

ZaTapatalkowane & WyHTC_IME'owane via ZTE Blade Supercharged ;)
[Android Software/Hacking General [Developers Only]] Lilith_v2:
Ok, every works fine. Many thanks for great app man :)

Happy dev:)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
You're welcome :)

Did you change hidden to 16 and it works the same as when it's 25?

Also, I wanted to know if the secondary server apps (slot 3) get killed while the hidden apps don't get killed... is that what happens?

Or does nothing ever get killed?

I looked into by simply deleting 98kickasskernel and the time stamps before and after remained the same.

BUT I'm pretty sure that dates of files that change at boot used to be 5 hrs ahead of what the time really is.

So if it's 6pm (18:00) and I reboot, the data folder would have a time stamp of 23:00 (not 18:00).

However, I noticed lately that it's been having a time stamp of 4 hrs ahead ie instead of 23:00, the time stamp/date of the data folder is 22:00.

So after deleting the kernel script, it remained unchanged.

I wonder if it has anything to do with daylight savings time or whatever (fall back/spring forward).

Also, I think that the time stamp discrepancy may have to do with the time setting in my recovery - but I've never gotten it to work right lol

Oh yeah and I remember looking through dorimanx's scripts, he uses crond as well - I was looking because I want to see how it works...

ANYWAY... as you can see from his init.d boot script below, you can specify a timezone ;)

#!/system/bin/sh
#Created By Dorimanx

sleep 90
# enable crond
echo "root:x:0:0::/data/cron:/system/bin/bash" > /etc/passwd
# crond has "/bin/sh" hardcoded
ln -s /system/bin/ /bin
# set timezone
TZ=IDT-3
export TZ
#Set Permissions to scripts
chown 0:0 /data/cron/*
chown 0:0 /data/cron-scripts/*
chmod 777 /data/cron/*
chmod 777 /data/cron-scripts/*
# use /data/cron, call the crontab file "root"
crond -c /data/cron/

I'd suggest using the weakest one that doesn't redraw on your device.

The weaker it is, the more multitasking friendly it is.

On a device with over 700MB of ram, I'm pretty sure bulletproofing is safe.

But on a low ram device, it isn't a great idea because large apps can be prevented from running - which is the reason why I delved into OOM grouping rearranging - just so that I can create a hard to kill/die hard launcher.

This way, a low ram device can run larger apps/games and not have the launcher get constantly killed - it only gets killed if absolutely necessary.

Alot of roms have the lock home in memory feature but the result is plenty of redraws - even my weakest one is stronger than "lock home in memory"
[Android Software/Hacking General [Developers Only]] avgjoemomma:
Takes at least 15 minutes to catch up on this thread due to the amount of posts during my bedtime lol

Zepp, I would help out with the battery calibration script testing but my poor battery's max capacity is at 81% ... lol:o There's no bringing this one back, I even tried the Battery Calibration apk that actually changes the battery registers:eek:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
wow... but how much mV can it reach?
[Android Software/Hacking General [Developers Only]] avgjoemomma:
I think I can get it to 4100... Supposedly lol
[Android Software/Hacking General [Developers Only]] KMDonlon:
Zep, any idea on the noop scheduler and my 1 hour discrepancy with cron?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
I edited my post on the last page...

I don't think noop has anything to do with timestamps...
[Android Software/Hacking General [Developers Only]] silberj:
I can volunteer to test your battery calibration script as well. Let me know what info you need from me.
[Android Software/Hacking General [Developers Only]] chriscx:
awesome !!!! thanks
[Android Software/Hacking General [Developers Only]] LuvThyMetal:
Okay so I just cleared caches and tried some different settings. Or we suppose to use options 11-13 with the OOM gouping Fixes, i see a lot of people talk about it, does it help a lot?
[Android Software/Hacking General [Developers Only]] maurogg84:
In the init.d If two scripts begin with the same number, would there be a conflict between them?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
heh... well maybe I can put an over ride in there

She likes the over ride in case you can't get it high enough.. bazinga!

The first test is here http://xdaforums.com/showpost.php?p=18882375&postcount=5429

But I've tweaked it some... I'll probably put it on the RC download page

If you use options 2-9, you don't need to use option 12 as die hard launcher is automatically enabled by default.

#11 the launcher is weaker and more multitasking friendly

#13 ain't getting killed.

Naw they all run... the numbers/names determine in what order they run.
[Android Software/Hacking General [Developers Only]] maurogg84:
Thanks zepp
[Android Software/Hacking General [Developers Only]] KMDonlon:
Thanks, went back to read your comments.....I am trying this in my cron script to maybe correct the daylight savings time thing you mentioned....will know if it works tomorrow.

TZ=EST5EDT,M3.2.0,M11.1.0 :cool:
[Android Software/Hacking General [Developers Only]] avgjoemomma:
As long as the battery doesn't explode in my pocket or by my face, I'm up for testing ...gotta keep the gifts intact;):p
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hope it works.

Btw, does it change anything if you delete uninstall the kernelizer?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
The Die-Hard Battery Calibrator test 2

The Die-Hard Battery Calibrator test 2 attatched :D

If it doesn't read your voltage or status (plugged in or not) or battery percentage, run these 2 commands in terminal and copy all and paste it here

without formatting anything

:

ls /sys/class/power_supply/battery
cat /sys/class/power_supply/battery/*

First command will list the battery folder's contents (file names)

Second command will show the contents of those files
[Android Software/Hacking General [Developers Only]] eoghan2t7:
Just tested it and it detected my voltage correctly but if i try to do the override it wont let me because the script seems to loop to the start of the script and then loop again etc..
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hmm... when you select override, the screen should change on the next refresh and the middle part will change from Disabled to Enabled...

No? :p
[Android Software/Hacking General [Developers Only]] eoghan2t7:
Yeah it does lol would it not be better to make a menu like

1.Calibrate

2.Head up display (for the refreshing monitor)

3.Aftermarket Parts

3a.MPH (refresh rate)

3b.Override Settings

Also like in v6 export a file to has the settings in it ;)
[Android Software/Hacking General [Developers Only]] quadjacks:
How do I verify KAK worked?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Some nice ideas especially the one about a user defined refresh rate :)

I was too busy trying to figure out a way to make it refresh without stalling while waiting for user input hehe...

Hmm... well there's another idea... KAK Verifier lol

If you did the io tweaks you can run it again to see if the scheduler has changed.

But you can also type in terminal:

sysctl -a | grep dirty

See if you get results matching:

vm.dirty_background_ratio=60

vm.dirty_ratio=95

You can also type:

mount

And if most of the partitions are noatime (instead of relatime), that's another sign that it worked.
[Android Software/Hacking General [Developers Only]] quadjacks:
What do you mean. I never get any options when I run KAK?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
oh what version do you have?

The latest ones ask if you want to install, uninstall or exit.

Then if you choose install, it shows all the active schedulers and asks if you want to incude the io tweaks
[Android Software/Hacking General [Developers Only]] eoghan2t7:
@zep but OT are you the cm dev thats on the cm website if so could you pm me a guide on syncing an unmodded cm branch and a easy guide to building a kernel because i cant get the cross compiler to build a kernel lol

Thanks in advance ;)

P.s if you want any other ideas just let me no :p
[Android Software/Hacking General [Developers Only]] Deaw^^:
I use "SuperCleaner" then can't boot my phone.It's still boot loop and freeze.

How can i fix the problem?
[Android Software/Hacking General [Developers Only]] myleb:
Me too. My phone stick at Motorola Dual Core screen (My phone's Atrix AT&T)

What did SuperCleaner do to my phone?
[Android Software/Hacking General [Developers Only]] KMDonlon:
It did, not sure of why I didn't realize it was daylight savings time :rolleyes:

I appreciate your help Zep!
[Android Software/Hacking General [Developers Only]] zeppelinrox:
nope that isn't me

Atrix had a problem with RC 3.1 but it's fixed in 3.2.

Somebody posted a fix in the Atrix cm 7 thread tho.

Edit: try asking swiftks for a couple of pointers http://xdaforums.com/showthread.php?p=18914227#post18914227
[Android Software/Hacking General [Developers Only]] tammyjustin:
Hey whats powershifting?
[Android Software/Hacking General [Developers Only]] nikdimas:
Which version of this in this thread is working with Atrix 4G?
[Android Software/Hacking General [Developers Only]] wraithdu:
Here's a little script some people on stock ROMs might find handy. It's a poor man's init.d I suppose. You'll need ScriptManager. Set this script to run on startup as root, and place any startup scripts you want run automatically in /sdcard/scripts/startup (or modify the script's source directory). That's all there is to it.

You have the option to change which command you want to use, but running the nohup version will run each script in parallel as background processes. The default here (uncommented) runs them serially in sequential order.

EDIT:

Made a small edit to allow an easy way to stop a script from running, just prepend a capital letter 'X' to the file name.

#!/system/bin/sh

BB="busybox"
NOHUP="$BB nohup"

for script in `find "/sdcard/scripts/startup/" -type f | sort`; do
# get script name
sname=${script##*/}
#`echo "$sname" | awk '{print substr($0, 0, 1)}'`
# check first letter is X, if not, run it
if [ `expr substr "$sname" 1 1` != "X" ]; then
echo "Starting: $sname"
# run in parallel background processes
#$NOHUP "$script" >/dev/null 2>&1 &
# run sequentially
sh "$script"
echo
fi
done
[Android Software/Hacking General [Developers Only]] sleepyEDB:
After recently flashing a new CM7 nightly, I forgot all about reinstalling BusyBox 1.18.2 until I ran the V6 U9_RC3.2 script. I thought for sure it would fail, but instead it just told me that my BusyBox version was 1-19.2-CM71 bionic and that it was acceptable. All test drives completed successfully, and I've confirmed that the script is installed and is maintaining its settings after a reboot (launcher is hard-to-kill, minfrees match).

Is this just an isolated case, or is it perhaps no longer necessary to use BusyBox 1.18.2 or lower?

sleepy
[Android Software/Hacking General [Developers Only]] RyanJKremer:
V6 Supercharger Test Results

It took some time to get this done, but here it is...

These test were performed with my LG VM670 running the BobZHome IHO port of CM7.1. Individual results may very depending on Model and ROM.

I ran a series of ten AnTuTu benchmarks under four different circumstances:

1. Processor at 480/748, No V6 Supercharger.

2. Processor at 480/748, No V6 Supercharger, >300Mb mem used (as close to OOM as I could get before apps started closing automatically).

3. Processor at 480/748, V6 Supercharger options 6, 13, and 19 applied.

4. Processor at 480/748, V6 Supercharger options 6, 13, and 19 applied, >300Mb mem used (as close to OOM as I could get before apps started closing automatically).

Before applying the script, running at the edge of OOM had a noticeable negative effect on AnTuTu scores. (see Pre_V6_NormProb.JPG)

After applying the script, running at the edge of OOM had a noticeable POSITIVE effect on AnTuTu scores - like an animal backed into a corner, it fought harder. (see Post_V6_NormProb.JPG)

For a comparison of all four scenarios, see V6_BoxPlot.JPG.

Conclusion: if you are a "power-user" and have multiple apps running at the same time or play games that really tax your memory, this script should cause a noticeable improvement on your performance. If you just use your phone to check email and FB, maybe it's not worth the effort (and you should get yourself on straight-talk :p)
[Android Software/Hacking General [Developers Only]] maatsby:
No longer necessary. However if you have a busybox greater than 1.18.2 and less than 1.19.0, the script will give you an error
[Android Software/Hacking General [Developers Only]] matmanchu5:
beta link not working sent me to an empty website:(

edit: link is working but when I click the link using xda app it takes me to the browser but nothing happens :p?
[Android Software/Hacking General [Developers Only]] Jelly Nugget:
i dont know if the KAK is messing up my phone, i run the V6 fine, but untill i run the KAK script, it freezes my phone and have to pull the battery, anyoen else get this issue? running CM7 nightly 117
[Android Software/Hacking General [Developers Only]] maurogg84:
I don't know if this issue has been talked about I don't know what messed up wifi connection, I tried turning on and off my wireless router and that didn't work. I tried the wifi fixer and it couldn't find the wifi configuration file. I unturbocharge , that didn't help. Unkernilized, and unsupercharged and that didn't worked I tried a wifi fixer from the market. I finally got connected but my uploads speed were so low had to format the phone.

Hope that helps some what.
[Android Software/Hacking General [Developers Only]] Jordibcn:
Please someone could help configure this for Optimus 3D ? I don't know if I should use new beta version 9 or use 8 for more safety. Thanks
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Very interesting.

What were the minfrees in the tests?

The reason I ask is because if you use the exact same minfrees on both configurations, then the results are actually scewed because when SuperCharged you get less free ram.

For example, if your using 6,12,40,50,60, 75 MB as minfrees, when pre-supercharged, the free ram would hover around 50 MB because the secondary servers are in slot 4 and the kill threshold for secondary servers determine free ram the most.

But if you're supercharged and using those minfrees, your free ram will be around 40 MB since I moved secondary servers to slot 3.

So I'm pretty sure that in the first comparison where the supercharger had slightly lower scores, the phone had less free ram when supercharged.

Now, for the second set of tests, it doesn't matter because you had free ram cranked up and past a certain lag level, so any difference in free ram wouldn't come into play.

The installer freezes the phone?

And if you reboot, does it boot fine?

If so, and the boot script ran, it's working :p

The latest RC3.2 shouldn't pose any problems - especially for the phones that issues with RC3 or RC3.1.

Happily, I haven't heard of any issues regarding RC3.2 and boot problems :)

I hadn't heard of any on the Optimus 3D at all... have there been?

But you should always have a back up regardless.
[Android Software/Hacking General [Developers Only]] 07blackwater:
I've been using RC3.2 since yesterday. Heavy usage, lots of reboots (intentional) and no issues whatsoever.

Sent from my SGH-T959P
[Android Software/Hacking General [Developers Only]] garywojdan81:
Great job Zep. Just moved from 3.1 to 3.2 w/o a hitch. And your battery script is just what the x2 needs. Thanks again.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Thanks guys...

It depends on feedback on RC 3.2 but this is starting to feel very close to "final".

I'd add the battery calibrator and that would be it I think...

Well... and then build a V8 lol
[Android Software/Hacking General [Developers Only]] bobcaruso:
OK, so I looked at the calibration script, basically, it tests if the device is charging, displays current capacity and asks to delete batterystats.bin

Why is this any different then the free Battery Calibration app downloadable in the market?

From an intellectual perspective, I understand wanting to learn about this, but after acquiring this knowledge why spend time & effort perfecting something so elegantly accomplished in an existing, free app?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Why do you need an app that does:

rm /data/system/batterystats.bin

?

I've never tried the app... but I posted on the first page of it's thread here:

http://xdaforums.com/showthread.php?t=1024867

Well, I made a few posts...

It caught my attention because I had came up with a nifty calibration method not long before the app came out and thought it was quite.... uhhh... well I couldn't believe somebody made an app for that...

BUT the ridiculous part was that there was NOTHING about mV... until I pointed it out.

I'm like... "how the hell can you calibrate the battery if you rely on a percentage value that you are assuming is wrong to begin with??"

Anyway, the dev doesn't believe in bump charging either which I do...

The dev thinks it's a good idea to let the battery die 100% where I don't think that's necessary...

I still can't believe that app... lol... delete the file and you dont' have to do anything else...

Uh... okay...

Edit: I was close to getting into an arguement as to when batterystats gets re-created.

They're like... "oh it gets created eventually whenever android feels like it after a certain amount of time..."

And I'm like... "no. .. it gets created if you unplug the phone and plug it in again OR on boot at the logo and before the animation..."

Anyway, I just gave up on that one lol
[Android Software/Hacking General [Developers Only]] eoghan2t7:
Zep dont kill me but the battstats.bin does get re-created after a while i noticed it a week ago and i still had my charger in with no reboot lol might have been a glitch i dont no but it did create itself.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
THE WIRE WIGGLED LOOSE!!!

I was there... I saw it... :D

But then again, I've never sat and waited for it to get recreated, but I do know how to create it when I want to... so there :P
[Android Software/Hacking General [Developers Only]] eoghan2t7:
Haha thanks the grim reaper didn't come cheers for spearing my life on this occasion ;)
[Android Software/Hacking General [Developers Only]] skatin707:
Just installed the latest version on my SAMSUNG infuse. Gotta be honest, I got scared waiting for it to boot! I chose the middle setting under 512 settings. Does anybody else have infuse specific recommendations? This is going on my acer tab next!

Edit: no go on my tablet. It "failed to copy over busybox to system" or something like that.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Well, I seriously think that RC3.2 has solved any boot issue possible.

So the busybox installer failed?

Maybe you don't have space on your system partition
[Android Software/Hacking General [Developers Only]] skatin707:
Yeah, it booted just fine. It's running great, even got an extra 100ish points on antutu.

3g super charger doubled my hspa+ speeds too. Very nice :D

Yeah that could be it, but the tablet is brand new pretty much. There is hardly anything on it.
[Android Software/Hacking General [Developers Only]] TheInVisibleGoD:
Didn't solve for me... :(

I'm using CM7 with Busybox 1.19.2 bionic (default), I tried first time with an update (since I was already using a previous version) but got a boot issue (stopped at first boot screen). I tried also to make a Un-Supercharge before running script and a SuperCleaner at the end but still getting a boot issue. I already removed battery 3 times at least, and also tried to clean caches and dalvik in CWM...

Don't know what else can I be doing wrong... any idea on this?
[Android Software/Hacking General [Developers Only]] bobcaruso:
For all trying the 3G script on MIUI.us Defy, any setting you chose kills 3G/WIFI.

Tried them all, had to recover system to fix.

KAK works.

As far as V6, ROM is already tweaked set with launcher as hard to kill

---------- Post added at 12:42 AM ---------- Previous post was at 12:35 AM ----------

MIUI Defy ROM for DroidX

For all trying the 3G script on MIUI.us Defy, any setting you chose kills 3G/WIFI.

Tried them all, had to recover system to fix.

KAK works.

As far as V6, ROM is already tweaked setting the launcher as hard to kill, with very unique Fractional OOM settings.

When applying 512 MB settings, (tried all the 512 settings) and rebooting, the phone has more lag then the original settings
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zep,

Yes I tested yesterday RC3.2 it solves the boot problem which I faced in RC3.1.

Thank you!
[Android Software/Hacking General [Developers Only]] ckoadiyn:
Latest rc works awesome on EVO running mikg
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Actually, I'm thinking of adding...

fix permissions

zipalign

What do you guys think?

I'm still unclear about the error that you have...

If it's a space issue, try typing in terminal "df -h"

It will show you free space on each partition.

Wait... so the phone is booting fine... after applying RC3.2 it doesn't boot? :(

I've been messing with a tempermental Atrix and after wiping caches, ANYTHING killed data/3g... finally undid the kernelizer and then it worked.

Turns out that on the atrix, this particular rom (cm7) is very finicky when it comes to init.d scripts.

So I deleted 99supercharger and 98 kickasskernel and cleaned supercharger entries from /data/local/userinit.sh

Had script manager load /data/99supercharger and /data/98kickasskernel on boot.

EVERYTHING worked... with 3g/data :D

What does "Fractional OOM Settings" mean? What are the minfrees?

Cool... do the settings stick?

If it finally sticks on EVO, I'd be amazed lol
[Android Software/Hacking General [Developers Only]] denzel09:
Good for fix perm and zipalign
[Android Software/Hacking General [Developers Only]] ckoadiyn:
Everytime I run the supercharger it says the settings are set. Also when I look in system tuner it has the correct values iv never had a problem with them sticking that I know.
[Android Software/Hacking General [Developers Only]] Jar3112:
Trying battery script, seems good by now. Will be reporting by nighttime! :-)

Sent from my Galaxy Ace on GLSMT 2.1 with XDA app.
[Android Software/Hacking General [Developers Only]] JimMorrison723:
Now what?

Hy !

I just updated to 4.2.A.0.42. I downloaded Universal Androot. It says:

SuperUser for Android 2.0~2.2. Is it good for my 2.3.4 Gingerbread?

(+if i want to use DoomLord's Kernel too, than i have to unlock my bootloader right?)
[Android Software/Hacking General [Developers Only]] bigjoexxl:
Having trouble getting the script to run after installation. I've done everything step by step. Help please.
[Android Software/Hacking General [Developers Only]] JimMorrison723:
i did it, but when i went to busybox it said: need root blabla.

i watched the universal androot log, last line:

/mnt/secure/asec: Permission denied

what should i do now?
[Android Software/Hacking General [Developers Only]] bobcaruso:
Minfree values set by the MIUI Defy ROM (ver. 1.10.28):

Reported 9.625, 14.5, 28.875, 33.625, 38.5, 38.5

Act. Values 2464, 3712, 7392, 8608, 9856, 9856