[Android Software/Hacking General [Developers Only]] chris29020:
Bionic patch pain in tha a**

hey guys im still trying to get a patch working for my bionic and its a headache for me. Every rom i try fails at framework.patch wether it be a GB rom or an ICS all fail at some stage. Ive tried using every patcher i could find along with every rom i could find for my phone and still no luck, I managed to get a patch made with the 1.32 patcher for windows for the GB roms and it bootlooped did a little research and found that the 1.32 patcher does that so i went and found the 1.31 patcher and same thing im stuck at boot animation....So i flash the restore and downloaded both the patchers you guys have made for linux setup a VM and all my attempts have failed at one part or another.So im wondering if you guys could possibly help me ive attached a logfile of one of my attempts at the eclipse 3.0 rom(GB) made for my phone...O and i have tried every rom type and date available in example (./auto_patcher eclipse.zip pdroid cm7 latest)

### verify tools ###
/usr/bin/patch
/bin/tar
/usr/bin/jar
/usr/bin/java

### verify ROM ###
# running ./auto_patcher eclipse.zip pdroid

### 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/aokp/
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/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

### probe rom type ###
# VID= 2.3.4
# MID=
# RID= cm7
# 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
package_extract_dir("system", "/system");
unmount("/system");

### create restore.zip ###
added manifest
adding: system/framework/framework.jar(in = 3748094) (out= 3732874)(deflated 0%)
adding: system/framework/core.jar(in = 1907379) (out= 1898616)(deflated 0%)
adding: system/framework/services.jar(in = 736074) (out= 735461)(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/updater-script(in = 62) (out= 48)(deflated 22%)
adding: META-INF/com/google/android/update-binary(in = 190552) (out= 124415)(deflated 34%)

### decompile framework.jar ###

... extract preloaded-classes ...
inflated: preloaded-classes

### decompile core.jar ###

### decompile services.jar ###

### apply framework.patch ###
17 out of 24 hunks FAILED -- saving rejects to file smali/android/app/ContextImpl.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/android/app/DownloadManager$Request.smali.rej'
The text leading up to this was:
--------------------------
|diff -Npru stock-framework/smali/android/app/NotificationGroup.smali pdroid-framework/smali/android/app/NotificationGroup.smali
|--- stock-framework/smali/android/app/NotificationGroup.smali	2012-06-19 20:21:21.925401962 -0700
|+++ pdroid-framework/smali/android/app/NotificationGroup.smali	2012-06-19 20:21:56.250550665 -0700
--------------------------
File to patch:
Skip this patch? [y]
9 out of 9 hunks ignored
The text leading up to this was:
--------------------------
|diff -Npru stock-framework/smali/android/app/Profile.smali pdroid-framework/smali/android/app/Profile.smali
|--- stock-framework/smali/android/app/Profile.smali	2012-06-19 20:21:21.934404101 -0700
|+++ pdroid-framework/smali/android/app/Profile.smali	2012-06-19 20:21:56.267554700 -0700
--------------------------
File to patch:
Skip this patch? [y]
13 out of 13 hunks ignored
Reversed (or previously applied) patch detected! Skipping patch.
7 out of 7 hunks ignored -- saving rejects to file smali/android/app/SearchDialog.smali.rej
The text leading up to this was:
--------------------------
|diff -Npru stock-framework/smali/android/app/StreamSettings.smali pdroid-framework/smali/android/app/StreamSettings.smali
|--- stock-framework/smali/android/app/StreamSettings.smali	2012-06-19 20:21:22.050431644 -0700
|+++ pdroid-framework/smali/android/app/StreamSettings.smali	2012-06-19 20:21:56.399586044 -0700
--------------------------
File to patch:
Skip this patch? [y]
4 out of 4 hunks ignored
Reversed (or previously applied) patch detected! Skipping patch.
11 out of 11 hunks ignored -- saving rejects to file smali/android/app/SuggestionsAdapter.smali.rej
46 out of 47 hunks FAILED -- saving rejects to file smali/android/content/pm/PackageParser.smali.rej
The text leading up to this was:
--------------------------
|diff -Npru stock-framework/smali/android/content/pm/ThemeInfo.smali pdroid-framework/smali/android/content/pm/ThemeInfo.smali
|--- stock-framework/smali/android/content/pm/ThemeInfo.smali	2012-06-19 20:21:22.563553459 -0700
|+++ pdroid-framework/smali/android/content/pm/ThemeInfo.smali	2012-06-19 20:21:56.867697173 -0700
--------------------------
File to patch:
Skip this patch? [y]
5 out of 5 hunks ignored
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file smali/android/content/res/Resources.smali.rej
7 out of 7 hunks FAILED -- saving rejects to file smali/android/content/res/StringBlock.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/android/content/SearchRecentSuggestionsProvider$DatabaseHelper.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
33 out of 33 hunks ignored -- saving rejects to file smali/android/content/SearchRecentSuggestionsProvider.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
7 out of 7 hunks ignored -- saving rejects to file smali/android/content/SyncManager.smali.rej
17 out of 17 hunks FAILED -- saving rejects to file 'smali/android/content/SyncManager$SyncHandler.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
38 out of 38 hunks ignored -- saving rejects to file smali/android/content/SyncStorageEngine.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
7 out of 7 hunks ignored -- saving rejects to file smali/android/database/sqlite/SQLiteDatabase.smali.rej
13 out of 13 hunks FAILED -- saving rejects to file smali/android/graphics/drawable/GradientDrawable.smali.rej
1 out of 1 hunk FAILED -- saving rejects to file smali/android/graphics/YuvImage.smali.rej
4 out of 4 hunks FAILED -- saving rejects to file 'smali/android/media/audiofx/BassBoost$Settings.smali.rej'
4 out of 4 hunks FAILED -- saving rejects to file 'smali/android/media/audiofx/Virtualizer$Settings.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file 'smali/android/media/AudioService$VolumeStreamState.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file 'smali/android/media/AudioService$VolumeStreamState$VolumeDeathHandler.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/net/MailTo.smali.rej
2 out of 2 hunks FAILED -- saving rejects to file smali/android/net/MobileDataStateTracker.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/net/vpn/VpnManager.smali.rej
52 out of 52 hunks FAILED -- saving rejects to file smali/android/net/wifi/WifiStateTracker.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file smali/android/opengl/EGLLogWrapper.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file smali/android/opengl/GLLogWrapper.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/android/provider/ContactsContract$Contacts.smali.rej'
5 out of 5 hunks FAILED -- saving rejects to file 'smali/android/provider/Telephony$Sms.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file smali/android/renderscript/RSSurfaceView.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file smali/android/server/BluetoothA2dpService.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
23 out of 23 hunks ignored -- saving rejects to file smali/android/speech/tts/TextToSpeech.smali.rej
The text leading up to this was:
--------------------------
|diff -Npru stock-framework/smali/android/telephony/SmsCbMessage.smali pdroid-framework/smali/android/telephony/SmsCbMessage.smali
|--- stock-framework/smali/android/telephony/SmsCbMessage.smali	2012-06-19 20:21:24.032902275 -0700
|+++ pdroid-framework/smali/android/telephony/SmsCbMessage.smali	2012-06-19 20:21:58.288034359 -0700
--------------------------
File to patch:
Skip this patch? [y]
1 out of 1 hunk ignored
36 out of 36 hunks FAILED -- saving rejects to file smali/android/text/HtmlToSpannedConverter.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/util/XmlPullAttributes.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/android/view/AbsSavedState$2.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/view/AbsSavedState.smali.rej
15 out of 15 hunks FAILED -- saving rejects to file smali/android/webkit/MimeTypeMap.smali.rej
57 out of 57 hunks FAILED -- saving rejects to file 'smali/android/webkit/WebViewCore$EventHub$1.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/webkit/WebView.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/storage/ExternalStorageFormatter.smali.rej
5 out of 5 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/cdma/EriManager.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
56 out of 56 hunks ignored -- saving rejects to file smali/com/android/internal/telephony/cdma/sms/BearerData.smali.rej
2 out of 2 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/DataConnectionTracker.smali.rej
4 out of 4 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/gsm/GSMPhone.smali.rej
7 out of 7 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/GsmAlphabet.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/IccIoResult.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/util/TypedProperties.smali.rej
24 out of 24 hunks FAILED -- saving rejects to file smali/com/android/internal/util/XmlUtils.smali.rej
19 out of 19 hunks FAILED -- saving rejects to file smali/com/google/android/mms/pdu/PduPersister.smali.rej

---------- Post added at 01:22 PM ---------- Previous post was at 01:05 PM ----------

heres an attempt with ics rom

### verify tools ###
/usr/bin/patch
/bin/tar
/usr/bin/jar
/usr/bin/java

### verify ROM ###
# running ./auto_patcher icsleak.zip pdroid

### 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/aokp/
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/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

### probe rom type ###
# VID= 4.0.4
# MID= cyanogenmod
# RID= cm9
# DID= cdma_targa
# 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("ext3", "EMMC", "/dev/block/system", "/system");
package_extract_dir("system", "/system");
unmount("/system");

### create restore.zip ###
added manifest
adding: system/framework/framework.jar(in = 4042143) (out= 4015135)(deflated 0%)
adding: system/framework/core.jar(in = 1275829) (out= 1269799)(deflated 0%)
adding: system/framework/services.jar(in = 871852) (out= 870352)(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/updater-script(in = 117) (out= 75)(deflated 35%)
adding: META-INF/com/google/android/update-binary(in = 211216) (out= 132655)(deflated 37%)

### 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.
12 out of 12 hunks ignored -- saving rejects to file smali/android/app/BackStackRecord.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
38 out of 38 hunks ignored -- saving rejects to file smali/android/net/wifi/WifiConfigStore.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file smali/android/server/BluetoothA2dpService.smali.rej
4 out of 5 hunks FAILED -- saving rejects to file smali/android/view/SurfaceView.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
15 out of 15 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILSender.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/sip/SipPhone$SipConnection.smali.rej'

if this helps here is a link to the page of the rom i would like to patch at the bottom there is a link for source codes if anyone who knows more about this would like to give it a shot i would be more than happy to test it because im new to this and have failed every attempt

http://www.droidhive.com/forums/index.php?/files/file/69-ics-leak-cm9-unofficial-nighghtlies/