Cannot remove patch from WebOS 3.0.5 - TouchPad General

I did an OTA upgrade to WebOS 3.0.5 without removing any of my Preware patches. There are a couple that I now cannot upgrade as the old patches cannot be removed. Any ideas? The IPKG log says:
begin
Nothing Interesting.
failed
-1: Unable to run command: IPKG_OFFLINE_ROOT=/media/cryptofs/apps /bin/sh /media/cryptofs/apps/usr/lib/ipkg/info/org.webosinternals.patches.system-muffle-system-logging.prerm 2>&1
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.configurator.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.eas.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.imaccountvalidator.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.imap.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.imlibpurple.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.imyahoo.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.location.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.mmsservice.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.pop.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.skype.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.skypevalidator.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.smsservice.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.smtp.service.rej

dwl99 said:
I did an OTA upgrade to WebOS 3.0.5 without removing any of my Preware patches. There are a couple that I now cannot upgrade as the old patches cannot be removed. Any ideas? The IPKG log says:
begin
Nothing Interesting.
failed
-1: Unable to run command: IPKG_OFFLINE_ROOT=/media/cryptofs/apps /bin/sh /media/cryptofs/apps/usr/lib/ipkg/info/org.webosinternals.patches.system-muffle-system-logging.prerm 2>&1
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.configurator.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.eas.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.imaccountvalidator.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.imap.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.imlibpurple.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.imyahoo.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.location.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.mmsservice.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.pop.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.skype.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.skypevalidator.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.smsservice.service.rej
Unreversed patch detected! Ignore -R? [n]
Apply anyway? [n]
1 out of 1 hunk ignored -- saving rejects to file usr/share/dbus-1/system-services/com.palm.smtp.service.rej
Click to expand...
Click to collapse
This worked for me. In Preware pull down the upper left menu. Choose save packages (or something like that). Run EPR (emergency patch repair).Go back to the pull down and choose update. Restart when prompted throughout the procedure.
Hope this helps.

Thanks a lot, that fixed it.

Preware > search > Emergency Patch Recovery
I had to use this after 3.0.4 and 3.0.5 to cleanup those ones that wouldn't go. I use it for every OTA. I wonder how many more are coming? It's good to know the folks at HP are still toiling on our behalf for this zombie tablet.

Related

[DEPRECIATED] Apktool 1.4.4 [ v3.1 07/17/12 ] [ Decompile Sense 4.0 APKs / HTC APKs ]

