[Share Latest Apktool 4.2.2/Guide/Tutorial/] How to Decompile/Compile/Sign Apk/Jar

Search This thread

biggeagle

Member
Dec 6, 2013
17
0
Problem in application execution

Yaa.. May be u have not signed your app... Juz grab a logcat and post it here...

According to the log it is signed perfectly! but on execution it didnt run! :confused:

eyWDDEF.jpg
 

OdSazib

Senior Member
Oct 25, 2013
129
219
28
Dhaka
facebook.com
Hei Voch, what's the problem with me? I just decompiled systemui.apk and tried to recmpile to test this and got some errors :eek: :(

what should I do? :confused:
 

Attachments

  • Untitled.png
    Untitled.png
    117.5 KB · Views: 1,023

DarkAM

Member
Nov 7, 2013
40
8
hi, it not work on my computer..
OS: windows 8.1 64bit

i already follow your instruction step by step still get this error

please take a look on this error:confused:
Untitled.jpg
 

Muthumbi

Senior Member
Aug 1, 2013
119
61
Nairobi
Please help

Could anyone help me port this app (Aurora settings) to SGS4 I9500 running ozcan rom v6.3?
I will attach the app to this post
 

Attachments

  • auroraSettings.apk
    381.6 KB · Views: 18

vai8080

Senior Member
Nov 18, 2014
102
3
Hey guyzz
Since m not the developer,can anyone decompile apk for me please:what::what:
Thank u
 

vai8080

Senior Member
Nov 18, 2014
102
3
Hey guys , SemcGenericUpRes.apk is there in our root if SD card ..??
Because I'm not getting it so,can anyone help me please...??
Thank you
 
Jul 8, 2015
1
0
Get rid of the viruses.

The download for the APKTool has PUP Malware on it. I'm not sure about this others, but either way is still completely unprofessional. dev-host is notorious for such antics.
 

veone

New member
Nov 9, 2015
3
0
missing directory

Help.. 1 folder is missing inside META-INF directory after i sign the apk. In the original folder there is a folder name Services/javax.annotation.processing.processor. What should i do?
 

willysusilo

Senior Member
Jul 13, 2014
258
142
How to Decompile/Recompile Jar/Editing classes.dex

Copy Jar file to same folder Apktool

Example

framework.jar

to decompile :

Open framework.jar using Winrar or 7zip and extract classes.dex

Drag & drop classes.dex to Quick-Baksmali (CMD)

if done, you can find folder classes-out

now you can start editing smali file using Notepad++


to recompile :

Drag & drop folder classes-out to Quick-Smali (CMD)

if done, you can find New file "new-classes.dex"

rename file to classes.dex

Open framework.jar using Winrar or 7zip

Drag & drop file classes.dex modified to framework.jar using Winrar or 7zip set compression to normal

Where is quick smali CMD? I dont see mine
 

nandakis4

Senior Member
hi , i just want to port HTC SENSE home ( htc 10 launcher) to my Motog3, i really tried to understand this .. but with out screenshots/ video tutorials i cant understand anything..

is there any otherway, or easiest way to port LAUNCHERS ?? This is the only guide i got when i searched in google.. so any suggestions?
 

NewDev4IOS

