yashsingh1/xdaforums huggingface dataset:
[Android Software Development] raziel23x:
again I have researched this over a year ago and never found a solution to allow this even asked on iirc and none had a answer.

have you even looked at the scripts you will see that the naming scripts make it impossible to rename without breaking the compiler scripts and with having to completely rewrite everything from the ground up
[Android Software Development] Epikarus:
Hello! I want to first thank you for the hard work you put into this.

So, I'm a complete newbie, so please forgive me for any stupidity. I started wanting to theme the AOSP keyboard that come with CM10.1 Nightlies so I did some googling and decided to use metamorph, which was quite simple, I used it to theme the keyboard but I realized that If i wanted to change some of the code (key text colors) I would need to edit the xml files. So I came upon your tool, after some initial confusion I got it to decompile and compile the LatinIME.apk with my .9.png files included. I quickly realized that the file size was half of the original apk. You say this is due to several reasons but I looked into the archives of both and saw that the res folder in the modified apk was compressed down to half of the original while in the original this was not the case. Nevertheless, I installed the apk into my system/app/ and the keyboard was not crashing. I only changed two .9.png files nothing else. I racked my noob brain all night but cant find the reason why its not working. Any advice would be appreciated. I generally like to find solutions myself but maybe this issue is specific to the keyboard? I don't know, I'm a bit sleep deprived as well.

Thanks again, hope to hear from you soon.
[Android Software Development] RagzDog:
Hello i ve a problem !

Your tool worked me fine.

After is out the update of java and apk multi tool don t work ! When i open script.bat there is the error : java is not installed

I tried to reinstall java and jdk but i don t solve :'( solution ?

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Software Development] Epikarus:
I had this problem aswell, Google "how to add java to path" You will have to add the bin folder in your JDK directory to path.
[Android Software Development] RagzDog:
I don t know :(

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Software Development] Epikarus:
Hi, it's me again.

I figured out that if i compile the apk as a non system app and use the keep method the keyboard works perfectly (The file size is similar to the original). The problem that I'm having now is that i modified an xml (res/values/styles.xml) in my projects folder, but when I compile the apk like i mentioned above, the res/values/ folder is not in the keep folder so there isn't a styles.xml to delete. When I decompile the resulted compiled apk the styles.xml is the unmodified version. I don't know how to get around this problem. Any insight would be appreciated thanks!

---------- Post added at 10:56 PM ---------- Previous post was at 10:44 PM ----------

I did this on windows so if you arent on windows 7 then you will have to find your way to do it.

Press Start

Right Click on Computer > Properties

On the left Click on "Advanced system settings"

Click on Environment Variables

On the bottom box, under System Variables, select "Path" under the Variable column.

Press Edit and add "C:\Program Files\Java\jdk1.6.0_35\bin;" to the end of the Variable Value text box.

Remember the semicolons.

It should look something like "C:\XXXX\XXXX\;C:\XXXXX\XXXX\;C:\Program Files\Java\jdk1.6.0_35\bin;"

Then done. USE THE CORRECT jdk directory for the version of jdk you have installed.
[Android Software Development] raziel23x:
delete the resources.arc to suffice the changes any time you edit the xml you must delete this Goole add it is where the res xml is found compiled. so again delete the resources.arc
[Android Software Development] fatguy666:
Like others in the thread I've been having problems even getting started.

Added the java and adb folders to the PATH enviroment variable and was still getting errors about mode. Adding syswow64 to the PATH finally got it working!

Now I just need to work out how to use the bloody thing!
[Android Software Development] Epikarus:
OMG. I am such a retard. It says it right there when i select keep method, how did i not notice that. THANK YOU for your patience and of course for this awesome tool. Have a great day!
[Android Software Development] RagzDog:
I solved reinstalling all java product ;)

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Software Development] c0rsaro381:
HI . I have this problem :

how can i do ?
[Android Software Development] raziel23x:
did you install all the APK files in your framework system folder of that ROM file?
[Android Software Development] c0rsaro381:
you've already installed framework-res

In the folder users...apktool there are the file of the framework installed
[Android Software Development] raziel23x:
can you link me a copy of the ROM flash zip
[Android Software Development] c0rsaro381:
https://www.box.com/s/cd3b7c0klfztzrx9wz1l

