[Windows][UTILITY][TOOL] APK Multi-Tool - Android Software Development

I am currently working on a major update to the apk manager application as well and changing the name to APK Multi-Tool with some new added features and also to fix some issues with some code errors.
I am also changing a lot of the features as well since a lot of the code has been outdated for a while.
I have updated all the files and modified Apk manager's Scripts to fix many user reported bugs from Daneshm90 apk manager which he had written a simple script to ease the process of editing apks. Got a lot of downloads so thought its in demand
Whether you're doing basic image editing or editing the smali or xml files, on average u have to use (Brut.all or JF's smali/baksmali) awesome tool to extract the apk, edit it, then sign the apk and then adb push/install it. This process is quite tiresome if you are testing a method that needs fine tweaking.
This script should make the process a LOT smoother.
Theres an option of compiling/signing/installing all in one step
Thanks:
Goes to Daneshm90 the Original Writer of APK Manager
Goes to Brut.all for his awesome tool.
Goes to JF for ofcourse, smali/baksmali
Features:
- Added framework dependent decompiling (For non propietary rom apks). (Option 10). Checks whether the dependee apk u selected is correct.
- Allows multiple projects to be modified, switch to and from.
- Allows to modify system apk's using apktool but ensures maximum compatibility in terms of signature / manifest.xml
- Batch optimize apk (Zipalign,optipng,or both)
- Batch Ogg optimization
- Batch install apk from script (option 19)
- Batch Theme Image Transfer TOOL
- Batch Theme optipng TOOL
- Batch Theme Zipalign APK TOOL
- Compression level selector (monitor status above menu)
- Error detection. Checks if error occurred anytime u perform a task, and reports it
- Extract, Zip apk's.
- Incorporates brut.all's apktool
- Improved syntax of questions/answers
- Logging on/off has been removed. Instead a log.txt is created which logs the activities of the script organized using time/date headers
- Optimize pngs (ignores .9.pngs)
- Pull apk from phone into modding environment.
- Push to specific location on phone
- Quick sign an apk (Batch mode supported)
- Read log (Option 24)
- Sign apks
- Supports batch installation, so if u drag multiple apks into the script (not while its running) it will install them all for u. U can ofcourse drag a single apk as well
- User can change the max java heap size (only use if certain large apks get stuck when decompiling/compiling apks) (Option 19)
- U can now set this script as ur default application for apks. When u do, if u double click any apk it will install it for u.
- Zipalign apks
- Much Much More
Instructions:
- Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
- Run script
- Minimize the script
- Edit files inside the project folder
- Maximize the script
Requirements:
Java 1.6
Android SDK
FAQ
Resulting apk file is much smaller than original! Is there something missing?
First: compression of resources.arsc file. Sometimes this file is compressed in original apk, sometimes not and apktool always compress it. Second: lack of META-INF dir. Apktool builds unsigned apks, so they lack signatures stored in this dir. Third: apktool uses newest Android SDK, so it could optimize files better, especially if original app is old. So: unpack both original and resulting apk, remove META-INF from original and then compare sizes. If they're still much different, then you could report on XDA or somewhere.
There is no META-INF dir in resulting apk. Is this ok?
Yes. META-INF contains apk signatures mostly and after modifying apk in no longer signed, so there are no signatures in it. You have to sign resulting apk and then META-INF dir will be created.
What do you call "magic apks"?
Sometimes there are some apks which (for my current knowledge) are invalid, broken, theoretically they shouldn't exist. There may be many reasons of their existence: my lack of understanding of Android resources; some non-public, maybe future SDK tools or custom modifications of these; manual hacking of binaries, etc. Usually I can't do anything about it, but you could at least try to replace broken parts by something valid. Actually it's quite likely that they aren't even used, because if they would, then application would crash.
Got problems ?
1. Make sure your path has no spaces
2. Your filename has no wierd characters
3. Java/adb are in your path
4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
6. Look at the log to know whats happening
7. If all else fails, post as much info as possible and we will try to assist you.
TO DO LIST
Add new feature to Randomly Generate a new Key File for signing the apk files after modifying and recompiling of the apk files this will also allow of uploading to the android market as this added feature will allow you to sign apk files that you may of compiled without signing beforehand.
Modify the Signapk script to be compatible with the Randomly Generation feature in the works
and a few other added features are in the works as I am redesigning the application and rewriting a lot of the code to fix issues as well as some of the new features have broken parts as some features have been moved and broken some command line prompts.
Installing APK Multi-Tool Itself
Run the installer and make sure it is pointed to the root of hard drive
Example
C:\APKMultiTools\
Downloads:
http://apk-multi-tool.github.io/APK-Multi-Tool/ for all downloads and updates
Please check back daily or weekly as this project is under active Development and I am releasing Alpha releases on the website for Testing and bug reports.
Latest test build http://hugefiles.net/79bvb14x2f8p
Mailing List:
Google Group Email mailing List
If you like this and wish to wish to send cash my way Donations Are Welcome

