mateor / auto-patcher

smali patcher for Android code injection
MIT License
74 stars 42 forks source link

cm-10.2.0-serranoltexx OpenPDroid can't be patched #235

Closed jensMF closed 10 years ago

jensMF commented 10 years ago

I don't know what the problem is...

The Log:

ROOT= /home/jmf/Backup/Downloads/Samsung Galaxy S4 mini/autopatcherv3 TOOL= /home/jmf/Backup/Downloads/Samsung Galaxy S4 mini/autopatcherv3/patch_tools.tgz ROM= /home/jmf/Backup/Downloads/Samsung Galaxy S4 mini/autopatcherv3/cm-10.2.0-serranoltexx.zip ROMX= /home/jmf/Backup/Downloads/Samsung Galaxy S4 mini/autopatcherv3/cm-10.2.0-serranoltexx.zip

checking for updates

Updater: Auto-Patcher is already up to date

verify tools

/usr/bin/patch /bin/tar /usr/bin/jar /usr/bin/java /bin/cpio

verify ROM

running ./auto_patcher cm-10.2.0-serranoltexx.zip openpdroid

PATH= /home/jmf/Backup/Downloads/Samsung Galaxy S4 mini/autopatcherv3/tmp20131211130110:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

unzip patch tools

unzip patch patches

... result of ROM check: RIL= SamsungQualcommRIL

probe rom type

GNU Build Query

VER= v3.6.54

OS= linux-gnu 64bit

VID= 4.3.1

PID= openpdroid

MID= cm_serranoltexx-userdebug

RID= cm

ANDR= 4.3

BDID= 20131203

DID= serranolte

BID= 20130826

Current HEAD: 9e6d3efd059b15441505d14105598dad296d1b30 update omni again

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("~~~~~~~~~~~~"); uiprint("* "); uiprint(" * The * _"); uiprint(" * * Auto-Patcher * * _"); uiprint(" * * _"); uiprint(" *"); 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/msm_sdcc.1/by-name/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, 0, 0755, "/system/bin/ping"); set_perm(0, 2000, 0750, "/system/bin/run-as"); 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, 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 ... inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...

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

... decompile Mms.apk ...

copy patch openpdroid/4.3

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

... overwriting system/media/PDroid.jpeg from openpdroid ... patches/openpdroid/4.3/cm/20130826/system/media/PDroid.jpeg' ->./system/media/PDroid.jpeg'

jar patch openpdroid/4.3

... apply framework.patch ... Matching the created file: ContextImpl$47

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

!!! error: This rom needs updated patches! Please post log on github.com/mateor/auto-patcher

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

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!

The Rom is here: http://download.cyanogenmod.org/get/jenkins/49882/cm-10.2.0-serranoltexx.zip

mateor commented 10 years ago

Thanks for the report. This happens. I just need to rebuild for that build. It will be up later, I will comment here when it finishes.

jensMF commented 10 years ago

thanks a lot :-) May I ask a question about something other I can't find help with? I patched a cm 11 nightly before and it was successful, but PDroid Manager didn't realize the openpdroid framework after I installed it with CWM... Maybe you have an Idea?

mateor commented 10 years ago

Sorry, no I don't know. I know that process is working, I have lots of people using it daily.

Maybe try again?

Remember, you must flash the rom and the update zip to get the patched framework.

jensMF commented 10 years ago

Ok thanks. I tried it three times... :-(

mateor commented 10 years ago

On 12/11/2013 09:55 AM, jensMF wrote:

thanks a lot :-) May I ask a question about something other I can't find help with? I patch a cm 11 nightly before and it was successful, but PDroid Manager didn't realize the openpdroid framework after I installed it with CWM... Maybe you have an Idea?

— Reply to this email directly or view it on GitHub https://github.com/mateor/auto-patcher/issues/235#issuecomment-30332161.

post a logcat I guess. Maybe post the auto-patcher log.

jensMF commented 10 years ago

auto-patcher log is http://pastebin.com/Czq37SLc

mateor commented 10 years ago

That is certainly strange. I have not seen this before, but it looks like it is failing to pull your build.prop and files from the rom.

Is the rom itself working? And, if you download a different rom, is that rom patching? Do me a favor and download a cm-11.0 rom from cm's download page, maybe a mako rom.

Patch that and post the log, maybe you are having some sort of corruption in the rom you downloaded or maybe even in the auto-patcher directory itself. But what you are posting worked for me here...

jensMF commented 10 years ago

sorry I couldn't test it before now.

I cloned auto-patcher in a new folder and patched the cm-11-20131210-NIGHTLY-serranoltexx with that "new clone" and I patched the cm-11-20131205-SNAPSHOT-M1-mako with the "new clone" and with the "old clone"

Here are the logs: mako "old clone": http://pastebin.com/TdYudZ4j mako "new clone": http://pastebin.com/uuvjCw9W serranoltexx "new clone": http://pastebin.com/W4Qtn8NQ

I couldn't test the new serranoltexx patch.

mateor commented 10 years ago

I am not sure (holes in my memory) about what the various "clone" states are, but all those patches look successful. I hope that answers your questions, I guess.