Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: preloaded.patch in framework.jar cannot be remedied #194

Open
AZTobor opened this issue Nov 6, 2013 · 5 comments
Open

error: preloaded.patch in framework.jar cannot be remedied #194

AZTobor opened this issue Nov 6, 2013 · 5 comments

Comments

@AZTobor
Copy link

AZTobor commented Nov 6, 2013

I am getting this error while attempting to update cm-10.1.3-spyder.zip via Cygwin. Here is the output of the command and the log file:

Command output:
+++++++++++
Bob@Desktop /cygdrive/r/bob/androidstuff/rom/apm
$ ./auto_patcher cm-10.1.3-spyder.zip openpdroid

The Auto-Patcher v3.2.35

verify tools

verify ROM

unzip patch tools

unzip patch patches

inflated: system/build.prop

probe rom type

... result of ROM check: version= 4.2.2 ...
... Using results of ROM check ...

unzip rom

inflated: system/app/Mms.apk
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
inflated: system/framework/telephony-common.jar

create updater script

inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
... using Clockworkmod installer ...

create restore.zip

decompile system files

... decompile framework.jar ...
... extract preloaded-classes ...
... decompile core.jar ...
... decompile services.jar ...
... decompile telephony-common.jar ...
... decompile Mms.apk ...

copy patch openpdroid/4.2

... copying system/media/PDroid.jpeg ...
... overwriting system/media/PDroid.jpeg from openpdroid ...
... overwriting ContentResolver.smali ...

jar patch openpdroid/4.2

... apply framework.patch ...

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: preloaded.patch in framework.jar cannot be remedied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

usage:     ./auto_patcher <ROM> <MODS>
example:   ./auto_patcher CM10.zip openpdroid

Use ./auto_patcher -h for the help menu

If your deodexed rom is not on the supported list and you want it added:
- Upload your log and a link to the rom's source code (mandatory)
and be patient, please!

+++++++++++
Logfile
+++++++++++
ROOT= /cygdrive/r/bob/androidstuff/rom/apm
TOOL= /cygdrive/r/bob/androidstuff/rom/apm/patch_tools.tgz
ROM= /cygdrive/r/bob/androidstuff/rom/apm/cm-10.1.3-spyder.zip
ROMX= R:\bob\ANDROI1\rom\apm\CM-1012.ZIP

verify tools

/usr/bin/tar
/cygdrive/c/Program Files/Java/jdk1.7.0_45/bin/jar
/cygdrive/c/Windows/system32/java
/usr/bin/cpio

verify ROM

running ./auto_patcher cm-10.1.3-spyder.zip openpdroid

PATH= /cygdrive/r/bob/androidstuff/rom/apm/tmp20131105185616:/usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/UltraEdit:/cygdrive/c/Program Files (x86)/Calibre2:/cygdrive/c/Program Files/Java/jdk1.7.0_45/bin

unzip patch tools

unzip patch patches

probe rom type

GNU Build Query

VER= v3.2.35

OS= cygwin 64bit

VID= 4.2.2

PID= openpdroid

MID= cm_spyder-userdebug

RID= cm

ANDR= 4.2

BDID= 20130923

DID= cdma_spyder