XDA user iBotPeaches now has a working Apktool 1.4.9. I recommend using this over the Apktool 1.4.4 I posted, as it is no longer necessary to modify XML files to recompile framework-res.apk and other APKs. I may post updated smali/baksmali binaries if anyone is interested, as I still build those frequently from the latest source.
[UTIL][July 28 2012] Apktool v1.4.9 - a tool for reverse engineering apk files
Apktool 1.4.4 with Smali 1.3.4
Version 3.1 is now posted!
Note: 3.1 is a maintenance release containing working aapt binaries. You only need to re-download it if you haven't installed the latest Android SDK Platform-tools rev. 12.
I have been able to decompile / recompile SystemUI.apk, framework-res.apk (with patch), Browser.apk, Swype.apk, com.htc.resources.apk (with patch) without problems.
Changelog:
Code:
07/17/12 - Version 3.1
Added aapt binaries from Android SDK Platform-tools rev. 12 (Both Linux and Windows)
Added README file
Removed patches from the archive (download attached patches / fixed XML as needed)
07/15/12 - Version 3
Compiled apktool 1.4.4 with newest smali 1.3.4-dev (as of 07/15/12)
Attached apktool 1.4.4 and smali 1.3.4-dev build script for Linux (use this to build apktool and smali from source)
Attached all fixed XML files for framework-res.apk (mainly for Windows users, Linux users can use patch)
Attached patch for com.htc.resources.apk
Attached all fixed XML files for com.htc.resources.apk (mainly for Windows users, Linux users can use patch)
07/09/12
Fixed the framework-res_htc.patch file.
Patch file is now posted for those who have already downloaded v2.
Updated archive to include fixed framework-res_htc.patch file.
07/08/12 - Version 2
Modified the build process for apktool so it doesn't compile with outdated brut.apktool.smali and builds exclusively with Smali 1.3.4.
Recompiled apktool 1.4.4
Added aapt binary for Linux
Added apktool.bat file for Windows users
07/07/12 - Initial version
Compiled apktool 1.4.4, compiled Smali 1.3.4, merged into apktool.jar.
Description:
I have compiled the newest apktool 1.4.4 (merged with smali 1.3.4).
In the attached archive are apktool.jar, aapt, and apktool scripts for Linux and Windows.
Also attached are XML patches for some HTC framework files so they will compile with apktool.
I wanted to be able to decompile framework-res.apk (Sense 4.0), and other HTC APKs, with the latest apktool.
Previously, the only way to properly get HTC apks and Sense 4.0 framework-res.apk to decompile was having to use an older apktool 1.4.2 (modded by fernando sor). Now that shouldn't be necessary
Notes:
This was compiled and tested on Linux 64-bit, although the .jar file should work with Linux 32-bit and Windows.
The patch files won't work on Windows because they use unified context (only GNU Patch for Linux supports unified context).
Windows users can use the fixed XML files I attached, or make the necessary XML edits yourself.
For instructions on patching framework-res.apk XML files from Windows, refer to this post:
http://forum.xda-developers.com/showthread.php?t=1601511
Download Instructions
Download attachment apktool-1.4.4_v3.1.tar.bz2
Download attachments containing patches or fixed XML
Extract all files to a folder ~/apktools/apktool is what I personally use.
Make sure you have aapt in your path (check your ~/.bashrc file to make sure).aapt Note: The aapt binary (Linux and Windows) is included in the attachment. You can use this aapt, or you can get aapt by installing android-sdk.
Refer to this excellent tutorial for detailed instructions on setting up android-sdk:
http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK
​
Code:
chmod a+x aapt
chmod a+x apktool
chmod a+x apktool.jar
Installing Frameworks and Decompiling
Code:
cd ~/apktools/apktool
Copy over com.htc.resources.apk and framework-res.apk from /system/framework either by extracting a ROM .zip or using these adb commands:
Code:
adb pull /system/framework/com.htc.resources.apk
adb pull /system/framework/framework-res.apk
Then to install frameworks and decompile:
Code:
./apktool if com.htc.resources.apk
./apktool if framework-res.apk
./apktool d framework-res.apk
Ignore any warnings about integers being out of range.
Patching XML files and RecompilingLinux users only: Use the patch files I attached. Instructions are below.
Windows or Linux users : Unzip patched XML file(s) into apktool folder and overwrite all files
​
Code:
patch -p0 -i framework-res_htc.patch
Now you should be able to recompile framework-res using apktool 1.4.4 without any errors:
Code:
./apktool b framework-res
Remember to extract the META-INF and AndroidManifest.xml from the ORIGINAL framework-res.apk to /framework-res/build/apk (signing apk) then build again:
Code:
./apktool b framework-res
Your signed framework-res.apk file will be in /framework-res/dist/.
Pushing Modified APK to Device
There are a few ways of doing this, but I will guide you through the process I use.
Connect your phone to your PC and issue the following command to boot into recovery:
Code:
adb reboot recovery
Once you are in recovery, make sure that /system is mounted.
Now issue these adb/shell commands to delete the existing APK and push the modified APK to your phone:
Code:
adb shell rm /system/framework/framework-res.apk
adb push framework-res.apk /system/framework
adb shell chmod 644 /system/framework/framework-res.apk
Now clear cache and dalvik cache in recovery and reboot system.
If your phone gets stuck in a boot loop or doesn't display the UI properly, then you didn't sign the APK properly.
Credits:
Thank you to fernando sor for providing the original instructions and modded apktool 1.4.2 for decompiling Sense 4.0 framework.
http://forum.xda-developers.com/showthread.php?t=1601511
Thank you to ahecht for posting working aapt from Android SDK Platform-tools rev. 12
Thank you to brut.all for creating apktool
http://code.google.com/p/android-apktool/
Thank you to JesusFreke for creating smali
http://code.google.com/p/smali/
sn0b0ard said:
Attachment back up! I recompiled apktool 1.4.4, compiled smali 1.3.4, and merged it into the apktool.jar file. I have been able to decompile / recompile SystemUI.apk and framework-res.apk without problems. I tried com.htc.resources.apk, and it decompiles without issue, but to recompile it needs XML edits that I don't have time to do at the moment.
I have compiled the newest apktool 1.4.4 (merged with smali 1.3.4) for Linux 64-bit (not tested on 32-bit).
I wanted to be able to decompile framework-res.apk (Sense 4.0), and other HTC APKs, with the latest apktool. Previously, the only way to properly get HTC apks and Sense 4.0 framework-res.apk to decompile was having to use an older apktool 1.4.2 (modded by fernando sor). Now that shouldn't be necessary
Attached is the apktool.jar file, an apktool bash script and a patch file for use in fixing framework-res.apk XML files to compile with apktool.
Download Directions:
Download apktool-1.4.4_smali-1.3.4.tar.bz2
Extract all files to a folder ~/apktools/apktool is what I personally use.
Make sure you have aapt in your path (check your .bashrc file to make sure).
chmod a+x apktool
chmod a+x apktool.jar
Installing Frameworks and Decompiling
cd ~/apktools/apktool
Copy over com.htc.resources.apk and framework-res.apk from /system/framework either by extracting a ROM .zip or using these adb commands:
adb pull /system/framework/com.htc.resources.apk
adb pull /system/framework/framework-res.apk
Then to install frameworks and decompile:
./apktool if com.htc.resources.apk
./apktool if framework-res.apk
./apktool d framework-res.apk
Ignore any warnings about integers being out of range.
Now you need to patch some XML files in /res/values* -- just use the patch file I included.
patch -p0 -i framework-res_htc.patch
Now you should be able to recompile framework-res using apktool 1.4.4 without any errors:
./apktool b framework-res
Remember to extract the META-INF and AndroidManifest.xml to /framework-res/build/apk (signing apk) then build again:
./apktool b framework-res
Your signed framework-res.apk file will be in /framework-res/dist/.
Thank you to fernando sor for providing the original instructions and modded apktool 1.4.2 for decompiling Sense 4.0 framework.
http://forum.xda-developers.com/showthread.php?t=1601511
Thank you to brut.all for creating apktool
http://code.google.com/p/android-apktool/
Thank you to JesusFreke for creating smali
http://code.google.com/p/smali/
Click to expand...
Click to collapse
Now i just gotta learn how to use this, and im in Business. Dieing to get into themeing a bit. THanks for this man.
this is what ive been using
http://forum.xda-developers.com/showthread.php?t=1189971
apkchanger is much easier, no typing of commands or anything
and yes it decompiles sense 4 apks with ease
flex360 said:
this is what ive been using
http://forum.xda-developers.com/showthread.php?t=1189971
apkchanger is much easier, no typing of commands or anything
and yes it decompiles sense 4 apks with ease
Click to expand...
Click to collapse
Yes, there are many scripts out there that automate using apktool. This is the latest version of apktool, which isn't included in most scripts yet. You could probably just use the apktool.jar file from this post and put it into apkchanger if you want. I'm also seeing that most modded apktools that decompile HTC APKs have a modified HeaderItem.java to get past errors when decompiling APKs. The version I posted has the entire Smali 1.3.4 build merged into apktool 1.4.4.
thanks
Can anyone try this to theme the status bar that has quick settings? I get force close
Sent from my EVO using xda app-developers app
Art2Fly said:
Can anyone try this to theme the status bar that has quick settings? I get force close
Sent from my EVO using xda app-developers app
Click to expand...
Click to collapse
Try signing it.
Red.
reverepats said:
Now i just gotta learn how to use this, and im in Business. Dieing to get into themeing a bit. THanks for this man.
Click to expand...
Click to collapse
No problem
This video should help you get started with apktool:
http://www.youtube.com/watch?v=017pMX8otf8
Art2Fly said:
Can anyone try this to theme the status bar that has quick settings? I get force close
Sent from my EVO using xda app-developers app
Click to expand...
Click to collapse
In addition to signing the apk, as stated previously, you could also perform this mod and completely disable signature checking:
http://forum.xda-developers.com/showpost.php?p=27122463&postcount=1
sn0b0ard said:
In addition to signing the apk, as stated previously, you could also perform this mod and completely disable signature checking:
http://forum.xda-developers.com/showpost.php?p=27122463&postcount=1
Click to expand...
Click to collapse
I will definitely be trying this.
Red.
Thanks for this!
Is the following normal though? When I try to apply the patch, I get this error:
Code:
[email protected]:/media/Alpha/Users/Jon/My Docs/Projects/deSensedICS/apktool$ sudo patch -p0 -i framework-res_htc.patch
patching file framework-res/res/values/anims.xml
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values/anims.xml.rej
patching file framework-res/res/values/layouts.xml
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values/layouts.xml.rej
patching file framework-res/res/values/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values/plurals.xml.rej
patching file framework-res/res/values/raws.xml
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values/raws.xml.rej
patching file framework-res/res/values-af/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-af/plurals.xml.rej
patching file framework-res/res/values-am/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-am/plurals.xml.rej
patching file framework-res/res/values-ar/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-ar/plurals.xml.rej
patching file framework-res/res/values-be/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-be/plurals.xml.rej
patching file framework-res/res/values-bg/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-bg/plurals.xml.rej
patching file framework-res/res/values-ca/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-ca/plurals.xml.rej
patching file framework-res/res/values-cs/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-cs/plurals.xml.rej
patching file framework-res/res/values-da/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-da/plurals.xml.rej
patching file framework-res/res/values-de/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-de/plurals.xml.rej
patching file framework-res/res/values-el/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-el/plurals.xml.rej
patching file framework-res/res/values-es/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-es/plurals.xml.rej
patching file framework-res/res/values-es-rUS/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-es-rUS/plurals.xml.rej
patching file framework-res/res/values-et/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-et/plurals.xml.rej
patching file framework-res/res/values-fa/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-fa/plurals.xml.rej
patching file framework-res/res/values-fi/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-fi/plurals.xml.rej
patching file framework-res/res/values-fr/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-fr/plurals.xml.rej
patching file framework-res/res/values-hi/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-hi/plurals.xml.rej
patching file framework-res/res/values-hr/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-hr/plurals.xml.rej
patching file framework-res/res/values-hu/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-hu/plurals.xml.rej
patching file framework-res/res/values-in/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-in/plurals.xml.rej
patching file framework-res/res/values-it/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-it/plurals.xml.rej
patching file framework-res/res/values-iw/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-iw/plurals.xml.rej
patching file framework-res/res/values-ja/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-ja/plurals.xml.rej
patching file framework-res/res/values-ko/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-ko/plurals.xml.rej
patching file framework-res/res/values-lt/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-lt/plurals.xml.rej
patching file framework-res/res/values-lv/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-lv/plurals.xml.rej
patching file framework-res/res/values-ms/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-ms/plurals.xml.rej
patching file framework-res/res/values-nb/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-nb/plurals.xml.rej
patching file framework-res/res/values-nl/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-nl/plurals.xml.rej
patching file framework-res/res/values-pl/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-pl/plurals.xml.rej
patching file framework-res/res/values-pt/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-pt/plurals.xml.rej
patching file framework-res/res/values-pt-rPT/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-pt-rPT/plurals.xml.rej
patching file framework-res/res/values-ro/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-ro/plurals.xml.rej
patching file framework-res/res/values-ru/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-ru/plurals.xml.rej
patching file framework-res/res/values-sk/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-sk/plurals.xml.rej
patching file framework-res/res/values-sl/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-sl/plurals.xml.rej
patching file framework-res/res/values-sr/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-sr/plurals.xml.rej
patching file framework-res/res/values-sv/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-sv/plurals.xml.rej
patching file framework-res/res/values-sw/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-sw/plurals.xml.rej
patching file framework-res/res/values-th/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-th/plurals.xml.rej
patching file framework-res/res/values-tl/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-tl/plurals.xml.rej
patching file framework-res/res/values-tr/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-tr/plurals.xml.rej
patching file framework-res/res/values-uk/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-uk/plurals.xml.rej
patching file framework-res/res/values-vi/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-vi/plurals.xml.rej
patching file framework-res/res/values-zh-rCN/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-zh-rCN/plurals.xml.rej
patching file framework-res/res/values-zh-rTW/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-zh-rTW/plurals.xml.rej
patching file framework-res/res/values-zu/plurals.xml
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file framework-res/res/values-zu/plurals.xml.rej
EDIT: Just did the manual edits and it worked thanks!
thanks for this! but where is the actual builded apk? couldnt find it
EDIT: dont worry found it! its in dist folder
how to do the manual edits cause it keeps failing for me too....?
Sorry everyone, the patch will work, but you need to rename the framework-res folder to framework-res_compile. I will fix this later today and get a new patch out. For the meantime, just rename the folder. Rename it back to framework-res before you compile with apktool.
Definitely works and is extremely useful....Ran out of Thanks hitting your button....
could you please make a patch for windows too?
I'll see what I can do.
Sent from an EVO 4G LTE using Tapatalk 2.
thnx for that, wats the status on it?
FallenSuisydal said:
thnx for that, wats the status on it?
Click to expand...
Click to collapse
The latest Win32 GNU Patch binary doesn't read the patch file I created properly, so I'll try using Winmerge to generate a patch file that, hopefully, will be compatible with Windows. If not, then we are looking at a .bat file to replace the xml files with the right ones. Either way, it should be possible to do this without having to manually replace the XML files. If time permits, I should be able to work on it more this evening, and hopefully get a patch for framework-res.apk for Windows users this evening (US Pacific time).
1.4.8 is out now
Sent from my EVO using xda premium

