yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] aLeda:
yes I agree it's might be very hard to reply symply by yes or no for a boss like you -_-
[Android Software/Hacking General [Developers Only]] AMIR-TUTU:
DEAR ZEPP hi ,

every tim i run the Jelly_Scream_Smali_Patcher_Test_4.sh.pdf

it says fail process list.smali not found

no super ... for you .

i installed last rc whit many addons scripts is into that .

What am I supposed to do now ?

thank you for any lessons to teaching me .
[Android Software/Hacking General [Developers Only]] Azuma73:
Hey Zepp, I got the same. Where do I find these .smali files? And when I do, just copy and paste or actually move to same folder as patch?

Thanks bud! :rolleyes:
[Android Software/Hacking General [Developers Only]] da__beast:
to simplify what you are asking - lets say you have a windows computer and have google chrome installed. Rather than just uninstalling the google chrome - you asked if it was better to format the hard drive. Zep replied with the equivalent of telling you to uninstall google chrome instead of formatting the hard drive.

True - either procedure will get rid of the script (or google chrome) but why take such a drastic procedure on when there is a simple one that does only what you are trying to do?
[Android Software/Hacking General [Developers Only]] aLeda:
Ok thank you man, you, you can reply to questions, thanks !

I asked this because I wanted to wipe data my phone, and desinstall the script, then it's perfect, thanks !
[Android Software/Hacking General [Developers Only]] pepcisko:
guys.. really...

Look here: http://xdaforums.com/showthread.php?p=16635544#post16635544

Scroll down to the big HOW-TO section. If you follow it and reach step 5 successfully, there is no way you would ask that question again :)

Hope this helps..
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Not to mention that I actually answered the question only to have it asked again... *effem* ...I'm no baby sitter.

I was under the impression they had the smali files and had spaces in the folder name so the script didn't fine them.

Test 2 and above will work with spaces in folder names tho and I'm about to up test 6.
[Android Software/Hacking General [Developers Only]] Azuma73:
Sorry for askin', it's been a while since I've had to do it, and I haven't been following this crazy thread as I should be!?!?

I deserve the "flogging" if you will!! :eek:

Thanks anyway guys!!
[Android Software/Hacking General [Developers Only]] AMIR-TUTU:
at least tell me how can i get ProcessList.smali AND ActivityManagerService.smali

for put in same folder ? where is the ProcessList.smali AND ActivityManagerService.smali ?

dont be mad:)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Alright you Primitive Screwheads, listen up...

I also updated the download page with Jelly_Scream_Smali_Patcher_Test_6.sh.pdf.

Merely perfected the syntax n stuff ;)

Click THANKS and I'll put the Boom Stick away... well maybe not... :p

Thanks for the chuckle... just make this your homepage man ;)

Somebody already answered you directly.

It also says something at the top of the script when you run it.

I swear to god you're *this* close to being the 3rd addition to my ignore list

today.
[Android Software/Hacking General [Developers Only]] espaciosalter20:
i will answer you:

You have to decompile services.jar using baksmali/smali tools. I'm going to provide you a updated version of this tools. Just copy "services.jar" from your phone to where you extracted baksmali/smali tools. Then, run baksmali manager, choose your "services.jar" file in option 3, then choose option 1 (baksmali) and wait for conclude the decompiling. Then, you will have a "services" folder inside your baksmali folder. Open that folder, and search for "/com/android/server/am/" in that folder you will find ProcessList.smali AND ActivityManagerService.smali.
[Android Software/Hacking General [Developers Only]] espaciosalter20:
I just did modifications with test 5. I have to re-doing the job with this new Test file or it's ok?

(I have Defy with cm10)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
There might be one edit (out of 56 - though it worked perfectly fine for me since test1 lol) that is out of whack for a few users with test 5... it wouldn't cause a problem but I like to be as perfect as possible :o
[Android Software/Hacking General [Developers Only]] AMIR-TUTU:
the best suggestion i evere heard !!

thank you so much buddy .

dear zepp dont push me in your ignore list . thanks:highfive:

i found your attached in the net .late shown ...

yea ...

i did it finaly and my device is phantom than before :D
[Android Software/Hacking General [Developers Only]] sinosuke:
THank you for your guide and tutorial in post #2. V6 fully worked on my HTC Incredible S running MIUI 2.8.17..SMOOTH LIKE BUTTER ^_^
[Android Software/Hacking General [Developers Only]] JokerAce:
Erm Zep, when I compare the Activity smali after running the latest script with the "manual guide" some values are not changed. In addition, when I run the script, only 6 changes are made, which I suppose are to the processlist smali. Is this normal?

