[Android Software/Hacking General [Developers Only]] Magissia:
Hello, i have some trouble patching CyanogenMod 10.1 with OpenPdroid and TabletUI the same time, if i pick only one of them, it works perfectly, but if i try to apply both patch, it fails with an error.

ROOT= /cygdrive/d/Local Share/Tools/ApG/ApGPackages/ap
TOOL= /cygdrive/d/Local Share/Tools/ApG/ApGPackages/ap/patch_tools.tgz
ROM= /cygdrive/c/Users/Trololo/Desktop/Hacking/Cyanogen/Rom/cm-10.1-20130622-UNOFFICIAL-tf101-linaro.zip
ROMX= C:\Users\Trololo\Desktop\Hacking\Cyanogen\Rom\CM-101~1.ZIP

### verify tools ###
/cygdrive/d/Local Share/Tools/ApG/ApGPackages/cygwin/bin/patch
/cygdrive/d/Local Share/Tools/ApG/ApGPackages/cygwin/bin/tar
/cygdrive/d/Local Share/Tools/ApG/ApGPackages/Java/bin/jar
/cygdrive/d/Local Share/Tools/ApG/ApGPackages/Java/bin/java
/cygdrive/d/Local Share/Tools/ApG/ApGPackages/cygwin/bin/cpio

### verify ROM ###
### running ./auto_patcher /cygdrive/c/Users/Trololo/Desktop/Hacking/Cyanogen/Rom/cm-10.1-20130622-UNOFFICIAL-tf101-linaro.zip openpdroid,tabletUI cm
PATH= /cygdrive/d/Local Share/Tools/ApG/ApGPackages/ap/tmp20130622222628:/cygdrive/d/Local Share/Tools/ApG/ApGPackages/Java/bin:/cygdrive/d/Local Share/Tools/ApG/ApGPackages/cygwin/bin:/cygdrive/d/Local Share/Tools/ApG/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
#### Standard Build Query ####
# VER= v2.9.87
# OS= cygwin 32bit
# VID= 4.2.2
# PID= tabletUI tabletUI
# MID= cm_tf101
# RID= cm
# ANDR= 4.2
# BDID= 20130622
# DID= tf101
# BID= 20130620
Patches are tabletUI/4.2/cm/20130620

Current HEAD: 1b82c2560832ee22603d25b5465e1d4336cad906 Merge pull request #129 from Caldair/master
88290ea9089422e55c61f029e4f7eba065806331 Fix CM tabletUI patches for builds after 2013.06.20.

### DELETE FILES=
### COPY FILES=
### JAR FILES= system/framework/android.policy.jar system/framework/services.jar
### APK FILES= system/framework/framework-res.apk system/app/SystemUI.apk
### IMG FILES=
### TXT FILES=

