[Android Apps and Games] bonanza123:
thanks for your effors but i still have some issues:

in generated zip file is just a folder META-INF with some files in it, but I think something is missing

XX@ubuntu:~/Downloads$ jar -xf PDroid-Patcher-v1.25-Beta-0.3.zip
XX@ubuntu:~/Downloads$ chmod 755 patchpdroid
XX@ubuntu:~/Downloads$ ./patchpdroid update-cm-7.2.0-RC0-GalaxyS2-20111209-signed.zip
***************************************************
**** PDroid Patcher Beta 0.3 - Patch Version 1.25
***************************************************
mkdir: Verzeichnis „/home/XX/Downloads/tmp1323978287“ angelegt
mkdir: Verzeichnis „/home/XX/Downloads/tools1323978287“ angelegt
dekomprimiert: apktool.jar
dekomprimiert: apktool
dekomprimiert: pdroidpatcher.jar
dekomprimiert: services.patch
dekomprimiert: framework.patch
dekomprimiert: core.patch
dekomprimiert: framework.mod.jar
dekomprimiert: signapk.jar
extrahiert: updatekey.pk8
dekomprimiert: updatecert.pem
dekomprimiert: updaterB
extrahiert: updaterA
dekomprimiert: cleanupsmalimod
dekomprimiert: aapt
dekomprimiert: META-INF/com/google/android/update-binary
dekomprimiert: META-INF/com/google/android/updater-script
dekomprimiert: system/framework/core.jar
dekomprimiert: system/framework/framework.jar
dekomprimiert: system/framework/services.jar
„system/framework/core.jar“ -> „./core.jar“
„system/framework/framework.jar“ -> „./framework.jar“
„system/framework/services.jar“ -> „./services.jar“
„META-INF/com/google/android/update-binary“ -> „./update-binary“
„META-INF/com/google/android/updater-script“ -> „./updater-script“
I: Baksmaling...
I: Copying assets and libs...
I: Baksmaling...
I: Copying assets and libs...
I: Baksmaling...
I: Copying assets and libs...
patching file smali/android/app/ContextImpl.smali
Hunk #2 succeeded at 150 (offset 4 lines).
Hunk #3 succeeded at 651 (offset 8 lines).
Hunk #4 succeeded at 1113 (offset 8 lines).
Hunk #5 succeeded at 1134 (offset 8 lines).
Hunk #6 succeeded at 1399 (offset 56 lines).
Hunk #7 succeeded at 1641 (offset 56 lines).
patching file smali/android/content/ContentResolver.smali
Hunk #1 succeeded at 2963 (offset 113 lines).
patching file smali/android/privacy/IPrivacySettingsManager.smali
patching file 'smali/android/privacy/IPrivacySettingsManager$Stub$Proxy.smali'
patching file 'smali/android/privacy/IPrivacySettingsManager$Stub.smali'
patching file smali/android/privacy/PrivacyFileObserver.smali
patching file smali/android/privacy/PrivacyPersistenceAdapter.smali
patching file 'smali/android/privacy/PrivacySettings$1.smali'
patching file smali/android/privacy/PrivacySettingsManagerService.smali
patching file smali/android/privacy/PrivacySettingsManager.smali
patching file smali/android/privacy/PrivacySettings.smali
patching file 'smali/android/privacy/surrogate/PrivacyAccountManager$PrivacyAccountManagerFuture.smali'
patching file smali/android/privacy/surrogate/PrivacyAccountManager.smali
patching file smali/android/privacy/surrogate/PrivacyActivityManagerService.smali
patching file smali/android/privacy/surrogate/PrivacyContentResolver.smali
patching file smali/android/privacy/surrogate/PrivacyCursor.smali
patching file 'smali/android/privacy/surrogate/PrivacyLocationManager$PrivacyLocationUpdater.smali'
patching file smali/android/privacy/surrogate/PrivacyLocationManager.smali
patching file 'smali/android/privacy/surrogate/PrivacyTelephonyManager$PrivacyPhoneStateListener.smali'
patching file smali/android/privacy/surrogate/PrivacyTelephonyManager.smali
patching file smali/com/android/server/am/ActivityManagerService.smali
Hunk #1 succeeded at 12353 (offset 297 lines).
Hunk #2 succeeded at 18137 (offset 299 lines).
patching file smali/com/android/server/ServerThread.smali
Hunk #2 succeeded at 358 (offset 6 lines).
patching file smali/java/lang/PrivacyInputStream.smali
patching file 'smali/java/lang/PrivacyProcessManager$PrivacyFileReader.smali'
patching file smali/java/lang/PrivacyProcessManager.smali
patching file 'smali/java/lang/ProcessManager$ProcessImpl.smali'
I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: framework.mod.jar.out/smali/android/content/ContentResolver.smali.orig
W: Unknown file type, ignoring: framework.mod.jar.out/smali/android/app/ContextImpl.smali.orig
W: Could not find resources
I: Building apk file...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/ss/Downloads/tmp1323978287/framework.mod.jar, /home/ss/Downloads/tmp1323978287/framework.mod.jar.out/build/apk]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildApk(Androlib.java:355)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/ss/Downloads/tmp1323978287/framework.mod.jar, /home/ss/Downloads/tmp1323978287/framework.mod.jar.out/build/apk]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 5 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 6 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 9 more
erstellt: META-INF/
dekomprimiert: META-INF/MANIFEST.MF
dekomprimiert: preloaded-classes
java.io.FileNotFoundException: framework.mod.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at sun.tools.jar.Main.run(Main.java:210)
at sun.tools.jar.Main.main(Main.java:1167)
I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/ServerThread.smali.orig
W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/am/ActivityManagerService.smali.orig
W: Could not find resources
I: Building apk file...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/ss/Downloads/tmp1323978287/services.mod.jar, /home/ss/Downloads/tmp1323978287/services.mod.jar.out/build/apk]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildApk(Androlib.java:355)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/ss/Downloads/tmp1323978287/services.mod.jar, /home/ss/Downloads/tmp1323978287/services.mod.jar.out/build/apk]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 5 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 6 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 9 more
erstellt: META-INF/
dekomprimiert: META-INF/MANIFEST.MF
java.io.FileNotFoundException: services.mod.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at sun.tools.jar.Main.run(Main.java:210)
at sun.tools.jar.Main.main(Main.java:1167)
I: Checking whether sources has changed...
I: Smaling...
W: Could not find resources
I: Building apk file...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/ss/Downloads/tmp1323978287/core.mod.jar, /home/ss/Downloads/tmp1323978287/core.mod.jar.out/build/apk]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildApk(Androlib.java:355)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /home/ss/Downloads/tmp1323978287/core.mod.jar, /home/ss/Downloads/tmp1323978287/core.mod.jar.out/build/apk]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 5 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 6 more
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 9 more
erstellt: META-INF/
dekomprimiert: META-INF/MANIFEST.MF
dekomprimiert: classes.dex
dekomprimiert: org/apache/harmony/dalvik/ddmc/README.txt
dekomprimiert: com/ibm/icu4jni/ThirdPartyProject.prop
dekomprimiert: java/security/security.properties
dekomprimiert: java/util/logging/logging.properties
dekomprimiert: org/apache/xalan/res/XSLTInfo.properties
dekomprimiert: org/apache/xalan/Version.src
dekomprimiert: org/apache/xalan/processor/XSLProcessorVersion.src
dekomprimiert: org/apache/xml/serializer/Version.src
dekomprimiert: org/apache/xml/serializer/output_unknown.properties
dekomprimiert: org/apache/xml/serializer/output_text.properties
dekomprimiert: org/apache/xml/serializer/output_html.properties
dekomprimiert: org/apache/xml/serializer/output_xml.properties
dekomprimiert: org/apache/xml/serializer/XMLEntities.properties
dekomprimiert: org/apache/xml/serializer/HTMLEntities.properties
dekomprimiert: org/apache/xml/serializer/Encodings.properties
dekomprimiert: org/kxml2/ThirdPartyProject.prop
dekomprimiert: org/xmlpull/ThirdPartyProject.prop
dekomprimiert: org/xml/ThirdPartyProject.prop
java.io.FileNotFoundException: core.mod.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at sun.tools.jar.Main.run(Main.java:210)
at sun.tools.jar.Main.main(Main.java:1167)
cp: Aufruf von stat für „framework.mod.jar“ nicht möglich: Datei oder Verzeichnis nicht gefunden
cp: Aufruf von stat für „services.mod.jar“ nicht möglich: Datei oder Verzeichnis nicht gefunden
cp: Aufruf von stat für „core.mod.jar“ nicht möglich: Datei oder Verzeichnis nicht gefunden
Manifest wurde hinzugefügt.
Hinzufügen von: system/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: system/framework/ (ein = 0) (aus = 0) (gespeichert 0 %)
Eintrag META-INF/ wird ignoriert.
Hinzufügen von: META-INF/com/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: META-INF/com/google/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: META-INF/com/google/android/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: META-INF/com/google/android/updater-script (ein = 251) (aus = 150) (komprimiert 40 %)
Hinzufügen von: META-INF/com/google/android/update-binary (ein = 224276) (aus = 144965) (komprimiert 35 %)
Manifest wurde hinzugefügt.
Hinzufügen von: system/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: system/framework/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: system/framework/framework.jar (ein = 3096984) (aus = 3078776) (komprimiert 0 %)
Hinzufügen von: system/framework/core.jar (ein = 1862816) (aus = 1851876) (komprimiert 0 %)
Hinzufügen von: system/framework/services.jar (ein = 664051) (aus = 663220) (komprimiert 0 %)
Eintrag META-INF/ wird ignoriert.
Hinzufügen von: META-INF/com/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: META-INF/com/google/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: META-INF/com/google/android/ (ein = 0) (aus = 0) (gespeichert 0 %)
Hinzufügen von: META-INF/com/google/android/updater-script (ein = 253) (aus = 149) (komprimiert 41 %)
Hinzufügen von: META-INF/com/google/android/update-binary (ein = 224276) (aus = 144965) (komprimiert 35 %)

PDroid patch: PDroid-v1.25-update-cm-7.2.0-RC0-GalaxyS2-20111209-signed.zip
Flash it through CWM *OR* extract the files in /system/framework/ and push them via ADB

To restore your ROM and remove PDroid, flash PDroid-RESTORE-update-cm-7.2.0-RC0-GalaxyS2-20111209-signed.zip