Optipng'ing is not working for me. After extraction, Optipng will be run and will do nothing because it says it cannot find the folder.

CUBENSIS said:
Optipng'ing is not working for me. After extraction, Optipng will be run and will do nothing because it says it cannot find the folder.
Click to expand...
Click to collapse
Which optiping are you using the batch theme opt or the original method
Sent from my DROID using xda premium

Option 18, batch optimize.
Sent from my Droid Incredible HD using XDA App

Have you tried using it on the apk itself instead of extracting
Sent from my DROID using xda premium

That's what I did. What i meant to say is I choose option 18, the apk gets extracted, optipng says it can't find the files/directory that was fed to it, and the apk is re-zipped w/o any .png changes. See attached screen grab.

Try placing the file in the transfered folder and running opt 16
Sent from my DROID using xda premium

Seems to be a very helpfull tool.
But GO**AMN, on the website, change the color of the titles from red to something else. Hurts my eyes reading haha.

raziel23x said:
Try placing the file in the transfered folder and running opt 16
Click to expand...
Click to collapse
i had to edit the script because it was calling for roptipng.exe. after chaging it oo optipng.exe, here's the result
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
A subdirectory or file C:\Apk_Multi-Tool\optimized already exists.
A subdirectory or file C:\Apk_Multi-Tool\untouched already exists.
Could Not Find C:\Apk_Multi-Tool\0
Click to expand...
Click to collapse

Regarding option 18, after learning a bit about batch programming and looking through the file...it seems the problem is quite simple. Optipng does not support ** for recursion, and as far as I can tell ** means nothing @ Windows command line. Therefore it will fail since the command in the batch file is
Code:
optipng -o99 "apkopt_temp_%~n1\**\*.png"

Thank you
thank you for continuing updates of this application

Lol thank I completly forgotten to update the script
Sent from my DROID using xda premium

Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JOSHDE~1\AppData\Local\Tem
p\APKTOOL8354808961139312827.tmp, -I, C:\Users\Josh Desktop\apktool\framework\1.
apk, -I, C:\Users\Josh Desktop\apktool\framework\2.apk, -S, C:\Apk_Multi-Tool\ot
her\..\projects\Mms.apk\res, -M, C:\Apk_Multi-Tool\other\..\projects\Mms.apk\And
roidManifest.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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\JOSHDE~1\AppData\Local\Temp\APKTOOL8354808961139312827.tmp, -I, C:\Users\Jo
sh Desktop\apktool\framework\1.apk, -I, C:\Users\Josh Desktop\apktool\framework\
2.apk, -S, C:\Apk_Multi-Tool\other\..\projects\Mms.apk\res, -M, C:\Apk_Multi-Too
l\other\..\projects\Mms.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
The system cannot find the file specified.
Press any key to continue . . .
This is the error i get when trying to recompile Mms.apk from a sense rom, yes i am using the com.htc.resources.apk with it. Can anyone help?

Why does the Batch Theme Image Transfer TOOL option not do anything?
I enter 15, hit enter and some text blinks on the screen and thats it...?

MarylandCookie said:
Why does the Batch Theme Image Transfer TOOL option not do anything?
I enter 15, hit enter and some text blinks on the screen and thats it...?
Click to expand...
Click to collapse
Did you read the Docs included?

Thanks for the new version, it's pure awesome !!!

If anyone is interested in giving a feature request feel free to post them asi want this tool to be a all in one needed application as well as if you want. To see some features have a stand alone veriarent(sp)
Sent from my DROID using xda premium

