-
Notifications
You must be signed in to change notification settings - Fork 42
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
Comments
Weird error. I will take a look for you. |
This ROM patches perfectly for me. There are two things that jump There are a couple partition formats that don't seem to play nice with But what actually looks like here is that you are using the built-in Our solution was to bundle in a patch binary that does work...I am Please upload your log again if it fails, I added a little more |
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:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The Auto-Patcher v3.5.2 verify toolsverify ROMunzip patch toolsunzip patch patchesinflated: system/build.prop probe rom type... result of ROM check: version= 4.2.2 ... unzip rominflated: system/app/Mms.apk create updater scriptinflated: META-INF/com/google/android/update-binary create restore.zipdecompile system files... decompile framework.jar ... copy patch openpdroid/4.2... copying system/media/PDroid.jpeg ... jar patch openpdroid/4.2... apply framework.patch ... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Use ./auto_patcher -h for the help menu If your deodexed rom is not on the supported list and you want it added: Bob@Desktop /cygdrive/r/bob/androidstuff/rom/apm ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ROOT= /cygdrive/r/bob/androidstuff/rom/apm verify tools/usr/bin/tar verify ROMrunning ./auto_patcher ../CMUpdates/cm-10.1.3-spyder.zip openpdroidPATH= /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 toolsunzip patch patchesprobe rom typeGNU Build QueryVER= v3.5.2OS= cygwin 64bitVID= 4.2.2PID= openpdroidMID= cm_spyder-userdebugRID= cmANDR= 4.2BDID= 20130923DID= cdma_spyderBID= 20130719DELETE FILES=COPY FILES= system/media/PDroid.jpegJAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar system/framework/telephony-common.jar system/app/Mms.apkAPK FILES=IMG FILES=TXT FILES=unzip romcreate updater script... using Clockworkmod installer ... generated updater-scriptui_print(""); create restore.zipdecompile 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 ... SOMETHING WENT WRONG!! Could not find file-- using common.
... overwriting ContentResolver.smali ... jar patch openpdroid/4.2... apply framework.patch ... We did not find a working patch for ...looking for other solutions! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! error: preloaded.patch in framework.jar cannot be remedied !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! If your deodexed rom is not on the supported list and you want it added:
|
Okay. I will look more closely at your log later. But as it stands, NTFS Hopefully it will be not too bad. I already got the majority of the References #188 |
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. |
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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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\ANDROI
1\rom\apm\CM-1012.ZIPverify 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:
The text was updated successfully, but these errors were encountered: