[Android Software/Hacking General [Developers Only]] brashmadcap:
Jellybean

I'm holding off on Jelly Bean until we can get this patcher running against jelly bean. Here's what I get now:

### verify tools ###

/usr/bin/patch

/bin/tar

/usr/bin/jar

/usr/bin/java

### verify ROM ###

# running ./auto_patcher bigxie_maguro_JRN84D_v2-signed.zip pdroid aosp

### unzip patch tools ###

baksmali.jar

signapk.jar

smali.jar

updatecert.pem

updatekey.pk8

update-template.zip

### unzip patch patches ###

patches/

patches/v6supercharger/

patches/v6supercharger/files.txt

patches/v6supercharger/generic

patches/v6supercharger/cm9/

patches/v6supercharger/cm9/latest

patches/v6supercharger/cm9/20120614/

patches/v6supercharger/cm9/20120614/services.patch

patches/pdroid/

patches/pdroid/common/

patches/pdroid/common/20120506/

patches/pdroid/common/20120506/preloaded.patch

patches/pdroid/common/20120506/core.patch

patches/pdroid/common/latest

patches/pdroid/files.txt

patches/pdroid/generic

patches/pdroid/cm9/

patches/pdroid/cm9/20120626/

patches/pdroid/cm9/20120626/services.patch

patches/pdroid/cm9/20120626/preloaded.patch

patches/pdroid/cm9/20120626/framework.patch

patches/pdroid/cm9/20120626/core.patch

patches/pdroid/cm9/20120601/

patches/pdroid/cm9/20120601/services.patch

patches/pdroid/cm9/20120601/preloaded.patch

patches/pdroid/cm9/20120601/framework.patch

patches/pdroid/cm9/20120601/core.patch

patches/pdroid/cm9/20120506/

patches/pdroid/cm9/20120506/services.patch

patches/pdroid/cm9/20120506/preloaded.patch

patches/pdroid/cm9/20120506/framework.patch

patches/pdroid/cm9/20120506/core.patch

patches/pdroid/cm9/latest

patches/pdroid/cm9/20120615/

patches/pdroid/cm9/20120615/services.patch

patches/pdroid/cm9/20120615/preloaded.patch

patches/pdroid/cm9/20120615/framework.patch

patches/pdroid/cm9/20120615/core.patch

patches/pdroid/cm9/20120508/

patches/pdroid/cm9/20120508/services.patch

patches/pdroid/cm9/20120508/preloaded.patch

patches/pdroid/cm9/20120508/framework.patch

patches/pdroid/cm9/20120508/core.patch

patches/pdroid/aosp/

patches/pdroid/aosp/20120506/

patches/pdroid/aosp/20120506/services.patch

patches/pdroid/aosp/20120506/preloaded.patch

patches/pdroid/aosp/20120506/framework.patch

patches/pdroid/aosp/20120506/core.patch

patches/pdroid/aosp/20120507/

patches/pdroid/aosp/20120507/services.patch

patches/pdroid/aosp/20120507/preloaded.patch

patches/pdroid/aosp/20120507/framework.patch

patches/pdroid/aosp/20120507/core.patch

patches/pdroid/aosp/latest

patches/pdroid/aosp/20120515/

patches/pdroid/aosp/20120515/services.patch

patches/pdroid/aosp/20120515/preloaded.patch

patches/pdroid/aosp/20120515/framework.patch

patches/pdroid/aosp/20120515/core.patch

patches/pdroid/aosp/20120624/

patches/pdroid/aosp/20120624/services.patch

patches/pdroid/aosp/20120624/preloaded.patch

patches/pdroid/aosp/20120624/framework.patch

patches/pdroid/aosp/20120624/core.patch

patches/pdroid/aokp/

patches/pdroid/aokp/20120702/

patches/pdroid/aokp/20120702/services.patch

patches/pdroid/aokp/20120702/preloaded.patch

patches/pdroid/aokp/20120702/framework.patch

patches/pdroid/aokp/20120702/core.patch

patches/pdroid/aokp/20120613/

patches/pdroid/aokp/20120613/services.patch

patches/pdroid/aokp/20120613/preloaded.patch

patches/pdroid/aokp/20120613/framework.patch

patches/pdroid/aokp/20120613/core.patch

patches/pdroid/aokp/20120506/

patches/pdroid/aokp/20120506/services.patch

patches/pdroid/aokp/20120506/preloaded.patch

patches/pdroid/aokp/20120506/framework.patch

patches/pdroid/aokp/20120506/core.patch

patches/pdroid/aokp/latest

patches/pdroid/aokp/20120625/

patches/pdroid/aokp/20120625/services.patch

patches/pdroid/aokp/20120625/preloaded.patch

patches/pdroid/aokp/20120625/framework.patch

patches/pdroid/aokp/20120625/core.patch

patches/pdroid/aokp/20120510/

patches/pdroid/aokp/20120510/services.patch

patches/pdroid/aokp/20120510/preloaded.patch

patches/pdroid/aokp/20120510/framework.patch

patches/pdroid/aokp/20120510/core.patch

patches/pdroid/cm7/

patches/pdroid/cm7/20120618/

patches/pdroid/cm7/20120618/services.patch

patches/pdroid/cm7/20120618/preloaded.patch

patches/pdroid/cm7/20120618/framework.patch

patches/pdroid/cm7/20120618/core.patch

patches/pdroid/cm7/latest

patches/pdroid/cm7/20120514/

patches/pdroid/cm7/20120514/services.patch

patches/pdroid/cm7/20120514/preloaded.patch

patches/pdroid/cm7/20120514/framework.patch

patches/pdroid/cm7/20120514/core.patch

patches/pdroid/cm7/20120625/

patches/pdroid/cm7/20120625/services.patch

patches/pdroid/cm7/20120625/preloaded.patch

patches/pdroid/cm7/20120625/framework.patch

patches/pdroid/cm7/20120625/core.patch

# VID=

# MID=

# RID= aosp

# DID=

# BID= latest

# PID= pdroid

### FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar

### unzip rom ###

### create updater script ###

### using Clockworkmod installer ###

# generated updater-script

mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/system");

package_extract_dir("system", "/system");

unmount("/system");

### create restore.zip ###

added manifest

adding: system/framework/framework.jar(in = 4510712) (out= 4488420)(deflated 0%)

adding: system/framework/core.jar(in = 1340680) (out= 1335000)(deflated 0%)

adding: system/framework/services.jar(in = 979106) (out= 977944)(deflated 0%)

ignoring entry META-INF/

adding: META-INF/com/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)

adding: META-INF/com/google/android/update-binary(in = 249144) (out= 156325)(deflated 37%)

adding: META-INF/com/google/android/updater-script(in = 152) (out= 107)(deflated 29%)

### decompile framework.jar ###

... extract preloaded-classes ...

inflated: preloaded-classes

### decompile core.jar ###

### decompile services.jar ###

### apply framework.patch ###

Reversed (or previously applied) patch detected! Skipping patch.

3 out of 3 hunks ignored -- saving rejects to file smali/android/accounts/AccountAuthenticatorCache.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

2 out of 2 hunks ignored -- saving rejects to file 'smali/android/accounts/AccountManager$AmsTask.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

2 out of 2 hunks ignored -- saving rejects to file 'smali/android/accounts/AccountManager$Future2Task.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

17 out of 17 hunks ignored -- saving rejects to file smali/android/accounts/AccountManagerService.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

14 out of 14 hunks ignored -- saving rejects to file smali/android/app/ActivityThread.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

15 out of 15 hunks ignored -- saving rejects to file 'smali/android/app/backup/BackupAgent$BackupServiceBinder.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

2 out of 2 hunks ignored -- saving rejects to file smali/android/app/backup/RestoreSession.smali.rej

1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/ContextImpl$18.smali.rej'

1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/ContextImpl$26.smali.rej'

The next patch would create the file 'smali/android/app/ContextImpl$34.smali',

which already exists! Skipping patch.

1 out of 1 hunk ignored

Reversed (or previously applied) patch detected! Skipping patch.

10 out of 10 hunks ignored -- saving rejects to file smali/android/app/DownloadManager.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

14 out of 14 hunks ignored -- saving rejects to file smali/android/app/Fragment.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