[Q/A] CM12 for Xperia SP Compile Error

hello . today may i ask you about CM12 Compiling . but i'm have error
Traceback (most recent call last):
File "./build/tools/releasetools/make_recovery_patch", line 53, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/make_recovery_patch", line 49, in main
common.MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img)
File "/home/tethplus/lollipop/build/tools/releasetools/common.py", line 1197, in MakeRecoveryPatch
td_pair = GetTypeAndDevice("/recovery", info_dict)
File "/home/tethplus/lollipop/build/tools/releasetools/common.py", line 1144, in GetTypeAndDevice
return PARTITION_TYPES[fstab[mount_point].fs_type], fstab[mount_point].device
KeyError: '/recovery'
build/core/Makefile:1442: recipe for target '/home/tethplus/lollipop/out/target/product/huashan/obj/PACKAGING/target_files_intermediates/cm_huashan-target_files-9d612ecbfa.zip' failed
make: *** [/home/tethplus/lollipop/out/target/product/huashan/obj/PACKAGING/target_files_intermediates/cm_huashan-target_files-9d612ecbfa.zip] Error 1
Click to expand...
Click to collapse

radxa Rock2 - apply update.zip from recovery - Signature Verification Failed

Hi All
i have radxa Rock2 device - http://radxa.com/Rock2
i try to make update.zip for it.
I use "testkey" certificate from rock2 sdk(ROM is open source) to sign in update.zip but i get error when try to apply my update from recevory
Error message:
E: Footer is wrong
E. Signature Verification Failed
i used this article to create update.zip - http://www.londatiga.net/it/how-to-create-android-update-zip-package
Could you help me to understand why it doesn't work?
my update script has just one line - ui_print and one empty end line
thanks,

