yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
I'd find it annoying to run 99SuperCharger with SManager if I didn't have to :p

No other scripts in there so it's likely an app that applies minfrees.

Ok I think I got it all covered now.

if [ ! "$adjfile" ]; then oomadj1=0;oomadj2=1;oomadj3=2;oomadj4=4;oomadj5=9;oomadj6=15;currentadj="0,1,2,4,9,15"
elif [ "`awk -F , '{print $3}' $adjfile`" -gt 15 ]; then
oomadj1=$((`awk -F , '{print $1}' $adjfile`*18/1000));oomadj2=$((`awk -F , '{print $2}' $adjfile`*18/1000));oomadj3=$((`awk -F , '{print $3}' $adjfile`*18/1000));oomadj4=$((`awk -F , '{print $4}' $adjfile`*18/1000));oomadj5=$((`awk -F , '{print $5}' $adjfile`*18/1000));oomadj6=15
currentadj="$oomadj1,$oomadj2,$oomadj3,$oomadj4,$oomadj5,$oomadj6"
else currentadj=`cat $adjfile`
oomadj1=`awk -F , '{print $1}' $adjfile`;oomadj2=`awk -F , '{print $2}' $adjfile`;oomadj3=`awk -F , '{print $3}' $adjfile`;oomadj4=`awk -F , '{print $4}' $adjfile`;oomadj5=`awk -F , '{print $5}' $adjfile`;oomadj6=`awk -F , '{print $6}' $adjfile`
fi

Because the decimals get truncated, I used 18 instead of 17 so that it rounds down to the right number.

3*17/1000=176.47 but 176 is what gets applied to the adj file.

I have to convert it so the 176 gives me a 3

176*17/1000 = 2.992 - which would result in a 2 ie. no good

176*18/1000 = 3.168 - which would result in a 3 ie. good :)
[Android Software/Hacking General [Developers Only]] Topogigi:
This is a dirty hack and you know it. But it will always work in our range of numbers and that's enough. A more elegant solution (to preserve the 17 divisor for helping code readability) could be something like this:

oomadj1=$( printf "%0.f\n" 2.992 )

that gives the requested 3 in the assigned variable.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ha ya I was feelin lazy.

I do use that exact same method elsewhere in the scipt to round the current minrees properly - since default values don't always divide nicely ie. 1000, 2000, etc. would really work out to xx.xxxx MB.

That don't look nice when displayed so I use that rounding method :)

So I guess I can kang myself and do it right lol
[Android Software/Hacking General [Developers Only]] ilmanu:
i try to install v6 script but sdmanager show me this:

and i think stop the execution...

what's wrong?
[Android Software/Hacking General [Developers Only]] TheDynamiteGuy:
Did you download it properly??

Sent From Make Up'ed RAY
[Android Software/Hacking General [Developers Only]] leswgnr:
Starter kit

Trying to do this step by step, read the OP, reread it (5 4 2 3 1 today? LOL)

I think all I need from the starter kit is zipalign, but the script insists on copying sqlite3 also, despite it already being there and saying it wont. Can't quite figure out why. Threw an echo in there to see the variable value right before the test statement but itl ooks OK to me. Script run excerpt copied below. Any help appreciated. Zep?

Thanks.

Script run-excerpt:

sqlite3 is already installed...

* Installing this may be unnecessary!

* Install anyway?

* Enter Y for Yes, any key for No: N

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

***** sqlite3 binary Installation ABORTED.

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

sqlite3 is* no <----------- my added echo of $sqlite3

* Copying sqlite3 & zipalign binaries... <-----------------shouldn't fall here after TEST and susequently does copy both binaries instead of just doing zipalaign

**************** ...to the /data/local folder
[Android Software/Hacking General [Developers Only]] sindamc:
I must say Zep ive had two android cellphones and in both of them your script made wonders! Thank you for making Android a better OS!
[Android Software/Hacking General [Developers Only]] MustafaHadaKing:
how do i implement this into my rom?
[Android Software/Hacking General [Developers Only]] kaluoshi:
So for my experience you need: patched services.jar with 0777 permission (setted with updater script), then the modified /data/init.rc that you can add to boot.img's ramdisk, then the data/V6* folder that has minfree file etc. And the main script in init.d folder. That's it :) take care of permissions.

