kandi background
Explore Kits

Apktool | A tool for reverse engineering Android apk files

 by   iBotPeaches Java Version: v2.6.1 License: Apache-2.0

 by   iBotPeaches Java Version: v2.6.1 License: Apache-2.0

Download this library from

kandi X-RAY | Apktool Summary

Apktool is a Java library. Apktool has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has medium support. You can download it from GitHub, Maven.
It 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. It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like. If you discover a security vulnerability within Apktool, please send an e-mail to Connor Tumbleson at connor.tumbleson(at)gmail.com. All security vulnerabilities will be promptly addressed.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • Apktool has a medium active ecosystem.
  • It has 13763 star(s) with 3035 fork(s). There are 634 watchers for this library.
  • There were 1 major release(s) in the last 6 months.
  • There are 70 open issues and 2346 have been closed. On average issues are closed in 67 days. There are 3 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of Apktool is v2.6.1
Apktool Support
Best in #Java
Average in #Java
Apktool Support
Best in #Java
Average in #Java

quality kandi Quality

  • Apktool has 0 bugs and 0 code smells.
Apktool Quality
Best in #Java
Average in #Java
Apktool Quality
Best in #Java
Average in #Java

securitySecurity

  • Apktool has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • Apktool code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
Apktool Security
Best in #Java
Average in #Java
Apktool Security
Best in #Java
Average in #Java

license License

  • Apktool is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
Apktool License
Best in #Java
Average in #Java
Apktool License
Best in #Java
Average in #Java

buildReuse

  • Apktool releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Apktool saves you 6328 person hours of effort in developing the same functionality from scratch.
  • It has 13189 lines of code, 1099 functions and 226 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
Apktool Reuse
Best in #Java
Average in #Java
Apktool Reuse
Best in #Java
Average in #Java
Top functions reviewed by kandi - BETA

kandi has reviewed Apktool and discovered the below as its top functions. This is intended to give you an instant insight into Apktool implemented functionality, and help decide if they suit your requirements.

  • Generate the Qualifiers .
  • Create the command line options .
  • Compiles an APK2 package
  • Processes the next token .
  • Read config flags .
  • Start tag .
  • Escapes Java style characters in a string .
  • Encode the given string as XML value .
  • Decodes dex file .
  • Build resources .

Apktool Key Features

Project Page

#apktool on libera.chat

Sourcetoad - helping with a weekly sponsorship for continued improvement and maintenance of the project.

JetBrains IntelliJ

Downloads

Downloads Mirror

How to Build

Documentation

Bug Reports

Chat on Gitter

Changelog/Information

XDA Post

Source (Github)

Source (Bitbucket)

bundletool build-bundle error: [BT:1.8.2] Error: Version code not found in manifest

copy iconCopydownload iconDownload
apktool d -m input.apk 

Unity Android 64 Bit - Not Compliant Error

copy iconCopydownload iconDownload
zipinfo -1 app.apk | grep \.bc$

Frida "invoke-virtual" method overload fails with "Error: expected a pointer"

copy iconCopydownload iconDownload
Java.perform(function() {
    const targetClass = Java.use("okhttp3.aa$a");
    const targetMethod = targetClass.b.overload("java.lang.String", "java.lang.String");
    targetMethod.implementation = function(a, b) {
        console.log("str1:" + a);
        console.log("str2:" + b);
        return targetMethod.call(this, a, b);
    }
});

Is there a way to decompile multiple android apk at the same time?

copy iconCopydownload iconDownload
cd directory_with_apks
find . -iname "*.apk" -exec apktool d -o {}_out {} \;

ApkTool splits java files in to multiple files

copy iconCopydownload iconDownload
package Abc;

class Foo {
  class Bar {}
}

Frida: Replace string literal in class method

copy iconCopydownload iconDownload
Java.perform(function() {
  var ObfuscatedClass = Java.use('o.bdq$if');
  ObfuscatedClass.ॱ.implementation = function(string, stringArray) { // replace original implementation
    var modifiedStringArray = ...; // do your stuff with the stringArray that contains your hash
    return this.ॱ(string, modifiedStringArray); // call original method with modified string array containing new hash
  }
});

Modify Android App Bundle (aab) Contents before deploying

copy iconCopydownload iconDownload
unzip -p app.aab base/manifest/AndroidManifest.xml > AndroidManifest.pb

Community Discussions

Trending Discussions on Apktool
  • Android locale_config.xml Unbound Prefix Error
  • Making app request android permission on launch using apktool
  • how to locate the register problem in Android after modifying some smali code of an APK?
  • bundletool build-bundle error: [BT:1.8.2] Error: Version code not found in manifest
  • How to get dex file from apk when using v2 signature?
  • Is it possible to make a cordova app debuggable without recompiling?
  • How to modify the apktool path
  • How to solve problem in APK Tools
  • Aapt does not run on arm architecture
  • Unity Android 64 Bit - Not Compliant Error
Trending Discussions on Apktool

QUESTION

Android locale_config.xml Unbound Prefix Error

Asked 2022-Mar-17 at 17:14

I am currently pentesting an Android app. I decompiled the app without any issues and whenever I try to recompile it back, the apktool.jar throw Unbound Prefix Error from the locale_config.xml file. Checked the syntax and they're all okay. I don't have any clue on what's going on.

W: C:\platform-tools\patch-apk\swifty\base_SAP\res\xml\locales_config.xml:3: error: unbound prefix.
W: C:\platform-tools\patch-apk\swifty\base_SAP\res\xml\locales_config.xml: error: file failed to compile.
Failed!!!

Here's the content of the file:

<?xml version="1.0" encoding="utf-8"?>
<locale-config>
...
    <locale android:name="en-CA" />
    <locale android:name="en-GB" />
    <locale android:name="en-XC" />
    <locale android:name="en-IN" />
    <locale android:name="en-AU" />
    <locale android:name="zh-HK" />
...
</locale-config>

ANSWER

Answered 2022-Mar-17 at 17:14

For pentesting purposes, you might want to just get rid of localeConfig.

To do this with minimal changes:

  1. Comment out all the <locale android:name="..." /> lines in locales_config.xml.
  2. Remove android:localeConfig="@xml/locales_config" attribute of the <application> tag in AndroidManifest.xml.

That should do it.

Source https://stackoverflow.com/questions/71267862

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install Apktool

You can download it from GitHub, Maven.
You can use Apktool like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Apktool component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Share this Page

share link
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.