[Android Software/Hacking General [Developers Only]] Fibon@cci:
Changed.

storage1=$(adb shell echo \$EXTERNAL_STORAGE | sed 's/.*mnt//')
++ adb shell echo '$EXTERNAL_STORAGE'
++ sed 's/.*mnt//'
+ storage1=$'/storage/sdcard0\r'

echo $storage1
+ echo $'/storage/sdcard0\r'
/storage/sdcard0

storage2=$(adb shell echo \$EXTERNAL_STORAGE | sed 's/.*mnt\([/A-Za-z]*\).*/\1/')
++ adb shell echo '$EXTERNAL_STORAGE'
++ sed 's/.*mnt\([/A-Za-z]*\).*/\1/'
+ storage2=$'/storage/sdcard0\r'

echo $storage2
+ echo $'/storage/sdcard0\r'
/storage/sdcard0

storage3=$(adb shell echo \$EXTERNAL_STORAGE | sed 's/.*mnt//' | tr -d '\r')
++ adb shell echo '$EXTERNAL_STORAGE'
++ tr -d '\r'
++ sed 's/.*mnt//'
+ storage3=/storage/sdcard0

echo $storage3
+ echo /storage/sdcard0
/storage/sdcard0

Just FYI.

Creating new classes.dex file...

Updating services.jar with Info-ZIP!

updating: classes.dex (deflated 52%)

Installing patched services.jar!

Permission denied
3412 KB/s (1022772 bytes in 0.292s)
Permission denied
Permission denied
Permission denied

NEW info about your current services.jar...

-rw-r--r-- 1 root root 973465 Nov 22 17:59 /system/framework/services.jar

services.jar MUST have a brand new timestamp!

Type "reboot" to reboot your device now!

Type "exit" to uhhh... exit :)

OR... you can run the V6 SuperCharger script...

...RIGHT NOW from your computer!

Type "su" & enter, "sh /path/to/V6*" & enter!

That's All Folks!

Denied?? I have root..