### unzip rom ###

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("* *");
ui_print("* * The Auto-Patcher * *");
ui_print("* * * * * *");
ui_print("* * by mateor * *");
ui_print("* *");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print(" Attention");
ui_print(" ************************************");
ui_print("");
ui_print(" There is nothing that can go wrong here");
ui_print(" that reflashing your ROM won't fix.");
ui_print("");
mount("ext4", "EMMC", "/dev/block/mmcblk0p1", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib");
set_perm(0, 0, 0644, "/system/vendor/lib/libbt-vendor.so");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
unmount("/system");
ui_print(" .");
ui_print(" .");
ui_print(" done!");

### create restore.zip ###

### decompile system files ###

... decompile android.policy.jar ...

... decompile services.jar ...
\d�mpress� system/framework/framework-res.apk

... installing framework files ...

... decompile framework-res.apk ...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

... decompile SystemUI.apk ...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Trololo\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
### copy patch tabletUI/4.2/cm/20130620 ###
### delete patch tabletUI/4.2/cm/20130620 ###
### jar patch tabletUI/4.2/cm/20130620 ###

... apply android.policy.patch ...
GARBAGE= tmp/system/framework/android.policy.jar.out/smali/com/android/internal/policy/impl/PhoneWindowManager.smali.orig
GARBAGE=

... apply services.patch ...
GARBAGE=
GARBAGE=
### apk patch tabletUI/4.2/cm/20130620 ###

... apply framework-res.apk.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file res/values/bools.xml.rej
GARBAGE=
GARBAGE= tmp/system/framework/framework-res.apk.out/res/values/bools.xml.rej

... apply SystemUI.apk.patch ...
GARBAGE= tmp/system/app/SystemUI.apk.out/res/layout/status_bar_recent_panel.xml.orig tmp/system/app/SystemUI.apk.out/res/layout-land/status_bar_recent_panel.xml.orig
GARBAGE=
### img patch tabletUI/4.2/cm/20130620 ###
### text patch tabletUI/4.2/cm/20130620 ###
### copy patch tabletUI/4.2/cm/20130620 ###
### delete patch tabletUI/4.2/cm/20130620 ###
### jar patch tabletUI/4.2/cm/20130620 ###

... apply android.policy.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/internal/policy/impl/PhoneWindowManager.smali.rej
GARBAGE=
GARBAGE= tmp/system/framework/android.policy.jar.out/smali/com/android/internal/policy/impl/PhoneWindowManager.smali.rej

... apply services.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file smali/com/android/server/wm/WindowManagerService.smali.rej
GARBAGE=
GARBAGE= tmp/system/framework/services.jar.out/smali/com/android/server/wm/WindowManagerService.smali.rej
### apk patch tabletUI/4.2/cm/20130620 ###

... apply framework-res.apk.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file res/values/bools.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file res/values-sw720dp/integers.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file res/values-sw720dp/dimens.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file res/values/dimens.xml.rej
GARBAGE=
GARBAGE= tmp/system/framework/framework-res.apk.out/res/values/bools.xml.rej tmp/system/framework/framework-res.apk.out/res/values/dimens.xml.rej tmp/system/framework/framework-res.apk.out/res/values-sw720dp/dimens.xml.rej tmp/system/framework/framework-res.apk.out/res/values-sw720dp/integers.xml.rej

... apply SystemUI.apk.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/systemui/statusbar/phone/NavbarEditor.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/systemui/statusbar/policy/DateView.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/com/android/systemui/statusbar/tablet/TabletStatusBar.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/systemui/statusbar/policy/BatteryController$BatteryStateChangeCallback.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file smali/com/android/systemui/statusbar/policy/BatteryController.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file 'smali/com/android/systemui/statusbar/policy/CircleBattery$SettingsObserver.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
24 out of 24 hunks ignored -- saving rejects to file smali/com/android/systemui/statusbar/policy/CircleBattery.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file smali/com/android/systemui/statusbar/policy/CircleDockBattery.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file 'smali/com/android/systemui/statusbar/policy/DockBatteryController$DockBatteryStateChangeCallback.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file smali/com/android/systemui/statusbar/policy/DockBatteryController.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file res/layout-sw600dp/status_bar_search_panel.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file res/values-sw720dp/dimens.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file res/values/dimens.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file res/values/styles.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file res/layout/status_bar_recent_item.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file res/layout/status_bar_recent_panel.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file res/layout-land/status_bar_recent_item.xml.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file res/layout-land/status_bar_recent_panel.xml.rej
GARBAGE=
GARBAGE= tmp/system/app/SystemUI.apk.out/res/layout/status_bar_recent_item.xml.rej tmp/system/app/SystemUI.apk.out/res/layout/status_bar_recent_panel.xml.rej tmp/system/app/SystemUI.apk.out/res/layout-land/status_bar_recent_item.xml.rej tmp/system/app/SystemUI.apk.out/res/layout-land/status_bar_recent_panel.xml.rej tmp/system/app/SystemUI.apk.out/res/layout-sw600dp/status_bar_search_panel.xml.rej tmp/system/app/SystemUI.apk.out/res/values/dimens.xml.rej tmp/system/app/SystemUI.apk.out/res/values/styles.xml.rej tmp/system/app/SystemUI.apk.out/res/values-sw720dp/dimens.xml.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/phone/NavbarEditor.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/policy/BatteryController$BatteryStateChangeCallback.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/policy/BatteryController.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/policy/CircleBattery$SettingsObserver.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/policy/CircleBattery.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/policy/CircleDockBattery.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/policy/DateView.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/policy/DockBatteryController$DockBatteryStateChangeCallback.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/policy/DockBatteryController.smali.rej tmp/system/app/SystemUI.apk.out/smali/com/android/systemui/statusbar/tablet/TabletStatusBar.smali.rej
### img patch tabletUI/4.2/cm/20130620 ###
### text patch tabletUI/4.2/cm/20130620 ###

### rebuild jar ###

... rebuild android.policy.jar ...
ajout : classes.dex(entr�= 527120) (sortie = 229682)(compression : 56 %)

... rebuild services.jar ...
ajout : classes.dex(entr�= 2140360) (sortie = 955379)(compression : 55 %)

### rebuild apk ###

... rebuild framework-res.apk ...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...

... rebuild SystemUI.apk ...
I: Checking whether sources has changed...
I: Smaling...
[301,0] missing EOF at '.class'
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: D:\Partage local\Outils\ApG\ApGPackages\ap\tmp20130622222628\tmp\system\app\SystemUI.apk.out\smali\com\android\systemui\statusbar\policy\CircleBattery$BatteryReceiver.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:256)
at brut.androlib.Androlib.buildSources(Androlib.java:217)
at brut.androlib.Androlib.build(Androlib.java:208)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!! error: failed patching SystemUI.apk!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!