yashsingh1/xdaforums huggingface dataset:
[IDEs, Libraries, & Programming Tools] harmax007:
Please help i get this error when recompiling (building the apk)

Whats should i do please help i get this error and in the bottom of the apk studio it shows " failed to build (directory) please check output " It i able to decompile but not recompile(build) apk and at first the " ADB:n/a " was showing then i downloaded the adb files and put it where apk studio is installed now it shows some version id is it because of that i could not build the apk? please help. kindly help by also providing a portable apk studio.

$ java -Xmx128m -jar C:/Users/harsh_000/.apkstudio/vendor/apktool.jar -f b "D:/har/New folder" -o "D:/har/New folder.apk"

I: Using Apktool 2.0.2

I: Smaling smali folder into classes.dex...

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

at org.jf.smali.smaliFlexLexer.newToken(smaliFlexLexer.java:3094)

at org.jf.smali.smaliFlexLexer.newToken(smaliFlexLexer.java:3115)

at org.jf.smali.smaliFlexLexer.yylex(smaliFlexLexer.java:3695)

at org.jf.smali.smaliFlexLexer.nextToken(smaliFlexLexer.java:3037)

at org.antlr.runtime.BufferedTokenStream.fetch(BufferedTokenStream.java:143)

at org.antlr.runtime.BufferedTokenStream.sync(BufferedTokenStream.java:137)

at org.antlr.runtime.CommonTokenStream.consume(CommonTokenStream.java:71)

at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:106)

at org.jf.smali.smaliParser.insn_format21t(smaliParser.java:11829)

at org.jf.smali.smaliParser.instruction(smaliParser.java:9829)

at org.jf.smali.smaliParser.ordered_method_item(smaliParser.java:2015)

at org.jf.smali.smaliParser.statements_and_directives(smaliParser.java:1738)

at org.jf.smali.smaliParser.method(smaliParser.java:1537)

at org.jf.smali.smaliParser.smali_file(smaliParser.java:615)

at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:82)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:70)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:378)

at brut.androlib.Androlib.buildSources(Androlib.java:305)

at brut.androlib.Androlib.build(Androlib.java:288)

at brut.androlib.Androlib.build(Androlib.java:261)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

Process exited with code 1
[IDEs, Libraries, & Programming Tools] Benny_75:
APK Studio for Ubuntu (Linux)

How do I install APK Studio to my ubuntu machine??? I've looked all over the internet for an answer and NOBODY knows how to do it! No one can give me a straight answer.
[IDEs, Libraries, & Programming Tools] :
What issues are you having? As long as you have build essentials and java installed you should be ok
[IDEs, Libraries, & Programming Tools] meme12345:
Same problem.

I'm having a problem.

$ java -Xmx128m -jar C:/Users/Scott/.apkstudio/vendor/apktool.jar -f b C:/Users/Scott/Desktop/kik-messenger10-0-1-5470 -o C:/Users/Scott/Desktop/kik-messenger10-0-1-5470.apk

I: Using Apktool 2.0.2

I: Smaling smali folder into classes.dex...

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

at org.jf.dexlib2.writer.io.MemoryDeferredOutputStream.write(MemoryDeferredOutputStream.java:64)

at java.io.BufferedOutputStream.flushBuffer(Unknown Source)

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

at org.jf.dexlib2.writer.DexDataWriter.write(DexDataWriter.java:76)

at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:118)

at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:941)

at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:801)

at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:250)

at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:228)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:57)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:378)

at brut.androlib.Androlib.buildSources(Androlib.java:305)

at brut.androlib.Androlib.build(Androlib.java:288)

at brut.androlib.Androlib.build(Androlib.java:261)

at brut.apktool.Main.cmdBuild(Main.java:225)

at brut.apktool.Main.main(Main.java:84)

Process exited with code 1

Help?
[IDEs, Libraries, & Programming Tools] dr_jacky_2005:
Hello,

Thank you so much for this brilliant tools.

BUT it doesn't convert smali to java classes!

What should I do now? I want to see java codes.

