[Android Software/Hacking General [Developers Only]] SecUpwN:
Trying to patch DIsarmed Toaster 0.1.6.

What am I doing wrong or what's missing?

ROOT= /home/patchbot/Downloads/ap
TOOL= /home/patchbot/Downloads/ap/patch_tools.tgz
ROM= /home/patchbot/Downloads/ap/ROM.zip
ROMX= /home/patchbot/Downloads/ap/ROM.zip

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

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

### unzip patch tools ###
baksmali.jar
signapk.jar
smali.jar
updatecert.pem
updatekey.pk8
update-template.zip
boot/
boot/ramdisk/
boot/mkbootimg
boot/unpackbootimg
boot/mkbootfs

### unzip patch patches ###
patches/
patches/pdroid/
patches/pdroid/aosp-jb/
patches/pdroid/aosp-jb/20120809/
patches/pdroid/aosp-jb/20120809/core.patch
patches/pdroid/aosp-jb/20120809/preloaded.patch
patches/pdroid/aosp-jb/20120809/services.patch
patches/pdroid/aosp-jb/20120809/init.rc.patch
patches/pdroid/aosp-jb/20120809/framework.patch
patches/pdroid/aosp-jb/latest
patches/pdroid/aosp-jb/boot_patch.txt
patches/pdroid/aosp-jb/20120817/
patches/pdroid/aosp-jb/20120817/core.patch
patches/pdroid/aosp-jb/20120817/preloaded.patch
patches/pdroid/aosp-jb/20120817/services.patch
patches/pdroid/aosp-jb/20120817/init.rc.patch
patches/pdroid/aosp-jb/20120817/framework.patch
patches/pdroid/aosp-jb/copies.txt
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/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/20120813/
patches/pdroid/aosp/20120813/core.patch
patches/pdroid/aosp/20120813/preloaded.patch
patches/pdroid/aosp/20120813/services.patch
patches/pdroid/aosp/20120813/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/20120820/
patches/pdroid/cm10/20120820/core.patch
patches/pdroid/cm10/20120820/preloaded.patch
patches/pdroid/cm10/20120820/services.patch
patches/pdroid/cm10/20120820/framework.patch~
patches/pdroid/cm10/20120820/framework.patch
patches/pdroid/cm10/latest
patches/pdroid/cm10/copies.txt
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/20120820/
patches/pdroid/aokp/20120820/core.patch
patches/pdroid/aokp/20120820/preloaded.patch
patches/pdroid/aokp/20120820/services.patch
patches/pdroid/aokp/20120820/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/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/20120811/
patches/pdroid/aokp/20120811/core.patch
patches/pdroid/aokp/20120811/preloaded.patch
patches/pdroid/aokp/20120811/services.patch
patches/pdroid/aokp/20120811/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/preloaded.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/20120611/
patches/pdroid/cm7/20120611/core.patch
patches/pdroid/cm7/20120611/preloaded.patch
patches/pdroid/cm7/20120611/services.patch
patches/pdroid/cm7/20120611/framework.patch
patches/pdroid/cm7/latest
patches/pdroid/cm7/20120625/
patches/pdroid/cm7/20120625/core.patch
patches/pdroid/cm7/20120625/preloaded.patch
patches/pdroid/cm7/20120625/services.patch
patches/pdroid/cm7/20120625/framework.patch
patches/pdroid/cm7/20120811/
patches/pdroid/cm7/20120811/core.patch
patches/pdroid/cm7/20120811/preloaded.patch
patches/pdroid/cm7/20120811/services.patch
patches/pdroid/cm7/20120811/framework.patch
patches/pdroid/cm7/common/
patches/pdroid/cm7/common/preloaded.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/20120811/
patches/pdroid/cm9/20120811/core.patch
patches/pdroid/cm9/20120811/preloaded.patch
patches/pdroid/cm9/20120811/services.patch
patches/pdroid/cm9/20120811/framework.patch
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/20120702.inc/
patches/pdroid/cm9/20120702.inc/core.patch
patches/pdroid/cm9/20120702.inc/preloaded.patch
patches/pdroid/cm9/20120702.inc/services.patch
patches/pdroid/cm9/20120702.inc/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/20120820/
patches/pdroid/aokp-jb/20120820/core.patch
patches/pdroid/aokp-jb/20120820/preloaded.patch
patches/pdroid/aokp-jb/20120820/services.patch
patches/pdroid/aokp-jb/20120820/framework.patch~
patches/pdroid/aokp-jb/20120820/framework.patch
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/aokp-jb/20120823/
patches/pdroid/aokp-jb/20120823/core.patch
patches/pdroid/aokp-jb/20120823/preloaded.patch
patches/pdroid/aokp-jb/20120823/services.patch
patches/pdroid/aokp-jb/20120823/framework.patch
patches/pdroid/aokp-jb/copies.txt
patches/pdroid/copies.txt
patches/pdroid/common/
patches/pdroid/common/init.rc.patch
patches/pdroid/common/latest
patches/pdroid/common/20120506/
patches/pdroid/common/20120506/core.patch
patches/pdroid/common/20120506/preloaded.patch
patches/pdroid/common/system/
patches/pdroid/common/system/framework/
patches/pdroid/common/system/framework/framework2.jar
patches/pdroid/common/tmp/
patches/pdroid/common/tmp/system/
patches/pdroid/common/tmp/system/framework/
patches/pdroid/common/tmp/system/framework/framework.jar.out/
patches/pdroid/common/tmp/system/framework/framework.jar.out/smali/
patches/pdroid/common/tmp/system/framework/framework.jar.out/smali/android/
patches/pdroid/common/tmp/system/framework/framework.jar.out/smali/android/content/
patches/pdroid/common/tmp/system/framework/framework.jar.out/smali/android/content/ContentResolver.smali
patches/pdroid/common/tmp/system/framework/services.jar.out/
patches/pdroid/common/tmp/system/framework/services.jar.out/smali/
patches/pdroid/common/tmp/system/framework/services.jar.out/smali/com/
patches/pdroid/common/tmp/system/framework/services.jar.out/smali/com/android/
patches/pdroid/common/tmp/system/framework/services.jar.out/smali/com/android/server/
patches/pdroid/common/tmp/system/framework/services.jar.out/smali/com/android/server/am/
patches/pdroid/common/tmp/system/framework/services.jar.out/smali/com/android/server/am/ActivityManagerService.smali
patches/pdroid/generic
patches/v6supercharger/
patches/v6supercharger/aosp-jb/
patches/v6supercharger/aosp-jb/latest
patches/v6supercharger/aosp-jb/20120817/
patches/v6supercharger/aosp-jb/20120817/services.patch
patches/v6supercharger/cm10/
patches/v6supercharger/cm10/latest
patches/v6supercharger/cm10/boot_patch.txt
patches/v6supercharger/cm10/20120817/
patches/v6supercharger/cm10/20120817/services.patch
patches/v6supercharger/aokp
patches/v6supercharger/files.txt
patches/v6supercharger/cm9/
patches/v6supercharger/cm9/20120614/
patches/v6supercharger/cm9/20120614/services.patch
patches/v6supercharger/cm9/latest
patches/v6supercharger/cm9/20120817/
patches/v6supercharger/cm9/20120817/services.patch
patches/v6supercharger/aokp-jb
patches/v6supercharger/copies.txt
patches/v6supercharger/generic
patches/pdroid_addon/
patches/pdroid_addon/aosp/
patches/pdroid_addon/aosp/latest
patches/pdroid_addon/aosp/20120813/
patches/pdroid_addon/aosp/20120813/core.patch
patches/pdroid_addon/aosp/20120813/preloaded.patch
patches/pdroid_addon/aosp/20120813/services.patch
patches/pdroid_addon/aosp/20120813/framework.patch
patches/pdroid_addon/aokp/
patches/pdroid_addon/aokp/latest
patches/pdroid_addon/aokp/20120813/
patches/pdroid_addon/aokp/20120813/core.patch
patches/pdroid_addon/aokp/20120813/preloaded.patch
patches/pdroid_addon/aokp/20120813/services.patch
patches/pdroid_addon/aokp/20120813/framework.patch
patches/pdroid_addon/files.txt
patches/pdroid_addon/cm9/
patches/pdroid_addon/cm9/latest
patches/pdroid_addon/cm9/20120813/
patches/pdroid_addon/cm9/20120813/core.patch
patches/pdroid_addon/cm9/20120813/preloaded.patch
patches/pdroid_addon/cm9/20120813/services.patch
patches/pdroid_addon/cm9/20120813/framework.patch
patches/pdroid_addon/copies.txt
patches/pdroid_addon/common/
patches/pdroid_addon/common/latest
patches/pdroid_addon/common/20120506/
patches/pdroid_addon/common/20120506/core.patch
patches/pdroid_addon/common/20120506/preloaded.patch
patches/pdroid_addon/common/system/
patches/pdroid_addon/common/system/framework/
patches/pdroid_addon/common/system/framework/framework2.jar
patches/pdroid_addon/common/system/media/
patches/pdroid_addon/common/system/media/PDroid.jpeg
patches/pdroid_addon/generic
patches/insecure/
patches/insecure/files.txt
patches/insecure/copies.txt
patches/insecure/generic/
patches/insecure/generic/20120816/
patches/insecure/generic/20120816/default.prop.patch
patches/insecure/generic/latest
patches/insecure/generic/boot_patch.txt