EDIT: Nvm, it's supercharged. :)
[Android Software/Hacking General [Developers Only]] chalan30:
You see this? This... is my boomstick! :)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hey... you're smart... you're S-Mart!
[Android Software/Hacking General [Developers Only]] trurl3:
For all primitives let not to jump on blacklist... small info:

"How to manually patch services.jar" and be 100% supercharged!

Zooom... zooom... zeppelinrox... :D
[Android Software/Hacking General [Developers Only]] orbital_71:
Can this 2 file be upload here and let ppl download and use on the phone? Instead going all this process..Tks....

Sent from my LG-P990
[Android Software/Hacking General [Developers Only]] 0vZ:
Hello! Great job, btw :)

Can you answer some questions? :)

My device: HTC Incredible S, ICS 4.0.4

1) I have flashed custom ROM on my device and it's services.jar already pathced (don't know how and don't know who and don't know what version of V6 was used), so I want to make a patch by myself (e.g. I want to use "bulletproof" launcher).

Can I just "repatch" already patched services.jar?

2) If I want to use "bulletproof" apps with V6, what should I do?

I've made a script with "com.android.browser" (as an example), so what should I do with it? Should I ran it one my device powered on? Or something else?...

And if there is a way to make script running when I open my app (e.g. browser)?

Because there could be a situation when I don't need it any longer and I kill it. Should I ran script one more time after launching browser second time?

Can U give some more manual about this feature.
[Android Software/Hacking General [Developers Only]] trurl3:
"This two files" depends on ROM version I belive, so could be different in next build...

Unfortunately, there is no easier way apart sending services.jar to http://android.mimic.ca/ and downloading patched one.

Lest our wiseguys cook something to made all procedure on the phone...

---------- Post added at 03:11 PM ---------- Previous post was at 03:01 PM ----------

I can answer you only for 1 question: Do not fix what is not broken. If you have pathed services.jar and V6 "Scream Supercharged!" what more you want?

As for next question - I dunno... as I understad the script is used only for making necessary changes in memory distribution for app's. After that script is not running. Hard to kill for launcher means so this app is less vulnerable for mechanisms which freed RAM in Android system. Say - hard to kill apps have badges " Don't touch me" and system killer do not close them so easy. Maybe I'm wrong, let somebody correct me...
[Android Software/Hacking General [Developers Only]] pma7779:
Trying to follow the steps for installing V6 on jellybean. Seems pretty straight forward.

Step 1. So grab the tutorial zip from above - I can't seem to find this file. Can someone help out?
[Android Software/Hacking General [Developers Only]] pepcisko:
It's all described in the script. Just read. Zeppelinrox took the time to write a whole book in the file :D so read.

Quickly - it fixes the oomadj value for the designated processes every 30 seconds. Prevents the oom killer to kill them.

Side question - why would you want the browser non-killable? :) use that feature for something more useful.. like com.android.phone or something.

---------- Post added at 03:46 PM ---------- Previous post was at 03:43 PM ----------

I'm no wiseguy, but indeed I'm cooking something to make that part much easier. Not on the phone, but much easier in the PC.

When I'm speaking about that..... ZEP !!! Need you to answer my last PM please :)
[Android Software/Hacking General [Developers Only]] nunobcm:
Best option for x10mini?

Hi, whats the best option to use (1..13) on a x10mini with cm7 2.2.1 rom ?
[Android Software/Hacking General [Developers Only]] orbital_71:
I wish more ppl like u all can work thing more easiest so can benefit all. Zep also quiet fed up with this smali patch stuff question. But in truth V6 are awesome with stock kernel. I use to flash custom kernel for mine cm9. But now with V6+KAK+3G. i just stay put with mine stock kernel. But infact for all trouble shooting use the stock kernel it will work that mine Dev Temasek advise....:beer:

Sent from my LG-P990
[Android Software/Hacking General [Developers Only]] Azuma73:
A'ight, I now have my Helly-Bone 100% supercharged!! Now just to see if it'll stick!?!? Thanks fellas!!:good::good:
[Android Software/Hacking General [Developers Only]] trurl3:
"From above" means the very first line of HOW TO. There is link to post where you can download jar_file_decompile_and_compiler_with_tutor.zip and two video's. Basically it is instruction 'How to patch' services.jar
[Android Software/Hacking General [Developers Only]] da__beast:
The one that works - have you ran the script? Didn't it provide you the answer already? Why are you asking a question when it (the script) has provided the answer already?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
You must like bootloops and sticky startup logos.