Thanks.
[IDEs, Libraries, & Programming Tools] aureliomilitao:
please, i build my apk , copy in my sdcard, but the apk not installed ( error analysis if package ) why ? how install my apks ?
[IDEs, Libraries, & Programming Tools] xpmule:
In case it helps anyone i figured out why i was getting the signing error but i did not get it fixed.

I updated APKTool from Github

..it was 2 versions old (i just got the newest version of APK Studio which has the the old ver)

So i added the JDK bin folder to my Windows path env variable.

It was not added by the Java sdk installer.. so programs needing the bin tools would never find them.

The standard v1.8 Java SDK installer adds this var path.. "C:\ProgramData\Oracle\Java\javapath"

Which has inside it 3 shortcuts to java.exe - javaw.exe - javaws.exe

So i added this to the path env variable.. "C:\Program Files\Java\jdk1.8.0_92\bin"

Then i loaded up APK Studio and did a rebuild then set the keystore options and clicked sign.

Basically it now reported that it worked going through a long list of files signed.

then at the end it gave me a warning about a timestamp etc.

Then it ran zipalign and that threw an -1 error.

So i decided i would run jarsigner on it and verify it was signed (APK Studio said it was)

It reported it was NOT signed !

To be sure i tried installing it on my phone & it failed.

But when i used the GUI signer applet it worked fine.

I also have tested the zip align function on the GUI signer Java-Applet i mentioned on previous comment.

and it reports the APK's from APK-Studio creates are NOT zip aligned.

SO i tried using the GUI tool to align them and it reports it worked.

Then when i run the test again it says they are now aligned.

THEN... i put all versions on my SDcard and tried installing them all and they all seemed fine.

So i guess it doesn't matter at all.

So yeah wow a lot of word salad eh guys ?

Well i hope the info i shared helps others struggling.

Here is the console command to check for the signature (uses .exe in SDK make sure it can find it)

jarsigner -verify name.apk

