yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Giacomo_:
Java 1.8.0_20

The apk it's the framework-res from OnePlus One COS12

The errors was in v3.5 only, the other two decompile without errors. Then compiling it doesn't show any error, it just keep going
[Android Software Development] bovirus:
JDK 1.8.0.20 is very old. Please update it.

Please use ONLY the latest Multitool version (3.5.6).

Post the error log.

Then try to use the DOS batch in first post.
[Android Software Development] Giacomo_:
I've updated java with latest version.

v 3.5.6 decompile, but not compile. I've tried batch version. It decompiled without errors, then compiled with warning strings, but not errors.

All the warning string said: 'something' has no default translation.

I was not able to generate a log via the batch version, wuold you please tell me how to do that?

Thank you for your help.

P.S.: I've putted the compiled apk in my phone, to see what happens. The device is stuck on boot, but not in bootloops. I'll give it a few more time and then restore the nandroid.
[Android Software Development] bovirus:
You camn sue Copy function of DOS Windows

Righ click on starting text isndie DOS Windows -> Select

The drag mouse tos elect the text (bakllh text on white background).

Themnn PRES ENNETR. the text is now in Clipboard.

Opena text editor -> paste and voiula.

I'm working on dos batch that wiil create automatically the logs.

(
[Android Software Development] Giacomo_:
Thank you sir.

I've attached the compiling warning and signing error.
[Android Software Development] bovirus:
Did you use it latest version of apktool.jar?

Try to downlaod this one

http://xdaforums.com/showpost.php?p=59436776&postcount=2812

and overwrite current Program_Files/apktool.jar

Did you install your framework in Multitool?
[Android Software Development] Giacomo_:
Done. now it doesn't give me warnings in compiling, just in signing, the same as before.

I'll try to push it when my device finish restoring nandroid

Edit: it didn't work. I tried one last time without signing it and it worked. Thank you very much for your support.
[Android Software Development] damngood98:
how long should it take to compile again? about the same as decompiling? no errors, but it just seems to hangs forever without result
[Android Software Development] bovirus:
Try the batch in first post for a manual check of the operation.
[Android Software Development] ANDROIDXFOREVER:
work for android lollipop?
[Android Software Development] bovirus:
Yes. Please use apktool.jjar updated and install a framework-res.apk compatible with Android 5.x.
[Android Software Development] MegaHz:
hi there

i've been using the android multitool in the past and worked great.

it's been some months and i downloaded latest version, i am installing framework, decompiling, compiling, then copying the meta-inf and androidmanifest.xml in the new compiled package, signing, zipaligning and when installing to the phone i get:

parsing errors.

do you have any ideas?

thanks a lot.
[Android Software Development] bovirus:
Post detailks about your device.

Update apktool at latest stable version (2.0).

Use XP batch (mene) and recreate the apk then etst it.
[Android Software Development] MegaHz:
i am using htc m8, lollipop 5.0.1

i have tried with apktool v2.0

same parsing error.
[Android Software Development] bovirus:
Please use the XP batch (no need to copy/save/attach meta-info file & info).

Then check if there are some errors.
[Android Software Development] MegaHz:
thanks [MENTION=637263]bovirus[/MENTION], i compiled and get:

## Compile apk

APKTOOL JAR = Program_Files\apktool.jar
SOURCE FOLDER = Decompiled_apk\com_test_app
DESTINATION APK = Compiled_apk\com_test_app.apk.apk

## Compiling Compiled_apk\com_test_app.apk

I: Using Apktool 2.0.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...

## Adding AndroidManifest.xml file and META-INF folder started...

## Adding AndroidManifest.xml file and META-INF folder completed

# Press any ket to continue or CTRL + C to break

and then i tried to sign and got:

## Sign apk

SIGN TOOL = Program_Files\signapk.jar
CERTIFICATE = Program_Files\testkey.x509.pem
KEY = Program_Files\testkey.pk8

UNSIGNED APK = Compiled_apk\com_test_app.apk
SIGNED APK = Signed_apk\com_test_app.apk

## Signing Signed_apk\com_test_app.apk...

java.security.cert.CertificateException: Unable to initialize, java.io.IOExcepti
on: DerInputStream.getLength(): lengthTag=127, too big.
at sun.security.x509.X509CertImpl.<init>(Unknown Source)
at sun.security.provider.X509Factory.engineGenerateCertificate(Unknown S
ource)
at java.security.cert.CertificateFactory.generateCertificate(Unknown Sou
rce)
at com.android.signapk.SignApk.readPublicKey(SignApk.java:88)
at com.android.signapk.SignApk.main(SignApk.java:431)
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=127, too b
ig.
at sun.security.util.DerInputStream.getLength(Unknown Source)
at sun.security.util.DerValue.<init>(Unknown Source)
at sun.security.util.DerInputStream.getDerValue(Unknown Source)
at sun.security.x509.X509CertImpl.parse(Unknown Source)
... 5 more
## Sign Signed_apk\com_test_app.apk completed

# Press any key to continue or CTRL + C to break
[Android Software Development] MegaHz:
still installing hte application cannot parsed.
[Android Software Development] bovirus:
You cannot use the app because there is a problem about signing.

I hope that someone can help you about it.

I believe that could be a bug about apktool.jar.

Please post the detail of your problem here (thread of apktool)

http://xdaforums.com/showthread.php?t=1755243
[Android Software Development] ali4u:
'apktool' is not recognized as an internal or external command,

i am getting this error in log area .. using windows xp. please help.

The system cannot find the path specified.

'apktool' is not recognized as an internal or external command,

operable program or batch file.
[Android Software Development] bovirus:
Please read carefully the first post.

Try the DOS batch in first posts.
[Android Software Development] qwero:
Hi, I like to ask kindly for advice:

I try to use batch version AndroidMultitool but where do I suppose to put apk file for decompiling and what Nr. to put in 2nd step - "Select APK" (defining file)?
[Android Software Development] bovirus:
XP batch

1 setup framework

2 select apk

3 decompile apk

4 compile apk

5 siggn apk
[Android Software Development] qwero:
[MENTION=637263]bovirus[/MENTION]

yeah, it´s clear, this steps appear after starting batch file. But how should I define location of apk file (where to put in?) to accomplish step nr.2
[Android Software Development] bovirus:
batch file is manual steps.

It use the other files/dirs of ApkMultitool.

You have to put apk file in "Files" subfodler.
[Android Software Development] qwero:
I put my apk file in C/AndroidMultiTool/Files folder that is also named by step nr.2 of batch file. Anyhow I face request to "Choose APK file - Enter it´s number: prompt" but what should I write down now? Any idea??
[Android Software Development] bovirus:
I didn't know why you find so complicated so simple things.

In the list (if you put fteh apk ile in Files subfoler) you can see a list of apk available and near by a number of the list.

Select the number that match your apk file.
[Android Software Development] qwero:
Funy or strange! As I wrote, I put my apk file in the "Files" of Android MultiTools application. This app is known to batch programm as the name is written in cmd window. Any how, step nr. 2 still request number of apk file and I miss any idea how and where to get this damned Nr. I cant see any list of apk applications put in "Files" folder. May I ask for dummy proof advice?
[Android Software Development] bovirus:
Probably you did something wrong.

The use of the batch is very simple

Put AndroidMultitool file in C: drive (folder C:\AndroidMultitool)

Put th .bat file in C:\AndroidMultitool

Put the .apk file in C:\AndroidMultitool\Files

Open DOS prompt

Go in C:\AndroidMultitool folder

Run batch file

Then select 2 (select APK file) and press ENTER (every time you make a choice you have to press ENTER to accept)

You can see list of apk file in C:\AndroidMultitool\Files

Sorry but I cannot to continue to make a dummie guide of DOS commands.
[Android Software Development] qwero:
Many thanks for your effort to advice me. Probably I made fault to put batch in C root, not in Multitools folder. Name of MultiTools in cmd winow confused me! I am already travelling so I will check it in a week. Sadly for me, because my aim was to modify stock browser of Coolpad 9976A to get all china bookmarks as well as baidu out of browser for purpose on this trip. Any compilled apk available?
[Android Software Development] tcat007:
I've been using your AMT-start.bat file for a while to decompile and compile apks. Works great, thank you! It's been a year or so, but is there anything I should update (or is there a new version of this)? I'm not having any issues, just wondering.
[Android Software Development] bovirus:
Please don't use a so long quote for just few lones of answer.

The quote us not necessary and increase thread kenght without additional value.

Please remove it.

Latest build tool is 3.5.6.
[Android Software Development] Bubba:
Yeah. Stop using up all the Internet with your quotes. Al Gore will have to add to it for us if we're not careful. There is probably not enough of it left to Google wth a kenght is.

Cowboy from Hell on a twisted trail.

Koffed From my Big Ass Outlaw Phone.
[Android Software Development] miksontije:
im using custom rom aosp 5.1.1 on my nexus. when i usimg multitool should i install framework extracted form custom rom that im using,or i should install framework from google stock 5.1.1 for my phone?
[Android Software Development] akram2009:
very great tool, thank you verymuch

but,it cant recompile framework-res on lollipop 5.1.1 !!!!

can you solving it??
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]

