yashsingh1/xdaforums huggingface dataset:
[Android Software Development] dully79:
New version includes:

Added the ability to list and pull from system/app and system/framework.

Added installed framework detection and ability to auto pull and install. Just plug in your device and run the script

House keeping.

Changed the name of my version to "Multi script".

Some other things.

Download link:

http://www.mediafire.com/download/v1in6ihzerod822/Multi_script_beta_v1.4

Usage:

Just run "Main.bat", everything is controlled from there, including logs, no need to open the others up.

On all scripts the following is consistent.

88 = Log. To view the setup log choose option 99 from Main to invoke the "Setup" script and option 88 to view it.

99 = Menu

00 = Quit

Pulled apks will be located in "place_apk_here_for_modding".

Framework files will be located in "other\framework" if not "adb pulled".

Bugs:

The only bug ive managed to find is the ability to use apktool v2 beta 9. The errors suggest the tool is trying to work in reverse to the norm.

By running the following manually with v2 beta 9

apktool d place_apk_here_for_modding\Bluetooth.apk projects\Bluetooth.apk

The output is located in the parent directory and not "projects"

By running the code above through the script it reports "the file was not found or readable". Placing the apk in the projects folder solves this but is not ideal.

I need to edit some code in the script to test and solve this but unfortunately i dont have the time just now.:(

Thanks:

Daneshm90 for APK Manager.

Brut.all and iBotPeaches for apktool.

JF for smali/baksmali.

raziel23x for Apk-Multi-tool

Hope you like it and feel free to report bugs or suggest improvements.:good:
[Android Software Development] Ryuinferno:
[MENTION=2538774]dully79[/MENTION] You should start a new thread to avoid confusion between both projects...:)
[Android Software Development] dully79:
That's what i plan to do for the next release and when i add more features, with time permitting.
[Android Software Development] :
Hi

i cant do any thing with it.

same apk's with apktool its just fine.

this is my log:

http://d-h.st/2tr
[Android Software Development] :
any help?
[Android Software Development] bovirus:
[MENTION=2968938]raziel23x[/MENTION]/dully79

I identified a serious problem wih APK-Multitool 1.0.12 / 2.0 WIP.

Now I'm using the APK Multitool 1.0.11 that is the last one that working fine (but cannot compile all apps).

With APK Multitool I'm working in this way

1. decompile apk

2. Modify the language (stringx.xml in different res/values-xx folders)

3. Compile the app (as unsigned apk)

4. Sign the apk

In this way it works (with 1.0.11)

If I try to follow the same way with 1.01.2/WIp 2.0 the apk was compiled without error but when you try to install the enw apk you cannot do it because you receive a generic error (apk not installed).

I believe that there is some problem to genrate enw apk sign/certificate.

As I explained if I use the same scheme with old 1.0.11 works fine and the new apk can be installed.

I tested similar system with Android Multitool 3.3 and I see that it explain to copy the META-INF and AndrpodManifest.xml from original APK.

I tried to apply the same system 8ciopy META-INF and AndroidManigfest.xml form original apk in the new compiled apk by APK Multitoolò but didn't work -- error during signing because report a differnt size)

I tried also to update in APK Multitool the file apktool.jat (2.0 beta 9) baksmali.jar (2.0.3) smali.jar (2.0.3) but nothing changes (no error in compilation/signing but the apk created cannot be installed with generic error)

Please ame a deep analysis and found the solution.
[Android Software Development] Josehg:
Hi,

Signing it´s not needed in system apks unless you modified the AndroidManifest.xml. So, just follow the copy method of META-INF and AndroidManifest.xml, and do NOT SIGN the apk.

Good luck
[Android Software Development] bovirus:
Sorry but of course this is a workaround.

I expected that as APK Multitool 1.0.11 worked fine, so the newset version should work without strange workaround.

My note is for the author of the tool to fix them.
[Android Software Development] Josehg:
Upsss sorry , I misunderstood the reason of the post. [emoji51] [emoji15]

Enviado desde mi GT-I9100 mediante Tapatalk
[Android Software Development] bajasur:
Good evening all,

Since the release of 4.4 I am unable to decompile any 4.4 apks.

I have tried several variants of these multi tools and continue to get erros on decompile

java version "1.7.0"

Java(TM) SE Runtime Environment (build 1.7.0-b147)

Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

Error: Unable to access jarfile C:\Users\bajasur\Desktop\Multi

Any help is appreciated

Thanks!
[Android Software Development] bovirus:
The folder name/path of Multitool should have no spaces...
[Android Software Development] bajasur:
Curious if you see a space in the path I posted?

Thanks for any help
[Android Software Development] bovirus:
I checkecked that in your post the path seems incomplete and generally the problem is due to use a blank space in path or folder name.,
[Android Software Development] atfaniqbal:
Can This Odex & Deodex an apk file ??? :|
[Android Software Development] captpete1:
I'm getting a signing error when I do option (#4) on a non-sytem app. I've signed apps before but don't know what the script is doing.

--------------------------------------------------------------------------
|Thu 04/17/2014 -- 12:45:52.04|
--------------------------------------------------------------------------
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
--------------------------------------------------------------------------
|Thu 04/17/2014 -- 13:14:28.43|
--------------------------------------------------------------------------
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
The system cannot find the path specified.
Usage: signapk [-w] publickey.x509[.pem] privatekey.pk8 input.jar output.jar
The system cannot find the path specified.
Press any key to continue . . .

Multi-Tool in 'C:\APK-Multi-Tool-Stable-RELEASE' and apk in 'C:\APK-Multi-Tool-Stable-RELEASE\place-apk-here-for-modding'. Unsigned apk placed in 'C:\APK-Multi-Tool-Stable-RELEASE\place-apk-here-for-signing' by script. Seems to find Java alright.
[Android Software Development] kermage:
already set Java_Home in System Environment Variable?
[Android Software Development] ManthanRB:
I cannot install SemcGenericUxp.apk it says "Its not a correct dependee file..."

What to do?
[Android Software Development] kermage:
what are you trying to decompile?
[Android Software Development] radji:
Can someone give me a rundown of how to use option 3 & 4 when compiling a non-system APK (option 12)?
[Android Software Development] kermage:
After you re-compile, you do not need to zip it, and maybe sign too --for it will automatically resign it with its original signature. Go with zipalign instead. ;)
[Android Software Development] radji:
Like how? Recompile the apk with the tool, and use zipalign to sign with the original signature?
[Android Software Development] claytonjn:
Wow, it's been quiet in here for a while. Are people using other utilities for decompiling/recompiling apks now or something?

Anyways, has anyone successfully decompiled any of the apps from the Android L developer preview? I'm trying to decompile GoogleDialer.apk but it's unsuccessful. I can't even get it to install the framework-res.apk and SystemUI.apk dependencies though...

Here's the error trying to install framework-res.apk or SystemUI.apk, which is the same error when trying to decompile GoogleDialer.apk:

Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:611)
at brut.androlib.Androlib.installFramework(Androlib.java:469)
at brut.apktool.Main.cmdInstallFramework(Main.java:260)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000000
at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:219)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:179)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:167
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:133)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
8)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
[Android Software Development] tacchan23:
I modified Dully79 script as follow if anyone wants to use it:

- set default apktool to apktool_v2_b9

- modified the decompile and compile code to work with apktool v2 (so it will not work with any other apktool versions I guess... didn't try)

- eliminated the option to show the project folder after docompiling an apk
[Android Software Development] daniello8:
.. can't find delete button :(
[Android Software Development] danivancouver:
Testing the wap-2.0 version and everything works great .

Me all I've ever apk.

Script translated into Spanish

Jejeje

Thank you Raziel23x

Enviado desde mi SM-N9005 mediante Tapatalk
[Android Software Development] raziel23x:
this is a issue with the apktool.jar not with this tools so once it is fixed in the binary this should work properly afterwards
[Android Software Development] exodius48:
So, what should i do to solve this problem?
[Android Software Development] raziel23x:
Are you using the 2.0 WIP branch of the tool?
[Android Software Development] exodius48:
What is that? I dont know it bro. Hehe
[Android Software Development] raziel23x:
https://github.com/APK-Multi-Tool/APK-Multi-Tool/archive/WIP-2.0.zip

download this

then before you use it go to

C:\Users\UserName\apktool

Delete this folder

then run the tool
[Android Software Development] exodius48:
Wow, working great bro. I use apk-multitool-stable-release not WIP version before. WIP version working great here. :victory:

Finally i can compile whatsapp.apk easily. :good:
[Android Software Development] exodius48:
Recently I get error again:

F:\Android\TOOLS\APK-Multi-Tool-WIP-2.0\projects\time.apk\AndroidManifest.xml:4: 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: [C:\Users\xxx\AppData\Local\Temp\brut_util_Jar_2001583486765936830.tmp, p, --forced-package-id, 127, --version-code, 26, --version-name, 1.1.3.5-Release, -F, C:\Users\xxx\AppData\Local\Temp\APKTOOL3709424155267836766.tmp, -0, arsc, -I, C:\Users\xxx\apktool\framework\1.apk, -S, F:\Android\TOOLS\APK-Multi-Tool-WIP-2.0\projects\time.apk\res, -M, F:\Android\TOOLS\APK-Multi-Tool-WIP-2.0\projects\time.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
at brut.androlib.Androlib.buildResources(Androlib.java:362)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:236)
at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\xxx\AppData\Local\Temp\brut_util_Jar_2001583486765936830.tmp, p, --forced-package-id, 127, --version-code, 26, --version-name, 1.1.3.5-Release, -F, C:\Users\xxx\AppData\Local\Temp\APKTOOL3709424155267836766.tmp, -0, arsc, -I, C:\Users\xxx\apktool\framework\1.apk, -S, F:\Android\TOOLS\APK-Multi-Tool-WIP-2.0\projects\time.apk\res, -M, F:\Android\TOOLS\APK-Multi-Tool-WIP-2.0\projects\time.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:469)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\xxx\AppData\Local\Temp\brut_util_Jar_2001583486765936830.tmp, p, --forced-package-id, 127, --version-code, 26, --version-name, 1.1.3.5-Release, -F, C:\Users\xxx\AppData\Local\Temp\APKTOOL3709424155267836766.tmp, -0, arsc, -I, C:\Users\xxx\apktool\framework\1.apk, -S, F:\Android\TOOLS\APK-Multi-Tool-WIP-2.0\projects\time.apk\res, -M, F:\Android\TOOLS\APK-Multi-Tool-WIP-2.0\projects\time.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:463)
... 6 more

I use WIP-2.0. How to solve it?
[Android Software Development] dully79:
It tells you your error.
[Android Software Development] exodius48:
I can compile another apk, but only this apk that cant compiled,
[Android Software Development] dully79:
Because you need to fix the error highlighted in the post above.
[Android Software Development] exodius48:
How to fix that? I also get this error message on another APK tool.
[Android Software Development] dully79:
You open up your AndroidManifest.xml, goto line 4 and fix the invalid token (as described in the error log!!).

This could be a missing "<" prefixing or "/> suffixing" the line of code. It's impossible to know as i cannot see your xml.

Open the original and compare the 2 against each other

If your struggling with a error as trivial as this, maybe you step away before you break something.
[Android Software Development] Eminemiero:
I'm trying to add the 'ñ' letter as an individual key on the lg g3 keyboard port.

I changed only 2 things, 1.the name of the app, 2. add the 'ñ' into the main layout.

but when i'm going to compile the apk, this happens

java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b19)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)
I: Checking whether sources has changed...
I: Smaling...
[0,0] -65536 cannot fit into a short
[188,4] mismatched tree node: I_STATEMENT_FORMAT12x expecting I_CATCHES
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: C:\Users\Javier\Desktop\APK-Multi-Tool\other\..\projects\LGEIME.apk\smali\android\support\v4\app\FragmentActivity.smali
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:66)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:257)
at brut.androlib.Androlib.buildSources(Androlib.java:214)
at brut.androlib.Androlib.build(Androlib.java:205)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
[Android Software Development] dully79:
For anyone who gets errors, read the first sentence after the "I" and this will usually tell you the problem.

Take the above post for example, when the "I" breaks the error reads:

projects\SystemUI_Zyr3_SFinder_Be ta-batterymod.apk\res\layout\status_bar.xml:36: error: Error: No resource found that matches the given name (at 'id' with value '@id/rounded_corner_ul')

It's telling you there is a problem with status_bar.xml on line 36 at @id/ rounded_corner_ul.

Basically it's missing its resource, which in this case is in id.xml
[Android Software Development] exodius48:
I get another error while signing with options 13 "android market supported key":

java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) Client VM (build 25.11-b03, mixed mode)
Only one alias can be specified
The system cannot find the path specified.

How to solve it?
[Android Software Development] dully79:
By not being lazy and looking for a solution:

http://xdaforums.com/search.php

www.google.com/

Search- "The system cannot find the path specified".
[Android Software Development] exodius48:
Why you told me to search again? I post my error message to the right place "APK Multi-Tool" thread. Hope developer [MENTION=2968938]raziel23x[/MENTION] can tell me how to solve it.
[Android Software Development] dully79:
Why?! because it's the rules

http://xdaforums.com/announcement.php?f=565

Why should you be spoon fed?

This place is called "XDA developers",

NOT

"XDA expect everyone else to do the leg work for you, whilst you sit there being bone idle"

http://xdaforums.com/sitesearch.php?q=java The system cannot find the path specified

https://www.google.co.uk/?gfe_rd=cr...ava+the+system+cannot+find+the+path+specified

Have a nice day.:good:
[Android Software Development] m1trand1r:
you just. made my day.....good sense for *sarcasm*....:D
[Android Software Development] Chairmansaab:
I'm having same problem how to fix ?
[Android Software Development] dully79:
Post your error log with details of what your doing/ trying to do and what apks

If your trying to install the framework you can do it manually, you don't need to rely on apkmulititool.
[Android Software Development] dully79:
A little tip for people who cant install framework/systemui apks:

Drop the framework apk in your username/apktool/frameworks folder and delete everything inside the apk except for resources.arsc

Copy and paste framework-res.apk and SystemUI.apk to C:\Users\admin\apktool\framework.

Open framework-res/SystemUI with 7zip as an archive.

Select all except resources.arsc and delete.

Rename if necessary to help keep track (AOSP_frame or cm_sysui etc).

[IMG="Example"]http://oi59.tinypic.com/rm1vu0.jpg[/IMG]

:good:
[Android Software Development] crash613:
ok, maybe i am barking up the wrong tree, but would this tool help me with the following.

As we all know Facebook has updated to ver 14. Ver 14 requires a separate messaging app that a lot of people are complaining about. I have the apk for version 13. i can install it and i can use the built in messaging app. this is what i want.

however, it updates in the app store. I do not want it to. YES I KNOW I CAN DISABLE UPDATING FOR THE APP STORE but this disables it for ALL apps. I just want Facebook ONLY to not update.

i had a similar situation awhile back with another program. i did not like the direction the company took the app and wanted to keep an older version.

At that time, someone took the apk and decompiled it. they broke the signature and recompiled. I installed it. from that point forward it will not update. I want to do the same thing to version 13 of the Facebook app.

Is this the tool i would need? how would i go about doing this?

thanks.
[Android Software Development] dully79:
You could change the package name in the android manifest to something like "com.android.fakebook". This way it shouldn't update as it as it has a different name from the original package

Or

Use Titanium backup to detach it from the market.

I personally use the second one quite often.
[Android Software Development] crash613:
That first one is a good idea. Where exactly is this manifest? I've tried the second one before and it usually works for a while. But at some point it ends up updating anyway.

I have heard people say that they use taskers to schedule ti to do it every week or so. The other program that was unsigned never updates and is always there I was looking for a solution closer to that. That first one may fit the bill
[Android Software Development] kermage:
Do the simplest way. Just clear Facebook app cache every time it asks you to install the separate messaging app.

Hope this help. I've done this for awhile now; only requires to relogin every clear. :good:
[Android Software Development] dully79:
Another thing you could try is re-signing the apk so the keys mismatch and the update fails.

Copy the apk from your phone to PC.

Remove all instances of Facebook from your phone. (delete dalvik cache from recovery)

Open the apk with 7zip as an archive and delete Meta-inf.

Close and resign with a market compliant key.

Install.

You must remove everything related to the original Facebook or the install will fail.

Ive also used this method in the past.

And it's a good idea to keep a backup of the original.;)
[Android Software Development] kermage:
Thank you for pointing that out.

What I am giving him is the SIMPLEST Option he could do to. :fingers-crossed:
[Android Software Development] crash613:
Thank you! That is exactly what I was trying to describe in my original question... Wanted this permanent solution, not to have to clean cache all the time.. Thanks to all helping..
[Android Software Development] dully79:
I didnt mean to quote you lol, i meant to quote myself.:D

Make sure you use a market compliant key.

You can use this one if you want:

http://www.mediafire.com/download/iljee1qrgqr1ew0/Sign_and_zip.zip

I created it a while ago...back when i hacked candy crush and it worked fine. Anyway just unzip and drop your apk in then run the script and follow the options.

Make sure you delete Meta-inf as described previous or it wont sign.

You will need java installed, And in case you dont have zipalign, download the attachment and put that in the folder with the apk.

You must extract "sign_and_zip" to a place with no spaces. e.g C:\downloads\sign_and_zip
[Android Software Development] yakie996:
If i decompile the LGSystemUI.apk from my lg g3 the drawable-xxxhdpi does not show up only drawable-xxhdpi and drawable-xhdpi if I extract it drawable-xxxhdpi shows up i'm using APK-Multi-Toolv1.0.11
[Android Software Development] freekizito:
Does anyone know if ApkMultiTool uses the latest apktool 2.0b9?
[Android Software Development] gu5t3r:
Just replace apktool.jar file. I always compile latest for myself and upload it...

https://app.box.com/gu5t3r/1/2185891971
[Android Software Development] freekizito:
Okay, so I should just download from the link and replace the apktool.jar file in the apkmultitool folder with yours.. right?
[Android Software Development] gu5t3r:
yes, and you can do the same for smali v2...
[Android Software Development] freekizito:
Please, when I use BATCH OPTIMIZE and select BATCH ZIPALIGN option in apk-multi-tool, after the process is finished the command window shows "1 file copied" but then inside the folder for batch optimization, all the apks are actually copied to the "optimized" folder, so does it mean it actually zipaligned all of them?
[Android Software Development] freekizito:
Can someone who also use this program help with this question??