mateor / auto-patcher

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

"This ROM needs updated patches!" with KatKiss 4.2.2 build 226, applying openpdroid #258

Closed glibdud closed 10 years ago

glibdud commented 10 years ago

(Shamelessly using someone else's issue from version 4.3 as a template, since I've not done this before.)

Device is an Asus Transformer TF101

Source: https://github.com/timduru/platform-frameworks-base/tree/katkiss

ROM download link: http://downloads.timduru.org/android/tf101/K.A.T/KatKiss/stable/KatKiss-4.2.2_226.zip

Log:

ROOT= /home/x/autopatcher/auto-patcher-master TOOL= /home/x/autopatcher/auto-patcher-master/patch_tools.tgz ROM= /mnt/hdd/Downloads/KatKiss-4.2.2_226.zip ROMX= /mnt/hdd/Downloads/KatKiss-4.2.2_226.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 /home/x/Downloads/KatKiss-4.2.2_226.zip openpdroid

PATH= /home/x/autopatcher/auto-patcher-master/tmp20131228161956:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

unzip patch tools

unzip patch patches

probe rom type

GNU Build Query

VER= v3.7.5

OS= linux-gnu 64bit

VID= 4.2.2

PID= openpdroid

MID= JDQ39

RID= aosp

ANDR= 4.2

BDID= 20130804

DID= tf101

BID= 20130213

Current HEAD: afc480c18b35277210918fad519d776d4c591d37 Add a failure for when the patch utility cannot find the file to patch

unzip rom

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=

IMG FILES=

TXT FILES=

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/mmcblk0p1", "/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(0, 2000, 0755, "/system/vendor/firmware"); 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_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(0, 0, 06755, "/system/xbin/tcpdump"); 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 ...

copy patch openpdroid/4.2

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

... overwriting system/media/PDroid.jpeg from openpdroid ... 'patches/openpdroid/4.2/aosp/20130213/system/media/PDroid.jpeg' -> './system/media/PDroid.jpeg'

jar patch openpdroid/4.2

... apply framework.patch ... Matching the created file: ContextImpl$42 for openpdroid/4.2/aosp

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

!!! error: This rom needs updated patches! Please open an issue at 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!
mateor commented 10 years ago

I will try. It is sometimes impossible on old builds though...it just depends if they have made changes in the source since they put out the rom. But usually, if you are using the last release then you have a fair chance.

I will give it a shot. Your report was just how I needed it, thanks.

mateor commented 10 years ago

Okay, sorry but I am back with bad news. Most of the 4.2 Katkiss build is based on something put out by an org called TeamEos. Unfortunately for us, and posterity, TeamEos at one point decided to host their source code on their own git server, instead of just using github. At some point in the last six months, TeamEos has quit existing, and as such has stopped hosting their git server.

What that means is that the source code for TeamEos, and thereby the source code for Katkiss 4.2, is no longer publicly available. Without source code, I cannot support the 4.2 rom.

I can (and I believe I already do) support the 4.4 rom, and my wife is running it on her Transformer 101 right now. I thought it was pretty good, you maybe could try that. Sorry for the bad news.

glibdud commented 10 years ago

Bummer. Thanks for the effort!

I'm trying out OpenPdroid on CM10 right now... really like the framework, but the OS doesn't feel quite as snappy as KatKiss. I was under the impression that KatKiss 4.4 was still pretty early in development, but maybe I'll give it a shot. KitKat certainly seems like it would be good for the TF101.

glibdud commented 10 years ago

You know... I went with 4.2.2 because I was under the impression it was faster/more stable than 4.3, but looking again... I'm not sure where I got that from. I guess I'll just try 4.3 while he works on 4.4. Thanks again!

mateor commented 10 years ago

On 12/29/2013 09:44 AM, glibdud wrote:

You know... I went with 4.2.2 because I was under the impression it was faster/more stable than 4.3, but looking again... I'm not sure where I got that from. I guess I'll just try 4.3 while he works on 4.4. Thanks again!

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

Yeah give it a shot. I thought we were using 4.4 but maybe 4.3. Either way, it is above 4.2 and it is really nice. She is NOT a tech person, and it needed tpo be stable for her to use it. Good luck.