Questions tagged [apktool]

Apktool is a tool for reverse engineering 3rd party, closed, binary Android apps.

Apktool is a tool for reverse engineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes possible to debug smali code step by step. Also it makes working with app easier because of project-like files structure and automation of some repetitive tasks like building apk, etc.

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

282 questions
2
votes
2 answers

unable to install framework-res.apk on Windows 10

when trying to run 'apktool if framework-res.apk' i get this error C:\Windows>apktool if framework-res.apk S: WARNING: Could not write to (C:\Users\Tyler\AppData\Local\apktool\framework), using C:\Users\Tyler\AppData\Local\Temp\ instead... S:…
2
votes
1 answer

recompile apk after using javadecompilers.com

Is there any way to recompile the APK after decompilation using javadecompilers.com ? it's a nice tool to decompile APK and have java files, but i don't know how to recompile. i tried to import the decompiled files to android studio, eclipse,…
Fariss Abdo
  • 481
  • 1
  • 4
  • 8
2
votes
1 answer

Is there a way to replace a library inside an APK without having the source code

I am doing research about some http libraries and I had to modify some of the libraries. Part of the research is to test it on closed source apps so I am wondering if there is a way to replace a library inside an APK app without having the source…
DigitalPerson
  • 191
  • 3
  • 12
2
votes
0 answers

ListPreference & SwitchPreference doesn't work

I have reverse engineered an app (Settings.apk) all i want to do is, I want to make a SwitchPreference, on my case that i wanted to create a switch selector that will turn off / turn on double tap to wake for my device (i added it because that…
zomaru-kun
  • 19
  • 4
2
votes
3 answers

Android proguarded apk still readable

I tried to proguard my app. It successfully obfuscated the apk. However, when i try to view the java code of my apk using Apk_oneclick, I am able to. I have created a release version of my apk. Still the problem persist. Any help would be much…
Vyshakh
  • 632
  • 1
  • 11
  • 29
2
votes
2 answers

Apktools on Mac

I went downloaded the Apktools from the website and got 2 files: Apktool.txt and Apktool_2.2.2. I renamed the Apktool_2.2.2 to Apktools.jar per the instructions. I then went to terminal and this was what I did: Last login: Fri Mar 17 12:08:55 on…
Rob26br
  • 483
  • 1
  • 6
  • 10
2
votes
1 answer

copy else statement to if statement

I am trying to copy the code of else state to the if statement. In here I see if-eqz as the if condition but I don't know where the else condition is here. Can someone help me find else condition so that I can copy it to become the if code also. I…
0xDEADBEEF
  • 590
  • 1
  • 5
  • 16
2
votes
1 answer

File size of decoded and rebuilt APK increases

Using apktool (version 2.1.0) I decode an APK as follows: $ apktool d test.apk I: Using Apktool 2.1.0 on test.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file:…
2
votes
1 answer

Change version number using apktool

The android manifest xml file does not contain that information. The android.yml file does. After altering it the apk build command doesn't make the apk file. Is there any build.gradle file or tool that can be used to edit version…
Google
  • 21
  • 1
  • 3
2
votes
1 answer

Apktool cmd commands do nothing

So I need to edit an apk. I've seen some guides on how to do it using apktool. I have installed jre 1.7, Android SDK, and apktool. I have put apktool.jar, apktool.bat and aapt.exe in the same folder (C:/apktool), and added framework-res.apk and the…
Sagi Rika
  • 21
  • 1
  • 5
2
votes
1 answer

How to match xml layout files to integers on an decompiled apk?

I am trying to learn how decompiling an android apk using apktool works. When I use apktool to extract a simple apk, all of the resources are extracted correctly. When I check the activity onCreate, I expect to see findViewById(myview) but I get…
sara smith
  • 21
  • 2
2
votes
4 answers

How can I completely hide classes from Android app package?

A while ago I was decompiling an application with apktool in order to understand some snippets. the curious thing was that the application was obfuscated, in fact , the app presented just one class called "Protection.class" full of method like…
Alessio Trecani
  • 713
  • 2
  • 10
  • 25
2
votes
1 answer

Running apktool in a bash script

I am trying to write a bash script that decompiles several .apk files using apktool. Each apk file is located in a subdirectory of the sample folder. #!bin/bash for item in $(ls samples); do for apk in $(ls "samples/$item"); do…
Joey Allen
  • 381
  • 1
  • 4
  • 12
2
votes
1 answer

Xamarin.Android edit apk package name with ApkTool causes crash

I need to be able to change out the package name of an existing .apk in order to run simultaneous instances of an Android app I created in Visual Studio using Xamarin. However, I will not reliably have access to the computer with the Xamarin license…
Dkal
  • 33
  • 4
2
votes
0 answers

Android Lollipop: Can't run recompiled framework-res.apk: "Analysis Error"

I'm actually tweaking /system/framework/framework-res.apk to change some of Lollipop's new features. There's a bunch of XML files in that package for that purpose. The issue is: I decompile and recompile the mentioned apk with apktool on my pc,…
estornes
  • 386
  • 3
  • 10