1. Interesting question.

Yes - with the Jelly Scream script but with a catch. You probably have to run it twice.

This is because Jelly Scream actually reads the values in ProcessList.smali and looks for those in ActivityManagerService.smali and changes the values in both.

But since the files probably don't match, you have to run it the first time just so ProcessList.smali is patched.

Then the second time, it will find the right values to change in ActivityManagerService.smali.

2. You don't have to make a script. The bulletproof apps option will do everything and runs on boot.

Whatever app you choose to bulletproof, it will automatically be bulletproofed shorty after running it because the bulletproof apps boot script stays running.

Replied already :p
[Android Software/Hacking General [Developers Only]] Mongopusher42:
Hello, i was just wondering should i delete all the files from init.d before install? Im using SlimICS with Semaphore 1.3 , and have some scripts enabled from Semaphore script manager..
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Shouldn't be necessary.

I know alot of script/tweak threads say "delete other tweaks" blah blah... but I do it different.

I make sure my stuff trumps everything else and 99SuperCharger, or S99SuperCharger, or SS99SuperCharger will run last... since it renames itself as needed ;)
[Android Software/Hacking General [Developers Only]] PhAkEer:
hey, Zeppe, not sure if you're still keeping an eye on me or not.. couple things I wanted to let you know though.....

I was wondering if you recently authorized anybody to put their own name on your work and claim it as the work of their team... I highly doubt it, but somebody asked me to take a look at something for them that was given to them with the intention of including it in a rom.

It took about two seconds before I recognized some of your work... there was also some of my own.. and some work belonging to two other script writers that I am familiar with.. Nothing blatantly plagiarized, but the irony was massive considering the opening comment was "GIVE PROPER CREDIT" . .

Most of the scripts included in the pack were laughable, I'm talking like... an individual script for readahead kb... alone.. then another for minfree... and so and..

AND ONE OF THE SCRIPTS WAS A FLAT OUT CHEAT

this guy includes a script that mounts the Quadrant application onto tmpfs...

seriously? ugh..

Anyway, sorry for the ramble/vent, but if you want to take a look at the script pack or something just let me know.

Keep up the god work (no typo :) )

PS

.(i've only tested these on TW ICS, but anything you could apply them to....wow.

_______________________________

setprop RLIMIT_NICE 1
echo "-18" 1> proc/1/oom_adj;

for i in -16; do
setprop ro.android.phone_adj ${i}
setprop ro.android.launcher_adj ${i}
setprop ro.android.system_adj ${i}
setprop ro.android.settingsUI_adj ${i}
setprop ro.android.process.acore_adj ${i}
setprop ro.android.process.media_adj ${i}
done
#
for i in sys/fs/ext4/*; do
[ -f $i/inode_readahead_blks ]; [ -f $i/inode_goal ];
echo "104" 1> $i/inode_readahead_blks; echo "32" 1> $i/inode_goal;
done

later, brah
[Android Software/Hacking General [Developers Only]] Mongopusher42:
Ok, thx man!:)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Can I have a look at that stuff you're talking about?

About that code... well as far as I know, -18 for a process's adj is invalid.

-17 is the limit.

Plus it's pointless... do cat /proc/1/oom_adj lol

As for the setprops... well unless you have ActivityManagerService.java loading those values, it's placebo and also pointless for those apps.

For example.. on gingerbread ActivityManagerService.java has lots of getIntProp commands...

such as this one...

HOME_APP_ADJ = getIntProp("ro.HOME_APP_ADJ", true);

ICS and JB don't have ANY getIntProp commands... which is why I quickly figured out that the ADJs settings in build.prop, such as

ro.HOME_APP_ADJ=1, will no longer work on ICS...

So... if ActivityManagerService.java doesn't contain reference to ro.android.process.media_adj, or ro.android.phone_adj or whatever.. it's all 100% total, goddamn bullshi.t

btw, you can setprop anything... do in terminal:

su

setprop zeppelin rox

getprop | grep zep

What's the output?

[zeppelin]: [rox]

There ya go, you have now applied the BEST mod in the universe...

...AND IT'S REAL!!!
[Android Software/Hacking General [Developers Only]] PhAkEer:
Ill upload to db now,

And -19 is the limit. I return value everything and go into the fs manually and open the file...

i know you can setprop "my pen15" if I wanted to, just put those in a script and run it, then get back to me on the apologizing for the skepticism :p

And obviously I meant "systemUI" and "settings"... Im tired, but I assure you with RNICE_LIMIT you can assign an adj as low as min and as high as max... Checkout your init.rc to confirm.

Ill post a dropbox link to that kids 23 init scripts in a few moments. Lmao.

And the shorthand was due to being at work, I assume you know where to "com." And so forth

Edit; you were right about proc 1, my.mistake.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ok confirmed that RNICE_LIMIT had NOTHING to do with an apps ADJ value.

This is actually from my BulletProof Apps Fine Tuner script

# The possible values of oom_adj range from -17 to 15.
# The higher the score, more likely the associated process is to be killed by OOM-killer.
#
# A niceness (effects CPU Time) of -20 is the highest priority and 19 is the lowest priority.
# A higher priority process will get a larger chunk of the CPU time than a lower priority process.
# 0 is usually the default niceness for processes and is inherited from its parent process.
#

Now see this... http://cygwin.com/ml/libc-hacker/2005-06/msg00005.html

So yeah... the only thing being reniced in that script is my butt.

Edit: Of course I'm right. I'm right about everything except for when I'm not which is not now.

Edit2: So for ****.z n giggles... I did...

cat /proc/1/oom_adj

-16

echo "-17" 1> proc/1/oom_adj

cat /proc/1/oom_adj

-17

echo "-18" 1> proc/1/oom_adj

cat /proc/1/oom_adj

-17

echo "-19" 1> proc/1/oom_adj

cat /proc/1/oom_adj

-17

echo "-16" 1> proc/1/oom_adj

cat /proc/1/oom_adj

-16

echo "-19" 1> proc/1/oom_adj

cat /proc/1/oom_adj

-16

echo "-18" 1> proc/1/oom_adj

cat /proc/1/oom_adj

-16

-17 is the limit

It don't change because RLIMIT_NICE is unrelated to oom_adj
[Android Software/Hacking General [Developers Only]] jova33:
so just did tested your smali edit script. works like a charm. i think it takes longer than just doing it manually in notepad. what edits are made to the processlist.smali?
[Android Software/Hacking General [Developers Only]] PhAkEer:
I mustve missed something

This is on ICS using my script.

Sph-d710 (sgs2)

I think I found that kids stuff

http://db.tt/M6qLSYb0
[Android Software/Hacking General [Developers Only]] zeppelinrox:
How fast can you make 56 edits in notepad?

Easiest thing is to compare the before and after files.

I use notepad++ with a file compare plugin :)

Yeah my init rc has the same RLIMIT_NICE stuff but like I said... it has absolutely NOTHING to do with app ADJs.. it deals with renicing... Rlimit_NICE.. RENICE... NOT ADJ...

Reread the code that I posted from my BulletProof Apps Fine Tuner script...

# A niceness (effects CPU Time) of -20 is the highest priority and 19 is the lowest priority. # A higher priority process will get a larger chunk of the CPU time than a lower priority process. # 0 is usually the default niceness for processes and is inherited from its parent process. #

You're only confirming what I have written in that script months ago...

It has to do with CPU time... not ADJ/priority
[Android Software/Hacking General [Developers Only]] PhAkEer:
Bro, it is the setting used to assign priorities... hence the results
[Android Software/Hacking General [Developers Only]] jova33:
yikes. well just editing the ActivityManagerService.smali alone in notepad was pretty quick. i'll have to read backwards on this thread to see what exactly the editor script does. too late tonight lol
[Android Software/Hacking General [Developers Only]] zeppelinrox:
I checked that kid script.. didnt see this code tho :p

Anyway... look... renice is totally different from adj

renice is about cpu time

adjs are about priorities.

Here is is again...

ADJ are from -17 to 15

Renicing goes from -20 to 19.

That's it.

If you do this:

su

cat /proc/1/oom_adj

What spits out? -16... that's what it normally is.

Then this:

echo "-18" 1> proc/1/oom_adj

cat /proc/1/oom_adj

What spits out? -16... no change...

Then this:

echo "-17" 1> proc/1/oom_adj

cat /proc/1/oom_adj

What spits out? -17

-17 is the limit. Period.

Done my homework months ago.

Erm... yeah... maybe that was a factor in that bootloop business the other day... LOL

btw... how long does the script take on your device?
[Android Software/Hacking General [Developers Only]] PhAkEer:
EDIT: (Removed for the sake of general harmony)

I am sorry, I guess well agree to disagree. I always have a poor and temperamental response to criticism thats given by somebody who refuses to even attempt what is suggested.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
I was under the impression it was the script kiddie thing.

But did you run those commands in that order?

Does it spit out -18?

Edit: Fine geeez... here ya go

root@android:/ # setprop RLIMIT_NICE 1
setprop RLIMIT_NICE 1
root@android:/ # cat /proc/1/oom_adj
cat /proc/1/oom_adj
-17
root@android:/ # echo "-18" 1> proc/1/oom_adj
echo "-18" 1> proc/1/oom_adj
1|root@android:/ # cat /proc/1/oom_adj
cat /proc/1/oom_adj
-17
root@android:/ # echo "-18" > proc/1/oom_adj
echo "-18" > proc/1/oom_adj
1|root@android:/ # cat /proc/1/oom_adj
cat /proc/1/oom_adj
-17
root@android:/ # echo "-16" > proc/1/oom_adj
echo "-16" > proc/1/oom_adj
root@android:/ # cat /proc/1/oom_adj
cat /proc/1/oom_adj
-16
root@android:/ # echo "-18" > proc/1/oom_adj
echo "-18" > proc/1/oom_adj
1|root@android:/ # cat /proc/1/oom_adj
cat /proc/1/oom_adj
-16
root@android:/ #

See?

Same as I said along with the setprop RLIMIT_NICE 1 at the top.

Has no bearing on the adj values than can be applied.
[Android Software/Hacking General [Developers Only]] PhAkEer:
-18 isnt what I have set, the config Im using has the same setprops but I have them set to -15 with one setuo and -11 with the other.

As for return values youll have to give me a sec.

Im at work and mustve hotheadedly overlooked your suggestion so im not sure which commands you mean.

---------- Post added at 09:29 PM ---------- Previous post was at 09:28 PM ----------

The proc 1 thing?

I IMEDIATELY POSTED "you were right about proc 1, my mistake".....

Without being prompted to...

The funniest part about that is the fact that in my script I dont even set them that high, I was posting extremes trying to look fancy. Lmao.

Sorry for my hot headed response. Btw
[Android Software/Hacking General [Developers Only]] sinosuke:
A noob question,pls help me. My HTC Incredible S running MIUI 2.8.17 and got 100% SupperCharger. My setting was at 512HP. It's really smooth. But why i can't flush RAM,start or stop V6 from Terminal.

And if i update my ROM,do i need to run V6 script again? :confused:

Sent from my HTC Incredible S
[Android Software/Hacking General [Developers Only]] PhAkEer:
Here, thought you may some learning material to be "better informed" before you tell me that rlimit_nice has nothing to do witg adj, since the init.rc s clear statement wasnt enough,

All one has to do is google

"define linux adj" and then after sifting through a few of the results you will come to an article about oom killer.... (your specialty)

http://linux-mm.org/OOM_Killer

In the article it clearly states that the oom score of a process is determined by its "badness" and furthermore goes on to state that a process can be assigned the maximum "NICE LIMIT" to disable its candidacy for oom killing altogether.

It very clear and easy to read,

since youd rather act as if I know nothing, i defer you to this sight.

I only shared the settings that I did to help you better your V6SC and to share knowledge in general.

and frankly, ...

I thought you were better than those matter-o-fact type that do no research or quantification before attempting to snobishly and publicly ridicule somebody who is offering you a friendly piece of advice.

Maybe I misunderstood your "tonality" seeing as how almost everything online sounds colder than intended, but you could have just written it into a script and realized that I subtlety trying to tell you that there are easier ways to get the intended memory management, as I did not want it to seem like a shot at your pride.

If I decide to share information with you again... Trust that I wouldnt waste my time telling fairy tales and falsehoods.

Good day, sir.

Add: I want apologize for any misunderstanding, btw. But It is not the first time somebody has suggested I am suffering from a "placebo effect" (hence the name of my project.)

I still respect your work and appreciate it considering it is what modivated me to learn this stuff.
[Android Software/Hacking General [Developers Only]] Daniel D.:
After using the newest script version with the smali add-on I'm deeply impressed - again.
[Android Software/Hacking General [Developers Only]] Mongopusher42:
doublepost sorry
[Android Software/Hacking General [Developers Only]] n1ck018:
zep. why does my battery drain so fast after i calibrate my battery.