ApkManager V6.1 – Reverse Engineering of Android applications

Filed in Mods by on 21 February 2013 27 Comments

This is my repacked version of the famous Apk Manager, one of the easiest way to hack & modify any Android application.

ApkManagerV6.1

I repacked this tool with the following features:

  1. Based on ApkManager 4.9 by Daneshm90 (Big thanks to him)
  2. Updated Apktool V1.5.2 by iBotPeaches & Brut.Alll
  3. Updated Aapt v0.2
  4. Default compression level set to “0”
  5. 512Mo as default allowed heap size
  6. 3 ready for use fake frameworks : “other\wanam1.apk”… (for Lidroid framework editing)
  7. Add a “Decompile all files” feature (option 25)

A few useful Tips :

1- Always push resources files (framwork-res & twframework-res) before decompiling your Application :

using this command : “apktool.bat if framework-res.apk”

2- While recompiling and after generating the keep folder, remove from this folder :

  • Any file you modified or deleted
  • “Classes.dex” if you modified, deleted or added any smali files
  • “resources.arsc” if you modified or added any xml file or resources files (images)

3- You may need sometimes to fix some plurals manually (by enumerating the plurals “1$d” “2$d”, removing redundant “%”… just follow the logs errors)

4- For some Applications, you may need to fix some wrong “reference-array”, change them to “reference-array”.

5- If you modify AndroidManifest.xml you have to resign your application.

If you find any of the above bugs or any other ApkTool bug, please report it here.

Download.

