Theming apps in /data/app

MJ5150

Active Member
Joined
Dec 22, 2009
Messages
984
Reaction score
0
Location
Lacey, Washington
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?
 

gszeman

Member
Joined
Apr 8, 2010
Messages
502
Reaction score
0
Location
Novi, MI
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

 

titans

Premium Member
Premium Member
Rescue Squad
Joined
Dec 3, 2009
Messages
2,645
Reaction score
0
Sounds like you didn't sign the .apk.
 
OP
MJ5150

MJ5150

Active Member
Joined
Dec 22, 2009
Messages
984
Reaction score
0
Location
Lacey, Washington
Sounds like you didn't sign the .apk.

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
 
OP
MJ5150

MJ5150

Active Member
Joined
Dec 22, 2009
Messages
984
Reaction score
0
Location
Lacey, Washington
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
 
OP
MJ5150

MJ5150

Active Member
Joined
Dec 22, 2009
Messages
984
Reaction score
0
Location
Lacey, Washington
Got it figured out. Thanks for leading me down the right path fellas.

-Mike
 
Last edited:

MAD450r

Theme Developer
Theme Developer
Joined
Apr 21, 2010
Messages
1,297
Reaction score
1
Website
mad450r.spaces.live.com
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.
 
Top