[HOW TO] Add more wallpapers to TwWallpaperChooser

Search This thread

tarobun

Member
Dec 17, 2011
41
33
0
Although there are 26 wallpapers in TwWallpaperChooser.apk, only 5 are selectable. To add the missing wallpapers (or more) to the TwWallpaperChooser app, do the following:

1) Decompile TwWallpaperChooser.apk (apktool d TwWallpaperChooser.apk)
2) Make sure there are no errors, if so grab another copy of TwWallpaperChooser.apk
3) Edit the file res/values-hdpi/arrays.xml
4) Add wallpapers as new items (images should be in res/drawable-hdpi).
eg.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string-array name="wallpapers">
        <item>wallpaper_bliss</item>
        <item>wallpaper_brown</item>
        <item>wallpaper_cafe</item>
        <item>wallpaper_canyon</item>
        <item>wallpaper_cat2</item>
        <item>wallpaper_circle</item>
        <item>wallpaper_desert</item>
        <item>wallpaper_field</item>
        <item>wallpaper_flower</item>
        <item>wallpaper_glass</item>
        <item>wallpaper_grass</item>
        <item>wallpaper_grass_new</item>
        <item>wallpaper_light</item>
        <item>wallpaper_motion</item>
        <item>wallpaper_nexuswallpaper1</item>
        <item>wallpaper_phasebeam</item>
        <item>wallpaper_rock</item>
        <item>wallpaper_secdesert</item>
        <item>wallpaper_speedlight</item>
        <item>wallpaper_secdesert</item>
        <item>wallpaper_stars</item>
        <item>wallpaper_street</item>
        <item>wallpaper_street_lights</item>
        <item>wallpaper_tree</item>
        <item>wallpaper_venezia</item>
        <item>wallpaper_zanzibar</item>
    </string-array>
</resources>

5) Recompile TwWallpaperChooser.apk (apktool b TwWallpaperChooser TwWallpaperChooserNew.apk)
6) Extract new resources.arsc file from TwWallpaperChooserNew.apk (unzip TwWallpaperChooserNew.apk resources.arsc)
7) Rename TwWallpaperChooser.apk to TwWallpaperChooser.zip
8) Add new resources.arsc file to TwWallpaperChooser.zip (zip TwWallpaperChooser.zip resources.arsc)
9) Rename TwWallpaperChooser.zip to TwWallpaperChooser.apk
10) Put TwWallpaperChooser.apk back on phone.
 

Attachments

  • screenshot.jpg
    screenshot.jpg
    37.9 KB · Views: 881

Transform

Member
Nov 16, 2007
44
0
0
I have managed to extract the TwWallpaperChooser.apk using Android Commander. I have followed steps 1 and 2 but the directory in step 3 doesn't exist on my phone. Can someone help?
 
S

sileshnair

Guest
I have managed to extract the TwWallpaperChooser.apk using Android Commander. I have followed steps 1 and 2 but the directory in step 3 doesn't exist on my phone. Can someone help?

You can see the directory only after decompiling the apk. It is inside resources.arsc in the normal apk.

Sent from my GT-I9100 using Tapatalk 2
 

Transform

Member
Nov 16, 2007
44
0
0
Ok so I got as far as step 8 in this guide:
HTML:
http://forum.xda-developers.com/showthread.php?t=1188389
where I moved the TwWallpaperChooser.apk from my device to the 'place-apk-here-for-modding' folder.

I then completed step 1 of the guide in this thread but I'm not sure where to go next...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    Although there are 26 wallpapers in TwWallpaperChooser.apk, only 5 are selectable. To add the missing wallpapers (or more) to the TwWallpaperChooser app, do the following:

    1) Decompile TwWallpaperChooser.apk (apktool d TwWallpaperChooser.apk)
    2) Make sure there are no errors, if so grab another copy of TwWallpaperChooser.apk
    3) Edit the file res/values-hdpi/arrays.xml
    4) Add wallpapers as new items (images should be in res/drawable-hdpi).
    eg.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <string-array name="wallpapers">
            <item>wallpaper_bliss</item>
            <item>wallpaper_brown</item>
            <item>wallpaper_cafe</item>
            <item>wallpaper_canyon</item>
            <item>wallpaper_cat2</item>
            <item>wallpaper_circle</item>
            <item>wallpaper_desert</item>
            <item>wallpaper_field</item>
            <item>wallpaper_flower</item>
            <item>wallpaper_glass</item>
            <item>wallpaper_grass</item>
            <item>wallpaper_grass_new</item>
            <item>wallpaper_light</item>
            <item>wallpaper_motion</item>
            <item>wallpaper_nexuswallpaper1</item>
            <item>wallpaper_phasebeam</item>
            <item>wallpaper_rock</item>
            <item>wallpaper_secdesert</item>
            <item>wallpaper_speedlight</item>
            <item>wallpaper_secdesert</item>
            <item>wallpaper_stars</item>
            <item>wallpaper_street</item>
            <item>wallpaper_street_lights</item>
            <item>wallpaper_tree</item>
            <item>wallpaper_venezia</item>
            <item>wallpaper_zanzibar</item>
        </string-array>
    </resources>

    5) Recompile TwWallpaperChooser.apk (apktool b TwWallpaperChooser TwWallpaperChooserNew.apk)
    6) Extract new resources.arsc file from TwWallpaperChooserNew.apk (unzip TwWallpaperChooserNew.apk resources.arsc)
    7) Rename TwWallpaperChooser.apk to TwWallpaperChooser.zip
    8) Add new resources.arsc file to TwWallpaperChooser.zip (zip TwWallpaperChooser.zip resources.arsc)
    9) Rename TwWallpaperChooser.zip to TwWallpaperChooser.apk
    10) Put TwWallpaperChooser.apk back on phone.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone