[Q] could some compile this framework-res folder - Samsung Galaxy S (4G Model)

I have trying to build this and it doesn't work. I just modified a color in res/values/styles.xml. Please build this. Build the folder inside the zip file and send it back thanks.

I will do it when I get home, give me an hour.
Sent from my SGH-T959V using XDA Premium App

There is a problem with what you changed i attached the log, it appears you changed a text color to an invalid color, you need to find a different color code and change. Then recompile and sign as system apk.
I attached the log.
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\All Installed Apps\android sdk\apk_manager_4.9\other\..\projects\framework-res.apk\res\values\styles.xml:981: error: Error: Color types not allowed (at 'itemTextAppearance' with value '#ffffff').
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\tyler\AppData\Local\Temp\APKTOOL1310562279121413550.tmp, -x, -S, C:\All Installed Apps\android sdk\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, C:\All Installed Apps\android sdk\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\tyler\AppData\Local\Temp\APKTOOL1310562279121413550.tmp, -x, -S, C:\All Installed Apps\android sdk\apk_manager_4.9\other\..\projects\framework-res.apk\res, -M, C:\All Installed Apps\android sdk\apk_manager_4.9\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more

try this one

which file and line are you attempting to modify:
Log Reports:
Error: String types not allowed (at 'textColor' with value 'bright_foreground_dark').

I am just trying to make the text colors of the pop-up menu white and the Google app pop-up menu text colors white, could you help me?
Sent from my SGH-T959V using XDA App

what line is the value you wish to change on?
send me your un-modified framework-res.apk

I don't know, google change popup menu color and clock the one from modaco, that might help.
Here is original apk

airfluip1 said:
I have trying to build this and it doesn't work. I just modified a color in res/values/styles.xml. Please build this. Build the folder inside the zip file and send it back thanks.
Click to expand...
Click to collapse
Not trying to flame you. But please keep questions EVEN if they have to do with development in the general forum.
The development forum is only for posting actual completed development efforts. Discussions such as this should occur in the general forum even if they relate to development.
Again this forum is only for posted stuff that is ready.

Moved to proper forum

do not use this one.

Compile this please

Here you go. tested and working.

compiled - not tested

Here you go all fixed.

Related

Hello! Need some help with apktool.

Hello! I'm new to the forum and a casual android modder. I've really enjoyed digging into the Android world and have learned a lot from the forum. I was working with apktool and ran into a bit of a problem. I searched and found a post indicating that the environmental variables had to be tweaked which I did but this did not resolve the problem.
Thanks in advance,
-Adam
Environmental variables:
PHP:
C:\>echo %PATH%
C:\DMI\WIN32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime Alternative\QTSystem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\QuickTime Alternative\QTSystem\;C:\Program Files\ZipGenius 6\;C:\PROGRA~1\JPSoft\4dos; C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools
apktool commands (minus a few more lines of errors for length):
PHP:
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>apktool d framework-res.apk
I: Loading resource table...
I: Decoding resources...
W: Cant find 9patch chunk in file: "drawable-mdpi/status_bar_header_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/statusbar_background.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi/status_bar_close_on.9.png". Renaming it to *.png.
I: Copying assets and libs...
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\status_bar_close_on.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\status_bar_header_background.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\drawable-mdpi\statusbar_background.9.png
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3342: error: Public entry identifier 0x1080252 entry index is larger than available symbols (index 594, total symbols 43).
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3342: error: Public symbol drawable/APKTOOL_DUMMY_0252 declared here is not defined.
.
.
.
C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res\values\public.xml:3340: error: Public symbol drawable/zz_stat_sys_signal_5_cdma declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\Owner\LOCALS~1\Temp\APKTOOL1107807157838832304.tmp, -x, -S, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res, -M, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\Owner\LOCALS~1\Temp\APKTOOL1107807157838832304.tmp, -x, -S, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\res, -M, C:\Documents and Settings\Owner\My Documents\Downloads\android-sdk_r07-windows\android-sdk-windows\tools\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
I also need some help with apktool. I'm trying to get into changing xml files on my Droid X. I've been able to successfully use the tool to decode apk files but i've heard that you can use it to decode xml files. Every time I try to do that though I get an error.
Included is a capture of the code I type in and the erros i'm getting with the xml file. I am trying to manipulate the simple eri.xml file that Verizon uses.
@adam-c
Could you upload original apk and zipped dir with decoded app? What is in these drawable-mdpi/status_bar_header_background.9.png, etc. files in decoded app? Are there both status_bar_header_background.9.png and status_bar_header_background.png (without ".9") files, but first one is empty or what?
@homes315
For now you can't decode single xml file - decode whole apk instead.
I have been searching for two days, and have tried everything I could find to figure this out, to no avail.
Could someone please help me get the apktool working on my computer?
when I enter apktool I get:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/object
From what I can tell I have my CLASSPATH and PATH set up correctly.
Any help would be greatly appreciated.
BTW, I am running Windows 7 64bit