P.S. choose a kernel to use before building the rom due to ramdisk init.rc that could be overwrote by a kernel flash or something else (also zep and my experience too, say the fact that ROM needs to be resupercharged after a kernel change)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yeah weird...

It should say "Copying zipalign binary... ...to the /data/local folder"

Maybe the "test" applet works oddly on your rom.

Try putting quotes around "$sqlite3" in the 3 comparisons.

So change this:

if test $sqlite3="yes";

To:

if test "$sqlite3"="yes";
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Updated code to be more elegant :)

if [ ! "$adjfile" ]; then oomadj1=0;oomadj2=1;oomadj3=2;oomadj4=4;oomadj5=9;oomadj6=15;currentadj="0,1,2,4,9,15"
elif [ "`awk -F , '{print $3}' $adjfile`" -gt 15 ]; then
oomadj1=`awk -F , '{printf "%.0f\n", $1*17/1000}' $adjfile`;oomadj2=`awk -F , '{printf "%.0f\n", $2*17/1000}' $adjfile`;oomadj3=`awk -F , '{printf "%.0f\n", $3*17/1000}' $adjfile`;oomadj4=`awk -F , '{printf "%.0f\n", $4*17/1000}' $adjfile`;oomadj5=`awk -F , '{printf "%.0f\n", $5*17/1000}' $adjfile`;oomadj6=15
currentadj="$oomadj1,$oomadj2,$oomadj3,$oomadj4,$oomadj5,$oomadj6"
else currentadj=`cat $adjfile`
oomadj1=`awk -F , '{print $1}' $adjfile`;oomadj2=`awk -F , '{print $2}' $adjfile`;oomadj3=`awk -F , '{print $3}' $adjfile`;oomadj4=`awk -F , '{print $4}' $adjfile`;oomadj5=`awk -F , '{print $5}' $adjfile`;oomadj6=`awk -F , '{print $6}' $adjfile`
fi

No truncating, just rounding heh

I guess a V6 SuperCharger update is needed soon... ish
[Android Software/Hacking General [Developers Only]] Topogigi:
:D That's good news, and I will wait eagerly for the new release. But at this stage, the fingers of one hand are enough to count the kernels that are already up to date with the oom_score_adj conversion. Actually I know only two of them. Nevermind, you'll be future-proof for a while on this side. TY very much for considering my request.
[Android Software/Hacking General [Developers Only]] SgtSausage21:
One suggestion, get rid of, or at least make it not auto load the Ice Cream Parlor service center (forgot the exact name). I think it confuses some new users, not a big deal but since the web app is longer used it seems pointless.

Normally when i run the windows exe then v6 via adb right after, if directs me there, but i just have to click cancel because services.jar is patched, it just hasn't super-cleaned and rebooted yet so the script is unaware.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yeah I like to keep up to date and have all bases covered... :)

I forget if I already did something like this as I'm always tinkering with it as things come up.

I do remember that I put in a big ass warning in advance stating that the webapp is out of date before it does anything but for sure I can have it load the Ulitmatic thread somewhere.

edit: So how long does stomach flu take to fly away... ugh... this sucks
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Not much feedback on that last services.jar patcher update...

It must be true that the sky fell, there was indeed a wolf, and I broke everybody's phones.

Nah, I'll go with no news is good news.

That makes more sense. heh.

Ok going back to this.

Ultimatic already drops a .tmp cookie on the sdcard to confirm write access and deletes it.

So instead of deleting it, I can leave it there for SuperCharger to find.

If it finds it, it will delete it and not autorun the Jelly ISCream Parlor.

But if you don't run V6 right after patching, the .tmp file gets deleted after you type exit anyway.
[Android Software/Hacking General [Developers Only]] omniatic:
Worked fine for me...nothing broken here.

...sorry...I was on the phone...
[Android Software/Hacking General [Developers Only]] SgtSausage21:
Guess that sounds like a good solution.

Just curious though, do you have any future plans for the web app or the parlor itself, i was under the impression it was dead and couldn't support all the new edits.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Well for now I'll take out the part where it opens up the browser to the webapp page to download a services.jar and put in info about the Ultimatic Jar Patcher tool and have it open up that thread.

Eventually I'd probably do a new webapp with the updated features such as selectable launcher strength etc.

Ideally there would be a SuperCharger app that integrates with a webapp to do the patching :p
[Android Software/Hacking General [Developers Only]] jova33:
I've been in and out of town for the holidays, so I haven't been able to test the latest and greatest.