Could you please update your tools with latest changes about

- Apktool jar file

- adb tools

Thanks.
[Android Software Development] Flextrick:
Update:

v3.5.7:

- updated build tools and platform-tools (aapt, adb and needed dll's)

- updated apktool, smali and baksmali to latest version

Downloads in OP

Cheers
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]

Thanks for version 3.5.7.

Are you sure that you included last aapt version (23.0.1)?

My version 23.0.1 has a different size than your aapt.exe.

Please rebuild the distribution archive and include my batch files (AMT.BAT & AMT-framework.install.bat).

You forgot to include it (it happened also with previous version).

Thanks.
[Android Software Development] LasVegasRomeo:
Thanks

Thanks for new release. The v3.5.7 has apktool v2.0.1 included in it. Current release is 2.0.2 but if any one wants to try out..I have built latest Apktool v2.0.3 SHAPSHOT (as of commit 183eefc) and Smaili & Baksmali v2.1.0-dev.

Can get here: https://drive.google.com/folderview?id=0B0ng7yf7is13Vm1MYTZpVThpd0U&usp=sharing
[Android Software Development] bahuy2003:
Don't go for me! I decompile Settings.apk lollipop 5.0 with window 8.1!
[Android Software Development] bovirus:
@ bahuy2003

Which problems/errors?
[Android Software Development] xamius:
<deleted> fixed
[Android Software Development] Swizzle82:
Forgive me if this has been discussed, but I cannot find "radio" button to recompile. How do I do this? I normally use vts, but it's giving me crap today.. This is my first time using this tool..
[Android Software Development] exodius48:
[MENTION=4642185]Flextrick[/MENTION] Can you add zipaligned too?
[Android Software Development] Flextrick:
Hey, sorry for the late responses here.