I went to Java 1.6 and now I am getting a log file this is the current error. Anyone have any ideas?
Code:
--------------------------------------------------------------------------
|Mon 10/31/2011 -- 13:03:26.95|
--------------------------------------------------------------------------
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)
Could Not Find C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedfoursquare.apk
Could Not Find C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedfoursquare.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Will\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
ERROR: 9-patch image C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\drawable\venues_widget_background.9.png malformed.
Frame pixels must be either solid or transparent (not intermediate alphas).
Found at pixel #128 along top edge.
ERROR: Failure processing PNG image C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\drawable\venues_widget_background.9.png
ERROR: 9-patch image C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\drawable\venues_widget_cell.9.png malformed.
Frame pixels must be either solid or transparent (not intermediate alphas).
Found at pixel #57 along top edge.
ERROR: Failure processing PNG image C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\drawable\venues_widget_cell.9.png
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_activity.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_activity.xml:4: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_activity.xml:8: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/dark_grey_toolbar').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_header.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_list_item_invite.xml:8: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/add_friends_button_invite').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_list_item_request.xml:5: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/photo_background').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_list_item_request.xml:5: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/blank_boy').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_list_item_request.xml:10: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/add_friends_source_phone').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_list_item_request.xml:11: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/add_friends_source_facebook').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_list_item_request.xml:12: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/add_friends_source_twitter').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_list_item_request.xml:16: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/add_friends_button_request').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_option.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/add_friends_option_addressbook_on').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_option.xml:5: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/add_friends_option_bg').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_option.xml:11: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/add_friends_option_bg_top_on').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_option.xml:12: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/add_friends_option_bg_arrow_noside').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_option.xml:13: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/add_friends_option_search_right_border').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_search_activity.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_search_activity.xml:6: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_share_facebook_activity.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_share_facebook_activity.xml:6: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/add_friends_share_option_facebook').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_share_facebook_activity.xml:7: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/add_friends_option_search_right_border').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_share_facebook_activity.xml:8: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/add_friends_option_bg_bottom').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_friends_share_facebook_activity.xml:18: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/dark_grey_toolbar').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_tip_activity.xml:14: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/addphoto_checkin').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_activity.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_activity.xml:14: error: Error: No resource found that matches the given name (at 'drawableRight' with value '@drawable/arrow_light_grey').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_activity.xml:16: error: Error: No resource found that matches the given name (at 'drawableRight' with value '@drawable/arrow_light_grey').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_activity.xml:18: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/photo_background').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_activity.xml:23: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/login_button_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_activity_address.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_activity_address.xml:22: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/login_button_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_map_activity.xml:4: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/header_blue').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_map_activity.xml:6: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/explore_header_button_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_map_activity.xml:7: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/explore_icon_mixer').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\add_venue_map_overlay_title.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/map_callout_bg').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_details_activity.xml:4: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_item_manual').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_details_activity.xml:7: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/badge_detail_loading').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_details_activity.xml:9: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/badge_details_activity_divider').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_grid_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/default_off').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_list_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/default_off').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_set_list_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/default_off').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_sets_activity.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_item_manual').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_sets_activity.xml:7: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_item_manual').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\badge_sets_list_dialog.xml:7: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/dlg_transparent_black_rounded').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\category_picker_list_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/category_none').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\category_picker_list_item.xml:6: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/arrow_grey').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\category_picker_page.xml:4: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/border_round_rect_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\category_picker_page.xml:5: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/category_none').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_activity.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_item_manual').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_activity.xml:9: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/new_places_found_btn_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_activity.xml:10: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/new_places_found_refresh').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_activity.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_item_manual').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_activity.xml:8: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/call_empty_comment').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_activity.xml:13: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/checkin_detail_toolbar_btn_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_activity.xml:14: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/btn_add_photo').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_activity.xml:17: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/checkin_detail_toolbar_btn_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_activity.xml:18: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/btn_add_comment').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_list_item.xml:4: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/photo_background_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_list_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/blank_boy').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_details_list_item.xml:10: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/photo_background_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_list_item.xml:4: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/photo_background_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_list_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/blank_boy').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_list_item.xml:10: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/photocomment_checkin_button_single_selector').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_list_item.xml:11: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/photos_inactive').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_list_item.xml:13: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/comments_inactive').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:11: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/addphoto_checkin').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:14: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/checkin_section_bg').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:16: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/yes_toggle_on').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:17: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/no_toggle_off').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:19: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/checkin_section_bg').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:21: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/yes_toggle_on').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:22: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/no_toggle_off').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:24: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/checkin_section_bg').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:26: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/modal_fb_off').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_or_shout_gather_info_activity.xml:27: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/modal_twitter_off').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:7: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/checkin_message_bg').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:9: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/arrow_banner_blue').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:13: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/arrow_banner_yellow').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:18: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/curve_arrow_green').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:20: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/calendar').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:24: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/arrow_banner_blue').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:30: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/checkin_score_bg').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:33: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/arrow_banner_blue').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:42: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/arrow_banner_orange').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:46: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/arrow_banner_blue').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:50: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/tip_icon_user_orange').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity.xml:58: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/dark_grey_toolbar').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity_badge_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/checkin_result_badge').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity_badge_item.xml:5: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/default_off').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity_score_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/default_points_icon').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity_special_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/special_lock_locked').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_results_activity_special_item.xml:5: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/arrow_light_grey').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_simple_list_item.xml:4: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/photo_background').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\checkin_simple_list_item.xml:4: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/blank_boy').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\edu_new_checkin_button_dialog.xml:5: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/new_checkin_button_edu_dialog').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\empty_loading.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_item_manual').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_activity.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_item_manual').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_header_search.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_header_background').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_header_search.xml:4: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/explore_search_icon').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_keyword_item.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/explore_keyword_button').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_keywords_scroller.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_header_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_list_divider.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/listview_background_flat').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_list_divider.xml:5: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/explore_header_blue_left').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_list_divider.xml:6: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/explore_header_blue_right').
C:\Users\Will\Downloads\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\other\..\projects\foursquare.apk\res\layout\explore_list_divider.xml:9: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/tip_list_item_corner_todo').
and it goes on and on and on like this

