mateor / auto-patcher

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

PSX Purespeed ROM error (KitKat) #213

Closed chickenfactory closed 10 years ago

chickenfactory commented 10 years ago

link to github: https://github.com/PSX-PureSpeed link to ROM: http://www.androidfilehost.com/?a=show&w=files&flid=9615

log below:

verify tools

/usr/bin/patch /usr/bin/tar /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/jar /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java /usr/bin/cpio

verify ROM

running ./auto_patcher psx_mako_2013-11-19.zip openpdroid

PATH= /Users/Micah/Downloads/autopatcher/./tmp20131119223327:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/Volumes/kitkat/psx/out/host/darwin-x86/bin:/Volumes/kitkat/psx/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/bin:/Volumes/kitkat/psx/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin:/Volumes/kitkat/psx/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.7/bin:/Volumes/kitkat/psx/development/emulator/qtools:/Volumes/kitkat/psx/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/bin:/Volumes/kitkat/psx/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin:/Volumes/kitkat/psx/development/scripts:/Volumes/kitkat/psx/prebuilts/devtools/tools:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools

unzip patch tools

unzip patch patches

probe rom type

BSD Build Query used

VER= v3.6.15

OS= darwin12 64bit

VID= 4.4

PID= openpdroid

MID= KRT16S

RID= aosp

ANDR= 4.4

BDID= 20131119

DID= mako

BID= 20131105

Current HEAD: 9728fb18bd150c9acd9efd4f1d2b6dabed89ccf6 Add AOKP jb-mr2

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"); uiprint(" ***"); ui_print(""); ui_print(" No ART support!"); ui_print(" Only use the davlik runtime with OpenPDroid!"); uiprint(" *"); 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"); 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 ...

... decompile Mms.apk ... Can't find the file system/app/Mms.apk

copy patch openpdroid/4.4

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

... overwriting system/media/PDroid.jpeg from openpdroid ... patches/openpdroid/4.4/aosp/20131105/system/media/PDroid.jpeg -> ./system/media/PDroid.jpeg

jar patch openpdroid/4.4

... apply framework.patch ... Matching the created file: ContextImpl$45 There are 1 Context match; Using: patches/openpdroid/4.4/aosp/20131105

2 out of 9 hunks FAILED -- saving rejects to file 'smali/android/provider/Settings$Secure.smali.rej' We did not find a working patch for patches/openpdroid/4.4/cm/20131109/framework_83_Settings$Secure.patch...looking for other solutions! Succesful match found! Swapping patches/openpdroid/4.4/.aosp-omni/20131115/framework_13_ContextImpl.patch for patches/openpdroid/4.4/aosp/20131105/framework_22_ContextImpl.patch!!

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

!!! error: Settings$Secure.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 commented 10 years ago

I used this as a chance to work on my auto-mating scripts a little- you can go ahead and patch now.