My time is very limited at the moment and when I have some time left I'm developing on other things which have more priority (ROM Settings Backup Pro mainly, users paid for it so I have to keep it up2date)

Therefore Android Multitool is written far below in my to-do list.

Thanks for your understanding, nevertheless I'll do my best to keep it up2date.

Cheers
[Android Software Development] Flextrick:
Update:

v3.5.9:

updated build tools and platform-tools (aapt, adb and needed dll's)

updated 7za, apktool, smali and baksmali to latest version

added bovirus's batch version to the main directory (users can choose between gui and batch now)

added a folder (Framework-Files) for the framework-res.apk (only use this folder for the framework files from now on)

added a Help folder with all commands

Downloads in OP

And @ all:

Sorry for the very late update, I'll try to update this tool more often from now on.

Cheers
[Android Software Development] ZeNiXxX:
since 19.12 blisspop nightly (cm12.1 based) i'm not able to decompile System.UI

thats the log:

W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000016

W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x0000002b

W: Could not decode attr value, using undecoded value instead: ns=android, name=sharedUserId, value=0x00000029

Exception in thread "main" java.lang.NullPointerException

at java.io.Writer.write(Unknown Source)

at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)

at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)

at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)

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:83)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:153)

at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:140)

at brut.androlib.res.AndrolibResources.decodeManifestWithResources(AndrolibResources.java:199)

at brut.androlib.Androlib.decodeManifestWithResources(Androlib.java:140)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:100)

