[Android Software/Hacking General [Developers Only]] creedicd:
Nexus 10 issue

I tried running autopatcher on a nearly stock 4.2.2 Nexus 10 ROM and received errors on Camera.smali and MediaRecorder.smali

it appears that this issue has occurred before on 4.1 versions of Gnex.

Really appreciate your hard work on this!

ROOT= /cygdrive/c/Users/Family/Downloads/ApGPackages/ap
TOOL= /cygdrive/c/Users/Family/Downloads/ApGPackages/ap/patch_tools.tgz
ROM= /cygdrive/c/Users/Family/Downloads/CleanROM 2.2.5.zip
ROMX= C:\Users\Family\DOWNLO~1\CLEANR~1.ZIP

### verify tools ###
/cygdrive/c/Users/Family/Downloads/ApGPackages/cygwin/bin/patch
/cygdrive/c/Users/Family/Downloads/ApGPackages/cygwin/bin/tar
/cygdrive/c/Users/Family/Downloads/ApGPackages/Java/bin/jar
/cygdrive/c/Users/Family/Downloads/ApGPackages/Java/bin/java
/cygdrive/c/Users/Family/Downloads/ApGPackages/cygwin/bin/cpio

### verify ROM ###
### running ./auto_patcher /cygdrive/c/Users/Family/Downloads/CleanROM 2.2.5.zip openpdroid aosp
PATH= /cygdrive/c/Users/Family/Downloads/ApGPackages/ap/tmp20130420070521:/cygdrive/c/Users/Family/Downloads/ApGPackages/Java/bin:/cygdrive/c/Users/Family/Downloads/ApGPackages/cygwin/bin:/cygdrive/c/Users/Family/Downloads/ApGPackages/cygwin/usr/sbin

### unzip patch tools ###

### unzip patch patches ###

### probe rom type ###
#### Standard Build Query ####
# VER= v2.8.1
# OS= cygwin 32bit
# VID= 4.2.2
# PID= openpdroid
# MID= CleanROM
# RID= aosp
# ANDR= 4.2
# BDID= 20130208
# DID= manta
# BID= 20130201
Patches are openpdroid/4.2/aosp/20130201
### DELETE FILES=
### COPY FILES= 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= system/app/Mms.apk
### IMG FILES=
### TXT FILES=

### unzip rom ###

### create updater script ###

... using Aroma 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/dw_mmc.0/by-name/system", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
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_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_pair_devlist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/pittpatt");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/left_eye-y0-yi45-p0-pi45-r0-ri20.lg_32/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/nose_base-y0-yi45-p0-pi45-r0-ri20.lg_32/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.7/right_eye-y0-yi45-p0-pi45-r0-ri20.lg_32-2/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-r0-ri30.4a-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rn30-ri30.5-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.6/head-y0-yi45-p0-pi45-rp30-ri30.5-v24/full_model.bin");
set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N/full_model.bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 2000, 0755, "/system/vendor/bin/gpsd");
unmount("/system");
ui_print(" .");
ui_print(" .");
ui_print(" done!");

### create restore.zip ###
system\app\Mms.apk : no such file or directory

### decompile system files ###

... decompile framework.jar ...

... extract preloaded-classes ...
inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

... decompile telephony-common.jar ...
inflated: system/framework/framework-res.apk

... installing framework files ...
### copy patch openpdroid/4.2/aosp/20130201 ###

... copying system/media/PDroid.jpeg ...
`patches/openpdroid/4.2/aosp/20130201/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'
### delete patch openpdroid/4.2/aosp/20130201 ###
### jar patch openpdroid/4.2/aosp/20130201 ###

... apply framework.patch ...
2 out of 14 hunks FAILED -- saving rejects to file smali/android/hardware/Camera.smali.rej
1 out of 23 hunks FAILED -- saving rejects to file smali/android/media/MediaRecorder.smali.rej

... apply preloaded.patch ...

!!! PATCHING FAILED FOR android/hardware/Camera.smali android/media/MediaRecorder.smali !!!
!!! patch error for android/hardware/Camera.smali !!!

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

!!! error: failed android/hardware/Camera.smali in framework.jar cannot be remedied

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