BID= 20130719

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 system/app/Mms.apk

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 * ");
ui_print("
* * Auto-Patcher * * ");
ui_print("
* * ");
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("ext3", "EMMC", "/dev/block/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, 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/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");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/init.d");
unmount("/system");
ui_print(" .");
ui_print(" .");
ui_print(" done!");

create restore.zip

decompile system files

... decompile framework.jar ...

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

... decompile core.jar ...

... decompile services.jar ...

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

... decompile Mms.apk ...

copy patch openpdroid/4.2

... copying system/media/PDroid.jpeg ...

... overwriting system/media/PDroid.jpeg from openpdroid ...

SOMETHING WENT WRONG!! Could not find file-- using common.

patches/openpdroid/common/system/media/PDroid.jpeg' ->./system/media/PDroid.jpeg'

... overwriting ContentResolver.smali ...

jar patch openpdroid/4.2

... apply framework.patch ...
Matching the created file: ContextImpl$45
There are 6 Context match; Using: patches/openpdroid/4.2/cm/20130208

We did not find a working patch for ...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_14_Instrumentation$1.patch for patches/openpdroid/4.2/cm/20130719/framework_15_Instrumentation$1.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_14_Instrumentation$1.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_14_Instrumentation$1.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_14_Instrumentation$1.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_18_Instrumentation.patch for patches/openpdroid/4.2/cm/20130719/framework_19_Instrumentation.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_19_ContentResolver.patch for patches/openpdroid/4.2/cm/20130719/framework_21_ContentResolver.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_20_Camera$EventHandler.patch for patches/openpdroid/4.2/cm/20130719/framework_25_Camera$EventHandler.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_21_Camera.patch for patches/openpdroid/4.2/cm/20130719/framework_26_Camera.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_22_AudioRecord.patch for patches/openpdroid/4.2/cm/20130719/framework_27_AudioRecord.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_22_AudioRecord.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_24_MediaRecorder.patch for patches/openpdroid/4.2/cm/20130719/framework_29_MediaRecorder.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_24_MediaRecorder.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_24_MediaRecorder.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch for patches/openpdroid/4.2/cm/20130719/framework_34_SystemProperties.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_49_Settings$Secure.patch for patches/openpdroid/4.2/cm/20130719/framework_55_Settings$Secure.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_51_MicrophoneInputStream.patch for patches/openpdroid/4.2/cm/20130719/framework_56_MicrophoneInputStream.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_52_PhoneStateListener$1.patch for patches/openpdroid/4.2/cm/20130719/framework_57_PhoneStateListener$1.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_52_PhoneStateListener$1.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_54_ServiceState.patch for patches/openpdroid/4.2/cm/20130719/framework_59_ServiceState.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_0_ContextImpl$10.patch for patches/openpdroid/4.2/cm/20130208/framework_0_ContextImpl$10.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_10_ContextImpl$44.patch for patches/openpdroid/4.2/cm/20130208/framework_10_ContextImpl$44.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_10_ContextImpl$44.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_12_ContextImpl.patch for patches/openpdroid/4.2/cm/20130208/framework_12_ContextImpl.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_1_ContextImpl$22.patch for patches/openpdroid/4.2/cm/20130208/framework_1_ContextImpl$22.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_2_ContextImpl$31.patch for patches/openpdroid/4.2/cm/20130208/framework_2_ContextImpl$31.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_3_ContextImpl$37.patch for patches/openpdroid/4.2/cm/20130208/framework_3_ContextImpl$37.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_4_ContextImpl$39.patch for patches/openpdroid/4.2/cm/20130208/framework_4_ContextImpl$39.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_5_ContextImpl$3.patch for patches/openpdroid/4.2/cm/20130208/framework_5_ContextImpl$3.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_6_ContextImpl$40.patch for patches/openpdroid/4.2/cm/20130208/framework_6_ContextImpl$40.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_7_ContextImpl$41.patch for patches/openpdroid/4.2/cm/20130208/framework_7_ContextImpl$41.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_8_ContextImpl$42.patch for patches/openpdroid/4.2/cm/20130208/framework_8_ContextImpl$42.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_9_ContextImpl$43.patch for patches/openpdroid/4.2/cm/20130208/framework_9_ContextImpl$43.patch!!
FAILED_FILE is framework_00_preloaded.patch
MATCHED_FILE is preloaded.patch
MATCH_PATTERN IS preloaded.
Provisional is

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

!!! error: preloaded.patch in framework.jar cannot be remedied

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

If your deodexed rom is not on the supported list and you want it added:

- Upload your log and a link to the rom's source code (mandatory)

 and be patient, please!
@mateor
Copy link
Owner

mateor commented Nov 6, 2013

Weird error. I will take a look for you.

@mateor
Copy link
Owner

mateor commented Nov 6, 2013

This ROM patches perfectly for me. There are two things that jump
immediately to mind. I will address the easier fix first.

There are a couple partition formats that don't seem to play nice with
some of our program. If you have the auto-patcher on a NTFS or networked
drive, I recomend changing to a fat32 or an ext3/4 parition.

But what actually looks like here is that you are using the built-in
patch binary that comes with cygwin. This is a problem, because this
summer the cgywin maintainer updated the patch utility to one that is
incompatible with our patches since they were created on a Linux box.

Our solution was to bundle in a patch binary that does work...I am
afraid that for some reason you are not using the bundled utility. We do
sometimes see corruption issues with ApG. The first thing to test is
easy. Would you erase the entire auto-patcher directory and reinstall?
Run ./batch.sh and then patch again. This fixes things way more often
than you would think.

Please upload your log again if it fails, I added a little more
debugging info related to your problem as well.

@AZTobor
Copy link
Author

AZTobor commented Nov 13, 2013

First of all, thanks for the help.

I am running the auto-patcher on a NTFS drive, but don't really have an option for changing it.

Here is what I've tried:

  1. Removed the Patch utility from my installation of Cygwin using the Cygwin installer.
  2. Deleted the auto-patcher directory.
  3. Downloaded the latest version of auto-patcher from Github using the "Download zip" function.
  4. Extracted the archive using 7-zip.
  5. Ran the ./batch.sh script.
  6. Ran auto-patcher and got same error. Command output and log follow.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Bob@Desktop /cygdrive/r/bob/androidstuff/rom/apm
$ ./auto_patcher ../CMUpdates/cm-10.1.3-spyder.zip openpdroid

The Auto-Patcher v3.5.2

verify tools

verify ROM

unzip patch tools

unzip patch patches

inflated: system/build.prop

probe rom type

... result of ROM check: version= 4.2.2 ...
... Using results of ROM check ...

unzip rom

inflated: system/app/Mms.apk
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
inflated: system/framework/telephony-common.jar

create updater script

inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
... using Clockworkmod installer ...

create restore.zip

decompile system files

... decompile framework.jar ...
... extract preloaded-classes ...
... decompile core.jar ...
... decompile services.jar ...
... decompile telephony-common.jar ...
... decompile Mms.apk ...

copy patch openpdroid/4.2

... copying system/media/PDroid.jpeg ...
... overwriting system/media/PDroid.jpeg from openpdroid ...
... overwriting ContentResolver.smali ...

jar patch openpdroid/4.2

... apply framework.patch ...

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: preloaded.patch in framework.jar cannot be remedied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

usage:     ./auto_patcher <ROM> <MODS>
example:   ./auto_patcher CM10.zip openpdroid

Use ./auto_patcher -h for the help menu

If your deodexed rom is not on the supported list and you want it added:
- Upload your log and a link to the rom's source code (mandatory)
and be patient, please!

Bob@Desktop /cygdrive/r/bob/androidstuff/rom/apm

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
LOG FILE
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ROOT= /cygdrive/r/bob/androidstuff/rom/apm
TOOL= /cygdrive/r/bob/androidstuff/rom/apm/patch_tools.tgz
ROM= /cygdrive/r/bob/androidstuff/rom/CMUpdates/cm-10.1.3-spyder.zip
ROMX= R:\bob\ANDROI1\rom\CMUPDA1\CM-101~2.ZIP

verify tools

/usr/bin/tar
/cygdrive/c/Program Files/Java/jdk1.7.0_45/bin/jar
/cygdrive/c/Windows/system32/java
/usr/bin/cpio

verify ROM

running ./auto_patcher ../CMUpdates/cm-10.1.3-spyder.zip openpdroid

PATH= /cygdrive/r/bob/androidstuff/rom/apm/tmp20131112180732:/usr/local/bin:/usr/bin:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/UltraEdit:/cygdrive/c/Program Files (x86)/Calibre2:/cygdrive/c/Program Files/Java/jdk1.7.0_45/bin

unzip patch tools

unzip patch patches

probe rom type

GNU Build Query

VER= v3.5.2

OS= cygwin 64bit

VID= 4.2.2

PID= openpdroid

MID= cm_spyder-userdebug

RID= cm

ANDR= 4.2

BDID= 20130923

DID= cdma_spyder

BID= 20130719

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 system/app/Mms.apk

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 * ");
ui_print("
* * Auto-Patcher * * ");
ui_print("
* * ");
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("ext3", "EMMC", "/dev/block/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, 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/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");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/init.d");
unmount("/system");
ui_print(" .");
ui_print(" .");
ui_print(" done!");

create restore.zip

decompile system files

... decompile framework.jar ...

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

... decompile core.jar ...

... decompile services.jar ...

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

... decompile Mms.apk ...

copy patch openpdroid/4.2

... copying system/media/PDroid.jpeg ...

... overwriting system/media/PDroid.jpeg from openpdroid ...

SOMETHING WENT WRONG!! Could not find file-- using common.

patches/openpdroid/common/system/media/PDroid.jpeg' ->./system/media/PDroid.jpeg'

... overwriting ContentResolver.smali ...

jar patch openpdroid/4.2

... apply framework.patch ...
Matching the created file: ContextImpl$45
There are 6 Context match; Using: patches/openpdroid/4.2/cm/20130208

We did not find a working patch for ...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_14_Instrumentation$1.patch for patches/openpdroid/4.2/cm/20130719/framework_15_Instrumentation$1.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_14_Instrumentation$1.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_14_Instrumentation$1.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_14_Instrumentation$1.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_18_Instrumentation.patch for patches/openpdroid/4.2/cm/20130719/framework_19_Instrumentation.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_19_ContentResolver.patch for patches/openpdroid/4.2/cm/20130719/framework_21_ContentResolver.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_20_Camera$EventHandler.patch for patches/openpdroid/4.2/cm/20130719/framework_25_Camera$EventHandler.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_21_Camera.patch for patches/openpdroid/4.2/cm/20130719/framework_26_Camera.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_22_AudioRecord.patch for patches/openpdroid/4.2/cm/20130719/framework_27_AudioRecord.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_22_AudioRecord.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_24_MediaRecorder.patch for patches/openpdroid/4.2/cm/20130719/framework_29_MediaRecorder.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_24_MediaRecorder.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_24_MediaRecorder.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch for patches/openpdroid/4.2/cm/20130719/framework_34_SystemProperties.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_28_SystemProperties.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_49_Settings$Secure.patch for patches/openpdroid/4.2/cm/20130719/framework_55_Settings$Secure.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_51_MicrophoneInputStream.patch for patches/openpdroid/4.2/cm/20130719/framework_56_MicrophoneInputStream.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_52_PhoneStateListener$1.patch for patches/openpdroid/4.2/cm/20130719/framework_57_PhoneStateListener$1.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_52_PhoneStateListener$1.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_54_ServiceState.patch for patches/openpdroid/4.2/cm/20130719/framework_59_ServiceState.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_0_ContextImpl$10.patch for patches/openpdroid/4.2/cm/20130208/framework_0_ContextImpl$10.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_10_ContextImpl$44.patch for patches/openpdroid/4.2/cm/20130208/framework_10_ContextImpl$44.patch!!
We did not find a working patch for patches/openpdroid/4.2/.aokp-root/20130906/framework_10_ContextImpl$44.patch...looking for other solutions!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_12_ContextImpl.patch for patches/openpdroid/4.2/cm/20130208/framework_12_ContextImpl.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_1_ContextImpl$22.patch for patches/openpdroid/4.2/cm/20130208/framework_1_ContextImpl$22.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_2_ContextImpl$31.patch for patches/openpdroid/4.2/cm/20130208/framework_2_ContextImpl$31.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_3_ContextImpl$37.patch for patches/openpdroid/4.2/cm/20130208/framework_3_ContextImpl$37.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_4_ContextImpl$39.patch for patches/openpdroid/4.2/cm/20130208/framework_4_ContextImpl$39.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_5_ContextImpl$3.patch for patches/openpdroid/4.2/cm/20130208/framework_5_ContextImpl$3.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_6_ContextImpl$40.patch for patches/openpdroid/4.2/cm/20130208/framework_6_ContextImpl$40.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_7_ContextImpl$41.patch for patches/openpdroid/4.2/cm/20130208/framework_7_ContextImpl$41.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_8_ContextImpl$42.patch for patches/openpdroid/4.2/cm/20130208/framework_8_ContextImpl$42.patch!!
Succesful match found! Swapping patches/openpdroid/4.2/.aokp-root/20130906/framework_9_ContextImpl$43.patch for patches/openpdroid/4.2/cm/20130208/framework_9_ContextImpl$43.patch!!

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

!!! error: preloaded.patch in framework.jar cannot be remedied

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

If your deodexed rom is not on the supported list and you want it added:

- Upload your log and a link to the rom's source code (mandatory)

 and be patient, please!

@mateor
Copy link
Owner

mateor commented Nov 13, 2013

Okay. I will look more closely at your log later. But as it stands, NTFS
partitions are not supported. However! I do want to fix that, I just need
to find out which construction is failing. I am willing to work on it, but
the progress will be limited to your ability/willingness to run the
experiments.

Hopefully it will be not too bad. I already got the majority of the
problems solved. I think only one function remains to be debugged and this
issue may be solved.

References #188

@AZTobor
Copy link
Author

AZTobor commented Nov 13, 2013

Thanks. I'm happy to run any experiment consistent with my abilities. FWIW, I have been able to update previous versions of CM using previous versions of auto-patcher on the same computer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants