[Android Software/Hacking General [Developers Only]] Feareilo:
I tried to patch the MiniCM7 ROM (for the Xperia X10 Mini Pro) [source here] but I got some errors. Here's the log:

ROOT= /home/suprememaster/Desktop/Android/PDroid/ap
TOOL= /home/suprememaster/Desktop/Android/PDroid/ap/patch_tools.tgz
ROM= /home/suprememaster/Desktop/Android/PDroid/ap/MiniCM7-2.2.1-mimmi.zip
ROMX= /home/suprememaster/Desktop/Android/PDroid/ap/MiniCM7-2.2.1-mimmi.zip

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

### verify ROM ###
# running ./auto_patcher MiniCM7-2.2.1-mimmi.zip pdroid

### unzip patch tools ###
signapk.jar
updatecert.pem
updatekey.pk8
update-template.zip
smali.jar
baksmali.jar

### unzip patch patches ###
patches/
patches/pdroid/
patches/pdroid/aosp/
patches/pdroid/aosp/20120515/
patches/pdroid/aosp/20120515/core.patch
patches/pdroid/aosp/20120515/preloaded.patch
patches/pdroid/aosp/20120515/services.patch
patches/pdroid/aosp/20120515/framework.patch
patches/pdroid/aosp/20120624/
patches/pdroid/aosp/20120624/core.patch
patches/pdroid/aosp/20120624/preloaded.patch
patches/pdroid/aosp/20120624/services.patch
patches/pdroid/aosp/20120624/framework.patch
patches/pdroid/aosp/latest/
patches/pdroid/aosp/latest/core.patch
patches/pdroid/aosp/latest/preloaded.patch
patches/pdroid/aosp/latest/services.patch
patches/pdroid/aosp/latest/framework.patch
patches/pdroid/aosp/20120507/
patches/pdroid/aosp/20120507/core.patch
patches/pdroid/aosp/20120507/preloaded.patch
patches/pdroid/aosp/20120507/services.patch
patches/pdroid/aosp/20120507/framework.patch
patches/pdroid/aosp/20120506/
patches/pdroid/aosp/20120506/core.patch
patches/pdroid/aosp/20120506/preloaded.patch
patches/pdroid/aosp/20120506/services.patch
patches/pdroid/aosp/20120506/framework.patch
patches/pdroid/cm10/
patches/pdroid/cm10/latest
patches/pdroid/cm10/20120806/
patches/pdroid/cm10/20120806/core.patch
patches/pdroid/cm10/20120806/preloaded.patch
patches/pdroid/cm10/20120806/services.patch
patches/pdroid/cm10/20120806/framework.patch
patches/pdroid/aokp/
patches/pdroid/aokp/20120702/
patches/pdroid/aokp/20120702/core.patch
patches/pdroid/aokp/20120702/preloaded.patch
patches/pdroid/aokp/20120702/services.patch
patches/pdroid/aokp/20120702/framework.patch
patches/pdroid/aokp/20120707/
patches/pdroid/aokp/20120707/core.patch
patches/pdroid/aokp/20120707/preloaded.patch
patches/pdroid/aokp/20120707/services.patch
patches/pdroid/aokp/20120707/framework.patch
patches/pdroid/aokp/20120510/
patches/pdroid/aokp/20120510/core.patch
patches/pdroid/aokp/20120510/preloaded.patch
patches/pdroid/aokp/20120510/services.patch
patches/pdroid/aokp/20120510/framework.patch
patches/pdroid/aokp/latest/
patches/pdroid/aokp/latest/core.patch
patches/pdroid/aokp/latest/preloaded.patch
patches/pdroid/aokp/latest/services.patch
patches/pdroid/aokp/latest/framework.patch
patches/pdroid/aokp/20120613/
patches/pdroid/aokp/20120613/core.patch
patches/pdroid/aokp/20120613/preloaded.patch
patches/pdroid/aokp/20120613/services.patch
patches/pdroid/aokp/20120613/framework.patch
patches/pdroid/aokp/20120625/
patches/pdroid/aokp/20120625/core.patch
patches/pdroid/aokp/20120625/preloaded.patch
patches/pdroid/aokp/20120625/services.patch
patches/pdroid/aokp/20120625/framework.patch
patches/pdroid/aokp/20120506/
patches/pdroid/aokp/20120506/core.patch
patches/pdroid/aokp/20120506/preloaded.patch
patches/pdroid/aokp/20120506/services.patch
patches/pdroid/aokp/20120506/framework.patch
patches/pdroid/files.txt
patches/pdroid/cm7/
patches/pdroid/cm7/20120718/
patches/pdroid/cm7/20120718/core.patch
patches/pdroid/cm7/20120718/services.patch
patches/pdroid/cm7/20120718/framework.patch
patches/pdroid/cm7/20120514/
patches/pdroid/cm7/20120514/core.patch
patches/pdroid/cm7/20120514/preloaded.patch
patches/pdroid/cm7/20120514/services.patch
patches/pdroid/cm7/20120514/framework.patch
patches/pdroid/cm7/20120618/
patches/pdroid/cm7/20120618/core.patch
patches/pdroid/cm7/20120618/services.patch
patches/pdroid/cm7/20120618/framework.patch
patches/pdroid/cm7/latest/
patches/pdroid/cm7/latest/core.patch
patches/pdroid/cm7/latest/services.patch
patches/pdroid/cm7/latest/framework.patch
patches/pdroid/cm7/20120625/
patches/pdroid/cm7/20120625/core.patch
patches/pdroid/cm7/20120625/services.patch
patches/pdroid/cm7/20120625/framework.patch
patches/pdroid/cm9/
patches/pdroid/cm9/20120706/
patches/pdroid/cm9/20120706/core.patch
patches/pdroid/cm9/20120706/preloaded.patch
patches/pdroid/cm9/20120706/services.patch
patches/pdroid/cm9/20120706/framework.patch
patches/pdroid/cm9/20120615/
patches/pdroid/cm9/20120615/core.patch
patches/pdroid/cm9/20120615/preloaded.patch
patches/pdroid/cm9/20120615/services.patch
patches/pdroid/cm9/20120615/framework.patch
patches/pdroid/cm9/20120718/
patches/pdroid/cm9/20120718/core.patch
patches/pdroid/cm9/20120718/preloaded.patch
patches/pdroid/cm9/20120718/services.patch
patches/pdroid/cm9/20120718/framework.patch
patches/pdroid/cm9/20120709/
patches/pdroid/cm9/20120709/core.patch
patches/pdroid/cm9/20120709/preloaded.patch
patches/pdroid/cm9/20120709/services.patch
patches/pdroid/cm9/20120709/framework.patch
patches/pdroid/cm9/20120508/
patches/pdroid/cm9/20120508/core.patch
patches/pdroid/cm9/20120508/preloaded.patch
patches/pdroid/cm9/20120508/services.patch
patches/pdroid/cm9/20120508/framework.patch
patches/pdroid/cm9/latest
patches/pdroid/cm9/20120723/
patches/pdroid/cm9/20120723/core.patch
patches/pdroid/cm9/20120723/preloaded.patch
patches/pdroid/cm9/20120723/services.patch
patches/pdroid/cm9/20120723/framework.patch
patches/pdroid/cm9/20120626/
patches/pdroid/cm9/20120626/core.patch
patches/pdroid/cm9/20120626/preloaded.patch
patches/pdroid/cm9/20120626/services.patch
patches/pdroid/cm9/20120626/framework.patch
patches/pdroid/cm9/20120506/
patches/pdroid/cm9/20120506/core.patch
patches/pdroid/cm9/20120506/preloaded.patch
patches/pdroid/cm9/20120506/services.patch
patches/pdroid/cm9/20120506/framework.patch
patches/pdroid/cm9/20120708/
patches/pdroid/cm9/20120708/core.patch
patches/pdroid/cm9/20120708/preloaded.patch
patches/pdroid/cm9/20120708/services.patch
patches/pdroid/cm9/20120708/framework.patch
patches/pdroid/cm9/20120724/
patches/pdroid/cm9/20120724/core.patch
patches/pdroid/cm9/20120724/preloaded.patch
patches/pdroid/cm9/20120724/services.patch
patches/pdroid/cm9/20120724/framework.patch
patches/pdroid/cm9/20120601/
patches/pdroid/cm9/20120601/core.patch
patches/pdroid/cm9/20120601/preloaded.patch
patches/pdroid/cm9/20120601/services.patch
patches/pdroid/cm9/20120601/framework.patch
patches/pdroid/aokp-jb/
patches/pdroid/aokp-jb/20120809/
patches/pdroid/aokp-jb/20120809/core.patch
patches/pdroid/aokp-jb/20120809/preloaded.patch
patches/pdroid/aokp-jb/20120809/services.patch
patches/pdroid/aokp-jb/20120809/framework.patch
patches/pdroid/aokp-jb/latest
patches/pdroid/common/
patches/pdroid/common/latest/
patches/pdroid/common/latest/core.patch
patches/pdroid/common/latest/preloaded.patch
patches/pdroid/common/20120506/
patches/pdroid/common/20120506/core.patch
patches/pdroid/common/20120506/preloaded.patch
patches/pdroid/generic/
patches/pdroid/generic/20120515/
patches/pdroid/generic/20120515/core.patch
patches/pdroid/generic/20120515/preloaded.patch
patches/pdroid/generic/20120515/services.patch
patches/pdroid/generic/20120515/framework.patch
patches/pdroid/generic/20120624/
patches/pdroid/generic/20120624/core.patch
patches/pdroid/generic/20120624/preloaded.patch
patches/pdroid/generic/20120624/services.patch
patches/pdroid/generic/20120624/framework.patch
patches/pdroid/generic/latest/
patches/pdroid/generic/latest/core.patch
patches/pdroid/generic/latest/preloaded.patch
patches/pdroid/generic/latest/services.patch
patches/pdroid/generic/latest/framework.patch
patches/pdroid/generic/20120507/
patches/pdroid/generic/20120507/core.patch
patches/pdroid/generic/20120507/preloaded.patch
patches/pdroid/generic/20120507/services.patch
patches/pdroid/generic/20120507/framework.patch
patches/pdroid/generic/20120506/
patches/pdroid/generic/20120506/core.patch
patches/pdroid/generic/20120506/preloaded.patch
patches/pdroid/generic/20120506/services.patch
patches/pdroid/generic/20120506/framework.patch
patches/v6supercharger/
patches/v6supercharger/cm10/
patches/v6supercharger/cm10/latest
patches/v6supercharger/cm10/20120806/
patches/v6supercharger/cm10/20120806/services.patch
patches/v6supercharger/files.txt
patches/v6supercharger/cm9/
patches/v6supercharger/cm9/20120614/
patches/v6supercharger/cm9/20120614/services.patch
patches/v6supercharger/cm9/latest/
patches/v6supercharger/cm9/latest/services.patch
patches/v6supercharger/cm9/20120711/
patches/v6supercharger/cm9/20120711/services.patch
patches/v6supercharger/aokp-jb/
patches/v6supercharger/aokp-jb/20120809
patches/v6supercharger/aokp-jb/latest
patches/v6supercharger/generic/
patches/v6supercharger/generic/20120614/
patches/v6supercharger/generic/20120614/services.patch
patches/v6supercharger/generic/latest/
patches/v6supercharger/generic/latest/services.patch
patches/v6supercharger/generic/20120711/
patches/v6supercharger/generic/20120711/services.patch

