[Android Software/Hacking General [Developers Only]] foccacia:
having problem with patching CM 10.1 for my tab2 7.0

http://codepad.org/D9P4aStI

ROOT= /cygdrive/d/ApGPackages/ap

TOOL= /cygdrive/d/ApGPackages/ap/patch_tools.tgz

ROM= /cygdrive/d/Software/Samsung Tab 2/Rom/cm-10.1-20130404-NIGHTLY-p3110.zip

ROMX= D:\Software\SAMSUN~2\Rom\CMCF51~1.ZIP

### verify tools ###

/cygdrive/d/ApGPackages/cygwin/bin/patch

/cygdrive/d/ApGPackages/cygwin/bin/tar

/cygdrive/d/ApGPackages/Java/bin/jar

/cygdrive/d/ApGPackages/Java/bin/java

/cygdrive/d/ApGPackages/cygwin/bin/cpio

### verify ROM ###

### running ./auto_patcher /cygdrive/d/Software/Samsung Tab 2/Rom/cm-10.1-20130404-NIGHTLY-p3110.zip tabletUI cm

PATH= /cygdrive/d/ApGPackages/ap/tmp20130405225516:/cygdrive/d//ApGPackages/Java/bin:/cygdrive/d//ApGPackages/cygwin/bin:/cygdrive/d//ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###

#### Standard Build Query ####

# VER= v2.8.8

# OS= cygwin 32bit

# VID= 4.2.2

# PID= tabletUI

# MID= cm_p3110-userdebug

# RID= cm

# ANDR= 4.2

# BDID= 20130404

# DID= espressowifi

# BID= 20130201

Patches are tabletUI/4.2/cm/20130201

### 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/mmcblk0p9", "/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, 0755, "/system/vendor/bin");

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(0, 2000, 0755, "/system/vendor/lib");

set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");

set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");

set_perm(0, 2000, 0755, "/system/vendor/lib/egl");

set_perm(0, 2000, 0755, "/system/vendor/lib/hw");

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 ...

inflated: 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\Kenneth Hoh\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/20130201 ###

### delete patch tabletUI/4.2/cm/20130201 ###

### jar patch tabletUI/4.2/cm/20130201 ###

... 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= tmp/system/framework/services.jar.out/smali/com/android/server/wm/WindowManagerService.smali.orig

GARBAGE=

### apk patch tabletUI/4.2/cm/20130201 ###

... 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 ...

2 out of 3 hunks FAILED -- saving rejects to file smali/com/android/systemui/statusbar/phone/NavbarEditor.smali.rej

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

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

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