[Q] Red Underline Spell Checker - Galaxy S III Mini Q&A, Help & Troubleshooting

I'm trying to enable the red underline spell checker, but as a noob not getting too far.
I am using the following post as a guide:
http://forum.xda-developers.com/showthread.php?t=1641988
1 - I have decompiled the SecSettings.apk- but I can't find what file to edit. Anyone help a little?
2 - I cannot get Framework.jar decompiled - I am following the instructions in the post below* but when I open framework.jar with 7zip I do not have a classes.dex, just a preloaded-classes file, and I have tried this but I get the following error:
Code:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: bad magic value: 23 20 4
at org.jf.dexlib.DexFile.<init>(DexFile.java
at org.jf.baksmali.main.main(main.java:280)
*http://forum.xda-developers.com/showthread.php?t=2069551
Any help would be appreciated and I'll post the finished files when working.
Thanks

I think it can't work in odex ROMs
Sent from my GT-I8190 using xda app-developers app

Related

[Q] Compiling Framework-res.apk Errors

The log.txt from apk manager v4.8 is zipped below because it was to big of a text file to upload.
I used v4.8 on my mom's desktop when I was at her place and it worked just fine for compiling framework-res.apk's but now i'm on my laptop and i'm using jdk v1.6 and i can't do it I keep getting those errors Please help thanks
Did you try the
Apk manager if framework-res with the newest framework that can cause errors when compiling and decompiling
Also were you trying to decompile and already themed framework? That fails 9 times out of 10
Sent from my PC36100 using XDA App
kifno said:
The log.txt from apk manager v4.8 is zipped below because it was to big of a text file to upload.
I used v4.8 on my mom's desktop when I was at her place and it worked just fine for compiling framework-res.apk's but now i'm on my laptop and i'm using jdk v1.6 and i can't do it I keep getting those errors Please help thanks
Click to expand...
Click to collapse
I thought you were compiling from source? Wouldn't it make more sense to make the changes directly to the source files?
jasonmaloney said:
I thought you were compiling from source? Wouldn't it make more sense to make the changes directly to the source files?
Click to expand...
Click to collapse
And yes I am compiling from source
Ha! Why didn't I think of that brilliant idea thanks again jm I'll try that right now
Will recompile rom tonight thanks jm. I'm glad I can always receive tips from you from time to time.
Sent from my HERO200 using XDA Premium App
okay jm that doesn't work because some of the values i'm looking for aren't in the source files i have
they get generated once i build the rom and the framework-res.apk is built
I get the same errors when i try to decompile and or compile the apk. I even tried to decomiple the stock cm7 framework-res.apk and i'm still getting errors This isn't right so it has to be something with my computer. I even tried to decompile the final cm7 apk and it doesn't work!!!! I really need help with this so that I can release my latest gingersense rom. JM though it did help with a few of the lines I changed but just not all
kifno said:
okay jm that doesn't work because some of the values i'm looking for aren't in the source files i have
they get generated once i build the rom and the framework-res.apk is built
I get the same errors when i try to decompile and or compile the apk. I even tried to decomiple the stock cm7 framework-res.apk and i'm still getting errors This isn't right so it has to be something with my computer. I even tried to decompile the final cm7 apk and it doesn't work!!!! I really need help with this so that I can release my latest gingersense rom. JM though it did help with a few of the lines I changed but just not all
Click to expand...
Click to collapse
Did you do the apktool if framework res like I said? That fixed the error for me or are you just going to ignore it, sorry for trying to help
Sent from my PC36100 using XDA App
thoughtlesskyle said:
Did you do the apktool if framework res like I said? That fixed the error for me or are you just going to ignore it, sorry for trying to help
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
no no i want your help i just didn't/don't understand what you mean by if framework res
please post some instructions on how to decompile and compile framework-res.apk files using your fix method that'd be awesome bro and i'd give many thanks to you
this is the only thing holding me back from releasing a newer version of my rom
kifno said:
no no i want your help i just didn't/don't understand what you mean by if framework res
please post some instructions on how to decompile and compile framework-res.apk files using your fix method that'd be awesome bro and i'd give many thanks to you
this is the only thing holding me back from releasing a newer version of my rom
Click to expand...
Click to collapse
Put the framework-res in the folder that has apk tool in it I think apk manager stores it in the "other" folder. Then navigate to the folder in cmd line e.g. "cd C:\android-sdk-windows\tools\other" then type "java -jar apk tool if framework-res" if it doesn't error out and goes back to the cmd line then you should be good I might have the command wrong but im close
Sent from my PC36100 using XDA App
thoughtlesskyle said:
Put the framework-res in the folder that has apk tool in it I think apk manager stores it in the "other" folder. Then navigate to the folder in cmd line e.g. "cd C:\android-sdk-windows\tools\other" then type "java -jar apk tool if framework-res" if it doesn't error out and goes back to the cmd line then you should be good I might have the command wrong but im close
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
i had someone do the apk decompiling and compiling for me but i will see if this works because i will need to know how to decompile and compile my apk files on my laptop and not have to go to my moms place just to decompile an apk file
i get the following error
Code:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Kevin>cd C:\apk manager v4.8\other
C:\apk manager v4.8\other>java -jar apktool.jar if framework-res
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound
Exception: framework-res (The system cannot find the file specified)
at brut.androlib.res.AndrolibResources.installFramework(Unknown Source)
at brut.androlib.Androlib.installFramework(Unknown Source)
at brut.apktool.Main.cmdInstallFramework(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.io.FileNotFoundException: framework-res (The system cannot find
the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
... 4 more
C:\apk manager v4.8\other>
kifno said:
i get the following error
Code:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Kevin>cd C:\apk manager v4.8\other
C:\apk manager v4.8\other>java -jar apktool.jar if framework-res
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound
Exception: framework-res (The system cannot find the file specified)
at brut.androlib.res.AndrolibResources.installFramework(Unknown Source)
at brut.androlib.Androlib.installFramework(Unknown Source)
at brut.apktool.Main.cmdInstallFramework(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: java.io.FileNotFoundException: framework-res (The system cannot find
the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
... 4 more
C:\apk manager v4.8\other>
Click to expand...
Click to collapse
Try doing a Google search I think I got the command wrong, just search for apk tool if framework-res
Sent from my PC36100 using XDA App
i'm just going to wipe my windows 7 portion of my computer and back up all my files to my linux mint side and then re-install and set up my windows 7 ulimate partion and see if it works (btw what version of java does apktools need? 1.5 or 1.6 jdk? and does it need jre & jdk or just one?)
and then i'll do the same for my linux partition except i'll use ubuntu instead of linux mint this time. hopefully one of the two can get apktool working (preferrably both ) but we'll see this weekend when i do all that. right now....*yawn* i'm going to sleep
i have a good feeling that that will work this weekend
I believe apktools needs 1.6 java runtime environment (jre)
Sent from my HTC Hero CDMA using XDA App
Just noticed this post, Kifno. Looked at the error you got and that is the same one I got when I tried it for you. Like I said in the PM to you, it has something to do with that second edit you are doing...That was the common denominator between the three that I couldn't get to compile for you...
ranger61878 said:
Just noticed this post, Kifno. Looked at the error you got and that is the same one I got when I tried it for you. Like I said in the PM to you, it has something to do with that second edit you are doing...That was the common denominator between the three that I couldn't get to compile for you...
Click to expand...
Click to collapse
even when i just decompile and compile without any changes i get those errors so i believe its something i did on my laptop so this weekend i'm just going to wipe both partitions one at a time while backing up each others files onto one another as i do so. then i'll be fresh and i can reset up my machine and track every step i did to get it developement ready and see what is causing the problem. then if i still get the same errors i'll post what all i did after setting up my windows 7 partition and linux partition. and then that'll make it much easier to figure out the problem

[UPDATED][INFO]Tips for cooking your own ROM - Now has howto for adding franco.Kernel

Hi there pals! It seems that the actual wish of n00bz is cooking their own rom. Well,i got some tips for you now.
*Kernel:
The Linux kernel is the center of the entire Android system. Today i'm gonna show how to put it in your rom:You'll need the kitchen. Multiupload.com - upload your files to multiple file hosting sites! Extract rom,then go to advanced options. Select option 20 and then option w. You'll find a new folder,BOOT-EXTRACTED. You'll find in this folder a file named zImage. Replace it with the fixed one that you can find in kernel folder of zip file,select option b and cook. THEN copy:
/zipfile/system/lib/modules/tun.ko to /WORKING/system/lib/modules
/zipfile/system/lib/modules/wireless.ko to /WORKING/system/lib/modules
*Frameworks
For customizing your UI and make it cool,you'll need the kitchen.Multiupload.com - upload your files to multiple file hosting sites!
Extract it and go to advanced options. Select option 11,wait and in WORKING open framework-res.apk w/ 7-zip and customize all you want. If you want to put another framework than the stock one,extract the original one and keep META-INF folder. Replace stock one with the custom one in framework folder,and open it with 7zip. Replace META-INF folder in apk with extracted one and cook.
*WiFix
How to apply WiFix?
Download this:http://www.multiupload.com/CVBPXA46DB. Extract downloaded file and extract rom with kitchen. In kitchen go to advanced options and select option 20,then option w. Open BOOT-EXTRACTED folder and in boot.img-ramdisk open init.thunderg.rc and put in this string:
Code:
on property:init.svc.wpa_supplicant=running
exec /system/bin/sh /system/etc/setwifi.sh
then select option b.Copy setwifi.sh in /WORKING/system/etc and iwmulticall in /WORKING/system/xbin .Now,in /META-INF/com/google/android/ open updater-script and add these strings:
Code:
symlink("iwmulticall", "/system/xbin/iwconfig");
symlink("iwmulticall", "/system/xbin/iwgetid");
symlink("iwmulticall", "/system/xbin/iwlist");
symlink("iwmulticall", "/system/xbin/iwpriv");
symlink("iwmulticall", "/system/xbin/iwspy");
set_perm(0, 0, 0755, "/system/xbin/iwmulticall");
set_perm(0, 0, 0755, "/system/etc/setwifi.sh");
in WORKING folder go in system folder. Open build.prop and search for this string:
Code:
wifi.supplicant_scan_interval=20(Replace 20 with 260)
*Enable hardware acceleration
in Working folder go in system folder and open build.prop. Search for this string:
Code:
debug.sf.hw=0(Replace 0 with 1)
Cook it.
*Heap size
In working folder go in system folder and open build.prop. Search for this string:
Code:
dalvik.vm.heapsize=24m(replace 24 with 32 or 40)
Cook.
*ZRam module
Download zram.zip from here and extract it. Copy:
/zram.zip/system/bin/zramconfig to /WORKING/system/bin
/zram.zip/system/etc/zram.sh to /WORKING/system/etc
/zram.zip/system/etc/init.d/00remount to /WORKING/system/etc/init.d
/zram.zip/system/etc/init.d/00zram to /WORKING/system/etc/init.d
*Stagefright player
Open /WORKING/system/build.prop with a text editor(Notepad++) and search for
Code:
media.stagefright.enable-player=false
and replace false with true to enable it,replace true with false to disable it.
More tips are on the way!
Good job. The more we share the more this community will grow. Keep up the good work.
I hope that this thread will be sticky
+1 for sticky. All developer's could share usefull tips in this thead and maybe this way more ppl will get the courage to try and cook their own roms I'm trying to get into the cooking bussiness myself so every little tip is more than usefull
Zecanillis,take a look.
Sent from my LG Optimus One P500 using Tapatalk
I'm going to cook my own rom soon using these instructions
Crap,this thread is going down...
Sent from my LG Optimus One P500 using Tapatalk
ciaox said:
Crap,this thread is going down...
Sent from my LG Optimus One P500 using Tapatalk
Click to expand...
Click to collapse
my vote for u
Is there a list of apps which are safe to remove?
Well,no. You'll need to be careful removing apps in app folder.
http://www.market4android.com/stock-android-2-1-apps-list
Thanks for the list also calould you tell me procedure of porting roms from other devices to our o1? Like how to port cyanogenmod?
Sent from my LG-P500 using XDA Premium App
Well first you need to adapt kernel.
How to do that? Can I use any O1 kernal or have to develop my own?
Sent from my Optimus One
Ask to mik
Ok I will! Thanks anyways! Your tut helped a lot.
Sent from my Optimus One
Just a small revision the the META-INF\com\google\android\update-script syntex. I kept getting errors in my update-script check, and found Ciaox had posted the version below in another forum (that was not english, but I recognized the code!).
Code:
symlink iwmulticall SYSTEM:xbin/iwconfig
symlink iwmulticall SYSTEM:xbin/iwgetid
symlink iwmulticall SYSTEM:xbin/iwlist
symlink iwmulticall SYSTEM:xbin/iwpriv
symlink iwmulticall SYSTEM:xbin/iwspy
set_perm 0 0 0755 SYSTEM:xbin/iwmulticall
set_perm 0 0 0755 SYSTEM:etc/setwifi.sh
I also found the supplicant scan interval bit in the boot.img-ramdisk/init.thunderg.rc file. I made this bit match the code in the build.prop. We'll see how well this goes here soon...
Code:
wifi.supplicant_scan_interval=20#(Replace 20 with 260)
I am moments away from flashing UD4 with the wifi fix incorporated.
Newbees, remember to use Notepad++ or other script editor instead of plain notepad. The language changed to script makes this stuff 100x easier to see and it also edits the script better from what I read about linux scripts. I speak from experience as a newbee myself!
Brian - Atlanta, GA
You're getting errors in update-script because syntax in first post is for Edify,not Amend.
Sent from my LG Optimus One P500 using XDA Premium App
I thought about that last night. Unfortunately, wifi is still draining battery. I'm running Ubuntdroid4, & 3g runs very smooth. If I didn't run wifi so much at home & use internet primarily I wouldn't mess with it so much. Off to do some more research...
Sent from my LG-P509 using XDA App
ciaox said:
You're getting errors in update-script because syntax in first post is for Edify,not Amend.
Can the rom be cooked to use edify? Then the script will work?
Will have to use clockwork to flash then?
Sent from my LG Optimus One P500 using XDA Premium App
Sent from my LG-P509 using XDA App
Click to expand...
Click to collapse
Click to expand...
Click to collapse

Android 4.0.4 Not compatible with customizing?

I've tried multiple ways of decompiling and recompiling the systemui.apk, framework-res.apk aswell as add in custom carrier logo and custom status bar background, all of these mods worked on 4.0.3 but are not working with android 4.0.4, any suggestions?
I would try updating sdk and grab the latest aapt.exe from platform-tools and place it in your apktool folder
Sent from my Nexus S 4G using Tapatalk 2 Beta-4
I think I may have found a problem, fergie, in the SDK Manager, I only see SDK for Android 4.0.3, maybe they have not made an update because 4.0.4 has not been an official release???
patched apktool.jar
try this patched version of apktool.jar, this should help by decompiling and compiling some 403 and 404 version apk´s.
original thread is here :
http://code.google.com/p/android-apktool/issues/detail?id=291
FlatEric0074 said:
try this patched version of apktool.jar, this should help by decompiling and compiling some 403 and 404 version apk´s.
original thread is here :
http://code.google.com/p/android-apktool/issues/detail?id=291
Click to expand...
Click to collapse
Appreciate this but the version of apktool.jar I was using works better (1.4.3), with the version you provided above gets errors like crazy when decompiling the systemui.apk, decompiling the framework-res.apk works fine, recompiling shows too many errors to count :/
There is a specific apktool for 4.0.4 systemui which the guy attached. Its a modded version and works perfectly. Myself and others are using it.
Sent from my Nexus S using xda premium
I found out what I was doing wrong!!! Sorry about this guys I guess when I am building the SystemUI.apk I didn't realize that you only had to use the command "apktool b SystemUI" and it would build the apk in the dist folder thanks a lot guys

[Tutorial] How to use Lg Weather Widget on CM7 or Miui beta

Tutorial to add Lg classes to the framework.jar in order to make work the original weather widget of LG in every rom.
I have made this process successfully in the CyanogenMod 7.2RC1 and in the MIUI 2.1a.
I discovered this process thanks to doc3000, which created to me the framework.jar of CM7 with Lg classes. After a while researching, I discovered the process.
First of all, make a backup of your rom just in case something goes wrong, be able to recover the terminal restoring it from the recovery, given the fact that a wrong framework.jar will produce a bootlop.
The files you need are:
1) baksmali.jar y smali.jar ,which you can get it from here: http://code.google.com/p/smali/. I have used the .jar files
2) original LG framework.jar file, for example in whatever rom STOCK, available in “/system/framework/framework.jar”
3) framework.jar of the rom to which we want to add the LG classes, available in “/system/framework/framework.jar”
4) WeatherWidget.apk which you can get too from whatever STOCK rom, available in “/system/app/WeatherWidget.apk”
1) Open a console, then cd to the folder where you have the 4 files. Run:
Code:
java -jar baksmali.jar framework.jar -o outlg
This will make a folder named “outlg”, which it will have all the LG Classes of the framework.jar
2) Repeat the same with the framework.jar of the rom that we want to add the LG classes running the command
Code:
java -jar baksmali.jar framework.jar -o out
3) Go to the folder “outlg/com” and make a copy of the “lge” folder to the “out/com” folder.
4) Now run
Code:
java -jar smali.jar out -o classes.dex
5) Open the framework.jar of the rom that we want to add the LG Classes with Winzip / 7zip ... , and replace the file classes.dex from the inside by the one we just have created. (Don't use Winrar, it make an incorrect framework.jar with a bootloop as a result. I don't know if Winzip work, but I confirm 7zip yes)
6) Insert the modified framework.jar to the “/system/framework” overwritting the original file, and checking that it has group and owner “root” and the correct permissions ( To know the correct permissions, look the permissions of any file in the folder “/system/framework/”...)
7) Copy the file “WeatherWidget.apk” in “/system/app/” and put he same permissions as any apk in that directory, check that the group and the owner are “root” too
8) Restart the device, and here we have the original LG weather widget in our favourite rom.
This process should work in every rom in every device, not only in the Optimus Black, but I could not check it because I only have an Optimus Black.
Sorry for my english >.<
Cheers!!!
Thank you i gonna try it out. but why it is in Q&A section? Maybe moderator could move this thread to themes&apps section? xD anyway thank you dude
I have less than 10 posts, I can't post on Development forum, but you are right, apps and themes are the correct forum, sorry >.<
Enviado desde mi LG-P970 usando Tapatalk
It ok maybe moderator can move it some day and more people find it?
Sent from my P970 using XDA
Hang on, i got an idea. i can create thread for you and put link on this thred hows that?
Runtime,
Great toturial on getting stock weather widget to work with cm7.
Any way you could put all this into a flashable zip?
I have abandon stock rom for months now and dont want to go back to extract files. Just too much efforts.
Thanks,
Sent from my LG-P970 using XDA
fongnd said:
Runtime,
Great toturial on getting stock weather widget to work with cm7.
Any way you could put all this into a flashable zip?
I have abandon stock rom for months now and dont want to go back to extract files. Just too much efforts.
Thanks,
Sent from my LG-P970 using XDA
Click to expand...
Click to collapse
If i could make you a flashable zip i would make it for you. But i dont know how to. So ill just make you a zip containing all of needed files c: (btw it seems like the original poster of this left this thread D: )
Sent from my LG-P970 using XDA
Hi all,
I can do a normal zip with all the files needed. This night I will do the zip.
A flashable zip is usseles when developers make a change involving "CyanogenMod/android_frameworks_base" because the framework.jar change. You need to do the process again to get a new framework.jar or you will get a bootlop.
Since u back so i ask qustion again...
Do you want me to open thread for you in themes and apps and give a link to your post... i take no credit for ur work.. so want me to?
P.S. im making zip now
Sent from my LG-P970 using XDA
foggydisaster said:
If i could make you a flashable zip i would make it for you. But i dont know how to. So ill just make you a zip containing all of needed files c: (btw it seems like the original poster of this left this thread D: )
Sent from my LG-P970 using XDA
Click to expand...
Click to collapse
thanks for offering me all necessary files.
I've just go through the tutorial again to rehearse all the command that I need to do.... I think I will screw up on this.... I have a busy life and I cant afford to have bootloop on phone. Just too time consuming.
Zip Is Here!
As i promised, ZIP with all STOCK files you need to go Good Luck with this
LINK:
->> http://dl.dropbox.com/u/78691851/StockFiles.zip <<-​ Have fun c:
foggydisaster said:
As i promised, ZIP with all STOCK files you need to go Good Luck with this
LINK:
->> http://dl.dropbox.com/u/78691851/StockFiles.zip <<-​ Have fun c:
Click to expand...
Click to collapse
Have you try this? meaning get the lg weather widget to work on cm7/muiu
The command that RUNTIME listed... do we execute these on the Android Terminal on the phone
thanks,
fongnd said:
Have you try this? meaning get the lg weather widget to work on cm7/muiu
The command that RUNTIME listed... do we execute these on the Android Terminal on the phone
thanks,
Click to expand...
Click to collapse
As i understood you do this in ADB on your PC....ive got an idea, i can do this for ya just send me your framework.jar (/system/framework/framework.jar) And i can try aply this for you
foggydisaster said:
As i understood you do this in ADB on your PC....ive got an idea, i can do this for ya just send me your framework.jar (/system/framework/framework.jar) And i can try aply this for you
Click to expand...
Click to collapse
link below is the framework.jar from my CM7
https://docs.google.com/open?id=0BwQDdoY7L1pGQ1J6MmQ1Y1pRSUU
thanks,
fongnd said:
link below is the framework.jar from my CM7
https://docs.google.com/open?id=0BwQDdoY7L1pGQ1J6MmQ1Y1pRSUU
thanks,
Click to expand...
Click to collapse
Ok dude its night now so ill do this for you tomorow c: but ull have this i promise nighty night
Sent from my GT-I9001 using XDA
Hi all,
@foggydisaster
I apreciate you offer, I you want to do for me, I thanks you.
The commands are for a windows/linux terminal/shell with java installed, no need to have ABD or android SDK installed. On windows do Start->Run->Cmd, on linux simply open a terminal emulator.
runtime_Err0r said:
Hi all,
@foggydisaster
I apreciate you offer, I you want to do for me, I thanks you.
The commands are for a windows/linux terminal/shell with java installed, no need to have ABD or android SDK installed. On windows do Start->Run->Cmd, on linux simply open a terminal emulator.
Click to expand...
Click to collapse
Ill go with ubuntu c:
Sent from my GT-I9001 using XDA
i have a problem... when i run comand to extract LGE framework.jar it shows folowing:
"
Code:
[email protected]:~/Desktop/workfolder$ java -jar baksmali.jar framework.jar -o outlg
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file framework.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:265)
[email protected]:~/Desktop/workfolder$
Any ideas?
foggydisaster said:
i have a problem... when i run comand to extract LGE framework.jar it shows folowing:
"
Code:
[email protected]:~/Desktop/workfolder$ java -jar baksmali.jar framework.jar -o outlg
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.DexFile$NoClassesDexException: zip file framework.jar does not contain a classes.dex file
at org.jf.dexlib.DexFile.<init>(DexFile.java:298)
at org.jf.baksmali.main.main(main.java:265)
[email protected]:~/Desktop/workfolder$
Any ideas?
Click to expand...
Click to collapse
I edit my first post with CODE tags, copy again the commands and it will work. It's a problem with the "-" simbol in plain text with browser. My fault.
Still the same itworks with CM7 framework filebut not with LGE..

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

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.........​
So simple so neat so comprehensive
Simply simple as always
Sent from my GT-I9100 using xda app-developers app
Nice user friendly guide..
Thank You
Sent from my GT-S5830i using xda app-developers app
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
nice sir... i will save this page :good: thanks
raixie said:
nice sir... i will save this page :good: thanks
Click to expand...
Click to collapse
lol
Completing 10 posts?
Nice
Sent from my GT-S5830i using xda app-developers app
haytham.kenway said:
Nice
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
You too
ROFL
Can we use custom characters in xml like "öç"?
S5830i Stock + Root + init.d + Ligtning script + Link2SD
Hi, do you have any tips on doing this with the Galaxy S5 SecWallpaperPicker.apk?
What should the wallpaper dimensions be?
thanks!
LolVersatile said:
Hi, do you have any tips on doing this with the Galaxy S5 SecWallpaperPicker.apk?
What should the wallpaper dimensions be?
thanks!
Click to expand...
Click to collapse
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.
abhi922 said:
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.
Click to expand...
Click to collapse
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?
jaco-hendriks said:
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?
Click to expand...
Click to collapse
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.
abhi922 said:
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.
Click to expand...
Click to collapse
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

Categories

Resources