[Android Software/Hacking General [Developers Only]] baastien:
Hello,

I have patching error while running auto-patcher 2.4.7 on HP Touchpad SCHIZOID ROM (which actually merge CM10+AOKP M1+PA 2.99)

pd2.0 patch

Here's my log. Is it relative to a 4.2 known issue ?

In the other hand I don't have any issue with PA 2.56 ROM.

### create updater script ###

... using Clockworkmod installer ...
# generated updater-script
mount("ext4", "EMMC", "/dev/store/cm-system", "/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, 1000, 06750, "/system/bin/rebootcmd");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
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(1000, 1000, 0644, "/system/etc/paranoid/properties.conf");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
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");

### create restore.zip ###

### decompile system files ###

... decompile framework.jar ...

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

... decompile core.jar ...

... decompile services.jar ...

### copy patch pd2.0/jellybean/pa/20121017 ###

... copying system/app/Mms.apk ...
«patches/pd2.0/jellybean/pa/20121017/system/app/Mms.apk» -> «./system/app/Mms.apk»

... copying system/media/PDroid.jpeg ...
«patches/pd2.0/jellybean/pa/20121017/system/media/PDroid.jpeg» -> «./system/media/PDroid.jpeg»

... overwriting GsmServiceStateTracker.smali ...
«patches/pd2.0/jellybean/provisionals/system/framework/framework.jar.out/smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali» -> «tmp/system/framework/framework.jar.out/smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali»

### jar patch pd2.0/jellybean/pa/20121017 ###

... apply framework.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
13 out of 13 hunks ignored -- saving rejects to file smali/android/app/BackStackRecord.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file smali/android/content/pm/ContainerEncryptionParams.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file smali/android/location/Location.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
7 out of 7 hunks ignored -- saving rejects to file 'smali/android/opengl/GLSurfaceView$EglHelper.smali.rej'
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file smali/android/widget/AppSecurityPermissions.smali.rej
1 out of 77 hunks FAILED -- saving rejects to file smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali.rej
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej

... apply preloaded.patch ...

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

File for which patching failed:

---------------------------------------------

CdmaServiceStateTracker.smali
askconsent final = YES: for com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali

... replace com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali ...
«patches/pd2.0/jellybean/provisionals/system/framework/framework.jar.out/smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali» -> «tmp/system/framework/framework.jar.out/smali/com/android/internal/telephony/cdma/CdmaServiceStateTracker.smali»
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/provider/Settings$Secure.smali.orig
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/opengl/GLSurfaceView$EglHelper.smali.rej tmp/system/framework/framework.jar.out/smali/android/app/BackStackRecord.smali.rej tmp/system/framework/framework.jar.out/smali/android/location/Location.smali.rej tmp/system/framework/framework.jar.out/smali/android/widget/AppSecurityPermissions.smali.rej tmp/system/framework/framework.jar.out/smali/android/content/pm/ContainerEncryptionParams.smali.rej tmp/system/framework/framework.jar.out/smali/com/android/internal/telephony/gsm/GsmServiceStateTracker.smali.rej

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

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

!!! PATCHING FAILED FOR com/android/server/ServerThread.smali !!!
!!! patch error for com/android/server/ServerThread.smali !!!

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

!!! error: failed com/android/server/ServerThread.smali in services.jar cannot be remedied

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