ruben@Carbide ~/Android/Ultimate $ sudo sh test_ultimatic_jar_patcher_adb.sh
+ sudo sh test_ultimatic_jar_patcher_adb.sh
[sudo] password for ruben:
\e[8;60;58;t

Java is installed... nice!

Connect your device via USB...

DISABLE Memory Card Access! (Charge Only)

ENABLE Android Debugging (Settings>Dev Options)

If it doesn't work...

...install drivers for your device!

Press the enter key when ready...

* daemon not running. starting it now on port 5037 *
* daemon started successfully *

+ adb shell echo $EXTERNAL_STORAGE
+ sed s/.*mnt//
+ storage1=/storage/sdcard0
+ echo /storage/sdcard0
/storage/sdcard0
+ adb shell echo $EXTERNAL_STORAGE
+ sed s/.*mnt\([/A-Za-z]*\).*/\1/
+ storage2=/storage/sdcard0
+ echo /storage/sdcard0
/storage/sdcard0
+ adb shell echo $EXTERNAL_STORAGE
+ sed s/.*mnt//
+ tr -d \r
+ storage3=/storage/sdcard0
+ echo /storage/sdcard0
/storage/sdcard0
+ storage=/storage/sdcard0
+ set +x
Found BusyBox v1.20.2-Stericson!

api level is 16 (used for baksmali)

Storage partition is /storage/sdcard0

/storage/sdcard0 is accessible... So far so good!

Pulling services.* from your Android thingie!

4787 KB/s (973465 bytes in 0.198s)

Some info about your current services.jar...

-rw-r--r-- 1 root root 973465 Nov 22 17:59 /system/framework/services.jar

It's size and timestamp should change later!

Press the enter key when ready...

Running baksmali to decompile it...

Backing up files to /backup folder...

Copying smali files needed for patching...

About to run Ultimate Jar Power Tools...

Press the enter key when ready...

Running ALL_ROMS_Ultimate_Jar_Power_Tools-Smali_Patcher_Test_RC5.sh...

================================================
Ultimate Jar Power Tools!
================================================

1. Jelly ISCream (SuperCharge ICS and up)...

2. Maximum MultiTasking Mods (Froyo and up)...

3. Non-Sense App Limit (Sense 4.0 and up)...

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

Brought to you by your sometimes...

...friendly...

...neighborhood...

-=zeppelinrox=-

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

So... which files get patched...?

ALL ROMS have ActivitiyManagerServices.smali...

ICS ROMS and up also have ProcessList.smali...

Sense 4 ROMS and up have BOTH - as well as...

...ActivityStack.smali & TaskRecord.smali!

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

Analyzing smali files... keep your skirt on :p

================================================
"Jelly ISCream" for Jelly Bean and Ice Cream!
================================================

Wanna SuperCharge your services.jar?

Enter Y for Yes, any key for No: y

================================================
In the V6 Thread, this is STEP 5 in Post #2!
================================================

Because you're too lazy to edit smali files...

...and I like showing off... LOL

I'll edit ActivityManagerService.smali...

...and ProcessList.smali

So they'll be SuperCharged nice, nice...

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

SuperCharged Launcher Strength...
=================================

Hard To Kill Launcher is...

...Strong BUT Still Killable!

Die-Hard Launcher is...

...VERY Strong and RECOMMENDED!

BulletProof Launcher is...

...Strongest and UNKILLABLE!

===========================================
\\\ BULLETPROOF LAUNCHER WARNING! /////
=======================================

================================================
This Breaks "Long-Press Back To Kill"!
================================================

If you don't have or don't use this feature...

...don't worry about it ;)

================================================
Note 1: This is NOT for Gamers! (Less Free RAM)
================================================
Note 2: It also does not play nice with Tasker!
================================================

Select a Launcher Strength...

(H)TK, (B)ulletProof, any key for Die-Hard:

================================================
SuperCharged Launcher Strength is Die-Hard!
================================================

Prior ADJs from ProcessList.smali are...

HOME_APP_ADJ = 0x6
VISIBLE_APP_ADJ = 0x1
PREVIOUS_APP_ADJ = 0x7
HEAVY_WEIGHT_APP_ADJ = 0x3
SERVICE_ADJ = 0x5
BACKUP_APP_ADJ = 0x4

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

New ADJs will be...

HOME_APP_ADJ = 0x1
VISIBLE_APP_ADJ = 0x3
PREVIOUS_APP_ADJ = 0x5
HEAVY_WEIGHT_APP_ADJ = 0x4
SERVICE_ADJ = 0x6
BACKUP_APP_ADJ = 0x7

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

And...

Here...

We...

================================================
GO!
================================================

Your smali files are now SuperCharged!

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

But wait...

...there's MORE...

================================================
The Maximum MultiTasking Mods!
================================================

The Time Killer Killer...
...and...

=====================================
\\\ -=MAXIMUM OVERDRIVE=- /////
=================================

1. Android kills apps after 30 minutes...

...even if you have TONS of Free RAM. Ugh.

The Time Killer Killer raises it to 24hrs!

2. Android only allows 15 hidden apps to run...

Even if you have TONS of RAM...

...YOU CAN'T MULTITASK AS YOU SHOULD!

================================================
Maximum Overdrive will increase it to 70 APPS!
================================================

Plus, Android will keep only 2 hidden apps...

...then empty apps can push them out of memory!

But with "Minimum Hidden Protection"...

...it's bumped up to 15 ie. the old maximum!

================================================
Bonus Mod for this ROM: "Service Preserver"!
================================================

Apps that you recently ran (service apps)...

...can sometimes become the "worstType"...

...and therefore can be easily killed. Duh!

So this will stop that silly behaviour ;^]

================================================
READ THIS IMPORTANT INFO!
================================================

If your device gets laggy after this mod...

Use the V6 SuperCharger script...

...to RAISE the minfree levels!

The lowmemorykiller probably isn't even used...

...on high end devices...

...due to pre-emptive app killing!

But for better MultiTasking...

...LOWER the minfree levels!

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

Wanna test out The Maximum MultiTasking Mods?

Enter Y for Yes, any key for No: y

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

Applying The Time Killer Killer...

================================================
...Enabling Maximum Overdrive!
================================================

And now the Bonus Mod... ;^]

================================================
Maximum MultiTasking Mods Installed!
================================================

Please leave feedback...

...in the XDA SuperCharger thread...

...or the Ultimate Jar Power Tools thread :D

================================================
CUZ I'M ALL DONE!
================================================

Creating new classes.dex file...

Updating services.jar with Info-ZIP!

updating: classes.dex (deflated 52%)

Installing patched services.jar!

Permission denied
3412 KB/s (1022772 bytes in 0.292s)
Permission denied
Permission denied
Permission denied

NEW info about your current services.jar...

-rw-r--r-- 1 root root 973465 Nov 22 17:59 /system/framework/services.jar

services.jar MUST have a brand new timestamp!

Type "reboot" to reboot your device now!

Type "exit" to uhhh... exit :)

OR... you can run the V6 SuperCharger script...

...RIGHT NOW from your computer!

Type "su" & enter, "sh /path/to/V6*" & enter!

That's All Folks!

shell@android:/ $ su
Permission denied
1|shell@android:/ $

Here, all of it. I think it worked, but I'm not able to run the V6 script from the adb shell.

PS: Oh and sorry for the delay...Work and life takes all the time for adventures! =)