at brut.apktool.Main.cmdDecode(Main.java:165)

at brut.apktool.Main.main(Main.java:81)
[Android Software Development] ROBERT CM:
Great work :D
[Android Software Development] stang5litre:
This tool is great for decompile but seems so have issues compiling if their are a lot of errors or even 1 or 2 and will just act like it's compiling. Tale it to my Linux compiled right away. Seems like it has troubles conpiling if there are any issues and just gets stuck in a loop. If I decompile and compile works fine. I have my tw-famework and framework -res. This happen to anyone else?
[Android Software Development] bovirus:
[MENTION=4840281]stang5litre[/MENTION]

This tool doens't have any problem.

The compiling error are quite at 99% due to framework-res.apk used to compile that didn't include all efatures in the apk that yu are compiling.

Changing the framework.rs.apk to a mroe recnt/different version most of the time solve the problem.
[Android Software Development] andriman:
Don't make any mistakes when editing smali files then :) If you made a mistake in Eclipse or Android Studio, it would not compile it, too.

And for the loops: I use the batch method - no loops and it notifies me what the problem is every time.
[Android Software Development] stang5litre:
I'll try the batch method. Thanks. Either way a good way to mod on windows . I have ever duel boot anyways. Just curious
[Android Software Development] MrFreeze:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Temp\brut_util_Jar_5823570654228878680.tmp, p, --forced-package-id, 127, --min-sdk-version, 10, --version-code, 13, --version-name, 3.4.2, -F, C:\Temp\APKTOOL2206058054908914193.tmp, -0, arsc, -I, C:\Users\TheCatcher\apktool\framework\1.apk, -S, D:\apk\projects\iDVR_Plus.apk\res, -M, D:\apk\projects\iDVR_Plus.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
at brut.androlib.Androlib.buildResources(Androlib.java:397)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Temp\brut_util_Jar_5823570654228878680.tmp, p, --forced-package-id, 127, --min-sdk-version, 10, --version-code, 13, --version-name, 3.4.2, -F, C:\Temp\APKTOOL2206058054908914193.tmp, -0, arsc, -I, C:\Users\TheCatcher\apktool\framework\1.apk, -S, D:\apk\projects\iDVR_Plus.apk\res, -M, D:\apk\projects\iDVR_Plus.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:445)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Temp\brut_util_Jar_5823570654228878680.tmp, p, --forced-package-id, 127, --min-sdk-version, 10, --version-code, 13, --version-name, 3.4.2, -F, C:\Temp\APKTOOL2206058054908914193.tmp, -0, arsc, -I, C:\Users\TheCatcher\apktool\framework\1.apk, -S, D:\apk\projects\iDVR_Plus.apk\res, -M, D:\apk\projects\iDVR_Plus.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)

What am I doing wrong?
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]

I propose you to make an update to your package updating some components

- Android Platform and Build Tools / baksmali /smali command list text (attached)

Please delete old similar text files in the packages (there were some errors in file names)

- Apktool.jar (2.0.3) - https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.3.jar

- baksmali.jar (2.1.1) - https://bitbucket.org/JesusFreke/smali/downloads/baksmali-2.1.1.jar

- smali.jar (2.1.1) - https://bitbucket.org/JesusFreke/smali/downloads/smali-2.1.1.jar

- 7za (just 7za.exe) 15.16 - http://www.7-zip.org/a/7z1514-extra.7z

I propsoe if you can to make separate folder (ex. Framework.res-Files) where the program search and load framework.-res apk (to avoid mix it into app folder)

I modified my dos batch to use a separate folder for framework-res.apk and include a list selection from different framework-res.apk to install.

Please remind that you didn't include my dos batch in your package.
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]

No answer? No updates?
[Android Software Development] Flextrick:
[MENTION=637263]bovirus[/MENTION]

As I already said, I'll update as soon as I can. I thanked your post, that means that I'm thankful for your hint and your help.
[Android Software Development] beegeero:
Thank you.

Very good on JB 4.1.2
[Android Software Development] baralgin1003:
win10, dont compiling apk. (settings.apk, OS 4.2.1)
[Android Software Development] dragonballz:
Hello, could you help me, what is this error ? thank you.
[Android Software Development] marcinbar:
This tool has a problem, if the path to the file have space (" ").