Unknown series of error messages after software update on gpad 8.3 vk810

Is anyone familiar with this series of error messages and how how fix
FOTAS_CreateDir_mkdir error : errno : File exists
FOTAS_CreateDir_mkdir error : errno : File exists
FOTAS_CreateDir_mkdir error : errno : File exists
FOTAS_CreateDir_mkdir error : errno : File exists
FOTAS_CreateDir_mkdir error : errno : File exists
FOTAS_CreateDir_mkdir error : errno : File exists
FOTAS_CreateDir_mkdir error : errno : File exists
FOTAS_CreateDir_mkdir error : errno : File exists
FOTAS_Open //system/bin/install-recovery.sh, 2, Permission den
FOTAS_FSync: 0 - -1 -22 errno : invalid argument
FOTAS_FSync: 0 - -1 -22 errno : invalid argument
FOTAS_Open /cache/fota/FSUR_LOG_164.txt, 0, No such file or di
FOTAS_Create /cache/fota//FSUR_LOG_164.txt, 66, No space left o
FOTAS_Close 0
it occurs after attempted software update on rooted gpad 8.3 vk810
Any help would be much appreciated!!!
Me 2
Im also having same problem after tLG-VK810 tried updating now its bootlooping in a screen I havent seen anyone else talk about it keeps trying to Updateing Software then apon finish it just restarts an trys again.

