[guide][how to] TwWallpaperChooser.apk to add more wallpapers...[easy]

Status
Not open for further replies.

abhi922

Senior Member
Jul 29, 2012
1,331
4,532
0
Toronto
hello guys,

i m here to give u some information on how to add more wallpapers to the existing twwallpaper chooser.apk.............
it is very easy task & not require very high knowledge...........

tools required:-

1.) apktool/apkmultitool
2.) java runtime
3.) jpeg wallpaper images [u can get from google ]
4.) notepad++ [i prefered it for editing xml ]
5.) some knowledge about apktool /apkmultitool refer to my thread

guide:-

1.) decompile the twwallpaper.apk using apktool/apkmultitool........
2.)goto decompiled folder >res>drwable-mdpi
3.) add ur images to drawable-mdpi folder
u ve to add 2 images for each wallpaper
example --- abhi922.jpeg is the wallpaper & other is abhi922_small.jpeg
abhi922.jpeg should be a proper 640x480 image
abhi922_small.jpeg should be a proper 107x80 image

4.) goto values-mdpi folder
5.) open arrays.xml

it should look like this ----
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string-array name="wallpapers">
        <item>wallpaper_default</item>
        <item>wallpaper_17</item>
        <item>wallpaper_18</item>
        <item>wallpaper_desert</item>
    </string-array>
</resources>
now we have to add a new item to this for a new wallpaper......
add " <item>abhi922</item> "

now it will look like this :-
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string-array name="wallpapers">
        <item>abhi922</item>
          <item>wallpaper_default</item>
         <item>wallpaper_17</item>
        <item>wallpaper_18</item>
        <item>wallpaper_desert</item>
    </string-array>
</resources>
tips:-
a) we have given it that name which we have assign to jpeg image......[ abhi922.jpeg]
b.) u can also add this line " <item>abhi922</item> " to any place as it will change order the of wallpapers in app......

6.) save this file.....
7.) compile again refer to my thread
8.) test & apply new wallpapers..

if u use this thread & make a new modded apk then give me credits

hit thanxxxx button for me .......nothing else.........
 

Android-fany

Senior Member
Nov 12, 2012
1,496
697
0
localhost
AW: [guide][how to] TwWallpaperChooser.apk to add more wallpapers...[easy]

Nice :thumbup:
Could you add it to your "How to make a custom rom" thread (if you didn't add it already)?

Tapatalked by S5830i
 

abhi922

Senior Member
Jul 29, 2012
1,331
4,532
0
Toronto
Hi, do you have any tips on doing this with the Galaxy S5 SecWallpaperPicker.apk?
What should the wallpaper dimensions be?
thanks!
best way to know that is extarct a wallpaper from your S5 SecWallpaperPicker.apk
then check its dimensions using any app from market or on windows photo viewer details..

then use that dimension to trim ur custom wallpapers...

also ---> u need to check that which folder contains ur wallpapers ... It will be like this --> drawable-sw***dp-**dpi

sw***dp can be any number like sw360dp or sw720dp or any other etc....
**dpi can be like xhdpi or xxhdpi or any other etc...

also ---> ur value folder will be different ... like --> value-xhdpi , value-xxhdpi or any other acc. to ur phone's display.

regards,
abhi922.
 
Last edited:

jaco-hendriks

New member
Oct 21, 2014
2
0
0
best way to know that is extarct a wallpaper from your S5 SecWallpaperPicker.apk
then check its dimensions using any app from market or on windows photo viewer details..

then use that dimension to trim ur custom wallpapers...

also ---> u need to check that which folder contains ur wallpapers ... It will be like this --> drawable-sw***dp-**dpi

sw***dp can be any number like sw360dp or sw720dp or any other etc....
**dpi can be like xhdpi or xxhdpi or any other etc...

also ---> ur value folder will be different ... like --> value-xhdpi , value-xxhdpi or any other acc. to ur phone's display.

regards,
abhi922.

Hi guys,

I have done this for the S5.

Deleting the stock images and adding my own images. De compiled, added the new images, made the changes in the relevant .xml files, compiled and signed secwallpaperpicker.apk.

No errors when de compiling or compiling.

Added it to my rom zip, installed, but when I go to check from the wallpaper picker, I get "Unfortunately settings has stopped". When I go to install the secwallpaperpicker.apk file, it get message "App not installed" Permissions are correct.

Any devices please?
 

abhi922

Senior Member
Jul 29, 2012
1,331
4,532
0
Toronto
Hi guys,
I have done this for the S5.
Deleting the stock images and adding my own images. De compiled, added the new images, made the changes in the relevant .xml files, compiled and signed secwallpaperpicker.apk.
No errors when de compiling or compiling.
Added it to my rom zip, installed, but when I go to check from the wallpaper picker, I get "Unfortunately settings has stopped". When I go to install the secwallpaperpicker.apk file, it get message "App not installed" Permissions are correct.
Any devices please?
just a silly mistake:silly:
you have signed ur apk which u cannot do for system app.....
so use my thread for refrence --->http://forum.xda-developers.com/showpost.php?p=36388180&postcount=3
regards,
abhi922.
 

jaco-hendriks

New member
Oct 21, 2014
2
0
0
just a silly mistake:silly:
you have signed ur apk which u cannot do for system app.....
so use my thread for refrence --->http://forum.xda-developers.com/showpost.php?p=36388180&postcount=3
regards,
abhi922.
Hi abhi922,

Thanks for your reply - much appreciated.

I have actually done the same with signed and unsigned and still getting the same result.

I have extracted both framework-res and secwallpaperpicker.apk from the ROM zip, created framework files, decompiled the secwallpaperpicker.apk file, added a new image (wallpaper_12.png and wallpaper_12_small.jpg) to the image folder, updated the public.xml and strings.xml file, compiled the apk again without any errors. Did the following:

1. Signed and zipaligned
2. Unsigned and zipaligned
3. Signed
4 Unsigned

Copied the apk file back to the ROM zip using winrar (store), installed the ROM via Aroma installer. Everything fine till I go to settings --> Wallpaper --> home and lock screens. Getting error "Unfortunately, settings has stopped working. Getting error "app not installed" when trying to install the app manually from the external SD card (signed & unsigned). Trying to copy the apk file to \system\priv-apps using ES file manager, getting an error something about I don't have access and or folder is read only. Downloaded secwallpaperchooser.apk, added that to the ROM zip, then also getting the same errors/results.

Modified the alarm clock apk and it works fine.

Thanks and regards
 
Status
Not open for further replies.