Senior Member
Sep 1, 2012
126
15
Google Pixel 6 Pro
download link is broken - when trying to download takes too long to load please upload the file to a mirror site like mega.nz, or google drive, etc... and maybe go through adfly to earn click traffic or some other site, thanks.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 172
    How to Decompile, Recompile & Sign apk

    This Guide/Tutorial for Windows user

    Requirement :

    1. Android SDK, you can download from here (this including Java)
    2. Download Latest Apktool 4.2.2 (Including Sign & baksmali) from here (this Support All apk from GB/ICS/JB 4.1.2/4.2.2)
    3. Notepad++ for your tool editing xml/smali you can download from here

    If you already download/Installed Android sdk/java & Notepadd++ you just download Latest Apktool 4.2.2


    Download Latest Apktool, extract to :

    Windows XP : C:\Document and setting\folder your computer name

    Windows 7 : C:\user\folder your computer name

    copy your apk & framework-res.apk/SemcGenericUxpRes.apk/framework 2 to same folder with apktool

    Now you can start Editing apk

    Example Editing Walkman

    Open Command Prompt (CMD)

    to decompile :

    Code:
    apktool if framework-res.apk
    apktool d semcmusic.apk ( can be whatever name you give to your apk )

    Some Original system apps need installed framework 2 like on stock ROM (SemcGenericUxpRes.apk)

    Example

    Code:
    apktool if framework-res.apk
    apktool if semcgenericuxpres.apk
    apktool d semcmusic.apk ( can be whatever name you give to your apk )

    You can start editing as you want ;)


    to recompile :

    Code:
    apktool b -f -d semcmusic.apk ( can be whatever name you give to your apk )

    If done, you can exit CMD

    open original SemcMusic.apk using Winrar or 7zip go to folder semcmusic>dist, open semcmusic.apk using Winrar or 7zip

    Drag & drop folder META-INF & Lib in original apk to Modified apk, set compression to store and click ok

    to sign :

    Move apk modified from folder semcmusic>dist to same folder with apktool

    Open Command Prompt (CMD)

    Example

    Code:
    java -jar SignApk.jar testkey.x509.pem testkey.pk8 semcmusic.apk semcmusic_signed.apk ( can be whatever name you give to your apk )

    NOTE : Sign apk only for apps 3rd Party but you can use for system>app but not all apps

    to zipalign :

    Open Command Prompt (CMD)

    Example

    Code:
    zipalign -fv 4 semcmusic_signed.apk semcmusic_signed_zipaligned.apk
    51
    How to Decompile/Recompile Jar/Editing classes.dex

    Copy Jar file to same folder Apktool

    Example

    framework.jar

    to decompile :

    Open framework.jar using Winrar or 7zip and extract classes.dex

    Drag & drop classes.dex to Quick-Baksmali (CMD)

    if done, you can find folder classes-out

    now you can start editing smali file using Notepad++


    to recompile :

    Drag & drop folder classes-out to Quick-Smali (CMD)

    if done, you can find New file "new-classes.dex"

    rename file to classes.dex

    Open framework.jar using Winrar or 7zip

    Drag & drop file classes.dex modified to framework.jar using Winrar or 7zip set compression to normal
    17
    Credits :

    Thanks to Brut.all for apktool
    Thanks to Yorzua for Sign apk tool/file
    Thanks to Team Reject for Quick baksmali/smali file


    NOTE : If you get error when compiling, don't blame me lolz :p it's your mistake when editing apk
    3
    Great Guide Rizal. I am sure many were asking for it.
    2
    Hello Everybody,
    i get this when i recompile SystemUI after editing

    Code:
    C:\APKTOOL>apktool b -f -d SystemUI
    I: Smaling...
    I: Building resources...
    Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.an
    droid.com/apk/res/android); using existing value in manifest.
    Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas
    .android.com/apk/res/android); using existing value in manifest.
    I: Building apk file...

    But I just don't get any apk at the end!:(
    Any help would be appreciable!

    These are just warnings. nothing serious.
    When you decompiled your SystemUI.apk, a folder (named SystemUI) was created.
    After recompiling your SystemUI.apk, the file will be placed in \SystemUI\dist\

    ---------- Post added at 12:44 PM ---------- Previous post was at 12:05 PM ----------

    I AM ALWAYS CONFUSED IN SIGNING. I JUST DID EVERYTHING AS IT IS BUT CONFUSED IN REPLACING FILES FROM OLDER APK TO MODIFIED APK :crying: i saw many posts. somebody says copy META-INF folder. somebody says copy META-INF and androidmainfest.xml but when i open older apk there is 4 files i see
    1. META-INF
    2. AndroidMainfest.xml
    3. classes.dex
    4. resources.arsc

    please somebody tell me that what really i have to do :(:(:(:(:(:(:(:(:(

    Quite simple. You copy the META-INF-Folder AND the Androidmanifest.xml from the original APK to your newly compiled APK.