[discussion/help] building miui 8 for oneplus x (patchrom project)

HI OnePlus X users, I know there are some thread about the same..but they are almost dead and the OP of that threads are busy in some other project like AOSP N (7.0),CM 14 ect..so i took an initiative to work on MIUI 8 (6.0.1).and working on it from last few days.
there is a build from a chinese dev shumxin which is out a day before.you can find that thread here
http://forum.xda-developers.com/oneplus-x/general/rom-miui-8-oneplus-x-ported-shumxin-t3479012
So come to the point I started working on MIUI patchrom project and took a oxygenOS 3.1.3 as base so started here
first command for building and results
HTML:
PATCHROM_BRANCH = marshmallow
ANDROID_PLATFORM = 23
PORT_ROOT = /home/faa/patchrom
ANDROID_TOP =
ANDROID_OUT =
PORT_PRODUCT = Unknown
USE_ANDROID_OUT =
ANDROID_BRANCH =
HOST_OS = linux
After that command for patching OxygenOS 3.1.3 framework to work with MIUI 8
HTML:
[email protected] ~/patchrom/onyx $ make firstpatch
/home/faa/patchrom/tools/patch_miui_framework.sh /home/faa/patchrom/android/base-framework /home/faa/patchrom/android `pwd`
<<< create temp directory to store the old, new source and destination smali code with .line removed
<<< compute the difference between /home/faa/patchrom/onyx/temp/old_smali/framework.jar.out and /home/faa/patchrom/onyx/temp/new_smali/framework.jar.out
<<< apply the patch into the /home/faa/patchrom/onyx/framework.jar.out
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/content/pm/PackageParser.smali
Hunk #1 succeeded at 9781 (offset 121 lines).
Hunk #2 succeeded at 9793 (offset 121 lines).
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/content/res/Resources.smali
Hunk #3 succeeded at 4580 (offset 53 lines).
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/app/ResourcesManager.smali
Hunk #1 FAILED at 213.
Hunk #2 succeeded at 1908 (offset 922 lines).
1 out of 2 hunks FAILED -- saving rejects to file /home/faa/patchrom/onyx/temp/reject/framework.jar.out/./smali/android/app/ResourcesManager.smali.rej
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/app/SystemServiceRegistry.smali
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/android/graphics/Bitmap.smali
patching file /home/faa/patchrom/onyx/framework.jar.out/./smali/com/android/internal/os/ZygoteInit.smali
Hunk #1 FAILED at 347.
patch: **** Can't reopen file /home/faa/patchrom/onyx/framework.jar.out/./smali/com/android/internal/os/ZygoteInit.smali : No such file or directory
<<< compute the difference between /home/faa/patchrom/onyx/temp/old_smali/services.jar.out and /home/faa/patchrom/onyx/temp/new_smali/services.jar.out
<<< apply the patch into the /home/faa/patchrom/onyx/services.jar.out
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/wm/WindowManagerService.smali
Hunk #1 FAILED at 708.
1 out of 1 hunk FAILED -- saving rejects to file /home/faa/patchrom/onyx/temp/reject/services.jar.out/./smali/com/android/server/wm/WindowManagerService.smali.rej
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/am/ActivityStack.smali
Hunk #1 FAILED at 6636.
1 out of 1 hunk FAILED -- saving rejects to file /home/faa/patchrom/onyx/temp/reject/services.jar.out/./smali/com/android/server/am/ActivityStack.smali.rej
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/am/ActivityManagerService.smali
Hunk #1 succeeded at 94288 with fuzz 1 (offset 11309 lines).
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/SystemServer.smali
Hunk #1 succeeded at 197 (offset 55 lines).
patching file /home/faa/patchrom/onyx/services.jar.out/./smali/com/android/server/policy/PhoneWindowManager.smali
Hunk #1 succeeded at 484 (offset 21 lines).
<<< compute the difference between /home/faa/patchrom/onyx/temp/old_smali/telephony-common.jar.out and /home/faa/patchrom/onyx/temp/new_smali/telephony-common.jar.out
<<< apply the patch into the /home/faa/patchrom/onyx/telephony-common.jar.out
<<< compute the difference between /home/faa/patchrom/onyx/temp/old_smali/wifi-service.jar.out and /home/faa/patchrom/onyx/temp/new_smali/wifi-service.jar.out
mv: cannot stat '/home/faa/patchrom/onyx/wifi-service.jar.out': No such file or directory
cp: cannot stat '/home/faa/patchrom/onyx/temp/dst_smali_orig/wifi-service.jar.out': No such file or directory
<<< apply the patch into the /home/faa/patchrom/onyx/wifi-service.jar.out
cp: cannot stat '/home/faa/patchrom/onyx/wifi-service.jar.out': No such file or directory
/home/faa/patchrom/tools/patch_miui_framework.sh: line 69: cd: /home/faa/patchrom/onyx/temp/dst_smali_orig/wifi-service.jar.out: No such file or directory
>>> patch miui into target framework is done. Please look at /home/faa/patchrom/onyx/temp/reject to resolve any conflicts!
After that got very few rejects(about 3-5) in temp/reject folder which I fixed(may be not) by following this thread
http://forum.xda-developers.com/chef-central/android/guide-patchrom-rejects-fixing-tutorial-t3203287
AFTER APPLYING PATCH GAVE A COMMAND TO MAKE FLASHABLE ZIP and MIpatchtool started to copy resources in Base rom i.e OxygenOS.zip
HTML:
make fullota
and got this
HTML:
[email protected] ~/patchrom/onyx $ make fullota
unzip >/dev/null -n oxygenOS.zip -d oxygenOS
unzip >/dev/null oxygenOS.zip -d out/ZIP
To add prebuilt files
cp: cannot stat 'oxygenOS/system/bin/app_process64': No such file or directory
/home/faa/patchrom/build/prebuilt.mk:6: recipe for target 'add-prebuilt-files' failed
make: [add-prebuilt-files] Error 1 (ignored)
mv: cannot stat 'out/ZIP/system/bin/app_process64_miui': No such file or directory
/home/faa/patchrom/build/prebuilt.mk:6: recipe for target 'add-prebuilt-files' failed
make: [add-prebuilt-files] Error 1 (ignored)
To add preintall files
Add miui prebuilt completed!
/home/faa/patchrom/tools/apktool --quiet d -f oxygenOS/system/framework/framework-res.apk -o out/framework-res
/home/faa/patchrom/tools/linux-x86/aapt p -f -x --auto-add-overlay --wlan-replace Wi-Fi --wlan-replace WiFi \
--min-sdk-version 23 --target-sdk-version 23 \
-S /home/faa/patchrom/miui/src/config-overlay/v6/platform/v23/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/config-overlay/v6/platform/v21/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/config-overlay/v6/common/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/I18N_res/v6/common/frameworks/base/core/res/res \
-S out/framework-res/res -A out/framework-res/assets \
-M out/framework-res/AndroidManifest.xml -F out/framework-res.apk
GOT WARNINGS AS FOLLOWS (SHORTEN)
warning: string 'transient_navigation_confirmation_long' has no default translation.
warning: string 'usb_choose_notification_title' has no default translation.
warning: string 'use_physical_keyboard' has no default translation.
warning: string 'wifi_display_notification_connected_message' has no default translation.
warning: string 'wifi_display_notification_connected_title' has no default translation.
warning: string 'wifi_display_notification_connecting_message' has no default translation.
warning: string 'wifi_display_notification_connecting_title' has no default translation.
warning: string 'wifi_display_notification_disconnect' has no default translation.
warning: string 'year_picker_description' has no default translation.
#@echo "9Patch png fix out/framework-res.apk..."
#/home/faa/patchrom/tools/fix_9patch_png.sh >/dev/null framework-res oxygenOS/system/framework out
/home/faa/patchrom/tools/apktool --quiet if -p out/apktool out/framework-res.apk
<<< build out/framework-res.apk completed!
Copy: out/framework-res.apk to out/ZIP/system/framework/framework-res.apk
>>> Install framework resources for apktool...
/home/faa/patchrom/tools/apktool --quiet if -p out/apktool /home/faa/patchrom/miui/system/framework-res/XXHDPI/framework-res.apk -t miui
install /home/faa/patchrom/miui/system/app/XXHDPI/miui/miui.apk
install /home/faa/patchrom/miui/system/framework-res/XXHDPI/framework-ext-res/framework-ext-res.apk
install /home/faa/patchrom/miui/system/app/XXHDPI/miuisystem/miuisystem.apk
/home/faa/patchrom/tools/linux-x86/aapt p -f -u --package-id 0x11 --rename-manifest-package com.miui.rom --auto-add-overlay -z --wlan-replace Wi-Fi --wlan-replace WiFi \
REMAINING CODES (HORTEN)
HTML:
--min-sdk-version 23 --target-sdk-version 23 \
-S /home/faa/patchrom/miui/src/I18N_res/v6/common/miui/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/opt/ToggleManager/res -M /home/faa/patchrom/miui/src/frameworks/base/core/res/AndroidManifest.xml \
-I out/apktool/1.apk -I out/apktool/16.apk -I /home/faa/patchrom/build/empty-res/17.apk -F out/framework-ext-res.apk
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/auto_disable_screenbuttons_float_bg_p.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xxhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_progress.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/float_notification_button_bg_n.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AND FINALLY
HTML:
/home/faa/patchrom/tools/apktool --quiet b out/framework -o out/framework.jar
out/framework/smali/android/view/Window.smali[101,0] The file must contain a .class directive
out/framework/smali/android/view/ThreadedRenderer.smali[3,0] The file must contain a .class directive
Exception in thread "main" brut.androlib.AndrolibException: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:129)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:69)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:376)
at brut.androlib.Androlib.buildSources(Androlib.java:335)
at brut.androlib.Androlib.build(Androlib.java:292)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:124)
... 7 more
Caused by: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:142)
at brut.androlib.src.SmaliBuilder.access$000(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:98)
at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:94)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
out/framework/smali/android/view/View.smali[2,0] The file must contain a .class directive
out/framework/smali/android/view/WindowManagerPolicy.smali[3,0] The file must contain a .class directive
out/framework/smali/android/view/MotionEvent.smali[24,0] The file must contain a .class directive
out/framework/smali/android/view/Surface.smali[14,0] The file must contain a .class directive
out/framework/smali/android/view/WindowManager$LayoutParams.smali[2,0] The file must contain a .class directive
out/framework/smali/android/view/SurfaceControl.smali[31,0] The file must contain a .class directive
out/framework/smali/com/android/internal/os/RuntimeInit.smali[576,0] The file must contain a .class directive
out/framework/smali/com/android/internal/os/Zygote.smali[3,0] The file must contain a .class directive
farooque7508 said:
REMAINING CODES (HORTEN)
--min-sdk-version 23 --target-sdk-version 23 \ -S /home/faa/patchrom/miui/src/I18N_res/v6/common/miui/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/opt/ToggleManager/res -M /home/faa/patchrom/miui/src/frameworks/base/core/res/AndroidManifest.xml \ -I out/apktool/1.apk -I out/apktool/16.apk -I /home/faa/patchrom/build/empty-res/17.apk -F out/framework-ext-res.apk/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/auto_disable_screenbuttons_float_bg_p.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xxhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_progress.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/float_notification_button_bg_n.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AND FINALLY
/home/faa/patchrom/tools/apktool --quiet b out/framework -o out/framework.jarout/framework/smali/android/view/Window.smali[101,0] The file must contain a .class directiveout/framework/smali/android/view/ThreadedRenderer.smali[3,0] The file must contain a .class directiveException in thread "main" brut.androlib.AndrolibException: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:129) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:69) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:376) at brut.androlib.Androlib.buildSources(Androlib.java:335) at brut.androlib.Androlib.build(Androlib.java:292) at brut.androlib.Androlib.build(Androlib.java:268) at brut.apktool.Main.cmdBuild(Main.java:224) at brut.apktool.Main.main(Main.java:84)Caused by: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:124) ... 7 moreCaused by: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:142) at brut.androlib.src.SmaliBuilder.access$000(SmaliBuilder.java:64) at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:98) at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:94) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)out/framework/smali/android/view/View.smali[2,0] The file must contain a .class directiveout/framework/smali/android/view/WindowManagerPolicy.smali[3,0] The file must contain a .class directiveout/framework/smali/android/view/MotionEvent.smali[24,0] The file must contain a .class directiveout/framework/smali/android/view/Surface.smali[14,0] The file must contain a .class directiveout/framework/smali/android/view/WindowManager$LayoutParams.smali[2,0] The file must contain a .class directiveout/framework/smali/android/view/SurfaceControl.smali[31,0] The file must contain a .class directiveout/framework/smali/com/android/internal/os/RuntimeInit.smali[576,0] The file must contain a .class directiveout/framework/smali/com/android/internal/os/Zygote.smali[3,0] The file must contain a .class directive
Click to expand...
Click to collapse
Hi. I'm too trying to build... And stuck exactly at:
Zygote.smali[3,0] The file must contain a .class directive
Could you get past it?
@SalarX as you can see no replies in this thread...means no developers are interested in miui nor they are helping another people to do it..I am not an expert I need some help from experience developers is so important I think but unfortunately they are not helping..so I decided to quite this project.
farooque7508 said:
@SalarX as you can see no replies in this thread...means no developers are interested in miui nor they are helping another people to do it..I am not an expert I need some help from experience developers is so important I think but unfortunately they are not helping..so I decided to quite this project.
Click to expand...
Click to collapse
Okay...
But if something works I'll for sure tell you
Yeah thank you.
SalarX said:
Okay...
But if something works I'll for sure tell you
Click to expand...
Click to collapse
farooque7508 said:
Yeah thank you.
Click to expand...
Click to collapse
Hi, I am sorry to see the state of this thread.
Any chance the both of you are active on Telegram ?
We have super-active OnePlus X groups with all our developers, who are sometimes not as active on the forums due to personal reasons.
If you could PM me, I'd be too happy so share the Invite Links of our support chats.
i also getting same error .. anyone please help
Fap4k said:
REMAINING CODES (HORTEN)
HTML:
--min-sdk-version 23 --target-sdk-version 23 \
-S /home/faa/patchrom/miui/src/I18N_res/v6/common/miui/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/base/core/res/res -S /home/faa/patchrom/miui/src/frameworks/opt/ToggleManager/res -M /home/faa/patchrom/miui/src/frameworks/base/core/res/AndroidManifest.xml \
-I out/apktool/1.apk -I out/apktool/16.apk -I /home/faa/patchrom/build/empty-res/17.apk -F out/framework-ext-res.apk
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/auto_disable_screenbuttons_float_bg_p.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-xxhdpi/boot_logo.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/boot_progress.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/home/faa/patchrom/miui/src/frameworks/base/core/res/res/drawable-hdpi/float_notification_button_bg_n.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AND FINALLY
HTML:
/home/faa/patchrom/tools/apktool --quiet b out/framework -o out/framework.jar
out/framework/smali/android/view/Window.smali[101,0] The file must contain a .class directive
out/framework/smali/android/view/ThreadedRenderer.smali[3,0] The file must contain a .class directive
Exception in thread "main" brut.androlib.AndrolibException: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:129)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:69)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:376)
at brut.androlib.Androlib.buildSources(Androlib.java:335)
at brut.androlib.Androlib.build(Androlib.java:292)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: java.util.concurrent.ExecutionException: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:124)
... 7 more
Caused by: brut.androlib.AndrolibException: Could not smali file: android/view/Window.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:142)
at brut.androlib.src.SmaliBuilder.access$000(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:98)
at brut.androlib.src.SmaliBuilder$1.call(SmaliBuilder.java:94)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
out/framework/smali/android/view/View.smali[2,0] The file must contain a .class directive
out/framework/smali/android/view/WindowManagerPolicy.smali[3,0] The file must contain a .class directive
out/framework/smali/android/view/MotionEvent.smali[24,0] The file must contain a .class directive
out/framework/smali/android/view/Surface.smali[14,0] The file must contain a .class directive
out/framework/smali/android/view/WindowManager$LayoutParams.smali[2,0] The file must contain a .class directive
out/framework/smali/android/view/SurfaceControl.smali[31,0] The file must contain a .class directive
out/framework/smali/com/android/internal/os/RuntimeInit.smali[576,0] The file must contain a .class directive
out/framework/smali/com/android/internal/os/Zygote.smali[3,0] The file must contain a .class directive
Click to expand...
Click to collapse
getting same error
himavanth.reddy925 said:
getting same error
Click to expand...
Click to collapse
It is due to wrong patch.
Fap4k said:
It is due to wrong patch.
Click to expand...
Click to collapse
how to correct the patch.. sir
himavanth.reddy925 said:
how to correct the patch.. sir
Click to expand...
Click to collapse
I am not sir bro..m still learning.
Refer to this video may you find a solution
First you need to know smali.
shumxin said:
First you need to know smali.
Click to expand...
Click to collapse
At last the guy is here. Please help the XDA devs trying to make MIUI. It's almost finished. (I think).
Anyways Good luck to the developers making MIUI. I'm totally here for testing the ROM. Thanks in advance for the ROM and Never Give UP!!
Fap4k said:
I am not sir bro..m still learning.
Refer to this video may you find a solution
Click to expand...
Click to collapse
thank u for providing video link
all rejects re patched.. but fullota has stoped with ana error
Code:
Recovery link files success
/home/hima/patchrom/tools/build_target_files.sh: line 154: ./customize_target_files.sh: Permission denied
/home/hima/patchrom/build/porting.mk:314: recipe for target 'fullota' failed
make: *** [fullota] Error 1
thanks in advance
himavanth.reddy925 said:
thank u for providing video link
all rejects re patched.. but fullota has stoped with ana error
thanks in advance
Click to expand...
Click to collapse
Looks like customize_target_file.sh denied permission..go to device folder and give execute permission to that particular file.
Thanks
I like this project and would donate for it

Categories

Resources