Editing an .apk

Discussion in 'Rescue Squad Guides' started by woebtz, Jul 8, 2010.

  1. woebtz

    woebtz New Member

    Joined:
    Jun 9, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    Not sure this is in the right place, but it seems like a fairly general help area.

    I wanted to edit an .apk...specifically beautiful widgets so I could make a small graphical change. I wanted the wifi and vibrate widgets to show a white light instead of a green one when activated. I found the necessary image files and changed them.

    When i first installed the new .apk, it said it didn't install, but the graphics worked as I intended. When I restarted, however, beautiful widgets was gone and I could not install my edited .apk. In root explorer I get the message "Application not installed"

    I know how to restore the unedited .apk, but my question is if anyone knows what step I'm missing to allow me to install my version.

    Do i need to resign the .apk? if so...how exactly do I do that. Is it something else.

    Anyway, any insight or help would be greatly appeciated.

    Thanks in advance
     
  2. vbhokiefan

    vbhokiefan Premium Member Theme Developer Premium Member

    Joined:
    Mar 4, 2010
    Messages:
    934
    Likes Received:
    8
    Trophy Points:
    18
    Location:
    VA Beach VA
    Ratings:
    +8
    Here's how I do it (there may be easier ways, but this works)

    using root explorer:

    copy the apk to the sdcard root.
    connect to the PC, and copy over the apk
    extract the apk and find the files you want to modify and make your changes
    open the original apk you copied over with 7zip (use open archive, NOT extract)
    copy and paste any modified files into the appropriate locations within the apk archive (this will overwrite the stock files)
    close the archive and copy the apk back to the sdcard root
    copy and paste (replace) the apk over the original
    set permissions to 664
    run terminal emulator and go through the following commands "su", "sync" "reboot"

    you should be good to go --- somebody correct me if I'm wrong
     
  3. woebtz

    woebtz New Member

    Joined:
    Jun 9, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    hey thanks so much for your help.

    I actually found an alternative way to do this mnutes before you responded, but I will be sure to try this in the future as it looks a little bit easier.

    Again, thanks so much for taking the time to respond.
     
  4. motoDROID.FTW

    motoDROID.FTW Member

    Joined:
    Jun 25, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Figure i would put more about me here, im the cool
    Ratings:
    +0
    Can you get a link to that? I was curious as to how to do this as well.
     
  5. mskks64

    mskks64 Member

    Joined:
    Apr 23, 2010
    Messages:
    171
    Likes Received:
    1
    Trophy Points:
    18
    Ratings:
    +1
    how do you set permissions to 664?
     
  6. Tallica

    Tallica Premium Member Rescue Squad Premium Member

    Joined:
    Mar 17, 2010
    Messages:
    3,259
    Likes Received:
    1
    Trophy Points:
    101
    Location:
    Middleboro, MA
    Ratings:
    +1
    In root explorer longpress on the apk to change and select permissions. Then the check marks should be on rw-r-r
     
    • Like Like x 1
  7. Jim 777

    Jim 777 Silver Member

    Joined:
    Dec 26, 2009
    Messages:
    2,270
    Likes Received:
    2
    Trophy Points:
    103
    Ratings:
    +2
    [​IMG]

    [​IMG]
     
Search tags for this page
apk editor for pc
,
apk editor pc
,
apk permission editor
,

change apk permissions

,
change permissions apk
,
how to change apk permission on android
,

how to change apk permissions

,
permission rw rr
,
permission rw-r-r
,
rw-r-r