1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Question on decompiling APKS

Discussion in 'Android Themes' started by camaro1173, May 2, 2011.

  1. camaro1173
    Offline

    camaro1173 Member

    Joined:
    Jun 26, 2010
    Messages:
    233
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Danvers Mas.
    Hi all looking for some info on decompiling apks with apk manager. I have no problem decompiling any apks like framework apk, browser apk or the phone apk. My problem comes when I go to decompile any systemUI apks or settings apks I always end up with the same massage from apk manager saying

    "An Error Occured, Please Check The Log (option 21)"
    Press any key to continue . . . "

    Dose anyone have any idea why this is happening, I can post the log if needed?
    I am newish at this, I can sit here and read the log all day but I am going to be honest with you I have no idea what it means.

    Any help is welcome Thanks.
  2. JayR_
    Offline

    JayR_ Theme Developer Theme Developer

    Joined:
    Jul 13, 2010
    Messages:
    1,108
    Likes Received:
    4
    Trophy Points:
    0
    what error does the log say? and what app(s) in particular?
  3. Mbk
    Offline

    Mbk Android For Life Theme Developer Premium Member

    Joined:
    May 4, 2010
    Messages:
    4,169
    Likes Received:
    4
    Trophy Points:
    0

    I've tested and verified it to work with APKManager following what I'll explain...
    OK... some guy at XDA was tinkering with apktool.jar and noted that this command helped with decompiling the SystemUI.apk... has to do with the certificate signature already in use with the framework-res.apk or to that effect, thus erroring out when trying to decompile SystemUI...

    my suggestion is to copy your apktool.jar from the apkmanager 'others' folder to your C drives root directory, so you have it available in both places and much easier than typing on the full path for it when you run this command...

    I also had the framework-res.apk and the SystemUi.apk in the C directory as well so that apktool sees them...

    then run

    java -jar apktool.jar if framework-res.apk

    then

    java -jar apktool.jar d SystemUI.apk decompiled

    Once that's done you should be able to run APKManager as usual and it'll decompile the SystemUI.apk without errors... and it should always be able to decompile that apk from that point on, so you can get rid of the framework, SystemUI.apks, and the decompiled folder from the C directory and it will still decomp[ile in APKManager properly from that point on...

    Give it a whirl and let me know.... I am 100% certain it'll work for you guys as well...:) "
  4. Droid DOES!!
    Offline

    Droid DOES!! What iDoesn't Theme Developer Premium Member

    Joined:
    Jun 12, 2010
    Messages:
    6,321
    Likes Received:
    12
    Trophy Points:
    0
    Good to know, thanks mbk!

    This thread has been Thunder struck!
  5. camaro1173
    Offline

    camaro1173 Member

    Joined:
    Jun 26, 2010
    Messages:
    233
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Danvers Mas.
    When you talk about the framwork and systemui apks should those be form the rom you are working with?
  6. Mbk
    Offline

    Mbk Android For Life Theme Developer Premium Member

    Joined:
    May 4, 2010
    Messages:
    4,169
    Likes Received:
    4
    Trophy Points:
    0
    Yeah it can be from the ROM you are currently working with, but afterwards you will be able to decompile any SystemUI.apk from any ROM without ever having to do this again...
  7. camaro1173
    Offline

    camaro1173 Member

    Joined:
    Jun 26, 2010
    Messages:
    233
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Danvers Mas.
    Thanks for all the info and help will give it a go and see what happens.....:motdroidhoriz:
  8. camaro1173
    Offline

    camaro1173 Member

    Joined:
    Jun 26, 2010
    Messages:
    233
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Danvers Mas.
    Mbk thanks for the help that did the trick.
    One last question can I go ahead and delete the framework-res apk, SystemUI apk, the decompiled SystemUI.apk, and the copy of the java akptool or should i leave them there???
  9. Mbk
    Offline

    Mbk Android For Life Theme Developer Premium Member

    Joined:
    May 4, 2010
    Messages:
    4,169
    Likes Received:
    4
    Trophy Points:
    0
    You can now delete all of those from your C drive's root directory...
  10. camaro1173
    Offline

    camaro1173 Member

    Joined:
    Jun 26, 2010
    Messages:
    233
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Danvers Mas.
    Thanks that was a great Big help that was driving me nuts for a long time.dancedroiddancedroid
  11. Mbk
    Offline

    Mbk Android For Life Theme Developer Premium Member

    Joined:
    May 4, 2010
    Messages:
    4,169
    Likes Received:
    4
    Trophy Points:
    0
    LOL... you 'and' a lot of 'us' initially...;)
Search tags for this page
an error occured please check the log (option 21)
,

an error occured, please check the log (option 21)

,
an error occurred decompile
,

an error occurred please check the log (option 21)

,

an error occurred please check the log option 21

,
apk decompiling without error occurred
,
apk manager an error occurred
,
apk manager an error occurred please check the log (option 2
,
apk manager error 21
,
apk manager option 21
,
decompile problem using apkmanager
,
decompiling apk an error occured, please check t press any k
,
decompiling dna
,
mengatasi an error occurred saat decompile systemui apk
,
secmms decompile error