Theming apps in /data/app

Discussion in 'Android Themes' started by MJ5150, Jun 18, 2010.

  1. MJ5150

    MJ5150 Active Member

    Joined:
    Dec 22, 2009
    Messages:
    1,038
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Lacey, Washington
    Ratings:
    +0
    What is the correct way to theme apps in /data/app?

    I am trying to edit "Wireless Tether for Root Users". I want to change the PNG's for the android.tether-1.apk from green to blue.

    Pulled the APK from /data/app
    Put in my blue PNGs
    Booted into recovery, mounted system and data.
    Pushed it back and ran adb shell "/system/bin/chmod 644 /data/app/android.tether-1.apk"
    Rebooted, and the app disappears.

    What did I do wrong?
     
  2. gszeman

    gszeman Member

    Joined:
    Apr 8, 2010
    Messages:
    506
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Novi, MI
    Ratings:
    +0
    Move it to /system/app/
    Copy (not move) it to your sdcard
    Move it to your PC
    Make your edits

    Option 1:
    Move the .apk to your /AndroidSDK/tools/ folder
    Open a cmd prompt
    cd c:\directory of your .apk (for me it's c:\AndroidSDK\tools\
    adb remount
    adb push android.tether-1.apk /system/app/android.tether-1.apk
    adb reboot

    Option 2
    Move the edited .apk back to your sdcard
    Open Root Explorer
    Navigate to /sdcard/
    android.tether-1.apk
    Long press and select move
    mount r/w
    paste in /system/app/
    Long press
    android.tether-1.apk and change permissions to User R/W, Group R, Others R
    Reboot

     
  3. titans

    titans Premium Member Rescue Squad Premium Member

    Joined:
    Dec 3, 2009
    Messages:
    2,662
    Likes Received:
    0
    Trophy Points:
    101
    Ratings:
    +0
    Sounds like you didn't sign the .apk.
     
  4. gszeman

    gszeman Member

    Joined:
    Apr 8, 2010
    Messages:
    506
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Novi, MI
    Ratings:
    +0
    Lol...yeah, or you can sign the .apk

    Thanks Titans...just like me to look for the most difficult solution to a problem.
     
  5. MJ5150

    MJ5150 Active Member

    Joined:
    Dec 22, 2009
    Messages:
    1,038
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Lacey, Washington
    Ratings:
    +0
    Hmmm.....all I did was open it with 7Zip with the "open archive" option when I right clicked on it. I did not extract any files. I deleted the green ones, then dropped in my blue ones and closed the 7Zip app. Was that OK?

    What is involved in signing it?

    -Mike
     
  6. MJ5150

    MJ5150 Active Member

    Joined:
    Dec 22, 2009
    Messages:
    1,038
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Lacey, Washington
    Ratings:
    +0
    Thanks for the tips gszeman. I tried both of your methods and got the "Sorry! The application Wireless Tether (process.android.tether) has stopped unexpectedly. Please try again." error.

    What did I mess up on?

    -Mike
     
  7. MJ5150

    MJ5150 Active Member

    Joined:
    Dec 22, 2009
    Messages:
    1,038
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Lacey, Washington
    Ratings:
    +0
    Got it figured out. Thanks for leading me down the right path fellas.

    -Mike
     
    Last edited: Jun 19, 2010
  8. MAD450r

    MAD450r Theme Developer Theme Developer

    Joined:
    Apr 21, 2010
    Messages:
    1,297
    Likes Received:
    1
    Trophy Points:
    38
    Ratings:
    +1
    Glad you figured it out

    I find there is no need to resync apk's
    I do all my editing with paint.net.
    for what you did you could have just opened the green images in paint.net and messed with hue. As I taught by theBowers here a few weeks back.
    alot less work :)
    then just drag the folder back to your still open 7zip and use root explorer to copy back to phone. Once its been edited if its an app it has to go into the system/app folder as you probly already know.

    Some like to keep both and resync, I find it more work for nothing. Even if it does update automatically as this would allow, you will still have to manually re-edit any changes you did so this is why I dont bother with sync.
     
Search tags for this page

how to theme /data/app apks

,

themes data/app