I take no responsibility if you brick your phone doing this. Modifying system files is always done at your own risk.
To modify an .apk (in this case TwWallpaperChooser.apk):
step 0: Make a backup!!!
Quote:
adb shell
su
cp /system/app/TwWallpaperChooser.apk /sdcard/TwWallpaperChooser.bak
|
then get out of adbshell
(that's right, 2 "exit"s, one to exit root, one to exit the shell)
1) pull the file from your phone to your computer:
Quote:
|
adb pull /system/app/TwWallpaperChooser.apk
|
2) Open the archive
a) If in linux just use archive manager
b) In Windows it might be easier to change the extension from .apk to .zip first
3) Add the files you want. Wallpapers go in the apk here: /res/drawable-hdpi/
3b)If you changed the extension to .zip change it back to .apk
4) Push the files back to your phone. Theoretically this command should work:
Quote:
|
adb push TwWallpaperChooser.apk /system/app/
|
but adb (for me anyway) doesn't like pushing files into /system, so you might have to do this instead:
push the file to the sd card:
Quote:
|
adb push TwWallpaperChooser.apk /sdcard
|
Then use root explorer to move the file to /system/app or use adb:
Quote:
adb shell
su
mv /sdcard/TwWallpaperChooser.apk /system/app
|
5) reboot
Ta-da!
|