[Q] compile SystemUi.apk

when im compiling systemui from virtuous Inquisition 4.0.1 im geting errors:
Code:
c:\apktool>Java -jar apktool.jar b systemui
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\apktool\systemui\res/drawable-sw600dp-hdpi
invalid resource directory name: c:\apktool\systemui\res/layout-sw600dp
invalid resource directory name: c:\apktool\systemui\res/values-sw600dp
invalid resource directory name: c:\apktool\systemui\res/values-sw600dp-port
invalid resource directory name: c:\apktool\systemui\res/values-sw720dp
invalid resource directory name: c:\apktool\systemui\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\knyku\AppData\Local\Temp\A
PKTOOL1129380418371610026.tmp, -I, C:\Users\knyku\apktool\framework\1.apk, -S, c
:\apktool\systemui\res, -M, c:\apktool\systemui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\knyku\AppData\Local\Temp\APKTOOL1129380418371610026.tmp, -I, C:\Users\knyku
\apktool\framework\1.apk, -S, c:\apktool\systemui\res, -M, c:\apktool\systemui\A
ndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
c:\apktool>
framework and resources installed, any ideas ?
Yes, build on linux. I've never had luck with apktool on windows...
Also, has apktool been updated yet to support ICS apk's? I haven't used it in a little while, but it was unsupported last time I tried...
have read somewhere that it supports now, but not working. anyway, if its not working so how devs theming their roms ?!
edit:
updated builtin framework to SDK API14
Click to expand...
Click to collapse
so not supporting. but rly, how devs doin' it ?
I'm looking at the changelog right now:
code.google.com/p/android-apktool/wiki/Changelog said:
1.4.3¶2011.12.08
•updated builtin framework to SDK API14
•fixed some "Multiple substitutions (...)" errors ( Issue 254 )
1.4.2¶2011.12.02
•added support for API14 (Android 4.0) resources
•updated smali to v1.3.0
•added --quiet option
•fixed decoding error when string ends with '%' ( Issue 169 )
•fixed decoding error when <plurals> contains a reference ( Issue 234 )
•fixed a broken res when decoding <array> with positional substitutions ( Issue 222 )
Click to expand...
Click to collapse
It looks like 4.0 should be supported in v1.4.2 and up. Verify that you're running the correct version, and if that doesn't work then I still defer to my original recommendation of running on a linux system. One thing I'm noticing from your posted error is that the file system for the missing resource is using a forward slash after the res directory. Possibly an error in the windows version of apktool.
If you want to upload your changes to a git repo I can update my apktool and play with it...
As far as I know sense 3.6 is now SDK 15 and I can see that sense 4.0 is SDK 18/19 so it would be interesting to see if somebody could download apktool from git, add the framework into it and compile. That should solve the issues.
I was able to download the apktool from GIT but dont know what to do to add the framework in.
solved.
just need to copy updated aapt.exe from platform-tools @ sdk to apktool folder.
to install type apktool if framework-res.apk and done
kamik_f said:
solved.
just need to copy updated aapt.exe from platform-tools @ sdk to apktool folder.
to install type apktool if framework-res.apk and done
Click to expand...
Click to collapse
That works for me as well. I dropped it into my /usr/local/bin directory after updating my apktool in order to resolve the errors...
I'm glad you posted this today. I've been putting off updating my apktool. This not only motivated me to update, but also got it working in a timely manner...
dziekuje
GhostXSeries said:
As far as I know sense 3.6 is now SDK 15 and I can see that sense 4.0 is SDK 18/19 so it would be interesting to see if somebody could download apktool from git, add the framework into it and compile. That should solve the issues.
I was able to download the apktool from GIT but dont know what to do to add the framework in.
Click to expand...
Click to collapse
The 3.32 based apktool works fine for me on sense 4. Just need to install the new framework and then no errors
Sent from my Sensation using xda premium

[Q]What does this error in apktool mean?

Hey Guys,
I was modding my SystemUI.apk. I successfully decompiled it with apktool (the latest one), made the changes and then recompiled. I didn't make any changes to .9.png files, when I tried to recompile... it failed, I get this error ---
Code:
[email protected]:/home/jason# apktool b /home/jason/SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
/home/jason/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
/home/jason/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[email protected]:/home/jason#
I can see that most of these errors are related to AndroidManifest.xml. But I can't understand
Code:
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
and
Code:
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]
part. BTW, I did tinker with the XMLs but I didn't make any changes to them. What does "[aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /tmp/APKTOOL2376566775151219854.tmp, -I, /root/apktool/framework/1.apk, -S, /home/jason/SystemUI/res, -M, /home/jason/SystemUI/AndroidManifest.xml]" mean???
Any Ideas? I do have SDK installed...
Thanks in advance guys!
The only errors that mean anything is the beginning. The rest are due to that one error. It states that the styles XML is pointing to a style that isn't there. Do you have the proper frameworks installed?
Wayne Tech Nexus
Thanks for Replying!
I do have framework files installed... I did "apktool if framework-res.apk". That is the only framework apk I can find.
Ok here is your errors. Cross ref these in the decompiled frameworks apk
/home/jason/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
/home/jason/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.Panel'.
There is no such thing called Theme.Holo.Light.Panel in the decompiled framework! Wait a second, the SystemUI that I'm trying to edit has already been edited by someone, is that the reason things are not working???
Theme.Holo.Light.Panel is not there in any XML, I double checked.
Thanks!
JasonKZLY said:
There is no such thing called Theme.Holo.Light.Panel in the decompiled framework! Wait a second, the SystemUI that I'm trying to edit has already been edited by someone, is that the reason things are not working???
Theme.Holo.Light.Panel is not there in any XML, I double checked.
Thanks!
Click to expand...
Click to collapse
Very well could be. Where did you get the apk from?
I got the apk from a Custom ROM for my phone...
JasonKZLY said:
I got the apk from a Custom ROM for my phone...
Click to expand...
Click to collapse
Did you pull and install the framework from that rom?
Wayne Tech Nexus
zelendel said:
Did you pull and install the framework from that rom?
Click to expand...
Click to collapse
Well... no, I didn't pull the framework-res from the phone after installing the ROM because I can't setup ADB on Linux . I recently posted a thread where I asked if anybody knew the solution but nobody responded:crying:. I tried most of the methods out there to setup ADB on Linux but none of them work. I got the framework-res straight out of the flashable ZIP of the ROM.
Thank you!
JasonKZLY said:
Well... no, I didn't pull the framework-res from the phone after installing the ROM because I can't setup ADB on Linux . I recently posted a thread where I asked if anybody knew the solution but nobody responded:crying:. I tried most of the methods out there to setup ADB on Linux but none of them work. I got the framework-res straight out of the flashable ZIP of the ROM.
Thank you!
Click to expand...
Click to collapse
They should be the same thing. And you are running the if command for apktool for both the framework-res and the system ui apks right?
Not sure about the adb for linux as all my themeing is done in windows
zelendel said:
And you are running the if command for apktool for both the framework-res and the system ui apks right?
Click to expand...
Click to collapse
Yes, I have both of them if-ed I'm starting to consider formatting my whole system and setting up a good development environment...
JasonKZLY said:
Yes, I have both of them if-ed I'm starting to consider formatting my whole system and setting up a good development environment...
Click to expand...
Click to collapse
Thats what I did today myself. I have a proper dual boot going with win7 and ubuntu 13.04.
I believe this is the same problem I described here: http://forum.xda-developers.com/showthread.php?p=41045630#post41045630
In a nutshell, old APKs aren't compatible with new AAPT, mainly private extended styles and parents inherited must be present.
iBotPeaches said:
I believe this is the same problem I described here: http://forum.xda-developers.com/showthread.php?p=41045630#post41045630
In a nutshell, old APKs aren't compatible with new AAPT, mainly private extended styles and parents inherited must be present.
Click to expand...
Click to collapse
After downloading apktool(Thank you soo much for this), I replaced the aapt provided with apktool with the aapt from the latest SDK. Is this the reason?

[TOOL][WINDOWS][LINUX] MoKee OpenSource Theme Fixer v2

If you are a MoKee OpenSource user, you will realise that the theme chooser is borked since MK43. Themes that used to work can't be used anymore, and if applied, the whole system will crash. A few months has passed since then, and now, we are glad to say that the solution is HERE AT LAST!!!
The Problem:
In MK43, we separated some parts of framework-res.apk into mokee-res.apk to ease development. However, this also broke theme chooser. Themes cannot find the resources they want to redirect anymore, but the weird thing is, certain themes could still function normally. So the long journey of debugging started, but no results....till recently, we found this:
https://code.google.com/p/tmobile-themes/wiki/NewGlobalThemeEngineDesign
The main point is at:
Resources are generated in the 0x0a package scope. This is designed to separate them in the AssetManager's ResTable. The framework currently uses 0x01 while application packages normally use 0x7f. The aapt tool was modified to support assigning arbitrary package scopes and so you must use the aapt tool found in the themes tree for building your own themes.
Click to expand...
Click to collapse
After decompiling a few problematic themes, res/values/public.xml was found to be populated with 0x02. The T-Mobile Theme Engine originally accepted only 0x0a, but CM made some changes so that others can be accepted as well. However, due to the major changes in MoKee, the changes lost its effect. Therefore, we have to revert to the default 0x0a. To achieve this, we need to recompile the theme APKs with custom made apktool and aapt.​
Requirements:
Must install JRE 1.7, you can get it here:
http://www.oracle.com/technetwor ... nloads-1880261.html
Windows users please follow this after installing: http://javarevisited.blogspot.co ... java-windows-7.html​
Windows Tutorial:
1. Download mokee-theme-fixer_[version number]-windows.zip and extract the folder named "mokee" in it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Open the "mokee" folder and you will see a few more folders. Place the APKs you want to fix into the folder named "input".
3. Run "mokee.bat" and let the magic happen!
4. If successful, the fixed APKs will be in the "output" folder, now named "done-[original name].apk".
Linux Tutorial:
1. Download mokee-theme-fixer_[version number]-linux.zip and extract the folder named "mokee" in it.
2. Open the "mokee" folder and you will see a few more folders. Place the APKs you want to fix into the folder named "input".
3. Execute "mokee.sh" and let the magic happen! (Remember to cd to that directory if using Terminal)
4. If successful, the fixed APKs will be in the "output" folder, now named "done-[original name].apk".​
Note:
1. The Windows version was developed and tested in Windows 8.1.
2. The Linux version was developed and tested in Ubuntu 12.04 LTS.
3. If you cannot execute the Linux version, please chmod 755 mokee/mokee.sh and mokee/tools/aapt.​
Credits:
Apktool developers:
- @Brut.all
- @iBotPeaches
win-bash (bash port for Windows) (too lazy to write a batch script...)
GNU utilities for Win32 (too lazy to write a batch script...)
Ultimate Packer for eXecutables (UPX)
Changelog:
Code:
[U]v1:[/U]
- Initial release
[U]v2:[/U]
- Fixed aapt not accepting uppercase letters and reduced size with strip and UPX
- Reduced size of Windows executables with strip and UPX
Downloads:
mokee-theme-fixer_v2 (Windows & Linux)​
Got following error when try to convert hue theme, any idea?
Code:
--------------------------------------
MoKee OpenSource Theme Fixer v1
Copyright 2012-2014
--------------------------------------
--> Processing HueWhiteKat_4.4.apk... <--
I: Using Apktool 2.0.0-Beta8 on HueWhiteKat_4.4.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
I: Using Apktool 2.0.0-Beta8 on HueWhiteKat_4.4.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
res\xml\com_alensw_PicFolder.xml: Invalid file name: must contain only [a-z0-9_.
]
res\xml\com_alensw_PicFolder.xml: Invalid file name: must contain only [a-z0-9_.
]
res\xml\com_keramidas_TitaniumBackup.xml: Invalid file name: must contain only [
a-z0-9_.]
res\xml\com_keramidas_TitaniumBackup.xml: Invalid file name: must contain only [
a-z0-9_.]
res\xml\com_quoord_tapatalkHD.xml: Invalid file name: must contain only [a-z0-9_
.]
res\xml\com_quoord_tapatalkHD.xml: Invalid file name: must contain only [a-z0-9_
.]
res\xml\vStudio_Android_Camera360.xml: Invalid file name: must contain only [a-z
0-9_.]
res\xml\vStudio_Android_Camera360.xml: Invalid file name: must contain only [a-z
0-9_.]
res\xml\vStudio_Android_Camera360.xml: Invalid file name: must contain only [a-z
0-9_.]
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [tools\aapt.exe,
p, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 31, --versi
on-name, 4.4, -F, C:\Users\XX\AppData\Local\Temp\APKTOOL4753921697499202546.tmp
, -x, 10, -I, framework\1.apk, -S, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4.apk\
res, -M, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [tools\aapt.exe, p, --min-sdk-version, 16, --target-sdk-version,
16, --version-code, 31, --version-name, 4.4, -F, C:\Users\XX\AppData\Local\Temp
\APKTOOL4753921697499202546.tmp, -x, 10, -I, framework\1.apk, -S, C:\mokeeThemeF
ixerv1\tmp\HueWhiteKat_4.4.apk\res, -M, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4
.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:470)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [tools\aapt.exe, p
, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 31, --version
-name, 4.4, -F, C:\Users\XX\AppData\Local\Temp\APKTOOL4753921697499202546.tmp,
-x, 10, -I, framework\1.apk, -S, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4.apk\re
s, -M, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:464)
... 6 more
Done if no errors above!
Press enter to exit...
Terminate batch job (Y/N)?
antutu said:
Got following error when try to convert hue theme, any idea?
Code:
--------------------------------------
MoKee OpenSource Theme Fixer v1
Copyright 2012-2014
--------------------------------------
--> Processing HueWhiteKat_4.4.apk... <--
I: Using Apktool 2.0.0-Beta8 on HueWhiteKat_4.4.apk
I: Loading resource table...
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling...
I: Copying assets and libs...
I: Copying unknown files/dir...
I: Copying original files...
I: Using Apktool 2.0.0-Beta8 on HueWhiteKat_4.4.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
res\xml\com_alensw_PicFolder.xml: Invalid file name: must contain only [a-z0-9_.
]
res\xml\com_alensw_PicFolder.xml: Invalid file name: must contain only [a-z0-9_.
]
res\xml\com_keramidas_TitaniumBackup.xml: Invalid file name: must contain only [
a-z0-9_.]
res\xml\com_keramidas_TitaniumBackup.xml: Invalid file name: must contain only [
a-z0-9_.]
res\xml\com_quoord_tapatalkHD.xml: Invalid file name: must contain only [a-z0-9_
.]
res\xml\com_quoord_tapatalkHD.xml: Invalid file name: must contain only [a-z0-9_
.]
res\xml\vStudio_Android_Camera360.xml: Invalid file name: must contain only [a-z
0-9_.]
res\xml\vStudio_Android_Camera360.xml: Invalid file name: must contain only [a-z
0-9_.]
res\xml\vStudio_Android_Camera360.xml: Invalid file name: must contain only [a-z
0-9_.]
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [tools\aapt.exe,
p, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 31, --versi
on-name, 4.4, -F, C:\Users\XX\AppData\Local\Temp\APKTOOL4753921697499202546.tmp
, -x, 10, -I, framework\1.apk, -S, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4.apk\
res, -M, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [tools\aapt.exe, p, --min-sdk-version, 16, --target-sdk-version,
16, --version-code, 31, --version-name, 4.4, -F, C:\Users\XX\AppData\Local\Temp
\APKTOOL4753921697499202546.tmp, -x, 10, -I, framework\1.apk, -S, C:\mokeeThemeF
ixerv1\tmp\HueWhiteKat_4.4.apk\res, -M, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4
.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:470)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [tools\aapt.exe, p
, --min-sdk-version, 16, --target-sdk-version, 16, --version-code, 31, --version
-name, 4.4, -F, C:\Users\XX\AppData\Local\Temp\APKTOOL4753921697499202546.tmp,
-x, 10, -I, framework\1.apk, -S, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4.apk\re
s, -M, C:\mokeeThemeFixerv1\tmp\HueWhiteKat_4.4.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:464)
... 6 more
Done if no errors above!
Press enter to exit...
Terminate batch job (Y/N)?
Click to expand...
Click to collapse
Owh, that's caused by having capital letters in the package name...have to patch aapt for that but haven't found out how...
Worked for (Holo Glass Beta) theme on my Maguro..Thanks!!
antutu said:
Got following error when try to convert hue theme, any idea?
Click to expand...
Click to collapse
Fixed aapt and usable now...
So with that, v2 is released! Changelogs and links in first post!
yes it's working :good: :good:
you just made my day
well can some one help me out here ?? pls
i followed each and every step ( theme chooser !!)
downloaded everything converted the file
and yes it was successful
but whats the actual procedure to replace the app??
i tried moving the new system app to /system/app folder it was successful
but when i go to settings and hit theme am getting unfortunately system stopped
also tried several reboots and also tried to delete the system Themechooser.apk
no use now cant even access my theme choose option
the part of converting files is perfect am assuming
bt transfer to mobile is causing me probs
thanks in advance
*Facepalm*...you are supposed to convert the theme apk you want and install as normal...not Themechooser.apk... don't touch that at all...and don't cross post please...
I have here is off
I have several errors during the extracting process of mokee-theme-fixer_v2-windows.zip. I have Win7 64bits.
lolo696 said:
I have here is off
Click to expand...
Click to collapse
Corrupted APK...
Primokorn said:
I have several errors during the extracting process of mokee-theme-fixer_v2-windows.zip. I have Win7 64bits.
Click to expand...
Click to collapse
Redownload...corrupted zip...
Ryuinferno said:
Redownload...corrupted zip...
Click to expand...
Click to collapse
Still the same. No error with v1 though...
Primokorn said:
Still the same. No error with v1 though...
Click to expand...
Click to collapse
Already tested...no issues here...try using another program like winRar
This theme works perfectly on my Tmobile S3 with latest nightly
Sent from my SGH-T999 using Tapatalk
can any one recompile this cm11 theme for me
https://www.dropbox.com/s/rctpn20me...r_icons_v19.apk?_e_pi_=7,PAGE_ID10,8751703549
i don't have pc
thanks in advance
Sent from my LG OPTIMUS 4X HD using Tapatalk Pro
akshay.mehta9 said:
can any one recompile this cm11 theme for me
https://www.dropbox.com/s/rctpn20me...r_icons_v19.apk?_e_pi_=7,PAGE_ID10,8751703549
i don't have pc
thanks in advance
Sent from my LG OPTIMUS 4X HD using Tapatalk Pro
Click to expand...
Click to collapse
I'm sorry, this theme does not work. The other theme function properly. I do not know why. [emoji780][emoji780][emoji780]
Best regards
varadinum said:
I'm sorry, this theme does not work. The other theme function properly. I do not know why. [emoji780][emoji780][emoji780]
View attachment 2629603
Best regards
Click to expand...
Click to collapse
varadinum said:
I'm sorry, this theme does not work. The other theme function properly. I do not know why. [emoji780][emoji780][emoji780]
View attachment 2629603
Best regards
Click to expand...
Click to collapse
no matter but which themes are working without recompile
Sent from my LG OPTIMUS 4X HD using Tapatalk Pro
This is a beautiful Mac Theme
Best regards
At last.. working like a charm, thank you!
Subscribed!
Win8 x64
Hmmm....one question....can we use our own rom framework-res.apk for this fixer?

Need Help Changing Home Screen Grid On HTC Blinkfeed Launcher

I need some help changing the home screen grid size of the Blinkfeed launcher ported for AOSP based ROM's. I have created a seperate thread for the HTC One S here. The original thread is here.
The grid size in the launcher is currently 4 x 4 but it is too spaced out vertically (see attached pic). So what I want to do is change the prism.apk to reduce the vertical spacing for 4 x 4 and create a separate zip with a 4 x 5 grid size.
I understand the files that need changing are integers.xml and dimens.xml in prism.apk
The problem I am having is that I am unable to compile the prism.apk. I have tried using APKTool and Virtuous 10 Studio and get the same following error:
C:\Android\APK Tool\prismblack\res\values\styles.xml:2868: error: Error: No reso
urce found that matches the given name: attr 'android:searchViewEditQuery'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Ross\AppData\Local\Temp\
APKTOOL760654229685494136.tmp, -I, C:\Users\Ross\apktool\framework\1.apk, -S, C:
\Android\APK Tool\prismblack\res, -M, C:\Android\APK Tool\prismblack\AndroidMani
fest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:
\Users\Ross\AppData\Local\Temp\APKTOOL760654229685494136.tmp, -I, C:\Users\Ross\
apktool\framework\1.apk, -S, C:\Android\APK Tool\prismblack\res, -M, C:\Android\
APK Tool\prismblack\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 19, --target-sdk-version, 19, -F, C:\Users\Ross\AppData\Local\Temp\AP
KTOOL760654229685494136.tmp, -I, C:\Users\Ross\apktool\framework\1.apk, -S, C:\A
ndroid\APK Tool\prismblack\res, -M, C:\Android\APK Tool\prismblack\AndroidManife
st.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
I get this error without even changing any of the values, just decompiling, then compiling the prism.apk again. I have tried updating the APKTool version, updating the aapt.exe file, reinstalling Android SDK. The launcher only works on android 4.4 so I've updated the SDK to the newest version, still get the same errors.
Does anyone have any ideas how I can get this to compile or can anyone try to compile this on their system to see if its the file itself?
Also, does anyone have the values that I need to change the dimens.xml file to, so it fit's correctly on the One S? Otherwise its trial and error.
@Flashalot @rc420head @grorg - All help would be greatly appreciated.
Blinkfeed Launcher
Download: https://drive.google.com/file/d/0B_VcoEHi3OfvZ2NaV2w4Z2ZQSUE/edit?usp=sharing
Prismblack.apk
Download: https://drive.google.com/file/d/0B_VcoEHi3OfvSkM2VlpCampWb2c/edit?usp=sharing
1 - To change the the drawer to 4x5 and so on I believe is done with smail and the files you have already mentioned but I haven't done this mod in awhile
2 - did you decompile with m8 framework installed seeing as it from the m8 I would believe you have to decompile it with the framework
Sent From Ville Candykat
Flashalot said:
1 - To change the the drawer to 4x5 and so on I believe is done with smail and the files you have already mentioned but I haven't done this mod in awhile
2 - did you decompile with m8 framework installed seeing as it from the m8 I would believe you have to decompile it with the framework
Sent From Ville Candykat
Click to expand...
Click to collapse
Legend. That was it, added the framework and it compiled correctly. :good:
The app drawer grid size I'm not bothered about, its more the homescreen. The guides I have looked at don't mention editing smali files so I'll try with just integers.xml and dimens.xml and see what happens.
One quick question, do you know if the values I need to change in dimens.xml will be the same with all devices with hdpi resolution or will they be specific to the ville?
Edit: Tried all the guides/tutorials, nothing changes, must have to change the smali files as well.

Categories

Resources