[Android Software/Hacking General [Developers Only]] dwarriors1987:
I don't think there were any errors when I did ADB over Wifi, but there were when I did it through a USB connection. It wouldn't work through the USB connection.

HEY!

What's Up?

I may need more ROOM!

Just a sec... I think I got it...

YEP! This feels pretty good now... LOL!!

Start Time: Wed Jun 5 15:50:45 CDT 2013

===============================================
\\\ -=ULTIMATIC JAR PATCHER TOOLS=- /////
===========================================

This tool will AutoMagically patch services.jar like so:

It pulls files from your device, patches and installs!

Mod 1. "Jelly ISCream" to SuperCharge launchers...

Mod 2. "Maximum MultiTasking Mods" for Froyo and up...

Mod 3. "Non-Sense App Limit" for Sense 4 and up...

==========================================================
Cool Trick for Deodexed ROMS!
==========================================================

If you DON'T have a services.odex...

You can put services.jar in the "patch_this" folder!

You will then have an option to "patch this" instead!

Otherwise, files will just be pulled from the phone ;^]

==========================================================
If you want, copy services.jar to "patch_this" now!
==========================================================

-n Press the enter key when ready...

==========================================================
Java is installed... nice!
==========================================================

Connect your device via USB or WiFi (ie. Wireless ADB!)

To use ADB Wirelessly, enter your internal IP and port #

Example: 192.168.0.69:1234

But, if your port is 5555, just the IP alone is fine.

To connect your device via USB...

...DISABLE Memory Card Access! (Charge Only)

...ENABLE Android Debugging (Settings>Dev Options)

...and DISABLE Wireless ADB!!

If both methods fail...

...be sure drivers for your device are installed!

Enter an IP for Wireless ADB or...

-n Just press the enter key for USB:

==========================================================
You're All Wired Up... I Hope!
==========================================================
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
==========================================================

It's better to run adb as Root if you can!

If it don't work, just try again and say no next time...

...since it should still work :P

-n Restart adb as root? Enter Y for Yes, any key for No:
y

-n
adbd is already running as root

==========================================================
Found BusyBox v1.21.0-jb!
==========================================================

But if you see any "applet" not found errors...

...you need a better busybox build!

==========================================================
Storage partition is /storage/sdcard0
==========================================================
/storage/sdcard0 is accessible... So far so good!
==========================================================

Pulling services.* from your Android thingie!

-n
4291 KB/s (1179929 bytes in 0.268s)

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

Some info about your current services.jar...

==========================================================
-n
-rw-r--r-- 1 root root 1179929 Jun 3 20:47 /system/framework/services.jar
==========================================================

It's size and timestamp should change later!

-n Press the enter key when ready...

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

Running baksmali to decompile and get smalis...

Backing up files to /backup folder...

Copying smali files needed for patching...

==========================================================
About to run Ultimate Jar Power Tools...
==========================================================

-n Press the enter key when ready...

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

Running ALL_ROMS_Ultimate_Jar_Power_Tools-Smali_Patcher_RC10.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...

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

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

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

Wanna SuperCharge your services.jar?

-n 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...

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

================================================
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!
================================================

sed: 6: "/\"Background\"/,/end m ...": bad flag in substitute command: '}'
sed: 1: "/\"Background\"/,/end m ...": bad flag in substitute command: '}'
sed: 3: "/\"bound-bg-services\"/ ...": bad flag in substitute command: '}'
sed: 6: "/static fields/,/instan ...": bad flag in substitute command: '}'
sed: 1: "/static fields/,/instan ...": bad flag in substitute command: '}'
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?

-n Enter Y for Yes, any key for No:
y

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

Applying The Time Killer Killer...

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

sed: 6: "/MIN_HIDDEN_APPS:/s/0x2 ...": bad flag in substitute command: '}'
sed: 7: "/MAX_HIDDEN_APPS:/s/0x1 ...": bad flag in substitute command: '}'
sed: 4: "1338,1346{
s/0 ...": bad flag in substitute command: '}'
sed: 4: "47734,47742{
s ...": bad flag in substitute command: '}'
sed: 4: "60754,60762{
s ...": bad flag in substitute command: '}'
And now the Bonus Mod: "Service Preserver"! ;^]

sed: 4: "/final updateLruProcess ...": bad flag in substitute command: '}'
sed: 3: "69868,69872{
/m ...": bad flag in substitute command: '}'
sed: 3: "70466,70470{
/m ...": bad flag in substitute command: '}'
sed: 3: "70488,70492{
/m ...": bad flag in substitute command: '}'
sed: 3: "70498,70502{
/m ...": bad flag in substitute command: '}'
sed: 2: "/MAX_RECENT_TASKS:/s/0x ...": bad flag in substitute command: '}'
================================================
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!

-n
updating: classes.dex (deflated 53%)

4550 KB/s (1179929 bytes in 0.253s)
==========================================================
Installing patched services.jar!
==========================================================

-n

3288 KB/s (364627 bytes in 0.108s)

NEW info about your current services.jar...

==========================================================
-n
-rw-r--r-- 1 root root 1179929 Jun 5 15:53 /system/framework/services.jar
==========================================================

services.jar MUST have a brand new timestamp!

==========================================================
If it does not, it didn't work!!
==========================================================

Now comparing to the new one I made on /storage/sdcard0...

==========================================================
Unknown id: Crap!
==========================================================

If it didn't work...

...post ultimatic_log.txt in the Ultimatic Thread!

Also try to install it manually from /storage/sdcard0 or use...

...V6 SuperCharger's "Jelly ISCream Parlor"!

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

And Hey! You can run the V6 SuperCharger script...

...RIGHT NOW from your computer!

==========================================================
Type "su" and enter, "sh /storage/sdcard0/V6*.sh" and enter!
==========================================================

Type "reboot" to reboot your device now!

Type "exit" to uhhh... exit :D

==========================================================
You NEED to reboot... Aaaaaand... That's All Folks!
==========================================================

End Time: Wed Jun 5 15:53:52 CDT 2013

root@android:/ #

BTW I found this script kinda funny.:laugh: