[REF] Changing default wallpaper in ICS firmwares [FOR ROM DEVELOPERS] - Galaxy S I9000 Android Development

I decided to write this little guide after a question I got via PM
It seems a pretty "big" problem as Google changed a few parameters in its framework-res.apk file.
So here I am
I hope this will help you someway. If you like this press my Thanks button
____________________
1) Load framework file in apktool
Code:
apktool if framework-res.apk
2) Decompile it
Code:
apktool d framework-res.apk
3) Navigate to /res/drawable-hdpi/ and delete default_wallpaper.jpg file
4) Copy the jpg file you want to be default wallpaper in /res/drawable-hdpi/ and rename it in default_wallpaper.jpg
5) Navigate to /res/values/ and open strings.xml
6) Change this line
Code:
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
with this:
Code:
<string name="default_wallpaper_component">@null</string>
7) Compile framework-res.apk
Code:
apktool b framework-res framework-res-modded.apk
8) Sign it (e.g. ApkManager)
9) Rename it in framework-res.apk and push it to ROM flashable zip
____________________
That's it
If you have any problems compiling back framework-res.apk look here
Have a nice day!

lippol94 said:
I decided to write this little guide after a question I got via PM
It seems a pretty "big" problem as Google changed a few parameters in its framework-res.apk file.
So here I am
I hope this will help you someway. If you like this press my Thanks button
____________________
1) Load framework file in apktool
Code:
apktool if framework-res.apk
2) Decompile it
Code:
apktool d framework-res.apk
3) Navigate to /res/drawable-hdpi/ and delete default_wallpaper.jpg file
4) Copy the jpg file you want to be default wallpaper in /res/drawable-hdpi/ and rename it in default_wallpaper.jpg
5) Navigate to /res/values/ and open strings.xml
6) Change this line
Code:
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
with this:
Code:
<string name="default_wallpaper_component">@null</string>
7) Compile framework-res.apk
Code:
apktool b framework-res framework-res-modded.apk
8) Sign it (e.g. ApkManager)
9) Rename it in framework-res.apk and push it to ROM flashable zip
____________________
That's it
If you have any problems compiling back framework-res.apk look here
Have a nice day!
Click to expand...
Click to collapse
Code:
<string name="default_wallpaper_component">@null</string>
Thanks for the guide.
will null specify, it accepts all wallpapers.!!!

viijay4b7 said:
Code:
<string name="default_wallpaper_component">@null</string>
Thanks for the guide.
will null specify, it accepts all wallpapers.!!!
Click to expand...
Click to collapse
I need some help.. I did this and I had no problem but others are reporting they cannot flash my rom with this change in effect. Going back to stock
framework-res they have no problem.. SOOO any Ideas??? They flash it and than their phone locks up and they do a battery pull and upon reset it will not start
at all..

Related

[HELP] Bootloop making transparent notification background