3 out of 3 hunks ignored -- saving rejects to file 'smali/android/app/LoaderManagerImpl$LoaderInfo.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

8 out of 8 hunks ignored -- saving rejects to file 'smali/android/app/WallpaperManager$Globals.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

3 out of 3 hunks ignored -- saving rejects to file smali/android/bluetooth/BluetoothSocket.smali.rej

8 out of 8 hunks FAILED -- saving rejects to file 'smali/android/content/AbstractThreadedSyncAdapter$SyncThread.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

26 out of 26 hunks ignored -- saving rejects to file smali/android/content/ContentResolver.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file smali/android/content/CursorLoader.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file smali/android/content/Loader.smali.rej

The text leading up to this was:

--------------------------

|diff -Npru stock-framework/smali/android/content/SyncManager$InitializerServiceConnection.smali pdroid-framework/smali/android/content/SyncManager$InitializerServiceConnection.smali

|--- stock-framework/smali/android/content/SyncManager$InitializerServiceConnection.smali	2012-06-24 14:05:11.406931492 -0700

|+++ pdroid-framework/smali/android/content/SyncManager$InitializerServiceConnection.smali	2012-06-24 14:05:21.216264661 -0700

--------------------------

File to patch:

Skip this patch? [y]

4 out of 4 hunks ignored

Reversed (or previously applied) patch detected! Skipping patch.

15 out of 15 hunks ignored -- saving rejects to file smali/android/content/SyncStorageEngine.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

2 out of 2 hunks ignored -- saving rejects to file smali/android/database/BulkCursorToCursorAdaptor.smali.rej

2 out of 2 hunks FAILED -- saving rejects to file smali/android/database/sqlite/SQLiteClosable.smali.rej

4 out of 4 hunks FAILED -- saving rejects to file smali/android/database/sqlite/SQLiteCursor.smali.rej

21 out of 21 hunks FAILED -- saving rejects to file smali/android/database/sqlite/SQLiteDatabase.smali.rej

3 out of 3 hunks FAILED -- saving rejects to file smali/android/database/sqlite/SQLiteStatement.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

5 out of 5 hunks ignored -- saving rejects to file smali/android/media/MediaPlayer.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

4 out of 4 hunks ignored -- saving rejects to file smali/android/net/VpnService.smali.rej

36 out of 36 hunks FAILED -- saving rejects to file smali/android/net/wifi/WifiConfigStore.smali.rej

31 out of 31 hunks FAILED -- saving rejects to file 'smali/android/opengl/GLSurfaceView$GLThread.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

2 out of 2 hunks ignored -- saving rejects to file 'smali/android/os/StrictMode$AndroidBlockGuardPolicy.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

2 out of 2 hunks ignored -- saving rejects to file smali/android/os/StrictMode.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

26 out of 26 hunks ignored -- saving rejects to file smali/android/server/BluetoothService.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file 'smali/android/service/textservice/SpellCheckerService$InternalISpellCheckerSession.smali.rej'

1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/telephony/PhoneStateListener$1.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

2 out of 2 hunks ignored -- saving rejects to file smali/android/view/accessibility/AccessibilityManager.smali.rej

5 out of 5 hunks FAILED -- saving rejects to file smali/android/view/SurfaceView.smali.rej

The text leading up to this was:

--------------------------

|diff -Npru stock-framework/smali/android/view/ViewRootImpl$AccessibilityInteractionController.smali pdroid-framework/smali/android/view/ViewRootImpl$AccessibilityInteractionController.smali

|--- stock-framework/smali/android/view/ViewRootImpl$AccessibilityInteractionController.smali	2012-06-24 14:05:12.758252904 -0700

|+++ pdroid-framework/smali/android/view/ViewRootImpl$AccessibilityInteractionController.smali	2012-06-24 14:05:22.667609867 -0700

--------------------------

File to patch:

Skip this patch? [y]

11 out of 11 hunks ignored

2 out of 2 hunks FAILED -- saving rejects to file 'smali/android/view/ViewRootImpl$W.smali.rej'

Reversed (or previously applied) patch detected! Skipping patch.

