[Android Software/Hacking General [Developers Only]] acideater:
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 *

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/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
101 files pulled. 0 files skipped.
766 KB/s (65857547 bytes in 83.875s)

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

344 KB/s (5512 bytes in 0.015s)

-rwxr-xr-x 1 0 0 5512 Nov 28 02:01 ←[1;32m/system/bin/dexo
pt-wrapper←[0m

Running baksmali to decompile it...

Volume in drive C has no label.
Volume Serial Number is 60E2-CB8A

Directory of C:\Users\folder\Desktop\folder\smali_files\com\android\ser
ver\am

11/27/2012 07:01 PM 2,121,138 ActivityManagerService.smali
1 File(s) 2,121,138 bytes
0 Dir(s) 183,000,236,032 bytes free
Volume in drive C has no label.
Volume Serial Number is 60E2-CB8A

Directory of C:\Users\folder\Desktop\folder\smali_files\com\android\ser
ver\am

11/27/2012 07:01 PM 22,001 ProcessList.smali
1 File(s) 22,001 bytes
0 Dir(s) 183,000,236,032 bytes free
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

568 KB/s (2121138 bytes in 3.640s)
458 KB/s (22001 bytes in 0.046s)
585 KB/s (28096 bytes in 0.046s)

To run Ultimate Jar Power Tools on device...

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

Type "exit" when done.

Press any key to continue . . .

-CUT OFF-
-CUT OFF-

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

798 KB/s (2121140 bytes in 2.593s)
1 file(s) copied.
458 KB/s (22001 bytes in 0.046s)
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%)
Volume in drive C has no label.
Volume Serial Number is 60E2-CB8A

Directory of C:\Users\folder\Desktop\folder

11/27/2012 07:06 PM <DIR> .
11/27/2012 07:06 PM <DIR> ..
11/27/2012 07:01 PM <DIR> backup
11/27/2012 07:06 PM 3,382,984 classes.dex
11/24/2012 09:13 PM <DIR> cwm6-recovery-n7100-121014
11/22/2012 01:51 AM 7,751,680 cwm6-recovery-n7100-121014.tar
11/27/2012 07:01 PM <DIR> framework
10/27/2012 01:20 PM <DIR> JellyScreamPatcherV6_0.9.0.6
10/27/2012 01:15 PM 3,564,321 JellyScreamPatcherV6_0.9.0.6.7z
11/25/2012 11:43 PM <DIR> odex_ultimatic_test.exe
11/25/2012 11:14 PM 2,256,896 odex_ultimatic_test.exe.zip
11/26/2012 09:26 PM 2,257,920 odex_ultimatic_test2.exe
08/31/2012 08:31 PM <DIR> Odin3-v1.85
11/26/2012 06:15 PM <DIR> Samsung-Updates.com-SGH-T889_TMB_1_201210
02182641_bf8y55psw4
11/24/2012 08:40 PM 902,570,132 Samsung-Updates.com-SGH-T889_TMB_1_201210
02182641_bf8y55psw4.zip
11/27/2012 07:06 PM 1,562,910 services.jar
11/27/2012 06:58 PM 3,647,072 services.odex
11/24/2012 08:44 PM <DIR> SGN2 STOCK FIRMWARE
11/27/2012 07:01 PM <DIR> smali_files
11/27/2012 07:05 PM <DIR> supercharged
11/27/2012 02:05 AM <DIR> ULTIMATIC
11/22/2012 11:36 PM 1,777,563 Ultimatic_Jar_Patcher_Tools_RC1_ALL_DEX_A
LL_OSes_NO_FLASH.zip
9 File(s) 928,771,478 bytes
13 Dir(s) 182,989,668,352 bytes free
Pushing new services.jar to /storage/sdcard0

558 KB/s (1562910 bytes in 2.734s)

Creating new services.odex on /storage/sdcard0...

--- BEGIN '/storage/sdcard0/services.jar' (bootstrap=0) ---
--- waiting for verify+opt, pid=24987
--- would reduce privs here
--- END '/storage/sdcard0/services.jar' (success) ---
-rw-rw-r-- 1 0 1015 1562910 Nov 28 02:06 ←[0;0m/storage/sdcard0/
services.jar←[0m
-rw-rw-r-- 1 0 1015 3437176 Nov 28 02:06 ←[0;0m/storage/sdcard0/
services.odex←[0m
Applying "special sauce" to services.odex...

20+0 records in
20+0 records out
20 bytes (20B) copied, 0.003290 seconds, 5.9KB/s
-rw-rw-r-- 1 0 1015 1562910 Nov 28 02:06 ←[0;0m/storage/sdcard0/
services.jar←[0m
-rw-rw-r-- 1 0 1015 3437176 Nov 28 02:06 ←[0;0m/storage/sdcard0/
services.odex←[0m
781 KB/s (3437176 bytes in 4.296s)

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!
Volume in drive C has no label.
Volume Serial Number is 60E2-CB8A

Directory of C:\Users\folder\Desktop\folder\backup

11/27/2012 07:01 PM <DIR> .
11/27/2012 07:01 PM <DIR> ..
11/27/2012 07:01 PM 2,121,138 ActivityManagerService.smali
11/27/2012 07:01 PM 22,001 ProcessList.smali
11/27/2012 06:58 PM 313 services.jar
11/27/2012 06:58 PM 3,647,072 services.odex
4 File(s) 5,790,524 bytes
2 Dir(s) 182,991,441,920 bytes free
Volume in drive C has no label.
Volume Serial Number is 60E2-CB8A

Directory of C:\Users\folder\Desktop\folder\supercharged

11/27/2012 07:06 PM <DIR> .
11/27/2012 07:06 PM <DIR> ..
11/27/2012 07:05 PM 2,121,140 ActivityManagerService.smali
11/27/2012 07:06 PM 3,382,984 classes.dex
11/27/2012 07:05 PM 22,001 ProcessList.smali
11/27/2012 06:58 PM 313 services.jar
11/27/2012 07:06 PM 3,437,176 services.odex
5 File(s) 8,963,614 bytes
2 Dir(s) 182,991,441,920 bytes free

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:/ $

By the way, I can PM to keep this thread less cluttered. Just let me know