Of course
[Android Software Development] raziel23x:
the ROM not the single apk a ROM is a zip file which you flash that contains all system files and needed Gomes. out OS usually around 150mb or more in size
[Android Software Development] c0rsaro381:
all rom is here

https://sourceforge.net/projects/x-note/files/X-Rom-V2.1-Deodexed-XXDMC3.zip/download

I do not understand what you mean
[Android Software Development] raziel23x:
I will take a look tomorrow when I have time to trouble shoot what is going and will get back with my findings. hopefully I will have some good news.
[Android Software Development] jayOOMjay:
missing smali files

after decompiling the systemUI.apk, I included additional smali files in the location SystemUI.apk\smali\in\jmkl\dcsms\statusbargreper. Then i compiled it using the keep folder method ( tried other method also ). I did n't make any changes to keep folder.

I decompiled the resultant apk . The additional smali files that I ve included to the systemUi.apk folder were missing in the apk. :(

I tried placing the smali files in other folders too, but in all the cases ,, the newly added smali files were not included while compling.

or is there anything that has to done while adding extra smali files ?

I ve searched in this thread and did n't find similar reports, so am I doing something wrong ?

waiting for your respone.

By the way, this is most user friendly tool for modding apks, Thanks for your effort :D
[Android Software Development] raziel23x:
Did you delete the classes.dex from the keep folder before allowing it to continue.

This file is what the Smali looks like after it is compiled and if you allow it to stay it will just overwrite what you did just reverting back to the original the same goes if you do xml changes and if you allow the original resources.arsc to stay as the xml files when compiled are contained in the resources.arsc
[Android Software Development] raziel23x:
Okay I downloaded the XNOTE ROM and After exploring the zip file I found that outside of the normal installing of these

apktool if SystemUI.apk

apktool if twframework-res.apk

apktool if framework-res.apk

You will need to have

apktool if lidroid-res.apk

done as well

I have added support for the XNOTE to the install frameworks script option in the setup.bat all you have to do is connect your Xnote to your PC with a USB Connection and run the installation scripts and or just manually copy the 4 files into the other folder and then just run the above 4 commands in your command line then decompile and recompile the system files I manually did this since I do not own a Xnote and was able to decompile and recompile your problematic APK without any errors
[Android Software Development] jayOOMjay:
Thanks man , :good: I should have asked you much sooner, instead i tried to find the solution myself. The funny thing , after hours of experimenting different methods, just before your reply, I realized that the classes.dex is the file associated with smalis.

Now everything is fine. ;)

I've one request , if you are releasing any further versions, it is better to mention " delete classes.dex if you've changed any smalis " along with the notification to delete resources.arsc for xml changes. ( it will surely help beginners like me )

So apk multi Tool is the best available... Good job :good:;)
[Android Software Development] raziel23x:
well experimental build is updated nearly everyday. I have not felt it good enough for a stable release just yet as more bugs crop up all the time like today I added support for the xnote. because a user could not decompile one of his system applications and after exporting the ROM I found that the xnote needed additional resources from the system frameworks folder and added the ability to pull the needed files using the setup.bat to install them as well as the batch pull resource option.
[Android Software Development] raziel23x:
LATEST CHANGELOG FOR THE EXPERIMENTAL BUILD

Version 1.0.12 (TBA)
Fixed Compiler bug with option 3 and 4 for none system files.
Fixed Set current project option not working properly
Added the ability to set compression level of the Resources.arsc
Changed the name of recompiled System Applications from unsigned to system to keep the two from being confused
Code Clean up clearing out unused code
UPDATED to apktool-cli-1.5.3-SNAPSHOT
v1.5.3 (TBA)
-Updated to smali/baksmali to v1.4.2
-Fixed (issue #396) - Correctly handle android:debuggable while in debug mode.
-Fixed (issue #340) - Fixed superclass errors on debug mode.
-Updated to Gradle 1.4
-Updated known bytes for configurations to 38 (from addition of layout direction)
-Fixed NPE when handling odex apks even with --no-src specified. (Thanks Rodrigo Chiossi)
-Fixed (issue #427) - Correctly handles `--frame-path` on [b]uild
Added smali/baksmali for adding new up coming Deodex features
Added now when compiling with option 12 when you choose option 3 and 4 it names the apk files to show they have the original signature keys
Added new Signing method for signing apk files. With this new method the key used has a shelf life of 1000 years and also apks files signed with this key is able to be published on the android market
Added new checks to cleaning up old recompiled apk files before recompiling again.
Added pause breaks into option 12 so that users can check to see if anything went wrong in the recompiling method when using the keep folder option.
Updated option 13 to use a alternative to a signing method which uses the Java_Home Environment Variable which needs to point to for example mine is set to C:\Program Files\Java\jdk1.6.0_41
Added Batch Decompile option
Added Batch Compile option
Completely rewrote how recompiled apk files are stored so to not clutter up the place-apk-here-for-modding as that folder is just for storing unmodified apk files.
Updated the signer location to match up with the changes to how modified apk files are handled
Added support to Xperia devices given the ability to install the dependencies
Added SemcGenericUxpRes pull support
Fixed the issue with changes not happening when compiling the scripts using the wrong resources.arsc
Fixed broken zipalign scripts
Added the options to allow you to choose to use the original AndroidManifest.xml when not using the keep folder options when compiling apk files.
Added the options to allow you to choose to use the original AndroidManifest.xml when not using the keep folder options when compiling system apk files.
Added the ability to open the project after decompiling the apk files
Added support for Jar files
NEW Splash Screen
Rewritten the system pull scripts to make dynamic installation of the dependencies more robust.
Added support for pulling the needed files to install the dependcies for the Xnote
[Android Software Development] raziel23x:
I have been contemplating rewriting the installation scripts for the installation of dependencies apk files.

I have been looking at rewriting the scripts to where you select your device from a list and it will pull and automatically install each apk after the pulling of the files.

This will take a lot of work and I will have to look at many ROMS to see what device will need what and then there will be a issue with organization of the devices where you select what brand then another list of phone or tablet then after this a list of devices which you pick your device which will then have the installation scripts to run to install the needed files.

I am wanting to know what everyone thinks of this idea as this will help a lot of newbies to android devices and such.
[Android Software Development] raziel23x:
I have merged the experimental build into the stable build as the changes done thus far are finally stable enough to be merged since many do not use the experimental build since it is updated so much.

I am not ready for a final release of 1.0.12 since there is more work I would like to do before releasing a final before working on the next version

I will be in the next couple of weeks be working on tweaking what I have already added to fine tune it and perhaps make the instructions in the command prompts more clear and better explain what each tool works and make it more newbie friendly
[Android Software Development] sga999:
With your latest experimental, I'm still getting the error "The system cannot find the batch label specified - opeproj" that I mentioned a week or so ago. I posted in #1115 some information I found after googling about this problem with scripts. I don't know if you saw that post, or maybe you just didn't see an easy way to fix it. Am I the only one seeing this problem?

EDIT: You still have "Private testes" in your header. I mentioned that in an earlier post too.
[Android Software Development] raziel23x:
I have been trying to reproduce your error with the opeproj issue but I cannot reproduce it on my windows 7 64 bit my windows xp or my windows 8 pro 64 system

as for the private testing part i reworded it from

Private Testes Special Thanks:

to

Private Testes & Special Thanks:
[Android Software Development] sga999:
It should be 'testers', not 'testes". The added '&' is fine, but that's not what I was referring to.

Wow, I can' believe others aren't hitting the 'oneproj' problem. I'm also on Windows 7 64 bit. It definitely was fixed when I used the unix2dos program, but I don't know if that's the right solution to the problem.
[Android Software Development] raziel23x:
Try this change I just did
[Android Software Development] raziel23x:
okay i fixed the typo
[Android Software Development] c0rsaro381:
hello. I uninstalled and reinstalled everything ... now it seems to work. possobile just put a screen

Inviato dal mio Bestifonino X-Note 2
[Android Software Development] sga999:
Yes, this works...a week ago, I had already tried moving the label up, just as you have, and it did work. But it seemed like that was just an "accidental fix", and maybe the actual problem is not really solved. But I guess this will do until it happens again.

I see that you put 'and' instead of '&' in the line with Private Testers and Special Thanks. I didn't realize it at first, but the '&' was causing a problem for me, so it's good that you fixed it.
[Android Software Development] raziel23x:
Yea i did it because you said something about this the other day and i changed the & to and because the system was trying to treat the & as a command even though that section is a comment
[Android Software Development] sga999:
Just to finish this issue, a week ago, I wasn't concerned at all about you inserting '&' or 'and'.....I was only trying to tell you to fix 'testes'.
[Android Software Development] raziel23x:
true just that in monitor logs when testing and noticed the & was throwing errors yet if I changed it to and it did not
[Android Software Development] raziel23x:
batch optimize and zipalign seems to only want to do the first APK file then quit so I am completely rewriting the script from the ground up which is going to take some time since it is a complex yet at the same time a simple script but is fickle. so I am going to completely rewrite the entire script
[Android Software Development] raziel23x:
Long day of fixing bugs with batch optimize option with APK Multi-Tools. was forced into having to completely rewrite how batch optimize works. I happened across this issue of the original method just doing the first APK them just returning to the main menu or causing a shutdown of the scripts. I tried revising the script but no matter what I tried it does not want to play well with others. With the new script I am currently working on will fix this issue permanently.
[Android Software Development] raziel23x:
A complete rewrite of a script seems to be more trouble then it is worth at times. I am hoping to have the new batch script done and fully functional by Friday.
[Android Software Development] sga999:
While you're at it, maybe you can change all "occured" to "occurred".
[Android Software Development] raziel23x:
keep this a secret I can spell worth crap most of the time lol
[Android Software Development] sga999:
(Okay, it's just between us).
[Android Software Development] nqk:
I can't decomple Mms.apk from CM10.1 using APK Multi-Tool Windows Version 1.0.11

--------------------------------------------------------------------------
|Fri 05/03/2013 -- 11:10:04.05|
--------------------------------------------------------------------------
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
3748 KB/s (3055320 bytes in 0.796s)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\khanh\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=widgetCategory, value=0x00000003
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010103c4
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
[Android Software Development] raziel23x:
use the experimental build it has the must recent changes and patches
[Android Software Development] MicroLizard:
can you help me.

I always got this error.

even without any change in apk, I still got this problem.

thanks.

--------------------------------------------------------------------------
|04/05/2013 -- 17:23:17,97|
--------------------------------------------------------------------------
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Muhamad\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Settings.apk\res\values\styles.xml:158: error: Error: No resource found that matches the given name: attr 'android:preferencePanelStyle'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Muhamad\AppData\Local\Temp\APKTOOL1443208256665301485.tmp, -0, arsc, -I, C:\Users\Muhamad\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Settings.apk\res, -M, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Settings.apk\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:223)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Muhamad\AppData\Local\Temp\APKTOOL1443208256665301485.tmp, -0, arsc, -I, C:\Users\Muhamad\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Settings.apk\res, -M, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Settings.apk\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, 17, --target-sdk-version, 17, -F, C:\Users\Muhamad\AppData\Local\Temp\APKTOOL1443208256665301485.tmp, -0, arsc, -I, C:\Users\Muhamad\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Settings.apk\res, -M, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Settings.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
[Android Software Development] raziel23x:
did you use setup and installed the needed frameworks folder files from your device as well as what device and what ROM
[Android Software Development] MicroLizard:
yes I installed the needed framework.

my device is Samsung Galaxy Ace running AOKP.

this error is happened on every ROM based on CM10.1.
[Android Software Development] raziel23x:
can you link me to the actual ROM version your trying to compile
[Android Software Development] MicroLizard:
here it is. http://xdaforums.com/showthread.php?t=2245418
[Android Software Development] sourcex:
which Frameworks are needed to be installed ? Can u please guide me through ?

i am currently on this ROM http://xdaforums.com/showthread.php?t=2124838

My errors while compiling the SystemUi.apk
[Android Software Development] raziel23x:
to answer both people above me I checked out both roms it is just you need the frameworks-res.apk from the framework folder of the system folder pulled from your phone using the setup then installed using setup if that does not help then will need to report finding to IbotPeaches in his apktool thread since that will be a apktool issue not a APK Multi-Tool script issue