1 out of 1 hunk ignored -- saving rejects to file 'smali/android/webkit/HTML5VideoViewProxy$PosterDownloader.smali.rej'

The text leading up to this was:

--------------------------

|diff -Npru stock-framework/smali/android/webkit/WebIconDatabase$EventHandler.smali pdroid-framework/smali/android/webkit/WebIconDatabase$EventHandler.smali

|--- stock-framework/smali/android/webkit/WebIconDatabase$EventHandler.smali	2012-06-24 14:05:12.860277172 -0700

|+++ pdroid-framework/smali/android/webkit/WebIconDatabase$EventHandler.smali	2012-06-24 14:05:22.776635799 -0700

--------------------------

File to patch:

Skip this patch? [y]

3 out of 3 hunks ignored

The text leading up to this was:

--------------------------

|diff -Npru stock-framework/smali/android/webkit/WebView$6.smali pdroid-framework/smali/android/webkit/WebView$6.smali

|--- stock-framework/smali/android/webkit/WebView$6.smali	2012-06-24 14:05:12.872280027 -0700

|+++ pdroid-framework/smali/android/webkit/WebView$6.smali	2012-06-24 14:05:22.788638654 -0700

--------------------------

File to patch:

Skip this patch? [y]

5 out of 5 hunks ignored

The text leading up to this was:

--------------------------

|diff -Npru stock-framework/smali/android/webkit/WebView$7.smali pdroid-framework/smali/android/webkit/WebView$7.smali

|--- stock-framework/smali/android/webkit/WebView$7.smali	2012-06-24 14:05:12.873280265 -0700

|+++ pdroid-framework/smali/android/webkit/WebView$7.smali	2012-06-24 14:05:22.789638892 -0700

--------------------------

File to patch:

Skip this patch? [y]

2 out of 2 hunks ignored

The text leading up to this was:

--------------------------

|diff -Npru stock-framework/smali/android/widget/ActivityChooserModel$HistoryLoader.smali pdroid-framework/smali/android/widget/ActivityChooserModel$HistoryLoader.smali

|--- stock-framework/smali/android/widget/ActivityChooserModel$HistoryLoader.smali	2012-06-24 14:05:12.933294539 -0700

|+++ pdroid-framework/smali/android/widget/ActivityChooserModel$HistoryLoader.smali	2012-06-24 14:05:22.849653166 -0700

--------------------------

File to patch:

Skip this patch? [y]

11 out of 11 hunks ignored

The text leading up to this was:

--------------------------

|diff -Npru stock-framework/smali/android/widget/ActivityChooserModel$HistoryPersister.smali pdroid-framework/smali/android/widget/ActivityChooserModel$HistoryPersister.smali

|--- stock-framework/smali/android/widget/ActivityChooserModel$HistoryPersister.smali	2012-06-24 14:05:12.934294777 -0700

|+++ pdroid-framework/smali/android/widget/ActivityChooserModel$HistoryPersister.smali	2012-06-24 14:05:22.850653404 -0700

--------------------------

File to patch:

Skip this patch? [y]

6 out of 6 hunks ignored

Reversed (or previously applied) patch detected! Skipping patch.

9 out of 9 hunks ignored -- saving rejects to file 'smali/android/widget/Filter$RequestHandler.smali.rej'

33 out of 33 hunks FAILED -- saving rejects to file smali/android/widget/GridView.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

30 out of 30 hunks ignored -- saving rejects to file smali/android/widget/ListView.smali.rej

6 out of 6 hunks FAILED -- saving rejects to file smali/android/widget/TextView.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

2 out of 2 hunks ignored -- saving rejects to file smali/com/android/internal/os/BatteryStatsImpl.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

4 out of 4 hunks ignored -- saving rejects to file smali/com/android/internal/telephony/BaseCommands.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

4 out of 4 hunks ignored -- saving rejects to file smali/com/android/internal/telephony/cdma/EriManager.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

4 out of 4 hunks ignored -- saving rejects to file smali/com/android/internal/telephony/IccRecords.smali.rej

Reversed (or previously applied) patch detected! Skipping patch.

18 out of 18 hunks ignored -- saving rejects to file smali/com/android/internal/telephony/SMSDispatcher.smali.rej