Is there apktool on Android? I want to assemble ".smali" and make new ".apk" in an Android application

StackOverflow https://stackoverflow.com/questions/13947946

  •  10-12-2021
  •  | 
  •  

Question

I want to assemble ".smali" and make new ".apk" in an Android application. I don't have so much time to do this so I have to use some source code that already exists.

There is an Apktool project which can build on Windows/Mac OS X/Linux, but I want to build it on Android.

I also tried to include the "apktool.jar" as an external library in an Android Application Project in Eclipse, but it failed.


After some research, it seems more clear that I need only the following two projects running on Android:

  1. Smali (independent project)
  2. JarSigner (from OpenJDK)

And, Apktool is not necessary.


This project has what I need:

https://code.google.com/p/java-ide-droid/

Was it helpful?

Solution

Requirements JRE 1.6 (Java Runtime Environment) aapt command in a PATH basic knowledge of what is SDK, aapt, PATH, smali and Google search engine may be useful

This is from the apktools official website. Because it needs aapt, it seems quite hard to use apktools in an Android app. But if you can get the source code and compiled in an aosp environment, it could possibly make it run on the Android side.

OTHER TIPS

Yes, there is a program also named apktool, but which runs on Android! Just have a look at http://code.google.com/p/apktool.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top