In Ontario this week.

Sent from my wireless telephonic device.
[Android Software/Hacking General [Developers Only]] Metallimaniac:
Ok, now i found that my phone is only 75% Supercharged, and i can't manage to do 100%. =/

Edit: Found some way to fix it. Going to edit again if i manage 100%.

Edit2: Done some things according to the owner's guide but still 75%. =( Script says " Lose 25% - Supercharger Minfrees NOT in Effect"

Edit2: So now im 100% SuperCharged, but sometimes when I reboot and check status with the script, I got only 75%. Why?
[Android Software/Hacking General [Developers Only]] Prash8429:
3g tweaks Issue

i ran the latest script (u9rc11)

its pretty awesome but theres one issue... ever since i installed the 3g tweaks my mobile data has been acting wierd. it turns on but doesnt work

so removed the 3g tweaks and its working fine.

another issue is that ringtone is not being played when i get a call. not sure if its cos v6 supercharger or llama application:confused:

i m running it on my htc explorer(pico)

cyanogenmod10 beta 3

pimp my rom_v6 supercharger
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Do the math.

Something else applies minfrees after SuperCharger.

Sounds like PMR/llama bugs to me.

Those have never been issues.

3G TurboCharger was a bit funky at first but that's history.

Any bugs have been killed ages ago.

Did you try removing the PMR stuff and llama and leave the SuperCharger tweaks intact?
[Android Software/Hacking General [Developers Only]] Prash8429:
yea thats what i thought....there was not even a single complaint before, i searched

anyway i will try v6+pmr and v6+llama separately and see....

for now HAPPY NEW YEAR :highfive:

have fun

and again, thanks for this amazing script.... i just made my frnd jealous today... he got a high end phone unrooted which is laggy and i showed him off my explorer with smooth UI...

you rock!! keep the good work going:good:
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

I am currently having Nexus 4 running ParanoidAndroid ROM 2.99Beta9 with Mako Kernal.

I have installed SuperChargerU9RC11T9 and also have services.jar patch using ALL_ROMS_Ultimate_Jar_Power_Tools-Smali_Patcher_Test_RC7.

I have tried the latest Ultimate_Jar_Power_Tools-Smali_Patcher_Test_RC9 however the services.jar cannot be patched always falls be to default adj.

Hence I have used Ultimate_Jar_Power_Tools-Smali_Patcher_Test_RC7 and is able to patch the services.jar successfully.

When trying to SuperCharge I'm 75% Supercharge as I loss the other 25% due to OOM Grouping Fix (adj) NOT In Effect.

Running BoomStick doesn't shows OOM Group as due to OOM Grouping Fix (adj) NOT In Effect.

Please let me know if you need anything in order to make Supercharge works perfectly on Nexus 4 I am willing to help.

Thank you!
[Android Software/Hacking General [Developers Only]] zeppelinrox:
1. ok post the boom stick.

2. You may have one of those funky new kernels that do funny things with the adj file.

In terminal do: cat /sys/module/lowmemorykiller/parameters/adj

3. When using the latest Ultimate Jar Power Tools, did you start with a fresh, unmodded services.jar?

Post the services.jar anyway as there may be something different.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hey I figured out something all by myself :p

http://xdaforums.com/showthread.php?p=36093065#post36093065
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

Yes I did start with a fresh unmodded services.jar.

Kindly find the attached requested screenshots and both services.jar modded and unmodded.

Thank you!
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Looks like you ran both versions on it tho?

There were RC9 edits but also edits that were removed.

Anyway it didn't look quite right regardless.

Which busybox version/build do you have installed.

That's the only thing it could be.

I just patched it with the Ulitmatic exe and there's nothing weird about the servcies.jar.

Attached it too.

As for the weird adjs... yeah that's a new thing that I'm aware of.

I got it figured out already for the next update :cool:

Next time, read the last 121.5 pages.

just kidding lol

edit: actually, on second thought, the RC9 probably did patch just fine but the things that look wrong would be because RC7 was run on it first and so RC9 missed the new edits because was looking for the wrong numbers to replace.
[Android Software/Hacking General [Developers Only]] dark_knight35:
And I was just coming to see if you already released a new KAK :D.
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

Thanks I did ran both versions on the same smali files to test it out.

So you ran the Ultimate.exe on the unmodded services.jar and is able patched?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
heh if you read a few posts above you'll see that I found a new tweak to add to it... rather enhance and existing one which I didn't know the importance of lol (actually, I don't think anybody knew)

Yep.

It's good to go
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

Forgot to mention the version of the busybox is 1.20.2.
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

After using the services.jar you have provided it doesn't seems to patch the adj it shows Launcher is weak which I have encountered using Ultimate Jar RC9 when using RC7 it is working fine have not tried RC8 though.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
It's the kernel that treats the adj file differently so it showed 75% but it's really 100%.

Did you reboot after applying the patch?

Check the boomstick after reboot as long as the launcher is ADJ 1 it's done.
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zep,

Yes rebooted a few times is the same. If I patch with RC 7 it is working fine.

Maybe you can take a look in the smali files after you have patched it with RC9 and see whether it changes the adj. Because when I tried to patch with RC9 at first it seems to patch but if you try to run it again it will still shows it is unpatch. When I use RC7 to patch and runs it again it shows that it is patch.
[Android Software/Hacking General [Developers Only]] jader13254:
Little Tip:

Copy and Paste the Content of Post 4 to Post 1 & Restore the other posts. Its more understandable, as "dunno what happend" for the best android tweaks OP is NOT an good idea haha ;)

Nice Work Zep though :good:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Dude the whole point of the patch is to change the ADJs.

Run the boomstick

Home is 1

That's it
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

I think you misunderstood me as you can see in my previous screen shot after installing the services.jar that you provided i'm only getting 50% Supercharge as my the Launcher is not even patched.

If I'm using Ultimate Jar patcher RC7 it can patched the services.jar and when I run the Supercharger script it will shows that my Launcher is Die Hard means it has been successfully patched but just showing 75% Supercharge due to OOM grouping.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
post the boom stick using the jar I uploaded

also, if you flash a different kernel, you'll see the adj groupings work normally.
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

Kindly find the attached screenshots of the Boom Stick for the services.jar you provided.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
no that's not right a few apps have ADJ 1 and launcher is ADJ 6.

Are you sure you installed the jar that I uploaded and that nothing got mixed up?

Do:

ls -l /system/framework/servcies.jar

The size should be 1,152,696 bytes

The original is 1,106,149 bytes
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

Yes I'm sure using the services.jar you have provided and nothing gets patched.

This is what I encountered when using Ultimate Jar patcher RC9. When using RC7 all is working fine.

Kindly find the attached screenshot.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Weird.

Ok attach that one so I can compare with the one I patched.

Hopefully I can make sense of it.
[Android Software/Hacking General [Developers Only]] warhead1978:
Last time I used the services.jar patch after ROM update I had the same behaviour, only 75% after reboot... I "fixed" it in doing the steps from beginning... so the script option 10,16, etc. don't know the correct spelling ... but after saving the options new I had no problems... I think also that I cleared SD card from V6 folder ... clean install ...

only an idea, but for me it worked... I tested after every reboot. if 100% was given and it was so. ...

MfG
[Android Software/Hacking General [Developers Only]] dark_knight35:
I came from where you posted this and headed over to this thread, so you kinda misunderstood my post :p.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ah ok.

There are actually a couple of other things I have to add such as support for new kernels that treat the adj file differently.
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

Kindly find the attached services.jar which has been patch by Ultimate Jar Patcher RC7.
[Android Software/Hacking General [Developers Only]] leswgnr:
Tried the quotes but no change. Any other ideas?

I'll try writing my own script to test more and trying another busybox in the next couple of days. Very vexing.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Uh... no.

I asked for the one that you had installed and shows many ADJ 1 apps in boom stick and is the same size as the one I patched ie. the one from the last screen shot.

Well you can change the 3 comparisons to the regular syntax.

if [ $sqlite3="yes ]; then

I used test in that script so it would not require busybox to be installed.
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

Attached is the services.jar you provided which shows ADJ 1 apps in boom stick.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ok I'll look at it next year :p

So happy new year!
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp, Happy New Year!!! :)
[Android Software/Hacking General [Developers Only]] orbital_71:
Hey Zepp, happy new year to u and ur family...:beer:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hey thanks :)

Happy New Year to You too and to All!

Don't SuperCharge and drive - you may get a speeding ticket lol

zOOM... zOOM...
[Android Software/Hacking General [Developers Only]] SpudsterZ:
Party on, Gatth!
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ack... I must have uploaded the one where I accidently hit no to supercharge it.

Here's the right one... hey at least you didn't boot loop... heh
[Android Software/Hacking General [Developers Only]] inferno17x:
Hi Zepp,

Tested the latest services.jar you provided is working fine now.

Thank you!
[Android Software/Hacking General [Developers Only]] SugarFreeMilkTea:
Do I need to set SU and Boot on 99supercharger.sh in SManager manually in RC11 Test 9 verison?
[Android Software/Hacking General [Developers Only]] gerope:
Hello guys,

I wanted so supercharge my old HTC Wildfire and downloaded the SuperCharger_Starter_Kit and V6_SuperCharger_for_Android-Update9_RC11_Test_9.sh. First I installed the Kit and then I ran the script.

Now I stuck at the following screen (see attachment).

1. Why do I only have 75 percent?

2. Which of these 1 - 33 options should I choose for my Wildfire?

Thank you and happy new year! ;)
[Android Software/Hacking General [Developers Only]] jader13254:
Haha lol

Happy New Year to you too, my Senior Member xD

Be friendly ^^

Nobody is a "*^&%+@".

Lol nice work of 1500 pages supercharger xD
[Android Software/Hacking General [Developers Only]] Lt.Win:
Zep, I swear now If you don't apply for Recognized Dev now, I will do some horrible things to you. :D

Eg: Not use SuperCharger and KAK. :)
[Android Software/Hacking General [Developers Only]] m1trand1r:
+10...lol

Sent fom my S-II running CM-10 by mcm811 powered with DorimanX kernel 7.35
[Android Software/Hacking General [Developers Only]] yugoport:
Hi zepp, are you still thinking in getting an S3? Just curiosity, the 1 GB version should come stock with supercharger, horrible memory management.
[Android Software/Hacking General [Developers Only]] jader13254:
Haha +100

S3 Managment for RAM sucks so xMore xTreme xloL hard, xperia p (200€) has 600mb free. S3 (450€) had 150mb free pff lol xD
[Android Software/Hacking General [Developers Only]] asdot:
Live in new year

Flashing new rom

SuperYear,,,,SuperCharger Time :D:D

Sent from MARVEL JellyScream
[Android Software/Hacking General [Developers Only]] sonnhy:
Help, i'm getting crazy :(

Now that the thread is messed up i don't understand which one to install.. also, do i need to follow all the tutorials, like the Ultimatic JAR, the memory managment fix, etc.. my head is going to explode.. where should i start??
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Depends.

I see no screen shot but the script answers both your questions.

You're welcome.

Get the Ultimatic Jar Patcher Tool from here http://goo.gl/IvGL1.

Start with that.

If you're on windows, just run the exe (rename it and remove .zip extention)

After that's done, run the SuperCharger script.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Seems every update adds more layers of crap that makes it unnecessarily complicated and more likely to be buggy.

I'm always friendly... see pic below for proof.

Ha... I'll be ready... see pic below...

THAT'S RIGHT!
[Android Software/Hacking General [Developers Only]] dark_knight35:
I see... the Android holds the sword with the power of the dark side, or how else should it fly behind his hand :D
[Android Software/Hacking General [Developers Only]] ..Cory..:
Every time I see the OP I feel like a mom with her cleaning instincts kicking in! MUST... NOT... TRY TO ORGANIZE MYSELF! :p

Zepp, if there's any way I could ever help clean up the OP/Instructions and you're looking for a hand, let me know. I'm good at creating good looking post :)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Actually, in light of Ultimatic Jar Patcher Tools, I'm gonna delete options from Post 2 and add references to it.

I'll let ya know tho.

Ok... the "Mona Lisa" below lol
[Android Software/Hacking General [Developers Only]] jgcaap:
I tried to flash starter kit and when it comes to the fase on installing zip align says it cant. I manual copy the file to the root folder. And i try to use the wheel align. Says it is not found

Using siyah, jelly bean from Samsung.

Any suggestion?

Happy New Year
[Android Software/Hacking General [Developers Only]] dark_knight35:
Uhh, wanna be a recognized dev AND themer? Well done! :thumbup::p
[Android Software/Hacking General [Developers Only]] mixednuts:
The Starter Kit is not a flashable ZIP... run the script(s) that sit inside the ZIP.
[Android Software/Hacking General [Developers Only]] jgcaap:
Is what i did. Sorry used the wrong words to describe what i did :)