### probe rom type ###
# VID= 2.3.7
# 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
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
unmount("/system");

### create restore.zip ###
added manifest
adding: system/framework/framework.jar(in = 12406) (out= 12251)(deflated 1%)
adding: system/framework/core.jar(in = 22926) (out= 20560)(deflated 10%)
adding: system/framework/services.jar(in = 313) (out= 177)(deflated 43%)
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 = 194636) (out= 127607)(deflated 34%)
adding: META-INF/com/google/android/updater-script(in = 107) (out= 66)(deflated 38%)

### decompile framework.jar ###

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file framework.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:269)

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

### decompile core.jar ###

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file core.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:269)

### decompile services.jar ###

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file services.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:269)

### apply framework.patch ###
9 out of 9 hunks FAILED -- saving rejects to file smali/android/app/ContextImpl.smali.rej
1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/DownloadManager$Request.smali.rej'
9 out of 9 hunks FAILED -- saving rejects to file smali/android/app/NotificationGroup.smali.rej
13 out of 13 hunks FAILED -- saving rejects to file smali/android/app/Profile.smali.rej
7 out of 7 hunks FAILED -- saving rejects to file smali/android/app/SearchDialog.smali.rej
4 out of 4 hunks FAILED -- saving rejects to file smali/android/app/StreamSettings.smali.rej
11 out of 11 hunks FAILED -- saving rejects to file smali/android/app/SuggestionsAdapter.smali.rej
4 out of 4 hunks FAILED -- saving rejects to file smali/android/content/ContentResolver.smali.rej
47 out of 47 hunks FAILED -- saving rejects to file smali/android/content/pm/PackageParser.smali.rej
5 out of 5 hunks FAILED -- saving rejects to file smali/android/content/pm/ThemeInfo.smali.rej
2 out of 2 hunks FAILED -- 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
1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/content/SearchRecentSuggestionsProvider$DatabaseHelper.smali.rej'
33 out of 33 hunks FAILED -- saving rejects to file smali/android/content/SearchRecentSuggestionsProvider.smali.rej
7 out of 7 hunks FAILED -- 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'
35 out of 35 hunks FAILED -- saving rejects to file smali/android/content/SyncStorageEngine.smali.rej
7 out of 7 hunks FAILED -- 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'
2 out of 2 hunks FAILED -- saving rejects to file 'smali/android/media/AudioService$VolumeStreamState.smali.rej'
9 out of 9 hunks FAILED -- saving rejects to file 'smali/android/media/AudioService$VolumeStreamState$VolumeDeathHandler.smali.rej'
1 out of 1 hunk FAILED -- 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
1 out of 1 hunk FAILED -- 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
4 out of 4 hunks FAILED -- saving rejects to file smali/android/opengl/EGLLogWrapper.smali.rej
9 out of 9 hunks FAILED -- saving rejects to file smali/android/opengl/GLLogWrapper.smali.rej
1 out of 1 hunk FAILED -- 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'
5 out of 5 hunks FAILED -- saving rejects to file smali/android/renderscript/RSSurfaceView.smali.rej
4 out of 4 hunks FAILED -- saving rejects to file smali/android/server/BluetoothA2dpService.smali.rej
23 out of 23 hunks FAILED -- saving rejects to file smali/android/speech/tts/TextToSpeech.smali.rej
1 out of 1 hunk FAILED -- saving rejects to file smali/android/telephony/SmsCbMessage.smali.rej
36 out of 36 hunks FAILED -- saving rejects to file smali/android/text/HtmlToSpannedConverter.smali.rej
1 out of 1 hunk FAILED -- saving rejects to file smali/android/util/XmlPullAttributes.smali.rej
1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/view/AbsSavedState$2.smali.rej'
1 out of 1 hunk FAILED -- 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'
1 out of 1 hunk FAILED -- saving rejects to file smali/android/webkit/WebView.smali.rej
5 out of 5 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/cdma/EriManager.smali.rej
56 out of 56 hunks FAILED -- 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
4 out of 4 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/IccIoResult.smali.rej
1 out of 1 hunk FAILED -- 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

The thing that actually matters is this:

UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file [framework/core/services].jar does not contain a classes.dex file

Now, I googled that error and came up with some solutions but they didn't work. From the baksmali Google Code website:

I tried unzipping the ROM, renaming framework/core/services jars as framework/core/services.jar.bak, zipping it back and running the auto-patcher but it returned an error along the lines of "cannot find framework/core/services.jar" (I'm at work so I can't see the log right now). So the renaming trick can't be used.

Anyone got any ideas?

---------- Post added at 04:29 PM ---------- Previous post was at 04:23 PM ----------

Is this the actual path? "/home/johndoe/Desktop/ap/log20120815150648 for any debugging"

I got that same error yesterday because my folder name was "Auto Patcher." The space on the folder name was ****ing **** up.