and here is the console output from APK Studio i got that failed to actually sign the APK.
[IDEs, Libraries, & Programming Tools] aaveg:
Whenever I try to install apk studio it tells me that qt5 core.dll is not designed for windows or it should be installed again and has some error . I then tried to install that dll file separately from internet to C drive/system and where the whole setup files are present in F drive but same error again. Pls help me out:(
[IDEs, Libraries, & Programming Tools] donchichio:
Hopefully someone can help me with this. I've sideloaded the NBA app (https://play.google.com/store/apps/details?id=com.nbaimd.gametime.nba2011&hl=en) for international league pass on the Fire TV. It works fine, except the full screen game playback doesn't quite fill up the screen. I can live with it, but why not try fixing it.

So I decoded the apk with this application and had a look for something that might fix it, although I'm not a coder so I haven't had much luck. Is someone with more experience with these things able to help me out?

Thanks.
[IDEs, Libraries, & Programming Tools] Nima79:
any option for removing permissions ?

when remove normal permission like internet . app is going to crash
[IDEs, Libraries, & Programming Tools] rawkusx:
I've decompiled and recompiled my apk, but I get the "App not installed" error. I haven't made any changes to the original other than decompile/recompile. Any ideas?
[IDEs, Libraries, & Programming Tools] bcrichster:
Might need to sign it, if it was a System app

Sent from CM12.1 *N9515*
[IDEs, Libraries, & Programming Tools] jonyrace:
Hopefully this question isn't to annoying. I have an app I like to update to work correctly with Marshmallow. The original developer is no longer working it.

It's a simple permissions issue. Once installed on Marshmallow device, appears Marshmallow doesn't allow it to see the external SD card to scan for files.

I used this tool to successfully decompile the APK, but not certain where to go from here.

Any suggestions would be appreciated.

Thanks!
[IDEs, Libraries, & Programming Tools] Fayas Hassan KT:
Bro you must sign apk with signapk.jar or any other signer

---------- Post added at 07:40 PM ---------- Previous post was at 07:37 PM ----------

Bro did you decompile new WhatsApp apk2016 update on may
[IDEs, Libraries, & Programming Tools] Fayas Hassan KT:
Bro complete stuck with new WhatsApp 2016 may update all apktool are latest I am using2.1.1 apktool.jar.. but I compiled it without any error but stuck verification status of mobile number it's say
[IDEs, Libraries, & Programming Tools] Shaan_Indtech:
What to do for this

I: Using Apktool 2.1.1 on SystemUI.apk

I: Loading resource table...

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\Shaan Sundar\apktool\framework\1.apk

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

I: Regular manifest package...

I: Decoding file-resources...

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

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

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

I: Decoding values */* XMLs...

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0104060a

at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:66)

at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:62)

at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:57)

at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:58)

at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlNonEscapedItemValue(ResScalarValue.java:62)

at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:68)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:513)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:128)

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

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

at brut.apktool.Main.main(Main.java:81)

Process exited with code 1
[IDEs, Libraries, & Programming Tools] Terraalpha:
Hi Bro

Do you not modify the appname!

Exemple : "app_name">WhatsApp</string

---------- Post added at 02:16 PM ---------- Previous post was at 02:09 PM ----------

WhatsApp is checking the appname in his new Version!!!!
[IDEs, Libraries, & Programming Tools] jimmyG20:
There are many reverse Engineering tools to do the job.

appinner maybe the another chioce, you can search for any app in it, and take a look the architecture of it.
[IDEs, Libraries, & Programming Tools] xpmule:
It's not just about tools people.

This is a "crackers" Tool.

So you are expected to know cracking or figure it out.

1 click solutions are a dream LOL

I also refuse to help people crack their app's.

Want it done then figure it out.. can;t ? then maybe you should leave it alone.

As soon as i started trying this tool i noticed some popular apps out there

employ various methods of protecting the application.

And it seems many of you never even considered this concept.

You simply complain the tool does not work.

It's a lot of work to modify a program to accommodate this.

OllyDBG for example has had many plugins & scripts created to fix app-specific issues.

No offense but this to me is an advanced tool.

Not for noobs to tinker with things not knowing what they are doing.

Would you do the same thing with Windows app's ?

You will run into problems with that too. LOL

Wanna be a cracker ? then get on it ;)
[IDEs, Libraries, & Programming Tools] clfdhq:
i need some help

how to make it work, i use Windows 7, thanks
[IDEs, Libraries, & Programming Tools] damponting44:
Magnificent project! Much appreciated such a great amount for this. Makes gesturing apks significantly more streamlined. I haven't yet read through every one of the 10 pages yet, yet needed to remark while I recall.

First time I took a stab at opening an application, it didn't work. I needed to stack the system apks from my ROM the way out forefathers would have done it (application apparatus charge line). Would be decent on the off chance that we could stack structures from this project.

Additionally I couldn't scan for particular qualities in the code, so regardless I needed to utilize Notepad++ to alter.

On the off chance that there's any approach to actualize these 2 capacities in your studio, then it will truly be an APK instrument to lead the all! ? Anyway, thanks again for this extraordinary programming and all the time and exertion you've put into it. It truly appears!

Samsung Galaxy A5 (2016) | Stock Marshmallow 6.0.1 A510FDXXU2BPF8 (Turkey)

Samsung Galaxy Note II Phantom | Assassin | Alliance | Stock <- - <>- - > XTRONS TD620A Android Car Stereo

HTC Desire Z | MIUI | BeatMod BlissSense Hybrid | Sense 3.5 (resigned)

HTC Touch Pro 2 | ROM: 1.19.707.2 (51489) WWE | Radio: 3.44.25.27 | HardSPL: 0.85 OliNex (resigned)

HTC Softbank X01HT (resigned)
[IDEs, Libraries, & Programming Tools] tracer45:
Love this tool-

Awesome work. streamlines the process nicely. keep on making it better until you perfect it.

anything that makes the job easier or help does it faster gets a thumbs up in my book-
[IDEs, Libraries, & Programming Tools] scandiun:
I've got this error when building:

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

But was solved increasing the Maximum Java Heap size from 128 MBs to 1024 MBs.

---------- Post added at 03:22 PM ---------- Previous post was at 02:59 PM ----------

Got an issue when installing a modified apk:

Just opened the package, edited AndroidManifest.xml and built the apk. When trying to install it android says:

Parse error

There was a problem parsing the package.
[IDEs, Libraries, & Programming Tools] jemblok333:
[HELP]

Help me please..

how to android application no imprint on the new application is opened (recent app)? .xml what changed?
[IDEs, Libraries, & Programming Tools] wiking76:
very nice tool.. how can i edit (deleting a string) Androidmanifest.xml file?
[IDEs, Libraries, & Programming Tools] scandiun:
Yes you can with the Pro version.
[IDEs, Libraries, & Programming Tools] wiking76:
Ok thanks

edit. i don't see pro version link
[IDEs, Libraries, & Programming Tools] Vano3408:
Dear Gurus, please help with below error

I: Loading resource table...

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 16

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:189)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:159)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:116)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:544)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)

at brut.androlib.Androlib.getResTable(Androlib.java:65)

at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:197)

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

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

at brut.apktool.Main.main(Main.java:81)

Process exited with code 1
[IDEs, Libraries, & Programming Tools] MPeti1:
Hi!

I want to edit a system app (miuisystemui.apk) but apk studio says i need to install a framework for it. I've read almost all replies, i got the framework-res.apk, but i can't install it to apk studio, because in the latest version there is no option for it in file menu, nor in settings. How can i do that?
[IDEs, Libraries, & Programming Tools] xpmule:
I believe you will get a pop-up window asking you when you create a project.

I'd advise heading over to the Peach site and keeping your engine updated too.

I have not used this program for a LONG time but i checked and there is no program updates but there is an update for apktool.jar which runs the important code LOL

It's updated now to version 2.2.2

I should not have to explain the benefit of that right ?

Want to update then open up settings and copy that path into a windows window path..

Once you see the old one backup the old .jar and put in the new one.

And maybe edit the version file with the new build number (it shows it in the program)

Where to get it ?

https://ibotpeaches.github.io/Apktool/

Link is at the top right of the page ;)

I wanna remind people too this is an advanced tool.

You are going to probably be on your own with the project you are working on.

And this place does not condone piracy talk either so don't post about it or you will get banned.

I have experience reversing things before i tried this program so i get the idea.

Some dev's out there re deliberately trying to stop you from using tools like this i seen it myself !

I won't say what i was working on but let me say it is legendary for being a pain.

Right away i was thrown a lot of problem i had to solve one after another..

The program i reversed checks if it's been recompiled.. LOL

If you decompile and recompile then sign it and run it it will fail to run with an error.

THEY KNOW ! hahhahah

And yeah of course i found a way around that :)

Then.. another road block shows up.. and on and on..

I never heard of a SMALI file before this so i went in blind.. but it;s not hard to figure out if your use to ASM reversing basically.
[IDEs, Libraries, & Programming Tools] Yash24:
Hey Can we edit a game to make them work offline?
[IDEs, Libraries, & Programming Tools] MPeti1:
Thanks! :D

I've already forgot what i wanted with this, thanks to xda I not received any email about your reply LOL :D
[IDEs, Libraries, & Programming Tools] Sachin ET:
Does this app Sign the apk while recompiling?
[IDEs, Libraries, & Programming Tools] HorusEyE:
Can we edit DLL files within an APK game with apkstudio in Linux like Windows users do it with dnSpy???
[IDEs, Libraries, & Programming Tools] Ibuprophen:
The "dll" file extension stands for "Dynamic Link Library" which is a Windows concept file.

The Linux equivalent to the "dll" file is the "so" file that stands for "Shared Object".

The following link is an article that helps explain the differences/similarities between the "dll" and the "so" files.

Platform Independent Coding - DLLs and SOs

The following link reflects your question in a similar fashion.

Using Windows DLL from Linux

I hope that helps you out with your question.

Good Luck!

"Live Long and Prosper..."

~Ambassador S'chn T'gai Spock

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise [NCC-1701].
[IDEs, Libraries, & Programming Tools] HorusEyE:
I know what you mean, but these DLLs are files of an APK file which is an Android application which is based in Linux SO. So, I wonder if it is in fact impossible to edit these DLL files with any application for Linux that is a replacement for that dnSpy Windows application!
[IDEs, Libraries, & Programming Tools] jmckeejr:
Also can not decompile systemui.apk or secsettings.apk. was able to decompile framework-res.apk from same Rom. I get same error as the folks a few pages back and ends with a code 1. Please assist
[IDEs, Libraries, & Programming Tools] btb55:
Thank you for this excellent tool.

I had one app remaining which Magisk couldn't successfully hideroot. Using this tool I've decompiled it, removed references to hideroot, su, etc, built it (and then signed and aligned with apk-signer), and low and behold it now installs and runs.

Thank you :)
[IDEs, Libraries, & Programming Tools] MPeti1:
I needed to use APK Studio again, but the old problems are here again. A lot of tutorials are working with the old version (which cannot be found anywhere), and the new is very buggy, you cannot add frameworks, etc. Now how/where can i download APK Studio 10.0.0.2? Maybe can you upload it if you have it? Just if needed, i'm trying to edit AndroidManifest.xml in an app, following this tutorial, i need APK Studio just for this (at the moment)
[IDEs, Libraries, & Programming Tools] giaur:
How to decompile to java sources? I can't find such option, is it there?
[IDEs, Libraries, & Programming Tools] Simonetti2011:
Great tool. Thanks.

Can I make a request? Please have a portable version for Windows, that doesn't need an installer. Zip, 7z, rar, whatever.

Thanks again.
[IDEs, Libraries, & Programming Tools] m3kgt99:
Gosh I feel stupid for even having to post this but I am really trying here. After several days of searching and trying to understand on my own I just can't figure out what's going on.

I have a Moto X (XT1575) rooted and Xposed. I am trying to learn more about editing APK files and found APK Studio.

I downloaded the file: apkstudio-d49d3de-windows.exe from:

https://bintray.com/vaibhavpandeyvpz/generic/apkstudio/d49d3de

I have it installed (Version d49d3de) I pulled my selected APK via ADB over to my computer.

See my APK Studio Screenshot here

I keep getting the error:

$ java -Xmx128m -jar C:/Users/User/.apkstudio/vendor/apktool.jar -f d C:/Users/User/Desktop/base.apk -o C:/Users/User/Desktop/base

Process exited with code -1

I noticed in the bottom left of my screen it says

Java: n/a | ADB: n/a | APK Tool: n/a

I happen to see in other screenshots that there are version numbers in there.

Can someone please help me with this install?? I really want to learn this program and how to modify APK files.

Thanks in a advance.
[IDEs, Libraries, & Programming Tools] xpmule:
Looks like you did not set it up correctly.

You will need a compatible Java runtime installed for starters.

And if it is not showing the Tool version that is not good.

I use Java 1.80.

This version..

https://github.com/vaibhavpandeyvpz/apkstudio/tree/d49d3de0566d9e07dcea1effc9b2a040c0617aaf

Latest commit d49d3de Nov 19, 2015 [MENTION=5490832]vaibhavpandeyvpz[/MENTION] vaibhavpandeyvpz Merge branch 'master' of https://github.com/vaibhavpandeyvpz/apkstudio

Mine says ADB (NA) but it doesn't matter i don;t use adb with it.

But i do have ADB on my PC but i kill the server with a script after i am done with it.

If you want it.. turn it on first before APK studio.

Windows will have a running background process for it if ADB's server is running.

The project settings should show you the add a framework option too.

It won't work with out it.

Also i am not sure if the installer registers any dll's.

If it does a zipped version of this might not work correctly.
[IDEs, Libraries, & Programming Tools] m3kgt99:
[MENTION=7004228]xpmule[/MENTION]

Thanks so much for your help! Pretty fast reply too! I am not in town right now but I will try in a few days and I'll update you on my progress. Again, Thanks a lot!

Jed
[IDEs, Libraries, & Programming Tools] m3kgt99:
[MENTION=7004228]xpmule[/MENTION],

Thank you Thank you Thank you!!!

I had the zipped file but it wasn't extracted to ~/.apkstudio/vendor and I also had the Java file downloaded but I never installed it because I wasn't sure if I really needed that file.

Thanks again for your help getting me up and running.