[Android Software/Hacking General [Developers Only]] karamelos:
Hi

openpdroid sucess on

Nexus 7 not fullwi{f}e just update rom & patch. Done

cm-10.1-20130116-NIGHTLY-grouper.zip

md5sum: 539b7749b7a2a8c951510bd48ac15b31

But

For last cm Gt-n7000 & nexus 7 openpdroid is broken (cm option or not) :

cm-10.1-20130117-NIGHTLY-n7000.zip

md5sum: b664ebda12b65bcf4841c6dcad8b6242

ROOT= /home/xyz/android-rom-apk/autopatcherv2.5.2
TOOL= /home/xyz/android-rom-apk/autopatcherv2.5.2/patch_tools.tgz
ROM= /home/xyz/android-rom-apk/Rom/cm-10.1-20130117-NIGHTLY-n7000.zip
ROMX= /home/xyz/android-rom-apk/Rom/cm-10.1-20130117-NIGHTLY-n7000.zip

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

### verify ROM ###
### running ./auto_patcher /home/xyz/android-rom-apk/Rom/cm-10.1-20130117-NIGHTLY-n7000.zip openpdroid
PATH= /home/xyz/android-rom-apk/autopatcherv2.5.2/tmp20130117124040:/home/xyz/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/xyz/android-sdk/android-sdk-linux/platform-tools:/home/xyz/android-sdk/android-sdk-linux/tools:/home/xyz/bin:/opt/java/64/jdk1.6.0_34/bin

### unzip patch tools ###

### unzip patch patches ###

... result of ROM check: RIL= SamsungExynos4RIL

### probe rom type ###
#### Standard Build Query ####
# VER= v2.5.2
# OS= linux-gnu 64bit
# VID= 4.2.1
# PID= openpdroid
# MID= cm_n7000-userdebug
# RID= cm
# ANDR= 4.2
# BDID= 20130117
# DID= GT-N7000
# BID= 20130109
### DELETE FILES=
### COPY FILES= system/app/Mms.apk system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/telephony-common.jar
### APK FILES=
### 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, 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_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 framework.jar ...

... extract preloaded-classes ...
décompressée: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...

### copy patch openpdroid/4.2/cm/20130109 ###

... copying system/app/Mms.apk ...

... overwriting system/app/Mms.apk from openpdroid ...
«patches/openpdroid/4.2/cm/20130109/system/app/Mms.apk» -> «./system/app/Mms.apk»

... copying system/media/PDroid.jpeg ...
«patches/openpdroid/4.2/cm/20130109/system/media/PDroid.jpeg» -> «./system/media/PDroid.jpeg»

... overwriting ContentResolver.smali ...

### jar patch openpdroid/4.2/cm/20130109 ###

... apply framework.patch ...

... apply preloaded.patch ...
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/net/wifi/WifiStateMachine.smali.orig
GARBAGE=

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

... apply services.patch ...
GARBAGE=
GARBAGE=

... apply telephony-common.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
15 out of 15 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILSender.smali.rej'
3 out of 20 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/SMSDispatcher.smali.rej

!!! PATCHING FAILED FOR com/android/internal/telephony/SMSDispatcher.smali !!!
!!! patch error for com/android/internal/telephony/SMSDispatcher.smali !!!

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

!!! error: failed com/android/internal/telephony/SMSDispatcher.smali in telephony-common.jar cannot be remedied

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

logs nexus 7 (wifi)

ROOT= /home/xyz/android-rom-apk/autopatcherv2.5.2
TOOL= /home/xyz/android-rom-apk/autopatcherv2.5.2/patch_tools.tgz
ROM= /home/xyz/android-rom-apk/Rom/cm-10.1-20130117-NIGHTLY-grouper.zip
ROMX= /home/xyz/android-rom-apk/Rom/cm-10.1-20130117-NIGHTLY-grouper.zip

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

### verify ROM ###
### running ./auto_patcher /home/xyz/android-rom-apk/Rom/cm-10.1-20130117-NIGHTLY-grouper.zip openpdroid cm
PATH= /home/xyz/android-rom-apk/autopatcherv2.5.2/tmp20130117125002:/home/xyz/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/xyz/android-sdk/android-sdk-linux/platform-tools:/home/xyz/android-sdk/android-sdk-linux/tools:/home/xyz/bin:/opt/java/64/jdk1.6.0_34/bin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
#### Standard Build Query ####
# VER= v2.5.2
# OS= linux-gnu 64bit
# VID= 4.2.1
# PID= openpdroid
# MID= cm_grouper-userdebug
# RID= cm
# ANDR= 4.2
# BDID= 20130117
# DID= grouper
# BID= 20130109
### DELETE FILES=
### COPY FILES= system/app/Mms.apk system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/telephony-common.jar
### APK FILES=
### 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/platform/sdhci-tegra.3/by-name/APP", "/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(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_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/hw");
set_perm(0, 0, 0644, "/system/vendor/lib/hw/power.grouper.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 framework.jar ...

... extract preloaded-classes ...
décompressée: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...

### copy patch openpdroid/4.2/cm/20130109 ###

... copying system/app/Mms.apk ...
«patches/openpdroid/4.2/cm/20130109/system/app/Mms.apk» -> «./system/app/Mms.apk»

... copying system/media/PDroid.jpeg ...
«patches/openpdroid/4.2/cm/20130109/system/media/PDroid.jpeg» -> «./system/media/PDroid.jpeg»

... overwriting ContentResolver.smali ...

### jar patch openpdroid/4.2/cm/20130109 ###

... apply framework.patch ...

... apply preloaded.patch ...
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/net/wifi/WifiStateMachine.smali.orig
GARBAGE=

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

... apply services.patch ...
GARBAGE=
GARBAGE=

... apply telephony-common.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
15 out of 15 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILSender.smali.rej'
3 out of 20 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/SMSDispatcher.smali.rej

!!! PATCHING FAILED FOR com/android/internal/telephony/SMSDispatcher.smali !!!
!!! patch error for com/android/internal/telephony/SMSDispatcher.smali !!!

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

!!! error: failed com/android/internal/telephony/SMSDispatcher.smali in telephony-common.jar cannot be remedied

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