### probe rom type ###
# VID= 4.1.1
# MID= cm_shooteru-userdebug
# RID= cm10
# DID= shooteru
# BID= latest
# PID= pdroid
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar
### APK FILES=
### COPY FILES= tmp/system/framework/framework.jar.out/smali/android/content/ContentResolver.smali
### BOOTIMG=

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
delete("/tmp/system/framework/framework.jar.out/smali/android/content/ContentResolver.smali");
package_extract_dir("system", "/system");
unmount("/system");

### create restore.zip ###
tmp/system/framework/framework.jar.out/smali/android/content/ContentResolver.smali: Datei oder Verzeichnis nicht vorhanden
Manifest wurde hinzugefügt
system/framework/framework.jar wird hinzugefügt(ein = 4285787) (aus = 4259641)(0 % verkleinert)
system/framework/core.jar wird hinzugefügt(ein = 1289745) (aus = 1283008)(0 % verkleinert)
system/framework/services.jar wird hinzugefügt(ein = 971591) (aus = 969756)(0 % verkleinert)
Eintrag META-INF/ wird ignoriert
META-INF/com/ wird hinzugefügt(ein = 0) (aus = 0)(0 % gespeichert)
META-INF/com/google/ wird hinzugefügt(ein = 0) (aus = 0)(0 % gespeichert)
META-INF/com/google/android/ wird hinzugefügt(ein = 0) (aus = 0)(0 % gespeichert)
META-INF/com/google/android/updater-script wird hinzugefügt(ein = 216) (aus = 150)(30 % verkleinert)
META-INF/com/google/android/update-binary wird hinzugefügt(ein = 221856) (aus = 143904)(35 % verkleinert)

### decompile framework.jar ###

... extract preloaded-classes ...
\vergrößert: preloaded-classes

### decompile core.jar ###

### decompile services.jar ###

### apply framework.patch ###
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/location/Location.smali.rej

... apply preloaded.patch ...
GARBAGE=
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/location/Location.smali.rej

### apply core.patch ###
GARBAGE=
GARBAGE=

### apply services.patch ###
134 out of 135 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej