1. Download our Official Android App: Forums for Android!

Root Change image files inside of .apk

Discussion in 'Android Devices' started by peteh98, Jul 29, 2013.

  1. peteh98

    peteh98 Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    37
    Joined:
    Jun 8, 2013

    Jun 8, 2013
    37
    0
    15
    I extract an apk & navigate to the res folder and get the image I need. Then I change it how I want, name it how it was, and repack the .apk. Upon trying to install I get Application not installed. I used ZipSigner and it let me install, however my app force closed when I tried to open it. Any help is greatly appreciated.
    Extra, possibly irrelevant information 😅
    HTC Evo V 4G on Mobster HD Lite
    The app I'm trying to edit is Handcent SMS
     

    Advertisement

  2. teddyearp

    teddyearp Android Expert
    Rank:
     #88
    Points:
    233
    Posts:
    2,411
    Joined:
    May 19, 2010

    May 19, 2010
    2,411
    839
    233
    Store Manager
    Pinetop, AZ
    When I tried doing this I used 7zip to open the .apk file and then when I was done editing, I just stored it with an .apk extension. However that was on a different device and sometimes I still had problems because the .png files I was using were way bigger than the ones I was replacing.

    Also, I always had better luck applying these type of changes to an .apk by flashing it while in recovery using a modified 'update.zip' file.

    I have an 'update.zip' template file if you think it would help.

    good luck
     
  3. adamhos1234

    adamhos1234 Android Expert
    Rank:
     #125
    Points:
    113
    Posts:
    860
    Joined:
    Aug 9, 2012

    Aug 9, 2012
    860
    336
    113
    Try using 7zip, and just right click open archive

    Then use somefthing like gimp to size accordingly
     
  4. adamhos1234

    adamhos1234 Android Expert
    Rank:
     #125
    Points:
    113
    Posts:
    860
    Joined:
    Aug 9, 2012

    Aug 9, 2012
    860
    336
    113
    Also when you go to install, just use you file manager and put them in system/apps
    And set permissions and ownership
     
  5. peteh98

    peteh98 Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    37
    Joined:
    Jun 8, 2013

    Jun 8, 2013
    37
    0
    15
    I tried to install it as a system file before I edited it lol, also led to instant force closing. And about the file size thing yeah that sounds possible. How would I lower the size? And about the update.zip, I don't known anything about that. I'm willing to try if you thoroughly explain to me what to do lmao
     
  6. teddyearp

    teddyearp Android Expert
    Rank:
     #88
    Points:
    233
    Posts:
    2,411
    Joined:
    May 19, 2010

    May 19, 2010
    2,411
    839
    233
    Store Manager
    Pinetop, AZ
    Yes Handcent should not be installed as a system app. It would belong in /data/app. Are you uninstalling Handcent before trying to install your modified version?

    Also as to the file size of the images there was a program that somebody used to help me out once. Something about .png, I just went to the CyanogenMod forums but can't find it now, sorry about that.

    As far as the update.zip method, I have a template where you would open (not extract) it with 7zip, place your app in /data/app, close it, and put it on your phone and flash it like any other ROM. But you should make a nandroid backup first.

    let me know if you want to try the last option and I will link my file.
     
  7. peteh98

    peteh98 Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    37
    Joined:
    Jun 8, 2013

    Jun 8, 2013
    37
    0
    15
    I'll try uninstalling I didn't do that before. I'll let you know how that goes
     
  8. peteh98

    peteh98 Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    37
    Joined:
    Jun 8, 2013

    Jun 8, 2013
    37
    0
    15
    uninstalling did not work.
     
Tags:

Share This Page

Loading...