I guess you use console command. To fix this in C#

Path = Path.Replace(" ", "" "");
[Android Software Development] dragonballz:
You mean remove spaces ? and symbols ?
[Android Software Development] marcinbar:
This post was to dev. You have another problem.
[Android Software Development] kikinda:
great tool,work nice with small apk files but have a problem with big files like uc browser. everiything work exept recompiling with big file.
[Android Software Development] stang5litre:
Ya anything with errors it seems to have trouble with. I have to got to linux and do it

Sent from my stang5litre Edition 5.0 v3
[Android Software Development] bstyle bears:
I'll try it.
[Android Software Development] 12MaNy:
Won't compile 4.2.2 TouchWiz framework-res.apk. No error, just hangs and never compiles the .apk.
[Android Software Development] Flextrick:
Did you install tw framework before?

~ via Nexus
[Android Software Development] 12MaNy:
Yep.

I don't think it's your tool though. I think Brut.alll needs to update aapt in order for 4.2.2 to re-compile correctly. Otherwise you have to do a pain in the [MENTION=237736]SS[/MENTION] workaround.
[Android Software Development] iam_Ibz:
i compiled 4.2.2 android keyboard, it was fine. no errors. however it wont run .. or install on my phone!
[Android Software Development] Flextrick:
Why? Any errors on the phone?

For installing you must sign it before, otherwise push it to /system/app

~ via Nexus
[Android Software Development] fOmey:
Impressive tool, Was able to decompile & recompile google edition framework-res no problems.

Cheers.
[Android Software Development] vivi suzanna:
I have decompiled my systemui with your tool. I use xperia mini pro with gb custom rom. Everything run finely. But there is problem when i recompile it. It took long time and could not finish. So, where is the wrong? I can`t recompile it.
[Android Software Development] Flextrick:
You installed framework before?

What System are you running? More info please

~ via Nexus
[Android Software Development] vivi suzanna:
Yes, i installed framework-res before. I use gin2jellybean rom. install process run well. Then i edit by notepad++. But, i have trouble when recompile it. It can`t finish. it spent long time.
[Android Software Development] vivi suzanna:
I use window 7. I have installed jdk and netframework 4 before.
[Android Software Development] Flextrick:
Please open cmd and cd to the directory of the apktool.

Type in: apktool if "apkname.apk" Enter

Type in: apktool d "apktname.apk" Enter

Type in: apktool b "apktname" Enter

And please tell me if the same issue appears.

~ via Nexus
[Android Software Development] vivi suzanna:
I will try it.
[Android Software Development] vivi suzanna:
I have known where is the mistake. The problem is framework-res and systemui that i use. i change them to original files from the rom i use. And it work!! Ok, your tool is cool bro. Keep modding.:thumbup:
[Android Software Development] Flextrick:
Nice, thanks!

One question: Could you post a screenshpt of the tool? I'd like to know if the layout breaks for you, too.

~ via Nexus
[Android Software Development] vivi suzanna:
I am sorry. I can not do that. Because i did not use my pc. I use cyber cafe computer.
[Android Software Development] Flextrick:
OK, np

~ via Nexus
[Android Software Development] Mavrikmeercat:
link is down

Could you post a mirror please? Media fire seems to be down.
[Android Software Development] Flextrick:
I'm sorry, I'm not at home. MediaFire is not down, did you try another browser?

~ via Nexus
[Android Software Development] 2nd Sky:
Danke :)

works good!
[Android Software Development] wndoh:
Eu sei resolver seu problema me manda uma MSG! :cowboy:

O erro abaixo também resolvo ok. :angel:
[Android Software Development] bovirus:
[MENTION=4642185]Flextrick[/MENTION]

Please update your package

- Update Apktool with latest 2.1.0

- Update latest android tools (by SDK)

- Add my DOS batch to select more options.
[Android Software Development] sgian217:
This app works perfectly now the problem is the app I don't know how to bypass server sided games can someone made tutorial if how if possible I wanna see it on Iruna
[Android Software Development] Ev0luti0n_:
Any guys having problems using this app on a windows vista install? I installed the other Microsoft app and it still doesn't work