Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: How is this guide?
Very good ! 33 75.00%
Noob proof ! 8 18.18%
Bad ! 3 6.82%
Voters: 44. You may not vote on this poll

 
Post Reply+
Tip us?
 
NutellaBanane
Old
(Last edited by NutellaBanane; 19th June 2012 at 08:33 PM.)
#1  
NutellaBanane's Avatar
Senior Member - OP
Thanks Meter 409
Posts: 468
Join Date: Apr 2012
Phone [GUIDE] Enable Softkeys in Statusbar on Cyanogenmod 7 [18.06.12]

[GUIDE] Enable Softkeys on statusbar on Cyanogenmo 7


Hello Ace - Community!
Since i saw a lot of ROMs with Softkeys in the statusbar enabled and all old guides wich you can find on xda are nearly all closed or deleted , i will show you guys how to enable them . But first a thanks to CoolCatGetHome who actually tells what if have to edit .

For Apocalypse Users notice : Itasoulas and I are already working on it! So please no spams about Apocalypse here!

Preparation:


- An open mind
- A rooted phone
- You must be on Cyanogenmod 7
- Time
- APK Manager : Download this one , it's mine i'm using now and it's working without problems

Download for APK manager : http://www.mediafire.com/?eh6ihj58lafkltx

And notice to follow all steps to have no problems when you do anything!

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Instruction:


- Step 1 - First Preparations :

Use a File manager wich supports root-browsing ( for example Rootexplorer ) and go to system/framework. There you will find framework-res.apk



Now copy the apk to your sd-card .



Connect your device to the pc .



And copy the apk to your pc homescreen .



--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

- Step 2 - Using APK Manager :

Download APK Manager .
Look at the link above or click here => http://www.mediafire.com/?eh6ihj58lafkltx

You should get this after you download the .rar file :



Open the .rar file with WinRar,WinZip or 7zip ( you can google these 2 programms if you don't have them)

Now extract the folder "apk manager" which is inside the .rar file



Inside the folder you will find some other folders.
Place your framework-res.apk into this folder here :



--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

- Step 3 - Decompile and edit the .apk:

Now start the Script.bat



And it will show you this :



Just press a key and skip it

Now you have to select your apk in order to do that , type 22 and press enter



and then type 1 and press enter



We have now select our project
Now type in 9 and press enter

Your apk will decompile now wait until it's finished.
You know when it's finished if you get the chance to type in a new action.

So now the editing:
After you decompile your .apk , go to your apk manager folder and go to projects.
In the projects folder you will find another folder called "framework-res"
Now go to res/values.

In the values folder we have to edit the bools.xml
Now open bools.xml with the good text editor like Notepad ++

After you opened the .xml you have to scroll down and make sure to have this to options set to "true"



So that's it you've enabled the softkeys!

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

- Step 4 - Compile and sign the .apk and make a flashable .zip:

So now make sure you've saved you changes in bools.xml
Now we're going back to the Script.bat ( if you've closed it just open it again and type 22 and select framework-res.apk ,should be 1)

So now we are going to compile the .apk
Type in 11 and press enter



now you will get a message after a time called : Is this a system apk ?
Type in " y " ( of course only y without the signs) and press enter

Another question will show up and again type in " y " and press enter

And now important don't close the Script.bat window and don't press a key

Now we are going into the apk manager folder again and there should be a keep folder



go into the keep folder and delete " resources.arsc "



Now go back to the Script.bat window and press a key



After that we should be again at the beginning where we can type in our commands

Now type in 12 to sign our apk

After the signing is completed close the " Script.bat " window and go to your apk manager folder and into " place-apk-here-for-modding "

There you will find " signedframework-res.apk " rename it to framework-res.apk

So now we are going to make a flashable .zip for your rom:

If already made a zip for you guys , download it here:

http://www.mediafire.com/?2t234w44dr2ck62

Now place your framework-res.apk into the zip under system/framework

And make sure to mount data and system before you flash it!

And also in the first screenshots you see i have the ICS - Softbuttons
In the default system theme there are some ugly system images for the buttons

So if you want to have ICS - Softbuttons images you have to edit your theme
or go to my thread and download some of my themes :

http://forum.xda-developers.com/show....php?t=1710742

Edit the Button order :

Quote:
Originally Posted by CoolCatGetHome View Post
For changing locations of the home back menu etc keys go to status_bar.xml

Of systemui.apk and move the home_key or other one lines to other location of it

Sent from my GT-S5830 using xda premium

- Credits :

- CoolCatGetHome
- Google - for Android
- Samsung - for Samsung Galaxy Ace
- NutellaBanane - for this guide and for providing the needed tools

The Following 24 Users Say Thank You to NutellaBanane For This Useful Post: [ Click to Expand ]
 
NutellaBanane
Old
#2  
NutellaBanane's Avatar
Senior Member - OP
Thanks Meter 409
Posts: 468
Join Date: Apr 2012
Buttons - Settings :

If you want to edit your statusbar to bottom ( wich is already there without enabling the buttons )
Go to Tablet settings

There you will find new options for your Softbuttons

Enjoy and have fun !

The Following 3 Users Say Thank You to NutellaBanane For This Useful Post: [ Click to Expand ]
 
NutellaBanane
Old
(Last edited by NutellaBanane; 21st June 2012 at 02:22 PM.)
#3  
NutellaBanane's Avatar
Senior Member - OP
Thanks Meter 409
Posts: 468
Join Date: Apr 2012
Fixes :


Your statusbar is not fully visible? ( Icons are shown dark and softbuttons also )

Try this :

- First go to tablet settings ans disable all softbuttons
- Now use your torch app ( CM7 one ) , a notification should pop up and your dark icons should be normal ( Notice you do not have to use your torch app , it just needs a new notification in the statusbar to fix the dark icons )

- Now you can enable the softbuttons again

------------------------------------------------------------------------------------

Your statusbar is completly black?

Try this :

- Set theme to system theme
- Reboot
- Reflash your modded framework-res.apk
- Reboot
- Change from system theme to another theme
- Done!

Try this (second solution for non transparent statusbar and transparent statusbar recommend!):

- Disable all softkeys under cyanogenmod settings -> tablet settings
- Use torch app ( activate torch app to fix the statusbar and deactivate then)
- Enable softbuttons again

The Following 4 Users Say Thank You to NutellaBanane For This Useful Post: [ Click to Expand ]
 
NutellaBanane
Old
(Last edited by NutellaBanane; 21st June 2012 at 02:43 PM.)
#4  
NutellaBanane's Avatar
Senior Member - OP
Thanks Meter 409
Posts: 468
Join Date: Apr 2012
Download Patches made for ROMS :

Flash this zips in recovery and don't forget to MOUNT SYSTEM !

Also after you applied the patches and you get some bugs look at my bug fixes above!

- Democracy-ROM
- Cyanogenmod 7.2.0 by TeamAdreno

The Following 5 Users Say Thank You to NutellaBanane For This Useful Post: [ Click to Expand ]
 
pandu15
Old
#5  
pandu15's Avatar
Member
Thanks Meter 10
Posts: 66
Join Date: Jun 2012
Location: Dumai
Is this general tutorial to compile and decompile apk (not just framework-res.apk)?
 
Kakashi Hatake
Old
#6  
Kakashi Hatake's Avatar
Senior Member
Thanks Meter 519
Posts: 1,473
Join Date: Feb 2012
Location: Imus, Cavite
Quote:
Originally Posted by pandu15 View Post
Is this general tutorial to compile and decompile apk (not just framework-res.apk)?
http://www.youtube.com/watch?v=oLQynXg8noM

you're welcome.
 
NutellaBanane
Old
#7  
NutellaBanane's Avatar
Senior Member - OP
Thanks Meter 409
Posts: 468
Join Date: Apr 2012
Quote:
Originally Posted by pandu15 View Post
Is this general tutorial to compile and decompile apk (not just framework-res.apk)?
yes normally it's general but it did this guide with those screenshots and every single step to make this guide " noob-proof "

But of course the part where i edit the xml is not part of the normal way to decompile and compile a apk

The Following User Says Thank You to NutellaBanane For This Useful Post: [ Click to Expand ]
 
NutellaBanane
Old
#8  
NutellaBanane's Avatar
Senior Member - OP
Thanks Meter 409
Posts: 468
Join Date: Apr 2012
Quote:
Originally Posted by Shadow xD View Post

In my opinion for newbies apk manager is a way easier

 
SpaceCaker
Old
#9  
SpaceCaker's Avatar
Recognized Themer
Thanks Meter 6269
Posts: 10,487
Join Date: Mar 2011
Location: netherlands

 
DONATE TO ME
For changing locations of the home back menu etc keys go to status_bar.xml

Of systemui.apk and move the home_key or other one lines to other location of it

Sent from my GT-S5830 using xda premium
 




Team Adreno
Team BroadComCM

My Github Click Here
Github BroadcomCM Click Here
Github CyanoSpaceMod Click Here

ON VACATION TILL 29 May 2013

 
Ace King 34
Old
#10  
Ace King 34's Avatar
Senior Member
Thanks Meter 349
Posts: 853
Join Date: Apr 2012
Location: n/a
Can you please do it for the CM7.2 RC3 Based DEMOCRACY ROM which just came out?
please reply.
thanks.
Sent from my Evil Muffin!!

Please don't ask for Thanks in Signatures and in Posts and so please don't defeat the purpose of the Thanks button

Want to Start learning android development?
Then Check out XDA UNIVERSITY

~~Helping Xda-ians is my Motto~~

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...