Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

apk

smali

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/

like image 299
Yin Avatar asked Dec 19 '12 08:12

Yin


People also ask

Is it possible to reverse engineer an APK?

Yes, you can get your project back. Just rename the yourproject. apk file to yourproject. zip , and you will get all the files inside that ZIP file.

How is an APK created?

To make an APK file, a program for Android is first compiled using a tool such as Android Studio or Visual Studio and then all of its parts are packaged into one container file. An APK file contains all of a program's code (such as .dex files), resources, assets, certificates, and manifest file.

Is it possible to get source code from APK?

Simplest way: use the online tool Decompiler, upload the apk and get the source code.


1 Answers

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.

like image 54
Frank Cheng Avatar answered Oct 14 '22 00:10

Frank Cheng