mateor / auto-patcher

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

Issue: Ovation CM 10.2.1 Tablet UI error #287

Closed mc221 closed 10 years ago

mc221 commented 10 years ago

ROOT= /cygdrive/c/Users/Cranmer/Downloads/ApGPackages/ap TOOL= /cygdrive/c/Users/Cranmer/Downloads/ApGPackages/ap/patch_tools.tgz ROM= /cygdrive/c/Users/Cranmer/Downloads/cm-10.2.1-ovation.zip ROMX= C:\Users\Cranmer\DOWNLO~1\CM-102~1.ZIP

checking for updates

Updater: Auto-Patcher is already up to date

verify tools

/cygdrive/c/Users/Cranmer/Downloads/ApGPackages/cygwin/bin/tar /cygdrive/c/Users/Cranmer/Downloads/ApGPackages/Java/bin/jar /cygdrive/c/Users/Cranmer/Downloads/ApGPackages/Java/bin/java /cygdrive/c/Users/Cranmer/Downloads/ApGPackages/cygwin/bin/cpio

verify ROM

running ./auto_patcher /cygdrive/c/Users/Cranmer/Downloads/cm-10.2.1-ovation.zip tabletUI cm

PATH= /cygdrive/c/Users/Cranmer/Downloads/ApGPackages/ap/tmp20140202074508:/cygdrive/c/Users/Cranmer/Downloads/ApGPackages/Java/bin:/cygdrive/c/Users/Cranmer/Downloads/ApGPackages/cygwin/bin:/cygdrive/c/Users/Cranmer/Downloads/ApGPackages/cygwin/usr/sbin

unzip patch tools

unzip patch patches

probe rom type

GNU Build Query

VER= v3.8.27

OS= cygwin 32bit

VID= 4.3.1

PID= tabletUI

MID= cm_ovation-userdebug

RID= cm

ANDR= 4.3

BDID= 20140131

DID= ovation

BID= 20130815

Current HEAD: 3f0683d33543e5b8edff548df3ff6e49f3fef3c0 update reservoir for omnirom

unzip rom

DELETE FILES=

COPY FILES=

JAR FILES= system/framework/android.policy.jar system/framework/services.jar

APK FILES= system/framework/framework-res.apk system/app/SystemUI.apk

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"); 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/omap/omap_hsmmc.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_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/firmware"); set_perm(0, 2000, 0755, "/system/vendor/lib"); 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"); unmount("/system"); ui_print(" ."); ui_print(" ."); ui_print(" done!");

create restore.zip

decompile system files

... decompile android.policy.jar ...

... decompile services.jar ... inflated: system/framework/framework-res.apk

... installing framework files ...

... decompile framework-res.apk ... I: Loading resource table... I: Loaded. I: Decoding AndroidManifest.xml with resources... I: Regular manifest package... I: Decoding file-resources... I: Decoding values / XMLs... I: Done. I: Copying assets and libs...

... decompile SystemUI.apk ... I: Baksmaling... I: Loading resource table... I: Loaded. I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: C:\Users\Cranmer\apktool\framework\1.apk I: Loaded. I: Regular manifest package... I: Decoding file-resources... I: Decoding values / XMLs... I: Done. I: Copying assets and libs...

jar patch tabletUI/4.3

... apply android.policy.patch ... ...applying patches/tabletUI/4.3/cm/20130815/android.policy_0_PhoneWindowManager.patch ... GARBAGE= tmp/system/framework/android.policy.jar.out/smali/com/android/internal/policy/impl/PhoneWindowManager.smali.orig GARBAGE=

... apply services.patch ... ...applying patches/tabletUI/4.3/cm/20130815/services_0_WindowManagerService.patch ... GARBAGE= GARBAGE=

apk patch tabletUI/4.3

Succesful match found! Swapping patches/tabletUI/4.3/aosp/20130701/framework-res.apk_0_bools.patch for framework-res.apk_0_bools.patch!! Reversed (or previously applied) patch detected! Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file res/values/bools.xml.rej

... apply framework-res.apk.patch ... ...applying patches/tabletUI/4.3/cm/20130815/framework-res.apk_1_integers.patch ... ...applying patches/tabletUI/4.3/cm/20130815/framework-res.apk_2_dimens.patch ... ...applying patches/tabletUI/4.3/cm/20130815/framework-res.apk_3_dimens.patch ... ...applying patches/tabletUI/4.3/aosp/20130701/framework-res.apk_0_bools.patch ... Reversed (or previously applied) patch detected! Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file res/values/bools.xml.rej Reversed (or previously applied) patch detected! Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file res/values/bools.xml.rej GARBAGE= GARBAGE= tmp/system/framework/framework-res.apk.out/res/values/bools.xml.rej 2 out of 2 hunks FAILED -- saving rejects to file smali/com/android/systemui/statusbar/tablet/TabletStatusBar.smali.rej We did not find a working patch for SystemUI.apk_1_TabletStatusBar.patch...looking for other solutions! 1 out of 1 hunk FAILED -- saving rejects to file 'smali/com/android/systemui/statusbar/policy/CircleBattery$SettingsObserver.smali.rej' We did not find a working patch for SystemUI.apk_6_CircleBattery$SettingsObserver.patch...looking for other solutions! 16 out of 25 hunks FAILED -- saving rejects to file smali/com/android/systemui/statusbar/policy/CircleBattery.smali.rej We did not find a working patch for SystemUI.apk_7_CircleBattery.patch...looking for other solutions!

... apply SystemUI.apk.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_0_NavbarEditor.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_10_DockBatteryController.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_11_status_bar_search_panel.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_12_dimens.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_13_dimens.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_14_styles.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_1_TabletStatusBar.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_2_BatteryController$BatteryStateChangeCallback.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_3_BatteryController$SettingsObserver.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_4_BatteryController.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_5_CircleBattery$BatteryReceiver.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_6_CircleBattery$SettingsObserver.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_7_CircleBattery.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_8_CircleDockBattery.patch ... ...applying patches/tabletUI/4.3/cm/20130815/SystemUI.apk_9_DockBatteryController$DockBatteryStateChangeCallback.patch ... 2 out of 2 hunks FAILED -- saving rejects to file smali/com/android/systemui/statusbar/tablet/TabletStatusBar.smali.rej 1 out of 1 hunk FAILED -- saving rejects to file 'smali/com/android/systemui/statusbar/policy/CircleBattery$SettingsObserver.smali.rej' 16 out of 25 hunks FAILED -- saving rejects to file smali/com/android/systemui/statusbar/policy/CircleBattery.smali.rej 2 out of 2 hunks FAILED -- saving rejects to file smali/com/android/systemui/statusbar/tablet/TabletStatusBar.smali.rej 1 out of 1 hunk FAILED -- saving rejects to file 'smali/com/android/systemui/statusbar/policy/CircleBattery$SettingsObserver.smali.rej' 16 out of 25 hunks FAILED -- saving rejects to file smali/com/android/systemui/statusbar/policy/CircleBattery.smali.rej

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

!!! error: failed patching SystemUI.apk!!!

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

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!

ROM Download Link: http://download.cyanogenmod.org/get/jenkins/57376/cm-10.2.1-ovation.zip

mateor commented 10 years ago

Sorry, but tabletUI support has been ended.

I wanted to end support totally and then it would report that it was not available. But some people are still using it on older builds, and I didnt want to break it for them. I have been meaning to add a date filter to output a helpful message, but have not had the time. This is "wontfix" sorry.