yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Sandipkim:
A noob quetion

How to operate a project without having apk file...but having source folder!

Plz help!!:crying:

Thanx!
[Android Software Development] xxsicknessxx:
I managed to get as far as getting abd working in CMD and going into muti tool and decompiling the app

Then when try recompile the app (its swipe) no spaces It says error his 21

I hit it says zip compression level

Whats the setting it should be at? Compression level

Is there a good guide somewhere for this program? I want to learn bad im trying been working on it for 4 days one dam app lol
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

The version in the website is out of date compared to the Github version. The next stable release there is no ETA since I am working 2 jobs and finding hard to get the time to actually get a few hours of coding done in one sitting
[Android Software Development] AndyOpie150:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

It's me again. "Accidentally deleted a much needed file using IObit Uninstaller".

I have the jdk1.6.0_33's java.exe in the class path and path, as well as the SDK's adb.exe in the path.

I can work with .apk's all day long, but I can't remember how to get a framework.jar to even show up after typing in option 24. No number or jar file.

What have I forgotten?

Tried to rename to .apk but that didn't work.

Edit: Works fine on the framework.jar pulled from phones /system/framework by APK MultiTool, but not one extracted from a ROM zip and placed in Modding folder.

Edit #2: Tricked it. Set project for one pulled from phone. Then r and r'd with one from zip.

There has got to be an easier way though. Lol.
[Android Software Development] raziel23x:
I need a few testers to test out my latest changes

https://github.com/ApkMultiTools/APK-Multi-Tool

I Am not ready for a stable release yet as I am using the latest snapshot for 1.5.2 I compile a new version of apktool.jar every other week until stable is released so in need of testers
[Android Software Development] slim80:
R: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

I can test the new version tomorrow. I must decompile/compile same system app for my ROM (Galaxy S3 JB 4.1.2 based).

Thanks.

Inviato dal mio GT-I9300 con Tapatalk 2
[Android Software Development] claytonjn:
I decompiled, modified, and recompiled framework-res.apk from a 4.2.1 build of PA. Caused bootloops, but that was probably my edits. I'll do more testing tomorrow.
[Android Software Development] fifthstreetjammer:
Ok, I don't see anyone here talking about this error and maybe because its a simple one. I googled it and found a thread over at oracle but dam that's confusing. I really am at a lost here. I've used adb and other tools so I know my path is good, your tool opens fine as well. Prior to replying I unistalled all Java Jre7 and downgraded to Jre6 (as you can see) but this is still what I get when I select 1) extract apk....

It just closes the tool and gives a reader was unexpected at this time

--------------------------------------------------------------------------

|Fri 01/25/2013 -- 17:03:57.77|

--------------------------------------------------------------------------

java version "1.7.0_11"

Java(TM) SE Runtime Environment (build 1.7.0_11-b21)

Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Reader was unexpected at this time.

--------------------------------------------------------------------------

|Fri 01/25/2013 -- 17:07:52.07|

--------------------------------------------------------------------------

java version "1.7.0_11"

Java(TM) SE Runtime Environment (build 1.7.0_11-b21)

Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Reader was unexpected at this time.

--------------------------------------------------------------------------

|Fri 01/25/2013 -- 17:26:08.71|

--------------------------------------------------------------------------

java version "1.6.0_38"

Java(TM) SE Runtime Environment (build 1.6.0_38-b05)

Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

Reader was unexpected at this time.

--------------------------------------------------------------------------

|Fri 01/25/2013 -- 17:27:05.81|

--------------------------------------------------------------------------

java version "1.6.0_38"

Java(TM) SE Runtime Environment (build 1.6.0_38-b05)

Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

Reader was unexpected at this time.
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

Added new feature that allows you to pull the main dependencies from your phones system folders to install with the setup.bat

Remember that not all phones are the same and do not have all dependencies that is possible to install.

After the files have been pulled the script will tell you which files was pulled so you just have to select though options to install.
[Android Software Development] slim80:
Works fine for me. I decompiled/compiled Samsung Galaxy S3 system app without problems.

Thanks :good:
[Android Software Development] desalesouche:
how to compress apk?i didn't understood thank you.
[Android Software Development] raziel23x:
I am not understanding the question

You can set the compression level within the application but that is mainly for system applications.

but depending on the application and how the developer compiled the original apk file all depends on the settings and what they used to compile the apk files as they could of used a compiler within linux or eclipse which both can have different effects depend on settings.

after compiling the apk files you do not need to worry about compressing them unless you are trying to not compress certain files structures.
[Android Software Development] Planters76:
Just downloaded the latest version of AMT Version 1.0.10 on my Windows 8 64bit and I am have having a few issues. I can decompile fine but however when I compile I get this error code.

java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
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\Gerry\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'tether_hotspot_intro_part2' has no default translation in C:\Android Development\APK-Multi-Toolv1.0.10\other\..\projects\Settings.apk\res; found: es
aapt: warning: string 'tether_hotspot_intro_part3' has no default translation in C:\Android Development\APK-Multi-Toolv1.0.10\other\..\projects\Settings.apk\res; found: es
I: Building apk file...
The system cannot find the file specified.
The directory is not empty.
java.io.FileNotFoundException: ..\place-apk-here-for-modding\unsigned_Settings.apk (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:437)
Could Not Find C:\Android Development\APK-Multi-Toolv1.0.10\place-apk-here-for-modding\../place-apk-here-for-modding/unsigned_Settings.apk

Everytime I check the "place-apk-here-for-modding" folder I have a System_Settings.apk but not unsigned_Settings.apk.

These are the Java programs I have installed on my device

Java 7 Update 11

Java 7 Update 13 (64bit)

Java SE Development Kit 7 Update 10 (64-Bit)

Java SE Development Kit 7 Update 13 (64-Bit)

Did I set this thing up wrong or is this tool even compatible with Windows 8.
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

I am on windows 8

Try the experimental build as it has a ton of fixes.

I am preparing to push it to stable build really soon and release 1.0.11
[Android Software Development] raziel23x:
APK Multi-Tools Version 1.0.11 NOW released

Version 1.0.11

Moved DEPENDENCY FILES to its own bat file which fixed issue with installing a DEPENDENCY would close the setup.bat

Updated to ApkTool v1.5.2

-Fixed (issue #299) - output smali filename errors to screen during rebuild instead of filestream

-Only show the --aapt / -a info in verbose mode.

-Fixed (issue #392) - Don't crash out if .git folder isn't present. Use SNAPSHOT-DEV instead.

-Fixed (issue #67) - Only store compressed resources.arsc if original was compressed, otherwise STORE.

-Moved build.gradle files to each sub-project, more organization :)

-Fixed (issue #394) - Prevented duplicated files in final jar which saved around 1.2mb.

-Added Proguard to drop final jar size from 6.2mb to 2.6mb.

-Fixed (issue #395) - Added check for "aapt" in unit-tests.

-Added ability to use "--frame-path" on [if|install-framework]

-Fixed renaming of ".r.9.png" images -> ".9.png".

-Added ability to use --version to print out Apktool version

Fixed Compiler Issues Hopefully when recompiling

Hopefully fixed a bug introduced into the application which would cause keep folder items not being copied over after removing changed files causing corrupted apk files

Updated Custom Build of AAPT for MIUI SUPPORT

UPDATE ANDROID SDK TOOLS to API 17

Fixed Issue #10 Decompilation fails when resource processing begins

Removed unneeded ping request

Fixed Bug with Viewing the LOGS for the SETUP.BAT

Added the ability to pull Dependencies directly from your phone to use to install using the setup scripts

Fixed bug with Theme porter not functioning

Cosmetic changes to the source.

can be downloaded off the official website Google it also can get it off these android forums XDA-developers droidforums and rootzwiki as well as off the stable release link on github and many other locations feel free to test it out and report any issues
[Android Software Development] Mini Franki:
Link on your website dont work and i tried it from github, impossible to set a current project. That alway say to select a project with #23(now its #24)
[Android Software Development] raziel23x:
FIXED I updated the links hopefully they will all work now.

Found the reported issue and fixed it sorry for the oversight.
[Android Software Development] Mini Franki:
Every number i type, that alway say PLEASE SET A CURRENT PROJECT

I cant set a project with 24
[Android Software Development] raziel23x:
finally fixed i had a misplaced script that was preventing the detection of the key commands
[Android Software Development] raziel23x:
I have started on Version 1.0.12

you can view the changelog so far by viewing https://raw.github.com/ApkMultiTools/APK-Multi-Tool/Experimental-RELEASE/CHANGELOG

you can also view the changes as they happen on the https://github.com/ApkMultiTools/APK-Multi-Tool/tree/Experimental-RELEASE
[Android Software Development] Perseus:
I have searched this thread as well as Rest of XDA. This may have been discussed here before. But I was unable to find it.

Here's my issue. I am using the APK Multi Tools Stable Release Version linked in the OP. (I think that's v1.5.2).

I am modifying SystemUI.APK for Icecream 4.0.4 based device. All I did was to modify 2 XMLs Status_bar.xml and bools.xml (inside Res>Values). All I am trying to do is re-Enable Status Bar that has been turned off by zeroing out its height.

After Recompiling the APK and signing it, I manually copied it to /system/apps folder. Overwriting existing file there. I did change the permissions to rw-r-r before the overwrite. I promptly got FCs as expected. After power Cycling the Device, I hoped the FCs would stop, alas they did not. At this time I am unable to open Google Play and Gmail among others.

I can attach the Modified XML files if needed. But I just want to know, am I missing something obvious ? I saw differing discussions about signing System APKs. Some said you don't have to. Others said you need to sign those APKs. Is that the reason for FCs ?
[Android Software Development] raziel23x:
Before you compiled did you link your phone to your pc and run the setup.bat and pulled the needed system files from your phone and then used the installer scripts before decompiling and recompiling?
[Android Software Development] Perseus:
Thanks for your time and help.

​

That's the thing. If any, its impossible to connect to a PC, the device I am compiling for. It can only be connected using ADB Wireless if I figure out the Ports correctly.

Yes I did pull Framework-Res.apk and had the Setup Script go through it. I didn't as such went through and Install Framework-Res or SystemUI. I thought since I am de-compiling those files themselves, I don't need to. Will do now but still want to know if it matters ? Also how about signing ? Should I sign these system files?
[Android Software Development] raziel23x:
oddly enough it works in most cases to have them installed so they can reference themselves
[Android Software Development] Perseus:
Thanks for that heads up. To your knowledge is there any other reason for Google Play to FC ?
[Android Software Development] raziel23x:
Not really sure I had it happen a few times when I was running 4.2.2 on my Motorola Droid CDMA XT912 RAZR (spyder)
[Android Software Development] agritux:
i installed framework-res

and decompiled systemui

didnt touched it

nothing changed

and tried to compile it

it gives error

what is wrong?

error is :
[Android Software Development] raziel23x:
I have done some testing and pushed some changes and fixes to the github and merged them to the stable release from the experimental branch after testing.

Version 1.0.12 is not ready for a official release but feel free to test the stable releases branch or experimental branch as I have updates

Here is some changes that I have done thus far for the up coming Version 1.0.12 release

Changelog

Version 1.0.12

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​

​
[Android Software Development] Perseus:
I still got FCs for Settings, Google Play & Youtube. I reflashed the existing ROM to get back to normal. I have got the SystemUI and Framework-Res installed properly in the correct Directories by the Setup Script. Am I missing anything ?

Would the updated version be able to help with this ?
[Android Software Development] Kamy:
issue with .9 file

I got problem in compiling as I am trying to replace a .9 file. Other files (.png) can be compiled without problem. Would you please help me
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

I will be compiling the latest version of apktool tomorrow. Hopefully it may fix issues.
[Android Software Development] shinomura:
waiting for update ;)
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

Ibotpeaches last commits will not compile so waiting on a fix for it
[Android Software Development] Perseus:
I can be Patient. :D I am starting on Theaming my ROM. So I can wait.
[Android Software Development] raziel23x:
well you can use the theme porter option it does not need apktool.jar to run.

All you have to do is place all the unthemed apk files in the transfer folder and place the themed versions of the same apk files in the root folder of the APK-Multi-Tool\themer folder then run the theme porter option 16 all you have to do is replace one file manually and that is the progress_horizontals.xml into the framework-res.apk but that is minor
[Android Software Development] Perseus:
Thanks. But That's what I meant I will be doing while I wait for the APKTOOL Update ! :D
[Android Software Development] raziel23x:
UPDATED Experimental-RELEASE branch​

UPDATED to apktool-cli-1.5.3-SNAPSHOT

-Updated to smali/baksmali to v1.4.2

-Fixed (issue #396) - Correctly handle android:debuggable while in debug mode.

-Updated to Gradle 1.4

Added smali/baksmali for adding new up coming Deodex features
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

Testing so far on the experimental build seems to be stable so I will be pushing changes to stable builds within the next few days. No ETA on official 1.0.12 final releas.

There are some features I am working on adding. Plus I am working on a side project as well. So hopefully I will have more news
[Android Software Development] Perseus:
Thanks a lot for all you do. I will look forward to it. I don't want to derail the thread. But if possible can you reccomend a ROM Signing App ? Auto Sign is no longer supported.
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

You mean signing the zip file?
[Android Software Development] Kamy:
Would you please tell me which java version is compatible with this tools?

My log:

--------------------------------------------------------------------------

|Sat 02/23/2013 -- 23:42:28.61|

--------------------------------------------------------------------------

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)

My Path:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jre6\bin;C:\android-sdk-windows\sdk\platform-tools

tried anything but still failing
[Android Software Development] dkownacki:
I'm trying to edit ICS SystemUi, exactly status_bar.xml to get center clock. But after decompile and edit in notepad++ i can't compile it ..

Could anyone help me?

--------------------------------------------------------------------------
|2013-02-24 -- 13:45:48,35|
--------------------------------------------------------------------------
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\user\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\SystemUI.apk\res\layout\status_bar.xml:8: error: Error parsing XML: not well-formed (invalid token)
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\user\AppData\Local\Temp\APKTOOL7024287556691577962.tmp, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\SystemUI.apk\res, -M, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\SystemUI.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:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:\Users\user\AppData\Local\Temp\APKTOOL7024287556691577962.tmp, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\SystemUI.apk\res, -M, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\SystemUI.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, 15, --target-sdk-version, 15, -F, C:\Users\user\AppData\Local\Temp\APKTOOL7024287556691577962.tmp, -I, C:\Users\user\apktool\framework\1.apk, -S, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\SystemUI.apk\res, -M, C:\APK-Multi-Tool-Stable-RELEASE\other\..\projects\SystemUI.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] Kitschki:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

You seem to have done something wrong to the status_bar.xml
[Android Software Development] dkownacki:
Could you take a look on my satatusbar.xmls? Ive made 2 versions
[Android Software Development] Perseus:
Yes Please.
[Android Software Development] raziel23x:
try this just rename the rom zipfile to update.zip and place in the folder and i made two scripts one is for the java jdk1.6.0_41 and the other for jdk1.7.0_15 depending on what version of the JDK you are using
[Android Software Development] alkhafaf:
Hello raziel123X

Can I contribute to your tool? I got some knowledge about batch files and can give some help, I modified the script with some fixes
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

Sure just fork the yelp and make changes then do a pull request.

All changes must be done on the experimental build. After a fee commits and if satisfactory you will be added to the repo itself
[Android Software Development] kingston951:
hi, i would like to edit a manifest.xml from apk file

i dont know nothing, can someone please write for me steps,

just for edit the manifest file and compile and sign ?

please help, it's important.
[Android Software Development] kingston951:
i can't edit the manifest.xml

that what i get when i open it with notepad++
[Android Software Development] Perseus:
OH Thanks! Appreciate the help!!

---------- Post added at 11:24 AM ---------- Previous post was at 11:17 AM ----------

The Steps are in the Op. Please read the Op completely shortcuts won't help.

If this a System APK then you will need to sign before pushing back. If its not system then compile back, Zipalign and push.
[Android Software Development] kingston951:
zipalign isn't working

--------------------------------------------------------------------------
|Wed 02/27/2013 -- 20:51:17.03|
--------------------------------------------------------------------------
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building apk file...
'zipalign' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\Ben\Xperia Play\apktool\apk multi-tool\place-apk-here-for-modding\signedIngress.apk
The system cannot find the file specified.
The system cannot find the file specified.
--------------------------------------------------------------------------
|Wed 02/27/2013 -- 20:52:20.81|
--------------------------------------------------------------------------
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building apk file...
'zipalign' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\Ben\Xperia Play\apktool\apk multi-tool\place-apk-here-for-modding\unsignedIngress.apk
The system cannot find the file specified.
The system cannot find the file specified.
[Android Software Development] raziel23x:
Re: [Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool

I will have a look as soon add I have some free time.