Hello,
I have been reading up and followed some instructions to make a transparent notification background.
I used ADB to pull framework-res.apk and services.jar from my phone (running MCR R9) and replaced the status_bar_background.png in the framework-res.apk (I didn't extract, just dragged the replacement png in to the "zip") and then I followed the following instructions to edit the services.jar:
It's not really hard to do it on your own:
First download smali.jar and baksmali.jar from here http://code.google.com/p/smali/
Open the services.jar file for example with winzip, 7z, winRar, or whatever.
Unzip the classes.dex file to your sdk/tools/ folder and place the baksmali and smali file there too. After that open a new commandbox an run following line:
java -jar baksmali.jar -o out/ classes.dex
You'll have a new folder now called "out". Browse to "out/com/android/server/status" and open the file called StatusBarService.smali with a text editor like notepad.
Search for ".line 1773" and you'll find also "const/4 v5, 0x2"
Just change this to "const/4 v5, -0x3" and save the file.
Open again a new commandbox and run this:
java -Xmx512M -jar smali.jar out/ -o edited-classes.dex
Now you'll have a new dex file called "edited-classes.dex".
Delete the old file an rename the new in "classes.dex".
Open again the services.jar file with any zip tool and overwrite the classes.dex file with the one just created.
-------------
I then used update packager to create a signed update.zip of both the framework-res.apk and services jar (they were in a subfolder called framework and the script was set to copy the folder to SYSTEM) but I just get a bootloop and a whole load of force closes.
Can someone who is making themes please help me out and tell me what I am doing wrong?
Many thanks in advance
David p
Tried again following the instructions on this thread http://forum.xda-developers.com/showthread.php?t=732370 and using xUltimate-TP.exe but still ended up with a bootloop. Thank goodness for Nandroid!
I would still appreciate a helping hand though if any themers care to assist.
Thanks
David P

[GUIDE] A Beginner's Guide To Theming

The basic part of a theme is the UI (User Interface) icons.
These icons are situated in three system files:
1. framework-res.apk
2. twframework-res.apk
3. SystemUI.apk
NOTE: Your phone should have the de-odexed versions of these files.
You may get them here http://android.modaco.com/topic/342915-samsung-galaxy-s-deodexedzipaligned-xxjvq-files/#entry1754033 .
MISSION 1 (GET THE FILES)
In order to get these files your phone needs to be rooted and you should have a system file explorer like Yaffs Explorer. The easiest way to root your phone is by flashing a kernel that provides root.
The framework-res.apk is situated in the folder /system/framework/
The twframework-res.apk is situated in the folder /system/framework/
The SystemUI.apk is situated in the folder /system/app/
Copy those files and put it in your sd card and then transfer those files to your PC.
These files will be used as the template for the new theme.
[OPTIONAL] Make a copy of these three files as back-up.
MISSION 1 COMPLETE
MISSION 2 (THE MYSTERIOUS CHANGE)
In order to change the icons there are three ways
a.The Easy way (not the correct way: might cause FCs )
b.The Hard way (recommended for risk takers )
c.Use the online theme kitchen (recommended for beginners )
[ http://uot.dakra.lt/ ]
NOTE:You may have to use both b. and c.
a. The Easy way
You need a program like 7-zip installed in your PC.
Method
-Open the apk using 7-zip.
-Go to the folder named res
-Extract the folder named drawable-hdpi
-Edit the images you want to edit [ DO NOT EDIT .9png IMAGES ]
-Replace the original icons with modified icons(drag & drop into
drawable-hdpi folder)
Tips
-Keep the original image dimensions
-Don't edit .9 pngs
b. The Hard way
This consists of decompiling the apk, modifying the required images, compiling the modified
images and replacing the original icons with the compiled icons.
You will need:
1.Apk Manager
(go here for instructions http://forum.xda-developers.com/showthread.php?t=695701 )
2.xUltimate compiler
(go here for instructions http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html )
3.7-zip
Method
-Go to the main folder of Apk Manager
-Put the apk in the folder named place-apk-here-for-modding
- In order to decompile all APKs when working with the i9000, you have to install the framework files with apktool.
- Download apktool and put it on an easy accessable place (like C:\)
- Also put the STOCK framework-res.apk and twframework-res.apk files in the same directory.
- Open a new CMD (Press Windows Key + R), write CMD and press ENTER.
- type "cd .." (without the quotes)
- repeat the "cd .." so you're on C:\ now.
- write: java -jar apktool.jar if framework-res.apk
- repeat, just with twframework-res.apk: java -jar apktool.jar if twframework-res.apk
- This will ensure, it will load the correct resource table and you won't have any errors because of the dependees
-Run Script.bat file
-Select option 9 to decompile the apk
-Go to the folder named "projects" (the decompiled apk folder should be there)
-Inside the decompiled apk folder go to the folder /res/drawable-hdpi
-Modify the icons you want to change(KEEP THE BORDERS OF .9png IMAGES
UNTOUCHED)
-Open the main folder for xUltimate
-Go to the folder \example1\res\drawable-hdpi
-Delete the icons present there
-Put the modified icons
-Go to the main folder for xUltimate and run the xUltimate.exe file
-The compiled icons can be found in the folder
\done\example1\res\drawable-hdpi
-Replace the original icons with the compiled icons USING 7-zip
MISSION 2 COMPLETE
MISSION 3 (SEE THE CHANGE)
To see how your new theme looks like, you should put the modified files back to where they
belong.
There are two ways of doing this:
1. By using the system file explorer
Before doing so make sure that the system is write-enabled. You can do this
by using Damian Tweak app. If you are using Yaffs Explorer make sure you
have enabled root access
in the app's settings.
2. By making a CWM package (safer)
Use the Zip file provided. Replace the original files with moded files and install
using
CWM.
MISSION 3 COMPLETE
HAPPY THEMING
reserved
reserved
I have to thank you so much!
The first Tutorial I found that was understandable for beginners too.
Big Big Big Thanks!
nightm4r399 said:
I have to thank you so much!
The first Tutorial I found that was understandable for beginners too.
Big Big Big Thanks!
Click to expand...
Click to collapse
I'm glad it helped .
Exactly what I needed. Thank you for good guide.
hackeron said:
Exactly what I needed. Thank you for good guide.
Click to expand...
Click to collapse
Great .
Btw do you know how to make this a Sticky Thread?
SCIENTYREAL said:
Great .
Btw do you know how to make this a Sticky Thread?
Click to expand...
Click to collapse
You have to ask a moderator to do this
I have some additions to the guide
The red code is added by me.
Method b) the hard way
-Go to the main folder of Apk Manager
-Put the apk in the folder named place-apk-here-for-modding
- In order to decompile all APKs when working with the i9000, you have to install the framework files with apktool.
- Download apktool and put it on an easy accessable place (like C:\)
- Also put the STOCK framework-res.apk and twframework-res.apk files in the same directory.
- Open a new CMD (Press Windows Key + R), write CMD and press ENTER.
- type "cd .." (without the quotes)
- repeat the "cd .." so you're on C:\ now.
- write: java -jar apktool.jar if framework-res.apk
- repeat, just with twframework-res.apk: java -jar apktool.jar if twframework-res.apk
- This will ensure, it will load the correct resource table and you won't have any errors because of the dependees
-Run Script.bat file
-Select option 9 to decompile the apk
-Go to the folder named "projects" (the decompiled apk folder should be there)
-Inside the decompiled apk folder go to the folder /res/drawable-hdpi
-Modify the icons you want to change(KEEP THE BORDERS OF .9png IMAGES
UNTOUCHED)
-Open the main folder for xUltimate
-Go to the folder \example1\res\drawable-hdpi
-Delete the icons present there
-Put the modified icons
-Go to the main folder for xUltimate and run the xUltimate.exe file
-The compiled icons can be found in the folder
\done\example1\res\drawable-hdpi
-Replace the original icons with the compiled icons USING 7-zip
Click to expand...
Click to collapse
Darkyy said:
You have to ask a moderator to do this
I have some additions to the guide
The red code is added by me.
Method b) the hard way
Click to expand...
Click to collapse
Thanks for replying Darkyy .
So, i Get a ADB not found thing? WHat should i do?
roxyroot said:
So, i Get a ADB not found thing? WHat should i do?
Click to expand...
Click to collapse
You should have Android SDK installed for Apk Manager to work.
The link on how to use Apk Manager is given in the first post, under apk manager. I'll post it again here
http://forum.xda-developers.com/showthread.php?t=695701
Here is the link for Android SDK
http://developer.android.com/sdk/index.html
Btw you should also have Java Development Kit (JDK) installed.
I cant seem to find the twframework-res.apk, it's not in the system/framework folder. I have a sony ericsson play.
Do you know where the android settings menu icons are? the ones you see when you go into android settings. Like wireless & Networks, call settings, sound and so on.
thanks great guide.
SCIENTYREAL said:
You should have Android SDK installed for Apk Manager to work.
The link on how to use Apk Manager is given in the first post, under apk manager. I'll post it again here
http://forum.xda-developers.com/showthread.php?t=695701
Here is the link for Android SDK
http://developer.android.com/sdk/index.html
Btw you should also have Java Development Kit (JDK) installed.
Click to expand...
Click to collapse
I have android SDK (obviously), JRE and i used it the same way given, stilll..The error..I have a SGS SCL i9003...
hackit said:
I cant seem to find the twframework-res.apk, it's not in the system/framework folder. I have a sony ericsson play.
Do you know where the android settings menu icons are? the ones you see when you go into android settings. Like wireless & Networks, call settings, sound and so on.
thanks great guide.
Click to expand...
Click to collapse
Twframework-res is only found in Samsung devices. No need to worry about it. The settings icons are found in settings.apk. Settings.apk is inside the folder system/app.
Sorry for replying late.
bangalorerohan said:
I have android SDK (obviously), JRE and i used it the same way given, stilll..The error..I have a SGS SCL i9003...
Click to expand...
Click to collapse
To be honest I don't know the exact cause of the error. Have you updated Android SDK. You should click on the main SDK icon and it should show all the available updates. Select
the updates and download the files. Sorry if you have already done it.
Sorry for the late reply.
:laugh:
I forgot how to do it and now I am reading my own guide.
Thanks for this great guide! Will come in handy soon

[Tutorial] How to Enable/Disable CRT-Off for ICS ROMs

This tutorial is written for those interested in modifying the framework-res.apk to enable/disable CRT-Off effect on ICS (Samsung) ROMs using Windows 7. I'm sure it doesn't vary that much with other operating systems. I have used many tutorials from XDA (sources below) - but I will compile everything into one easy guide. Hope this helps! Otherwise, you can get the CWM flashable ones here.
What you need
- APKTool: apktool.jar, aapt.exe, apktool.bat, apktool1.4.3.tar.bz2
- APK Multi-Tool
- XML Editor: Notepad++ or Windows Notepad
- WinRAR or 7-zip
Update: You can also use this modified ApkTool. - thanks sileshnair.
Instructions
I will be splitting this tutorial into several steps to break down the processes (and possibly provide easier troubleshooting help).
Setting up the Files You Need
1. Download all the files needed above.
2. Install necessary programs (winRAR, 7-zip, Notepad++, APK Multi-Tool, etc.)
APK Multi Tool should ask you to choose a default folder. Just make sure you know where it is.​3. Create a folder where you can access. (for me: My Documents/Flash/APKTool)
4. Place: apktool.jar, aapt.exe, apktool.bat, and apktool1.4.3.tar.bz2 into that folder.
Decompile
1. Obtain framework-res.apk from your phone. This can be done using Root Explorer and going to: system/framework/
2. Place framework-res.apk into the folder where you placed apktool.jar (and the rest of them).
3. Exit the folder (so that you are looking at it as "APKTool"). Hold-shift and right-click the folder (APKTools), and select "open command window here.
4. A command prompt should pop up. Type the following:
apktool if framework-res.apk​apktool d frameowrk-res.apk
This should decompile the framework, allow it to run and close after it completes.​
Editing CRT-Off Effect
1. Once the decompiling completes, go back into "APKTools" folder and you should see another folder (framework-res).
2. Open it, and go to: framework-res/res/values.
3. Right-click bools.xml and either press "edit" or "edit with Notepad++".
4. Find the line that says "(bool name="config_animateScreenLights">true</bool) (I changed the first and last part into brackets because it would comflict with the forum code, it should be "<" and ">" respectively).
5. Change the "true" to "false".
6. Save and close.
Compiling
1. Go back into APKTools folder where you had apktool.jar, apktool1.4.3.tar.bz2, etc.
2. Unzip apktool1.4.3.tar.bz2, and unzip again, inside should be a file called "apktools.jar". Replace the original one in "APKTool" folder.
3. Leave the folder (like you did in decompiling) and hold shift and right-click the folder and select "open command window here".
4. Type the following in the command window:
apktool b framework-res​5. Now go to: APKTool/framework-res/dist/
6. There should a file created called "framework-res.apk", right-click and open with winRAR or 7-zip.
7. In winRAR, click "Extract To" and press OK. (Pretty sure you can extract in 7zip too).
8. This should create a new folder called "framework-res". Go inside it where you see the files (assets, res, AndroidManifest, resource.arsc).
9. Go find your original framework-res.apk (located in the root APKTool/ folder) and right-click and open with winRAR (or 7zip).
10. Select "META-INF" and "AndroidManifest.xml" and extract it to the folder created in step 8.
11. Select-all the files within the folder (of step 8) (it should now contain: assets, res, META-INF, AndroidManifest, resource.arsc) and right-click and "add to archive" (again, with winRAR - sure 7zip is something else).
12. In the prompt, change the following: Archive format = zip, Compression method = store. Press OK.
13. This should once again create a framework-res.zip file in the folder.
14. Press alt (assuming you are using Window 7) > Tools > Folder Options. Press the view tab, and uncheck "hide extensions for known file types.
15. Rename "framework-res.zip" to "framework-res.apk".
Now this "framework-res.apk" file is ready to be pushed to your phone's system/framework folder. Your phone should hang, restart it, and you now have CRT-Off effect! If you want to make a CWM flashable - below is the tutorial.
Making a CMW-Flashable File
1. Go below and download my template.zip. Extract the folder "template".
2. Take the completed framework-res.apk from earlier and place it in: template/system/framework.
3. In the template/ root directory, select META-INF and system and right-click, add to archive.
4. In the prompt, change the following: Archive format = zip. You can rename it to whatever you wish "LPS_CRTOff_On.zip".
5. Take the zip file to where your APK Multi Tool directory and place it in the "place-apk-here-for-signing" folder.
6. Open APK Multi Tool application from the start menu > programs.
7. Press any key to continue, and press 19 (Sign an apk (Batch Support)(inside place-apk-here-for-signing folder only)).
8. It should close when it is done, the zip is now ready to be flashed with your phone.
And there we go. I tried! LOL. Good luck. =) If I wasn't very clear, you can go back to my sources and derive what I did from them.
Sources
- [MOD] Decompile and Rebuild ICS framework-res.apk without errors by stars2
- [Tutorial] How to add CRT TV off effect by tweezit
- [TUTORIAL] How to create an CWM installable .zip (Mod) by FlorisNL
Thanks, thanks and thanks. This is the first method that works for me to decompile framework-res.apk and systemui.apk. Thank you.
Nice writeup thanx !
But isn't it easier to just use apk-multitool for the entire thing ?
I know i always do it like this (even when it still was called apk manager)
Brotuck said:
Nice writeup thanx !
But isn't it easier to just use apk-multitool for the entire thing ?
I know i always do it like this (even when it still was called apk manager)
Click to expand...
Click to collapse
I tried it with ICS roms and it did not work for me. Thus - having to use the apktool instead. =(
This apkmanager will work on ICS roms. Tested. All credit to Wanam.
sileshnair said:
This apkmanager will work on ICS roms. Tested. All credit to Wanam.
Click to expand...
Click to collapse
Sweet thanks!
@krazykat
On bools.xml:
<bool name="config_animateScreenLights">false</bool>
It is set to 'false' by default.
Any idea on this? Thanks in advance.
More info: Xperia Neo V, official ICS 4.0.4 by Sony
dafuq is CRT-OFF?
Thanks you so much @ OP
It was a very simple task.

How to Remove or Change "Swipe Screen to Unlock" NEW

:highfive:Hello,
i used this tut from this link below and sucsefully removed unlock text on my sgw with REBEL ROM
here is the link:
http://forum.xda-developers.com/showthread.php?t=1561369
the only differnce at me was the line to delete it into CircleLockScreen.smali.
.line 159
......
.......
Click to expand...
Click to collapse
i'm newbe but its very simple
If you like it press Thanks Button :fingers-crossed::fingers-crossed: by dev LegendK95 for this tut
P.S: At first i have error at cmd window and had to rename folder.
You can download the Unlock.rar file from DL Link unpack it on your PC push your android-policy.jar file into folder and follow the post from Dev.The Folder include all files you need to mod
DL:
http://dl.dropbox.com/u/70025396/Unlock.rar
IF YOU WANT CHANGE LOCKSCREEN TEXT AND ANOTHER ONE THIS IS TUTORIAL HOW I DO THAT SUCCSEFULLY!!!​
You need:
1.APK Manager or APK tool installed on your PC and Notepadd++ for editing .xml files and 7Zip to open .apk files
2.Copy your original framework-res.apk into Input Folder
3.rund script.bat for Windows user right click run as admin.
4.Choose first option 22 to set the current project
5.Choose 9 to decompile framework-res.apk
6.now you goto folder /projects/framework-res.apk/res/values/strings.xml and open it with Notepad++
7.Now you can edit what you want to change.(THIS IS ONLY FOR ENGLISH!!!)
7a. Ctrl+f and searc for "swipe to unlock" and change text
7.b I look by Ibanez7 some silly Screenshot where he changed
RECOVERY---> BOOTLOOP or
DOWNLOAD --> HARDBRICK :laugh::laugh:
you can change if you want those things just a few lines under Unlocktext line,you see it.
see here :
http://dl.xda-developers.com/attach.../4/8/0/6/5/uploadfromtaptalk1340385533687.jpg
If your system language is e.g German as by me you must goto
values-de/strings.xml and make changes there.​
All changes made now we must recompile framework-res.apk
8. Choose 11 to recompile and wait
8a. Choose Y for system file and choose Y at second question.
8.b we have 2 folders now build and keep folders
9.We made changes of .xml files so we goto keep folder on the root and delete resources.arsc from keep folder and push any button
9a. into input folder we have file unsignedframework-res.apk
9b. Choose 12 to resign the file.
When i put those file into system/framework folder i have a lot of FC so i do a follow step.(IT'S VERY IMPORTANT)
10. Choose original framework-res.apk rightclick -->7Zip--->Open (let this window open)
11. Goto Apk Manager Folder then to projects/framework-res.apk/built/apk and pick the resources.arsc file and drag and drop copy into 7 Zip Opened window.Apply it.
12.Close 7Zip Window.
13.Push framework-res.apk file from input folder NOT signedframework-res.apk
into system/framework and overwrite the original one.
14 Reboot once and thats all
Enjoy :highfive::highfive::highfive:
C ya
If you like it press -----> Thanks Button
help!!
AsmirGT said:
:highfive:Hello,
i used this tut from this link below and sucsefully removed unlock text on my sgw with REBEL ROM
here is the link:
http://forum.xda-developers.com/showthread.php?t=1561369
the only differnce at me was the line to delete it into CircleLockScreen.smali.
i'm newbe but its very simple
If you like it press Thanks Button :fingers-crossed::fingers-crossed: by dev LegendK95 for this tut
P.S: At first i have error at cmd window and had to rename folder.
You can download the Unlock.rar file from DL Link unpack it on your PC push your android-policy.jar file into folder and follow the post from Dev.The Folder include all files you need to mod
DL:
http://dl.dropbox.com/u/70025396/Unlock.rar
IF YOU WANT CHANGE LOCKSCREEN TEXT AND ANOTHER ONE THIS IS TUTORIAL HOW I DO THAT SUCCSEFULLY!!!​
You need:
1.APK Manager or APK tool installed on your PC and Notepadd++ for editing .xml files and 7Zip to open .apk files
2.Copy your original framework-res.apk into Input Folder
3.rund script.bat for Windows user right click run as admin.
4.Choose first option 22 to set the current project
5.Choose 9 to decompile framework-res.apk
6.now you goto folder /projects/framework-res.apk/res/values/strings.xml and open it with Notepad++
7.Now you can edit what you want to change.(THIS IS ONLY FOR ENGLISH!!!)
7a. Ctrl+f and searc for "swipe to unlock" and change text
7.b I look by Ibanez7 some silly Screenshot where he changed
RECOVERY---> BOOTLOOP or
DOWNLOAD --> HARDBRICK :laugh::laugh:
you can change if you want those things just a few lines under Unlocktext line,you see it.
see here :
http://dl.xda-developers.com/attach.../4/8/0/6/5/uploadfromtaptalk1340385533687.jpg
If your system language is e.g German as by me you must goto
values-de/strings.xml and make changes there.​
All changes made now we must recompile framework-res.apk
8. Choose 11 to recompile and wait
8a. Choose Y for system file and choose Y at second question.
8.b we have 2 folders now build and keep folders
9.We made changes of .xml files so we goto keep folder on the root and delete resources.arsc from keep folder and push any button
9a. into input folder we have file unsignedframework-res.apk
9b. Choose 12 to resign the file.
When i put those file into system/framework folder i have a lot of FC so i do a follow step.(IT'S VERY IMPORTANT)
10. Choose original framework-res.apk rightclick -->7Zip--->Open (let this window open)
11. Goto Apk Manager Folder then to projects/framework-res.apk/built/apk and pick the resources.arsc file and drag and drop copy into 7 Zip Opened window.Apply it.
12.Close 7Zip Window.
13.Push framework-res.apk file from input folder NOT signedframework-res.apk
into system/framework and overwrite the original one.
14 Reboot once and thats all
Enjoy :highfive::highfive::highfive:
C ya
If you like it press -----> Thanks Button
Click to expand...
Click to collapse
it keeps me sending annoying FC screens.. i follow all the directions carefully, what should i do
thenks

How to add on screen button at framework for ICS

I'm using Xperia arc s at stock rom 4.1.B.0.587 and locked bootloader.
I'm using few mods, and also custom systemui *Colored icons systemui
Few days ago I am starting curious how to add on screen button at my own, and I still cannot do it successfully (got bootloop after xperia title).
After trial and error I found the solution, I don't add original META-INF framework.apk to my modified framework.apk.
Now I'm only curious how to add crt off animation. *I found out that original framework.apk already has the setting to show crt animation. Anyone has an idea what to do??
How I successfully add on screen button:
What I do: (following the tutorial from http://forum.xda-developers.com/showthread.php?t=1364757, and http://forum.xda-developers.com/showpost.php?p=9126643#post9126643 to mod the apk)
1. extract framework-res.apk from my system [framework-res.apk]
2. decompile it with 1.4.10 apktool by this command: java -jar apktool.jar d framework-res.apk framework-res
3. edit bools.xml to change show navigation bar to true
4. edit dimens.xml to change navigation bar height to (21.0dip)
5. rebuild the apk with this command: java -jar apktool.jar b framework-res out\framework-res.apk
6. <from this part I dont really understand> From the output apk [The name is outframework-res.apk] from apktool 1.4.10 (At first I use 1.4.3 and it always failed to compile, but It compiled successfully with 1.4.10), I add the extension to 7z [outframework-res.apk.7z], and unpack it. (i.e: it become outframework-res folder)
7. With 7zip app (actually I use total commander, with zero compression), I replace all files from outframework folder back to outframework.apk.7z
8. I also add resources.arsc from the outframework-res folder and also add it to the outframework-res.apk.7z. *The file size is the same before and after I put the resources.arsc.
9. I downloaded ics_sysbar.zip, then with total commander (7zip like program), I add those files to SystemUI.apk (/res/drawable-hdpi/) using 7-zip or other program. (replace original PNGs to these files).
10. I rename the outframework-res.apk.7z to framework-res.apk then push it to my device along with the SystemUI.apk.
Click to expand...
Click to collapse
Adding "qemu.hw.mainkeys=0" to build.prop enables soft-keys in AOSP/CM10.. I don't use stock ICS so can't confirm this. Wait for few more replies from other users.
soumya_digi said:
Adding "qemu.hw.mainkeys=0" to build.prop enables soft-keys in AOSP/CM10.. I don't use stock ICS so can't confirm this. Wait for few more replies from other users.
Click to expand...
Click to collapse
Thanks for your reply.
By the way, I actually found what is my problem, from analyze other working on screen button.
It turns out the compiled framework don't add META-INF.
After I add that folder to my compiled framework, *with total commander, It works.
And editing the SystemUI turns out unnecessary.
What I still wonder is how to add menu button (the right key, beside back and home button), and also make holding home button show the ics style recent app (the one that you can swipe to remove it from recent app).

Categories

Resources