Tags: , , ,

  • GLegacy

    Still no download link

  • hiten

    download link not working any help

  • jechus

    wanam,please can not download from the link to xdafileserver, the file seems to disappeared

    • http://wanamlite.com/ Mohamed Karami (Wanam)

      Xdafileserver is going down this month, I will update the links later.

  • Pingback: [Guide] JB 4.3 How to Disable Brightness Bar 1/16/2014 | Developed()

  • Luigi Davide Maccarrone

    download link not working

  • Mukesh Srivastav

    I need to understand what do you mean by Push and how to do that in the point#1, I had followed all the instructions mentioned and i am get the projects,i.e. xml (Layouts and all) res files but the content of the layout xml files are missing the android tag every where for all the UI and when i see the log file, it throws two errors.

    signedcom.mytest.apk

    unsignedcom.mytest.apk

    Please help me in understanding that.

    • http://wanamlite.com/ Mohamed Karami (Wanam)

      Execute both commands:

      apktool.bat if framework-res.apk

      apktool.bat if twframework-res.apk

      • Mukesh Srivastav

        I did that and it has created a project in the D:MyPersonalApkManagerV6.1ApkManagerV6.1projectscom.myapp.myhandler

        but when i see the resmyappmyhandlelayoutmycustom.xml, it is not showing the android tags like for an example:

        if you see the above text, it is missing the android tag and it is giving lots of error.

        The second thing, what i notice is the log.txt is showing error.

        Could Not Find

        Could Not Find D:MyPersonalApkManagerV6.1ApkManagerV6.1place-apk-here-for-modding../place-apk-here-for-modding/signedcom.myapks.apk

        Could Not Find D:MyPersonalApkManagerV6.1ApkManagerV6.1place-apk-here-for-modding../place-apk-here-for-modding/unsignedcom.myapks.apk

        Thanks.
        Mukesh

        • http://wanamlite.com/ Mohamed Karami (Wanam)

          You can try to update the included aapt with the sdk one or add the tag manually.
          Just ignore the other errors, the files are just being checked..

          • Mukesh Srivastav

            Here are the test results.
            1.When i try doing a third party apk file, it is creating the xml without android tag.. (Not sure why, could be tool is not so high to decode or decompile the signed apk)

            2.When i tried with my apk (own), the tool is creating the layouts with all the correct tags and all..

            Thanks,
            Mukesh

  • http://www.ec-tech.info Balaji P M

    where can i find the instructions to use the application ??
    how to set the apk as current project ?? (i.e Option #22)

  • Denys Santos Sobrinho

    For people who have problems to compile the file “SystemUI.apk” just add the + sign before the string “@style/…”

    Example:

    @style/SystemBarNotificationText

    becomes

    +@style/SystemBarNotificationText

    etc…

    More information in

    http://forum.xda-developers.com/showthread.php?t=2264380

    thanks connor.tumbleson

  • Wieslaw

    Hello Wanam, when i try decompile 4.2.2 i have this errors,check log file,

    https://mega.co.nz/#!DxQGwTQY!d7LzAmD0Ch72xbh6n8FIn1uqOXwsTGBopYIbd583Mt0

    • http://wanamlite.com/ Mohamed Karami (Wanam)

      Use Pastebin, i can’t read your file.

      • Wieslaw

        here you go:

        java version “1.7.0_06″

        Java(TM) SE Runtime Environment (build 1.7.0_06-b24)

        Java HotSpot(TM) 64-Bit Server VM (build 23.2-b09, mixed mode)

        Could Not Find G:Pobrane przez ChromeApkManagerV6.1place-apk-here-for-modding../place-apk-here-for-modding/signedSecSettings.apk

        Could Not Find G:Pobrane przez ChromeApkManagerV6.1place-apk-here-for-modding../place-apk-here-for-modding/unsignedSecSettings.apk

        I: Baksmaling…

        I: Loading resource table…

        I: Loaded.

        I: Decoding AndroidManifest.xml with resources…

        I: Loading resource table from file: C:UsersWieslawapktoolframework1.apk

        I: Loaded.

        W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030332

        W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030332

        W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030332

        W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030332

        W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030332

        I: Regular manifest package…

        I: Decoding file-resources…

        I: Loading resource table from file: C:UsersWieslawapktoolframework2.apk

        I: Loaded.

        W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e0045

        W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e0045

        W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e0045

        W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e0045

        W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e0045

        W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e0045

        I: Decoding values */* XMLs…

        Exception in thread “main” brut.androlib.err.UndefinedResObject: resource spec: 0x01030332

        at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)

        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)

        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)

        at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)

        at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)

        at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)

        at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)

        at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResBagValue.java:40)

        at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)

        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)

        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)

        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)

        at brut.apktool.Main.cmdDecode(Main.java:146)

        at brut.apktool.Main.main(Main.java:77)

        • http://wanamlite.com/ Mohamed Karami (Wanam)

          You didn’t push framework-res and twframework-res!

          • Wieslaw

            ok,installed now, and decompile its ok, now i change one xml and i will compile,i have this error: sorry for trouble but in 4.1.2 i dont have any errors.

            G:Pobrane przez ChromeApkManagerV6.1other..projectsSecSettings.apkresvaluesstyles.xml:78: error: Error: No resource found that matches the given name: attr ‘android:preferencePanelStyle’.

            Exception in thread “main” brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, –min-sdk-version, 17, –target-sdk-version, 17, -F, C:UsersWieslawAppDataLocalTempAPKTOOL3771366209860112886.tmp, -0, arsc, -I, C:UsersWieslawapktoolframework1.apk, -I, C:UsersWieslawapktoolframework2.apk, -S, G:Pobrane przez ChromeApkManagerV6.1other..projectsSecSettings.apkres, -M, G:Pobrane przez ChromeApkManagerV6.1other..projectsSecSettings.apkAndroidManifest.xml]

            at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)

            at brut.androlib.Androlib.buildResources(Androlib.java:283)

            at brut.androlib.Androlib.build(Androlib.java:206)

            at brut.androlib.Androlib.build(Androlib.java:176)

            at brut.apktool.Main.cmdBuild(Main.java:228)

            at brut.apktool.Main.main(Main.java:79)

            Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, –min-sdk-version, 17, –target-sdk-version, 17, -F, C:UsersWieslawAppDataLocalTempAPKTOOL3771366209860112886.tmp, -0, arsc, -I, C:UsersWieslawapktoolframework1.apk, -I, C:UsersWieslawapktoolframework2.apk, -S, G:Pobrane przez ChromeApkManagerV6.1other..projectsSecSettings.apkres, -M, G:Pobrane przez ChromeApkManagerV6.1other..projectsSecSettings.apkAndroidManifest.xml]

            at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)

            at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)

            … 5 more

            Caused by: brut.common.BrutException: could not exec command: [aapt, p, –min-sdk-version, 17, –target-sdk-version, 17, -F, C:UsersWieslawAppDataLocalTempAPKTOOL3771366209860112886.tmp, -0, arsc, -I, C:UsersWieslawapktoolframework1.apk, -I, C:UsersWieslawapktoolframework2.apk, -S, G:Pobrane przez ChromeApkManagerV6.1other..projectsSecSettings.apkres, -M, G:Pobrane przez ChromeApkManagerV6.1other..projectsSecSettings.apkAndroidManifest.xml]

            at brut.util.OS.exec(OS.java:89)

            at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)

            … 6 more

  • http://twitter.com/soy_titooo Tito

    If we modify androidmanifest.xml of a system app, should we also resign it?

    thanks wanam

    • http://wanamlite.com/ Mohamed Karami (Wanam)

      Yes, you have to sign it.

      • http://twitter.com/soy_titooo Tito

        Ok, so the steps would be as it follows?
        decompile with option 9, change androidmanifest.xml, compile with option 11 and finally sign with option 12?

        thank you in advance

        • http://wanamlite.com/ Mohamed Karami (Wanam)

          Yes, just don’t forget to remove it from “keep” folder while recompiling.

  • Pingback: [Mod][Source]Do it yourself - SystemUI - Quicksetting - Background - Seite 139 - Android-Hilfe.de()

  • lasic.2000

    Thank You Wanam for Your hard work :)

  • Pingback: SystemUI - odexed oder deodexed - Seite 2 - Android-Hilfe.de()

  • Pingback: Anonymous()

  • Pingback: [ROM - JB 4.1.2 - EMB5 - 07/03/13] GORGOID v1.6 + Yank555 Kernel 3.3 + Boeffla Sound - Seite 32 - Android-Hilfe.de()