[Android Software/Hacking General [Developers Only]] acideater:
Thanks for your patients, much appreciated! This is with "chmod 777 /system/bin/dexopt-wrapper". Problem still persists.

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

This tool will AutoMagically patch services.jar like so:

It pulls files from your device, patches & 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...

=========================================================
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 Windows drivers for your device!

Press any key to continue . . .

=========================================================
* 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...

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

=========================================================
Found BusyBox v1.20.2-Stericson!
=========================================================

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

...you need a better busybox build!

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

0 KB/s (313 bytes in 1.000s)

Some info about your current services.odex...

=========================================================
-rw-r--r-- 1 0 0 3647072 Oct 1 18:30 ←[0;0m/system/framework
/services.odex←[0m
=========================================================

It's size and timestamp should change later!

Press any key to continue . . .

=========================================================
This ROM is ODEXED... cross your fingers...
=========================================================

...because I have extra work to do... lol

Now pulling the entire system/framework folder!

pull: building file list...
pull: /system/framework/services_new.jar -> framework/services_new.jar
pull: /system/framework/uiautomator.odex -> framework/uiautomator.odex
pull: /system/framework/uiautomator.jar -> framework/uiautomator.jar
pull: /system/framework/twframework.odex -> framework/twframework.odex
pull: /system/framework/twframework.jar -> framework/twframework.jar
pull: /system/framework/twframework-res.apk -> framework/twframework-res.apk
pull: /system/framework/svc.odex -> framework/svc.odex
pull: /system/framework/svc.jar -> framework/svc.jar
pull: /system/framework/services.odex -> framework/services.odex
pull: /system/framework/services.jar -> framework/services.jar
pull: /system/framework/secmediarecorder.odex -> framework/secmediarecorder.odex

pull: /system/framework/secmediarecorder.jar -> framework/secmediarecorder.jar
pull: /system/framework/sechardware.odex -> framework/sechardware.odex
pull: /system/framework/sechardware.jar -> framework/sechardware.jar
pull: /system/framework/secface.odex -> framework/secface.odex
pull: /system/framework/secface.jar -> framework/secface.jar
pull: /system/framework/seccamera.odex -> framework/seccamera.odex
pull: /system/framework/seccamera.jar -> framework/seccamera.jar
pull: /system/framework/sec_platform_library.odex -> framework/sec_platform_libr
ary.odex
pull: /system/framework/sec_platform_library.jar -> framework/sec_platform_libra
ry.jar
pull: /system/framework/sec_feature.odex -> framework/sec_feature.odex
pull: /system/framework/sec_feature.jar -> framework/sec_feature.jar
pull: /system/framework/sec_edm.odex -> framework/sec_edm.odex
pull: /system/framework/sec_edm.jar -> framework/sec_edm.jar
pull: /system/framework/requestsync.odex -> framework/requestsync.odex
pull: /system/framework/requestsync.jar -> framework/requestsync.jar
pull: /system/framework/pm.odex -> framework/pm.odex
pull: /system/framework/pm.jar -> framework/pm.jar
pull: /system/framework/org.simalliance.openmobileapi.odex -> framework/org.sima
lliance.openmobileapi.odex
pull: /system/framework/org.simalliance.openmobileapi.jar -> framework/org.simal
liance.openmobileapi.jar
pull: /system/framework/multiwindow.odex -> framework/multiwindow.odex
pull: /system/framework/multiwindow.jar -> framework/multiwindow.jar
pull: /system/framework/monkey.odex -> framework/monkey.odex
pull: /system/framework/monkey.jar -> framework/monkey.jar
pull: /system/framework/minimode.odex -> framework/minimode.odex
pull: /system/framework/minimode.jar -> framework/minimode.jar
pull: /system/framework/libvtmanagerjar.odex -> framework/libvtmanagerjar.odex
pull: /system/framework/libvtmanagerjar.jar -> framework/libvtmanagerjar.jar
pull: /system/framework/kies_feature.odex -> framework/kies_feature.odex
pull: /system/framework/kies_feature.jar -> framework/kies_feature.jar
pull: /system/framework/jsr-api.odex -> framework/jsr-api.odex
pull: /system/framework/jsr-api.jar -> framework/jsr-api.jar
pull: /system/framework/javax.obex.odex -> framework/javax.obex.odex
pull: /system/framework/javax.obex.jar -> framework/javax.obex.jar
pull: /system/framework/input.odex -> framework/input.odex
pull: /system/framework/input.jar -> framework/input.jar
pull: /system/framework/ime.odex -> framework/ime.odex
pull: /system/framework/ime.jar -> framework/ime.jar
pull: /system/framework/gba-service-lib.odex -> framework/gba-service-lib.odex
pull: /system/framework/gba-service-lib.jar -> framework/gba-service-lib.jar
pull: /system/framework/framework2.odex -> framework/framework2.odex
pull: /system/framework/framework2.jar -> framework/framework2.jar
pull: /system/framework/framework.odex -> framework/framework.odex
pull: /system/framework/framework.jar -> framework/framework.jar
pull: /system/framework/framework-res.apk -> framework/framework-res.apk
pull: /system/framework/ext.odex -> framework/ext.odex
pull: /system/framework/ext.jar -> framework/ext.jar
pull: /system/framework/core.odex -> framework/core.odex
pull: /system/framework/core.jar -> framework/core.jar
pull: /system/framework/core-junit.odex -> framework/core-junit.odex
pull: /system/framework/core-junit.jar -> framework/core-junit.jar
pull: /system/framework/content.odex -> framework/content.odex
pull: /system/framework/content.jar -> framework/content.jar
pull: /system/framework/com.samsung.device.jar -> framework/com.samsung.device.j
ar
pull: /system/framework/com.qualcomm.location.vzw_library.odex -> framework/com.
qualcomm.location.vzw_library.odex
pull: /system/framework/com.qualcomm.location.vzw_library.jar -> framework/com.q
ualcomm.location.vzw_library.jar
pull: /system/framework/com.google.widevine.software.drm.odex -> framework/com.g
oogle.widevine.software.drm.odex
pull: /system/framework/com.google.widevine.software.drm.jar -> framework/com.go
ogle.widevine.software.drm.jar
pull: /system/framework/com.google.android.media.effects.jar -> framework/com.go
ogle.android.media.effects.jar
pull: /system/framework/com.google.android.maps.jar -> framework/com.google.andr
oid.maps.jar
pull: /system/framework/com.dropboxpartner.jar -> framework/com.dropboxpartner.j
ar
pull: /system/framework/com.cequint.platform.jar -> framework/com.cequint.platfo
rm.jar
pull: /system/framework/com.android.nfc_extras.odex -> framework/com.android.nfc
_extras.odex
pull: /system/framework/com.android.nfc_extras.jar -> framework/com.android.nfc_
extras.jar
pull: /system/framework/com.android.location.provider.odex -> framework/com.andr
oid.location.provider.odex
pull: /system/framework/com.android.location.provider.jar -> framework/com.andro
id.location.provider.jar
pull: /system/framework/com.android.future.usb.accessory.odex -> framework/com.a
ndroid.future.usb.accessory.odex
pull: /system/framework/com.android.future.usb.accessory.jar -> framework/com.an
droid.future.usb.accessory.jar
pull: /system/framework/bu.odex -> framework/bu.odex
pull: /system/framework/bu.jar -> framework/bu.jar
pull: /system/framework/bouncycastle.odex -> framework/bouncycastle.odex
pull: /system/framework/bouncycastle.jar -> framework/bouncycastle.jar
pull: /system/framework/bmgr.odex -> framework/bmgr.odex
pull: /system/framework/bmgr.jar -> framework/bmgr.jar
pull: /system/framework/apache-xml.odex -> framework/apache-xml.odex
pull: /system/framework/apache-xml.jar -> framework/apache-xml.jar
pull: /system/framework/android.test.runner.odex -> framework/android.test.runne
r.odex
pull: /system/framework/android.test.runner.jar -> framework/android.test.runner
.jar
pull: /system/framework/android.policy.odex -> framework/android.policy.odex
pull: /system/framework/android.policy.jar -> framework/android.policy.jar
pull: /system/framework/am.odex -> framework/am.odex
pull: /system/framework/am.jar -> framework/am.jar
pull: /system/framework/allsharelib.odex -> framework/allsharelib.odex
pull: /system/framework/allsharelib.jar -> framework/allsharelib.jar
pull: /system/framework/allshare.odex -> framework/allshare.odex
pull: /system/framework/allshare.jar -> framework/allshare.jar
pull: /system/framework/access.control.odex -> framework/access.control.odex
pull: /system/framework/access.control.jar -> framework/access.control.jar
pull: /system/framework/GlobalConfig.odex -> framework/GlobalConfig.odex
pull: /system/framework/GlobalConfig.jar -> framework/GlobalConfig.jar
pull: /system/framework/CustFeature.odex -> framework/CustFeature.odex
pull: /system/framework/CustFeature.jar -> framework/CustFeature.jar
102 files pulled. 0 files skipped.
5872 KB/s (67420458 bytes in 11.210s)

Installing dexopt-wrapper to /system/bin...

688 KB/s (5512 bytes in 0.007s)

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

Running baksmali to decompile and get smalis...

Backing up files to \backup folder...

1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.

Pushing smali files and UJPT script to /storage/sdcard0

5991 KB/s (2121138 bytes in 0.345s)
2749 KB/s (22001 bytes in 0.007s)
3544 KB/s (28354 bytes in 0.007s)

=========================================================
To run Ultimate Jar Power Tools on device...
=========================================================

Type "sh /storage/sdcard0/ALL*" (no quotes)...

Type "exit" when done.

Press any key to continue . . .

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

shell@android:/ $ sh /storage/sdcard0/ALL*
sh /storage/sdcard0/ALL*

←[H←[J
Running /storage/sdcard0/ALL_ROMS_Ultimate_Jar_Power_Tools-Smali_Patcher_Test_R
C7.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?

Enter Y for Yes, any key for No: y
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: d
d

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

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

Applying The Time Killer Killer...

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

And now the Bonus Mod: "Service Preserver"! ;^]

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

So... get outta here... type "exit" remember?

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

shell@android:/ $ exit
exit

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

Pulling patched smali files from /storage/sdcard0...

7141 KB/s (2121140 bytes in 0.290s)
1 file(s) copied.
21 KB/s (22001 bytes in 1.000s)
1 file(s) copied.

Creating new classes.dex file...

Updating services.jar with Info-Zip 3.0

adding: classes.dex (164 bytes security) (deflated 54%)
Pushing new services.jar to /system/framework...

6105 KB/s (1562910 bytes in 0.250s)

Creating new services.odex...

Unable to create '/system/framework/services_new.odex': Permission denied
Applying "special sauce" to services.odex...

dd: can't open '/system/framework/services_new.odex': Permission denied
remote object '/system/framework/services_new.odex' does not exist

=========================================================
Installing patched services.odex!
=========================================================
failed on '/system/framework/services_new.odex' - No such file or directory
rm failed for /system/framework/services_new.jar, Permission denied

1 file(s) moved.
NEW info about your current services.odex...

=========================================================
-rw-r--r-- 1 0 0 3647072 Oct 1 18:30 ←[0;0m/system/framework
/services.odex←[0m
=========================================================

services.odex MUST have a brand new timestamp!
=========================================================
If it does not, it didn't work!!
=========================================================

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

...RIGHT NOW from your computer!

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

So if it's in the root of the sdcard, you'd do:

"su" & enter, "sh /storage/sdcard0/V6*" & enter... :)

Type "reboot" to reboot your device now!

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

=========================================================
That's All Folks!
=========================================================

shell@android:/ $

EDIT: I tried test2 and no dice. Same problem.