From that log there seems to be a issue with the 9.png files.
From what I see there is perhaps a error accuring with the basalmi blocks when decompiling I will look into what may be causing this and perhaps I may have a fix once I finish patching up my custom version of apktool.jar
Sent from my DROID using xda premium

raziel23x said:
From that log there seems to be a issue with the 9.png files.
From what I see there is perhaps a error accuring with the basalmi blocks when decompiling I will look into what may be causing this and perhaps I may have a fix once I finish patching up my custom version of apktool.jar
Sent from my DROID using xda premium
Click to expand...
Click to collapse
Maybe thisll help. It is step by step of what I did and/or didnt do. Maybe I am missing a step or doing something that I am not supposed to be doing. Thanks again for your help.
Error Messages

Related

Compiling apk problem (apktool + SE apps)

OK so I've made it this far with akila87's help but now I'm stuck building my decompiled apk. I'm trying to bring back the old 2.1 SE calculator but i don't know if I coded my xml files if they are good because they are not being recompiled or built again. heres the problem...
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Home>cd C:\apktool-install-windows-2.2_r01-3
C:\apktool-install-windows-2.2_r01-3>apktool b Calculator
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
(skipping index file 'C:\apktool-install-windows-2.2_r01-3\Calculator\res\dr
awable-hdpi\Thumbs.db')
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:5: error:
Error: No resource found that matches the given name: attr 'android:background'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:6: error:
Error: No resource found that matches the given name: attr 'android:focusable'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:8: error:
Error: No resource found that matches the given name: attr 'android:layout_heigh
t'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:9: error:
Error: No resource found that matches the given name: attr 'android:layout_margi
n'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:10: error:
Error: No resource found that matches the given name: attr 'android:layout_marg
inLeft'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:11: error:
Error: No resource found that matches the given name: attr 'android:layout_weig
ht'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:7: error:
Error: No resource found that matches the given name: attr 'android:layout_width
'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:4: error:
Error: No resource found that matches the given name: attr 'android:textSize'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:14: error:
Error: No resource found that matches the given name: attr 'android:background'
.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:17: error:
Error: No resource found that matches the given name: attr 'android:textSize'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:22: error:
Error: No resource found that matches the given name: attr 'android:gravity'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:26: error:
Error: No resource found that matches the given name: attr 'android:layout_heig
ht'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:25: error:
Error: No resource found that matches the given name: attr 'android:layout_widt
h'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:27: error:
Error: No resource found that matches the given name: attr 'android:maxLines'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:23: error:
Error: No resource found that matches the given name: attr 'android:padding'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:28: error:
Error: No resource found that matches the given name: attr 'android:scrollHoriz
ontally'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:24: error:
Error: No resource found that matches the given name: attr 'android:scrollbars'
.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:21: error:
Error: No resource found that matches the given name: attr 'android:textColor'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:20: error:
Error: No resource found that matches the given name: attr 'android:textSize'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:30: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/Theme'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:31: error:
Error: No resource found that matches the given name: attr 'android:windowBackg
round'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\Home\LOCALS~1\Temp\APKT
OOL2546885007159582906.tmp, -S, C:\apktool-install-windows-2.2_r01-3\Calculator\
res, -M, C:\apktool-install-windows-2.2_r01-3\Calculator\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:\D
OCUME~1\Home\LOCALS~1\Temp\APKTOOL2546885007159582906.tmp, -S, C:\apktool-instal
l-windows-2.2_r01-3\Calculator\res, -M, C:\apktool-install-windows-2.2_r01-3\Cal
culator\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\apktool-install-windows-2.2_r01-3>_
When you do jar files you have to add the sources before compile or decompile... so maybe that apk needs the sources by doing apktool if (source name) in terminal... maybe if the original source and the 2.2 or 2.3 source?.... hope this helps
Sent from my X10i using XDA App
Exactly. You need to inc source jar or Java classes. Sorry for obvious question (log posted) could you tell me what your build setup is please?
Edit: create an eclipse project and import.
rdannar said:
When you do jar files you have to add the sources before compile or decompile... so maybe that apk needs the sources by doing apktool if (source name) in terminal... maybe if the original source and the 2.2 or 2.3 source?.... hope this helps
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Sent from my X10a using XDA Premium App
MrHassell said:
Exactly. You need to inc source jar or Java classes. Sorry for obvious question (log posted) could you tell me what your build setup is please?
Edit: create an eclipse project and import.
Sent from my X10a using XDA Premium App
Click to expand...
Click to collapse
I'm on CM6 6.1.3 (v54)... I'm trying to edit the stock SE calculator.apk :/ and it decompilied no problem. If I put apktool d calculator (folder) ill get the calculator.out which has the apktool.yml which I copied and pasted into clthe decompiled calculator folder
And where do I get these sources?
Sent from a pyramid in Canadada
your problem is that you didn't imported a framework that works with the apk(in your case the 2.1's framework)
you will find help doing it if you look at the bottom of apktool's help screen
you can import multiple frameworks, so I suggest you to import 2.2's, too
resources are loaded from framework-res.apk
PS.: sometimes recompiling fails if AndroidManifest.xml contains some random crappy stuff. if compiling still fails post that xml and then I could post a corrected one. and please delete any kind of rubbish from the dirs... *caugh* thumbs.db *caugh*
moved to proper forum
oh, mcfly. procedure, procedure. soapbox time?
first verify that apktool is setup and working correctly for you. lets assume that it is;
these are simple instructions for tagging 1 single framework for use in working in 1 rom. additional options are required if working with multiple romsets;
1
tag the rom framework for use in decompiling and recompiling apks that came with the sony rom;
Code:
framework if framework-res.apk
if you were in an unextracted rom folder;
Code:
/system/framework
2
decompile apk you wish to work with
Code:
apktool d Calculator.apk
your apk should decompile without error
3
NOW we verify your apktool setup. recompile the Calculator.apk, unmodified. casing matters and you should specify the output file.
Code:
apktool b Calculator ./built/Calculator.apk
DO YOU HAVE ERRORS AT THIS POINT? if you do, you don't have apktool setup right.
if you don't your xml modifications are either too excessive (they don't jive w/ the jar), or you're improperly making xml modifications. it happens. the changes you make, as the others said, have to jive w/ the jar that accompanies it. my past experience has been that modifications to the /res/values folder that you're making tends to break apk's if its more than just manipulation to a few simple digital values for colors or margins, and even then stability is iffy. i find its better to creatively manipulate the images by overlaying the images where i want them placed in a graphic editor, and then experimenting with creating them to display where i want on the screen. i do this in combination w screenshots from the calculator that i want to display. not a procedure easily explained..
..i was able to turn the current se21 calculator into a htc hybrid by replacing the provided background w/ a black background that has a grey bar across the output field at the top of the screen. i simply put the grey bar on the background image. no xml manipulation required. looks nice compared to the funky blue one it came w.
zip up what you have and send it my way and i can tell you if what you're doing is doable w/ apktool.
i can be of no help to you with eclipse and use of source in your venture. source coding is a little above my current list of working skills beyond simple stock source compiles w the make system for apps and roms.
i have the same error when compiling the com.htc.resources.apk
how i add the sources ?
thanks

[Q] Error on compiling from source

Hi guys,
I'm trying to compile android 4.3 from AOSP. I've successfully compiled the roms like Rasbeanjelly or Martin_ro.
However when I'm trying to compile from source, it gives me the following errors:
packages/apps/Settings/res/values/strings.xml:4537: error: Error parsing XML: not well-formed (invalid token)
packages/apps/Settings/res/layout/intent_sender.xml:48: error: Error: No resource found that matches the given name (at 'text' with value '@string/intent_sender_data_label').
...... long list .....
packages/apps/Settings/res/xml/testing_wifi_settings.xml:29: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_config_info').
packages/apps/Settings/res/xml/testing_wifi_settings.xml:37: error: Error: No resource found that matches the given name (at 'title' with value '@string/wifi_status_test').
make: *** [out/target/common/obj/APPS/Settings_intermediates/src/R.stamp] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.​
What am I missing here? I've added the proprietary drivers from google, walked through all the steps from the devs website. Any help would be highly appreciated.
I'm on Ubuntu 13.04 btw

[GUIDE] How to enable all apps in dual window in LG G4? [ Without Root ]

First buy apk editor premium version from playstore.
Note: Premium version is going to allow us to edit manifest.xml which is the one we need to edit.
Open apk editor .
Navigate to application or apk file.
Choose full edit.
Go to manifest tab which is on bottom.
Hold a line and choose open in New window option.
Find <meta-data tag and press enter to get to best line.
On next line copy this
<meta-data android:name="com.lge.support.SPLIT_WINDOW" android:value="true" />
Press the save button.
Press save button on apk editor.
It will compile and sign the apk. Install the apk.
If got installation error uninstall the app and install the apk you created now. It will succesfully
install it.
Now you got your favourite app in dual window.
Thx my man!!it worked like charm!!
johnnyman25 said:
Thx my man!!it worked like charm!!
Click to expand...
Click to collapse
Welcome[emoji2] [emoji2] [emoji2]
i want to do the same with viber but i must unistall viber first...if i do this all my messages will be deleted..
johnnyman25 said:
Thx my man!!it worked like charm!!
Click to expand...
Click to collapse
Hi man, but i need unlocked bootloader? when i click on manifest i see nothing
I did all the steps but the app does not appear in Dual Window...Can someone give me an app that worked?
johnnyman25 said:
i want to do the same with viber but i must unistall viber first...if i do this all my messages will be deleted..
Click to expand...
Click to collapse
Take a back up. I never used Viber but like in WhatsApp there will be option to back up.
MitoTakatori said:
I did all the steps but the app does not appear in Dual Window...Can someone give me an app that worked?
Click to expand...
Click to collapse
I think you never saved the edited file or the string got something change
String <meta-data android:name="com.lge.support.SPLIT_WINDOW" android:value="true" />
And press these save button
{
"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"
}
WhatsApp does want to authenticate and it doesn't work
Sent from my LG-H815 using Tapatalk
imarcel99 said:
WhatsApp does want to authenticate and it doesn't work
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
For me WhatsApp works perfectly.
Back up whatsapp
Uninstall whatsapp
Install the new WhatsApp from apk editor.
I kinda know this, but without root it doesn't because it needs backup of app data
Sent from my LG-H815 using Tapatalk
imarcel99 said:
I kinda know this, but without root it doesn't because it needs backup of app data
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
Nope. It doesn't need back up of app data.
WhatsApp will back up chat and uninstall this after that reinstall and give your number when prompted to restore - restore the messages.
That's the problem. When I entered the number, the verification prompted then it went back to entering the number
Sent from my LG-H815 using Tapatalk
imarcel99 said:
That's the problem. When I entered the number, the verification prompted then it went back to entering the number
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
Use jimtechs mod from jimtechs.com
thread cleaned, no warez talk, period.
safwan ck said:
First buy apk editor premium version.
Note: Premium version is going to allow us to edit manifest.xml which is the one we need to edit.
Open apk editor .
Navigate to application or apk file.
Choose full edit.
Go to manifest tab which is on bottom.
Hold a line and choose open in New window option.
Find <meta-data tag and press enter to get to best line.
On next line copy this
<meta-data android:name="com.lge.support.SPLIT_WINDOW" android:value="true" />
Press the save button.
Press save button on apk editor.
It will compile and sign the apk. Install the apk.
If got installation error uninstall the app and install the apk you created now. It will succesfully
install it.
Now you got your favourite app in dual window.
Click to expand...
Click to collapse
In my dual window apk manifest I didn't found the line meta-data, but I put it before </Aplication> tag, I saved and compiled, but when I try to install trigger an error telling me that the apk not installed. What can I do? Need root because is a system app?
crbdigo said:
In my dual window apk manifest I didn't found the line meta-data, but I put it before </Aplication> tag, I saved and compiled, but when I try to install trigger an error telling me that the apk not installed. What can I do? Need root because is a system app?
Click to expand...
Click to collapse
If it is a system app. You need root .
Install root explorer. Copy the apk file from apk editor to system/app or system/priv-app folder. [Just check where the apk is.] Take a back up of orginal apk. Put the permission as rw-r-r.
Reboot.
warning: string 'accept' has no default translation.
warning: string 'auth_google_play_services_client_facebook_display_name' has no default translation.
warning: string 'auth_google_play_services_client_google_display_name' has no default translation.
warning: string 'cast_notification_connected_message' has no default translation.
warning: string 'cast_notification_connecting_message' has no default translation.
warning: string 'cast_notification_disconnect' has no default translation.
warning: string 'common_google_play_services_api_unavailable_text' has no default translation.
warning: string 'common_google_play_services_enable_button' has no default translation.
warning: string 'common_google_play_services_enable_text' has no default translation.
warning: string 'common_google_play_services_enable_title' has no default translation.
warning: string 'common_google_play_services_install_button' has no default translation.
warning: string 'common_google_play_services_install_text_phone' has no default translation.
warning: string 'common_google_play_services_install_text_tablet' has no default translation.
warning: string 'common_google_play_services_install_title' has no default translation.
warning: string 'common_google_play_services_invalid_account_text' has no default translation.
warning: string 'common_google_play_services_invalid_account_title' has no default translation.
warning: string 'common_google_play_services_network_error_text' has no default translation.
warning: string 'common_google_play_services_network_error_title' has no default translation.
warning: string 'common_google_play_services_notification_ticker' has no default translation.
warning: string 'common_google_play_services_restricted_profile_text' has no default translation.
warning: string 'common_google_play_services_restricted_profile_title' has no default translation.
warning: string 'common_google_play_services_sign_in_failed_text' has no default translation.
warning: string 'common_google_play_services_sign_in_failed_title' has no default translation.
warning: string 'common_google_play_services_unknown_issue' has no default translation.
warning: string 'common_google_play_services_unsupported_text' has no default translation.
warning: string 'common_google_play_services_unsupported_title' has no default translation.
warning: string 'common_google_play_services_update_button' has no default translation.
warning: string 'common_google_play_services_update_text' has no default translation.
warning: string 'common_google_play_services_update_title' has no default translation.
warning: string 'common_google_play_services_updating_text' has no default translation.
warning: string 'common_google_play_services_updating_title' has no default translation.
warning: string 'common_google_play_services_wear_update_text' has no default translation.
warning: string 'common_open_on_phone' has no default translation.
warning: string 'common_signin_button_text' has no default translation.
warning: string 'common_signin_button_text_long' has no default translation.
warning: string 'create_calendar_message' has no default translation.
warning: string 'create_calendar_title' has no default translation.
warning: string 'decline' has no default translation.
warning: string 'place_autocomplete_clear_button' has no default translation.
warning: string 'place_autocomplete_search_hint' has no default translation.
warning: string 'pro_promote' has no default translation.
warning: string 'select_image_to_replace' has no default translation.
warning: string 'store_picture_message' has no default translation.
warning: string 'store_picture_title' has no default translation.
warning: string 'wallet_buy_button_place_holder' has no default translation.
warning: string 'why_get_pro' has no default translation.
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/values/public.xml:281: error: invalid symbol: 'do'
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/values/public.xml:1296: error: invalid symbol: 'do'
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/values/public.xml:1472: error: invalid symbol: 'if'
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a0.xml:16: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a0.xml:17: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a0.xml:18: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a0.xml:19: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a1.xml:15: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a1.xml:27: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a1.xml:94: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a1.xml:104: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_bottom').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a1.xml:105: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_bottom').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a1.xml:106: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_bottom').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a1.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_left').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a1.xml:7: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_left').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a1.xml:9: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_left').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a1.xml:25: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a1.xml:37: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a1.xml:104: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a2.xml:15: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a2.xml:27: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a2.xml:94: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a2.xml:104: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_bottom').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a2.xml:105: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_bottom').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a2.xml:106: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_bottom').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a2.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_left').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a2.xml:7: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_left').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a2.xml:9: error: Error: No resource found that matches the given name (at 'style' with value '@style/main_tab_left').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a2.xml:25: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a2.xml:37: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout-land/a2.xml:104: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a5.xml:12: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a5.xml:13: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a6.xml:12: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a6.xml:13: error: Error: No resource found that matches the given name (at 'style' with value '@style/dark_button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a7.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@style/button').
/data/user/0/com.gmail.heagoo.apkeditor.pro/files/decoded/res/layout/a7.xml:9: error: Error: No resour
---------- Post added at 07:37 PM ---------- Previous post was at 07:36 PM ----------
M getting such a long error msg
I can't Find <meta-data tag on my phone..

substratum theme

Everytime i try install a theme i get errors its doing my head in
» [com.android.settings]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//type3_Android_Nougat/layout/suggestion_header.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@*com.android.settings:drawable/selectable_card_grey').
» [com.android.settings]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//type3_Android_Nougat/layout/suggestion_header.xml:5: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@*com.android.settings:style/TextAppearance.SuggestionTitle').
» [com.android.settings]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//type3_Android_Nougat/layout/suggestion_header.xml:6: error: Error: No resource found that matches the given name (at 'textAppearance' with value '@*com.android.settings:style/TextAppearance.SuggestionTitle').
» [com.android.settings]: Installation of "com.android.settings" has failed.

Can't install substratum themes

Hi, I'm having troubles installing themes on Substratum, I'm a root user and when I wanna install any theme it prints me this error: target application/overlay outdated or mismatched configuration
This is the log:
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/conversation_list_item_view.xml:25: error: Error: No resource found that matches the given name (at 'layout_marginEnd' with value '@*com.google.android.apps.messaging:dimen/conversation_list_image_preview_margin_end').
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/conversation_list_item_view.xml:26: error: Error: No resource found that matches the given name (at 'layout_marginEnd' with value '@*com.google.android.apps.messaging:dimen/conversation_list_image_preview_margin_end').
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/mediapicker_audio_chooser.xml:5: error: Error: No resource found that matches the given name (at 'text' with value '@*com.google.android.apps.messaging:string/audio_picker_hint_text').
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/mediapicker_image_chooser.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@*com.google.android.apps.messaging:id/gallery_grid_view').
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/mediapicker_image_chooser.xml:4: error: Error: No resource found that matches the given name (at 'columnWidth' with value '@*com.google.android.apps.messaging:dimen/gallery_image_cell_size').
» [com.google.android.apps.messaging]: Installation of "com.google.android.apps.messaging" has failed.
» [com.google.android.dialer]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/drawable/bubble_ripple_checkable_circle.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@*com.google.android.dialer:color/bubble_checkable_mask').
» [com.google.android.dialer]: Installation of "com.google.android.dialer" has failed.
Any idea what's going on?
I am getting the same error any help?
Basidialfiddle said:
Hi, I'm having troubles installing themes on Substratum, I'm a root user and when I wanna install any theme it prints me this error: target application/overlay outdated or mismatched configuration
This is the log:
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/conversation_list_item_view.xml:25: error: Error: No resource found that matches the given name (at 'layout_marginEnd' with value '@*com.google.android.apps.messaging:dimen/conversation_list_image_preview_margin_end').
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/conversation_list_item_view.xml:26: error: Error: No resource found that matches the given name (at 'layout_marginEnd' with value '@*com.google.android.apps.messaging:dimen/conversation_list_image_preview_margin_end').
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/mediapicker_audio_chooser.xml:5: error: Error: No resource found that matches the given name (at 'text' with value '@*com.google.android.apps.messaging:string/audio_picker_hint_text').
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/mediapicker_image_chooser.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@*com.google.android.apps.messaging:id/gallery_grid_view').
» [com.google.android.apps.messaging]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/layout/mediapicker_image_chooser.xml:4: error: Error: No resource found that matches the given name (at 'columnWidth' with value '@*com.google.android.apps.messaging:dimen/gallery_image_cell_size').
» [com.google.android.apps.messaging]: Installation of "com.google.android.apps.messaging" has failed.
» [com.google.android.dialer]: /data/user/0/projekt.substratum/cache/SubstratumBuilder//res/drawable/bubble_ripple_checkable_circle.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@*com.google.android.dialer:color/bubble_checkable_mask').
» [com.google.android.dialer]: Installation of "com.google.android.dialer" has failed.
Any idea what's going on?
Click to expand...
Click to collapse
Did you try to restart your phone and reapply the theme ??
laugeek57 said:
Did you try to restart your phone and reapply the theme ??
Click to expand...
Click to collapse
I tried and stil got the same error
contact the theme developer about these error..

Categories

Resources