How to enable usb mass storage and on-screen buttons in Android 4.x - Upgrading, Modifying and Unlocking

How to enable usb mass storage and on-screen buttons in Android 4.x (Windows Users Only)
====================================================
UPDATE:
My new tool is out! Check it out, it does the work for you
http://forum.xda-developers.com/showthread.php?p=40031460#post40031460
A) How:
======
It consists of editing some lines in framework-res.apk which you can extract from your ROM zip (/system/framework) or by using this command with adb (With phone connected via USB)
Code:
> adb pull /system/framework/framework-res.apk framework-res.apk
B) Tools:
=======
- Framework Toolkit by Themike10452 ( Me ) ==> http://www.mediafire.com/?j6ndniep6h8iwch
- XML Editor. I recommend FirstObject XML Editor (Freeware) ==> http://www.firstobject.com/dn_editor.htm
- Java Development Kit ==> http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
C) Steps:
=======
Video Tutorial: http://www.youtube.com/watch?v=9V-Ukles6w0
1 - Download and extract Framework Toolkit, then place your framework-res.apk inside [place-apk-here-for-modding] folder.
2 - Run Apk-Multi-Tool.bat as administrator, press any key to enter options menu, then use option (9) to decompile the apk
3 - Head to [projects] folder > res
4 -
a) Enabling USB Mass Storage:
- Now you are in [res] folder, go to [xml] folder, open [storage_list.xml] with an xml editor
- The 4th line looks like this:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:maxFileSize="4096" />
Replace it with the following line:
Code:
<storage android:mountPoint="/storage/sdcard0" android:storageDescription="@string/storage_sd_card" android:primary="true" android:removable="true" android:allowMassStorage="true" android:maxFileSize="4096" />
- Save and go back to [res] folder
b) Enabling On-screen Buttons:
- Now you are in [res] folder, go to [values] folder
- Open bools.xml and look for the following line:
Code:
<bool name="config_showNavigationBar">[COLOR=Red]false[/COLOR]</bool>
Replace false with true, the new line should look like this:
Code:
<bool name="config_showNavigationBar">[COLOR=Green]true[/COLOR]</bool>
;; ;; Now navigation bar is enabled, we can change the bar size by editing [dimens.xml] in the same folder ;; ;;
- To do so, edit lines 14 and 16, set the dip to whatever you like
Example (17 dip):
14. <dimen name="navigation_bar_height">17.0dip</dimen>
15. <dimen name="navigation_bar_height_landscape">48.0dip</dimen>
16. <dimen name="navigation_bar_width">17.0dip</dimen>
Click to expand...
Click to collapse
You can skip line 15, it does not matter
Click to expand...
Click to collapse
5 - Save and exit, go back to main folder, re-open Apk-Multi-Tool.bat, this time use option 11 to compile the edited apk
6 - After it's done compiling it will ask you if you want to add some more files, reply with n
7 - Close Apk-Multi-Tool, run Create_zip.bat as administrator, read on-screen instructions it's very simple
8 - After it's done successfully you can collect your flash-able zip from [final-zip-here] folder
9 - Move the zip to your sd card and flash it via CWM Recovery, reboot, if you enabled USB Mass Storage make sure to change connection
method from MTP to Mass Storage in System Settings
10 - Use ##Cleanup.bat to cleanup all folders (Important if you want to use it again)
Important Do NOT use this toolkit with any other apk, just framework apk
#####################################################################################################################
////////////
Credits:
\\\\\\\\\\\\
My Toolkit includes Apk-Multi-Tool written by raziel23x ==> http://forum.xda-developers.com/showthread.php?t=1310151
Zip creator script was written by me

Does this work on CM9/10? Of course it does!
Leave your comments below and hit thanks if I helped you :good: :cyclops:

i have error
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Zizo950 said:
i have error
Click to expand...
Click to collapse
You have to insall Java Development Kit on your machine
Here: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
Update: Don't forget to add Java to PATH variable
Here's how to: http://www.youtube.com/watch?v=58ZO_NaAOfU

Themike_10452 said:
You have to insall Java Development Kit on your machine
Here: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
Update: Don't forget to add Java to PATH variable
Here's how to: http://www.youtube.com/watch?v=58ZO_NaAOfU
Click to expand...
Click to collapse
Thank You Is Work Good

Zizo950 said:
Thank You Is Work Good
Click to expand...
Click to collapse
I'm glad to hear it

Solved

Saingpor said:
I got bootloops after flashing update_CWM.zip !
Do i need to sign that apk before make a flashable.zip ?
Or can you give some idea ?
I only try to enable OSB ! ( Stock ICS 4.0.4 ) ( 4.1.B.631)
Click to expand...
Click to collapse
Just follow the video instructions (link in post) and you shouldn't face any problems, the steps include signing the APK and everything,
I use this script myself and no problems. If you have any further problems or questions just let me know, I'll be happy to help.
You can send me your framework-res.apk if you want me to mod it for you.

Well I've released an automated tool to do the job a while ago please check it out
http://forum.xda-developers.com/showthread.php?t=2224784
it supports android 4.0 4.1 & 4.2
Sent from my LT18i using xda premium

auto rotate lockscreen
i try this method to change my xperia sola JB A.1.100 framework-res.apk
to make auto rotate lockscreen like this http://forum.xda-developers.com/showthread.php?t=1525045
after compiling (step 6), i got system_framework-res.apk and the size is same with the original,about 13Mb
but after i run Create_zip.bat, the flashable zip size only 6Mb.
after i flash from CWM, my phone stuck at bootscreen
is it normal that the file size change?
i try alot of method to decompile/compile framework-rest.apk and always stuck at bootscreen

deyanti01 said:
i try this method to change my xperia sola JB A.1.100 framework-res.apk
to make auto rotate lockscreen like this http://forum.xda-developers.com/showthread.php?t=1525045
after compiling (step 6), i got system_framework-res.apk and the size is same with the original,about 13Mb
but after i run Create_zip.bat, the flashable zip size only 6Mb.
after i flash from CWM, my phone stuck at bootscreen
is it normal that the file size change?
i try alot of method to decompile/compile framework-rest.apk and always stuck at bootscreen
Click to expand...
Click to collapse
the file size of the apk should become smaller yes
Sent from my Xperia Arc S using xda premium

deyanti01 said:
i try this method to change my xperia sola JB A.1.100 framework-res.apk
to make auto rotate lockscreen like this http://forum.xda-developers.com/showthread.php?t=1525045
after compiling (step 6), i got system_framework-res.apk and the size is same with the original,about 13Mb
but after i run Create_zip.bat, the flashable zip size only 6Mb.
after i flash from CWM, my phone stuck at bootscreen
is it normal that the file size change?
i try alot of method to decompile/compile framework-rest.apk and always stuck at bootscreen
Click to expand...
Click to collapse
if your ROM is odexed this won't work because the apk needs to be signed with the original build key. so this method only works for deodexed ROMs.
Sent from my Xperia Arc S using xda premium

Related

[AOSP/SAMMY]Change the background of your settings Dialer/Contacts[updated 9/12/12]

TIme to update this
Older data on howto change manually is in the spoiler below
Hi all,
This guide is split into two parts as of now , part 1 is for changing the settings menu background and part 2 is for changing the backgground for dialer and contacts.
Part -1
may be this method is known to few but im posting this to people who dont know how to change the background image of the settings menu and other few.
Sample screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Like it?
here is the method to do proceed with.
Software needed :
1.7zip (to replace the image)
2.android sdk(to use adb commands to push/pull the files)
How it works:
We are modifying/replacing an image called "background_holo_dark.png" in the "framework-res.apk" which is responsible for displaying background images in menu.
Step 1:
Use the following adb command below to pull the "framework-res.apk" from your mobile to pc.
Code:
adb pull system/framework/framework-res.apk
Step 2:
Open the framework-res.apk via 7zip and navigate to the following directory
"framework-res.apk\res\drawable-nodpi\", you will see a file called "background_holo_dark.png". Delete the image and dont close the 7zip.
Preparing your own image:
Now use any png image you want to set as background , resize it to 512 x 512 via mspaint or any other image editing software and rename the file to "background_holo_dark.png".
Drag the newly created image file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
Step 3:
Now its time to push the file back to mobile, type the following command in the same command prompt
Code:
adb remount
now type the following
Code:
adb push framework-res.apk system/framework
Step 4:
Now reboot your mobile, you will have the new background image enabled
Part-2
Wanna change the background of the dialer and contacts?? well read below,
Step 1:
Use the adb command (or u can use root explorer) to pull the "Contacts.apk" from your mobile to pc.
Step 2:
Open the Contacts.apk via 7zip and navigate to the following directory
"Contacts.apk\res\drawable-nodpi\", you will see a file called "background_dial_holo_dark.png". Delete the image and dont close the 7zip.
Drag the image (similar to the one created in part 1 of the guide) file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
Step 3:
Now its time to push/copy back the file back to mobile. Copy back the file to the same directory from where it is copied.
Step 4:
Now reboot your mobile, you will have the new background image enabled
Your dialer and contacts shortcut may be missing from your launcher, just drag it back to the homescreen from the app drawer.
Step:5
This step is optional!!! If you do not get those shortcuts, enter cwm and wipe cache and dalvik cache.
Note:
For users who know how to use root explorer (or other file managers) can use the same to copy/paste the framework-res.apk before and after editing.
Sample images are taken with multi dpi, this mod will work with all dpi.
Instructions:
1. Download the zip from the download section below and open it in 7zip.
2. Navigate to the following directory "\mode\system\framework\framework-res.apk\res\drawable-nodpi\".(Sample images on post 2)
3. Change the images "background_holo_dark.png" and "background_holo_dark.png" as per your wish.
4. Flash it
Sample screenshots from aosp rom:
Downloads:
bg mod
credit:
vertimus (thanks to him , he helped finding the right image to replace)
Taking this for modded bg images collection
you can find some ready to use backgrounds in this post ... will be updating this post when i find something beautiful for a background
This only works with cm9 roms?
alexanter the great said:
This only works with cm9 roms?
Click to expand...
Click to collapse
works fully with cm9 and aokp roms. works partially with samsung roms where standard android framework is used.
when you say 'Use the following adb command below to pull the "framework-res.apk" from your mobile to pc' the phone must be connected with the PC?Im mean can't we pull it out with root explorer?
alexanter the great said:
when you say 'Use the following adb command below to pull the "framework-res.apk" from your mobile to pc' the phone must be connected with the PC?Im mean can't we pull it out with root explorer?
Click to expand...
Click to collapse
yes you can, and it is mentioned at the end of the post
I am sorry i did not see,ok now its worked with paranoidandroid thank you its very nice!!
I have the stock rom on my device and tried it on your description to replace the background, but the black background is always shown. The background i added to the "framework-res.apk" will be not shown in the settings.
Is there another way or another kind of doing this for stock roms user?
Or should i install CM9?
KeySonic said:
I have the stock rom on my device and tried it on your description to replace the background, but the black background is always shown. The background i added to the "framework-res.apk" will be not shown in the settings.
Is there another way or another kind of doing this for stock roms user?
Or should i install CM9?
Click to expand...
Click to collapse
This mod works on Samsung roms but only partially. The background changes won't be visible where the touch wiz parts are used. The here are a few screen shots from stock rom
《tapatalked from galaxy s3》
will update the guide soon for samsung roms too
Thank you sir. For this clear instructions
Sent from my GT-I9300 using xda premium
Thanx . Very usefull instruction but can u add the Black BG I want my phone simple
Sent from my GT-I9300 using XDA
sharjackmission said:
Thanx . Very usefull instruction but can u add the Black BG I want my phone simple
Sent from my GT-I9300 using XDA
Click to expand...
Click to collapse
Added to the 2nd post
bala_gamer said:
Added to the 2nd post
Click to expand...
Click to collapse
thanx man keep it up
One question
How to change the BG of the menu
I did ur steps but the menu didnt change
Sent from my GT-I9100 using XDA
sharjackmission said:
One question
How to change the BG of the menu
I did ur steps but the menu didnt change
Sent from my GT-I9100 using XDA
Click to expand...
Click to collapse
anybody am i the only one who intrested
sharjackmission said:
anybody am i the only one who intrested
Click to expand...
Click to collapse
which menu ?
el_liberator said:
which menu ?
Click to expand...
Click to collapse
when u hit the menu button doesnt change it to backbecause i dont like the grey color
---------- Post added at 12:25 AM ---------- Previous post was at 12:11 AM ----------
sharjackmission said:
when u hit the menu button doesnt change it to backbecause i dont like the grey color
Click to expand...
Click to collapse
anybody
sharjackmission said:
anybody am i the only one who intrested
Click to expand...
Click to collapse
assuming that you are mentioning stock samsung roms settings background its a bit tricky, but will add the guide for it soon.
how can i find this Software needed ??
1.7zip (to replace the image)
2.android sdk(to use adb commands to push/pull the files)
shukriee said:
how can i find this Software needed ??
1.7zip (to replace the image)
2.android sdk(to use adb commands to push/pull the files)
Click to expand...
Click to collapse
a simple google search will give you those.
here
you can also simply copy past via root explorer if you are not comfortable with adb commands. just dont forget to set the permission as
XX0
X00
X00

[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
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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/showthread.php?t=1710742
Edit the Button order :
CoolCatGetHome said:
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
Click to expand...
Click to collapse
- Credits :
- CoolCatGetHome
- Google - for Android
- Samsung - for Samsung Galaxy Ace
- NutellaBanane - for this guide and for providing the needed tools
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 !
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
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
Is this general tutorial to compile and decompile apk (not just framework-res.apk)?
pandu15 said:
Is this general tutorial to compile and decompile apk (not just framework-res.apk)?
Click to expand...
Click to collapse
http://www.youtube.com/watch?v=oLQynXg8noM
you're welcome.
pandu15 said:
Is this general tutorial to compile and decompile apk (not just framework-res.apk)?
Click to expand...
Click to collapse
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
Shadow xD said:
http://www.youtube.com/watch?v=oLQynXg8noM
you're welcome.
Click to expand...
Click to collapse
In my opinion for newbies apk manager is a way easier
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
Can you please do it for the CM7.2 RC3 Based DEMOCRACY ROM which just came out?
please reply.
thanks.
Shadow xD said:
http://www.youtube.com/watch?v=oLQynXg8noM
you're welcome.
Click to expand...
Click to collapse
Thanks dude
NutellaBanane said:
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
Click to expand...
Click to collapse
ok I'll try it later
CoolCatGetHome said:
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
Click to expand...
Click to collapse
Added to OP
Ace King 34 said:
Can you please do it for the CM7.2 RC3 Based DEMOCRACY ROM which just came out?
please reply.
thanks.
Click to expand...
Click to collapse
Will do it please upload the framework-res.apk from the rom
EDIT : you have to pull the framework-res.apk frome your system/framework folder.
If you just extract it from the rom it won't work
EDIT 2 : you also have to request a ics layouts with RIGHT clock from the democracy dev , if not the softkeys will overlap the center clock
Tnx
Sent from my GT-S5830 using xda premium
can iget help i have no pc now my pc get cracked VGA card and not work can any one makes me soft key this my file http://db.tt/eMLnGgRR
It's easy tutorial for noob like me..
thanks dude now I can decompile and compile apk to get enter key for my mms.apk..
so good
NutellaBanane said:
Will do it please upload the framework-res.apk from the rom
EDIT : you have to pull the framework-res.apk frome your system/framework folder.
If you just extract it from the rom it won't work
EDIT 2 : you also have to request a ics layouts with RIGHT clock from the democracy dev , if not the softkeys will overlap the center clock
Click to expand...
Click to collapse
To the one who wanted softbuttons on democracy , no answer from you? as you see i wrote something back then...
NutellaBanane said:
To the one who wanted softbuttons on democracy , no answer from you? as you see i wrote something back then...
Click to expand...
Click to collapse
hihi. this is the link to framework-res.apk for democracy rom.
http://db.tt/1e1ZhQRV
Sent from here2there
Will no one can help me to make my softkey i have no pc now and i am need 10 days to repear it plz any one make it for me this file what u need
http://db.tt/eMLnGgRR
Sent from my GT-S5830 using xda premium

[Tutorial] Decompiling-Compiling-Editing APKs

Hello guys. I'm creating a thread with a simple tutorial of how to decompile, compile, edit apks. I've seen some threads about it, but all of them were very complicated to understand. It's a simple tutorial, not designed to really mess with apks, just to edit a bit, like swapping icons, images, etc. When I get some more time, I will also teach how to mess with some CM9 Theme Chooser APKs
First of all, what you are going to get with this?
1. Decompile APKs
2. Decompiling all files, so you will only get XML [easy to edit], images and SMALI files [in most cases]
You need to know...
1. Works only Windows [x86 or x64] [You can try on linux, but you will need to download other files of apktool. But the steps are almost the same]
2. Choose the .bat of your version. [x86 = 32 bits] [x64= 64 bits]
3. You need JRE
4. Attached, the most updated apktool.
Let's go...
STEP 1 - preparing
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. I've optimized the files to run at D:\apktool [Another partition]. So, extract the .7z, and make sure that there's a apktool folder at the ROOT of D:\ drive. If you want to put this folder at other place, please pay attention: open the Run [x??].bat on the notepad. If you want the folder at the C:\ drive, delete the "D:" line, and swap the directory to the one you choose. [Example: "C:\Users\....user name....\Desktop"] Just make sure you included the cd before the path. If you want the folder at other place on D:\ drive, just change the directory [Example: "D:\Desktop"], and again, with the "cd" command before the path.
STEP 2 - still preparing...
1. Get framework-res.apk from your ROM [if you are on a Samsung ROM, also get twframework]
2. Extract framework-res.apk here
3. Open the correct .bat of your Windows version
4. Run this command: "apktool if framework-res.apk" [if you are on a Samsung ROM, also do with the other framework]
STEP 3 - now decompiling
1. Now, put the apk you want to edit on your apktool folder.
2. Run this command: "apktool d APK-NAME.apk
3. You may get NO errors when it's done.
4. The out put folder is the folder of the decompiled apk.
STEP 4 - now compiling
1. Run this command: "apktool b APK-NAME" [without the .apk]
2. You may get NO errors when it's done.
3. The output APK is located on \[apktoolfolder]\APK-NAME\dist
STEP 5 - optimizing
1. Sign your APK with this
2. Zipalign your APK with this. You can also use zipalign scripts on your ROM to zipalign.
3. Now you may install your apk normally. [user app or system app]
__________________________________________________ __________________________________________________ ___________________________________________
TIPS
1. You can edit .smali files with Notepad ++
2. You can also edit XML files on the Notepad [Windows notepad. I think that with Notepad ++ also works]
3. Soon, I'm going to teach how to edit CM9 Theme Choose APKs. You will be able to: theme non-themed apps, and replace images.
4. I tried to be the most clear and direct as possible. If something is unclear, tell me now. If you have any suggestions to make the tutorial better, please tell me...
reserved...
reserved too...
i reserved it, becouse i was trying it out, and i wanted to be one of the first post here, great tut, lika charm
android_isda_**** said:
RESERVED
Click to expand...
Click to collapse
??
Hi can you help me with this apk? http://forum.xda-developers.com/showthread.php?t=1738252
VasyleTheBest said:
Hi can you help me with this apk? http://forum.xda-developers.com/showthread.php?t=1738252
Click to expand...
Click to collapse
This is a lot harder. Can't do this for you. This isn't playstation2 with it's football games. Sorry. If you still want to try, decompile and search for images to replace.
Hi,
a question here:
I was succefull to theme system apps, but when I try to theme a normal, it never works. all the processes goes fine, but when i eant to install modified apk it gives error. and even when I copy it to /data/app/ it disappear from app drawer.(after restart of course)
sam5154 said:
Hi,
a question here:
I was succefull to theme system apps, but when I try to theme a normal, it never works. all the processes goes fine, but when i eant to install modified apk it gives error. and even when I copy it to /data/app/ it disappear from app drawer.(after restart of course)
Click to expand...
Click to collapse
I think you forgot to sign. Sign, and after you do, go back here and tell what error are you getting
i always got an error compiling systemui, can you help me?
edit:
found a solution using ics apktool here
http://forum.xda-developers.com/showthread.php?t=1558171
marcellocord said:
I think you forgot to sign. Sign, and after you do, go back here and tell what error are you getting
Click to expand...
Click to collapse
Wow, thanks it worked. But why system apps don't need to be signed?
Sent from my GT-I9100 using Tapatalk 2
First: Great Job
Second 2 Questions.
Is it not easyer to editing in .java (with dex2jar tool) then in smali?
For beginners is it not a little bit easyer to use "Apk One Click" for de- and recompile .apk (include the dex2jar Tool) ?
sam5154 said:
Wow, thanks it worked. But why system apps don't need to be signed?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
They can still work.
$wissdroid said:
First: Great Job
Second 2 Questions.
Is it not easyer to editing in .java (with dex2jar tool) then in smali?
For beginners is it not a little bit easyer to use "Apk One Click" for de- and recompile .apk (include the dex2jar Tool) ?
Click to expand...
Click to collapse
Thanks. When you decompile, it will turn a lot of files into .smali files. Those smali files are very easy to modify on Notepad++. But I'm going to study more about dex2jar.
I had write before a Month or Two, A decompile Tutorial for German Users:
When you need some Pictures for your Tutorial, you Can find it: Here
thank you marcellocord
it works very well.
good job

[Guide][MOD] Make your own multi-dpi stock dialer

How to create a dialer for stock Samsung roms:
Requirements:
- Modded APKTool for ICS
(http://forum.xda-developers.com/showthread.php?t=1558171)
- Java JDK
- Windows 7 (I used it in a VM)
- A rooted phone
- Root Explorer
- Notepad++
- 7zip
Setting up:
- Install Java JDK, once that is done extract the contents of APK tools. Place them as close to the root folder as possible, I had them in C:\Android.
- Go to your phone, open up Root Explorer and navigate to /System/Framework and copy framework-res.apk to your SD Card
- Plug your phone in via mass storage mode/mtp and pull the app to the folder you created earlier (C:\Android).
- Open up CMD (command prompt) and type the following:
cd..
cd..
cd Android/
Making sure you use the ".."!
Next type the following command:
apktool if framework-res.apk
This will not decompile the framework-res apk, it is installing the current framework of your rom as they're all different. You will need to repeat this step every time you flash a new rom.
- Back on your phone, navigate to /System/app and copy Contacts.app to your SD Card
- Plug your phone in again and move it to the folder (C:\Android)
Decompiling:
Open terminal up again and type the following:
apktool d Contacts.apk
I'm guessing the d stands for decompile :good:
Editing:
Seeing as we're only editing XML's this isn't going to be that hard, I learnt how to do this in about 10 minutes. In the root folder you should now see a folder called "Contacts". Open that and navigate to /res/layout/ and scroller down to D. There will be several XML's starting with the word dialpad- we want all of those. Open those up in Notepad++.
The Maths:
You'll notice most of the figures are measured in DIP, this stands for density independent pixels, so we need to work out how much to multiply the values by so they look the same on your chosen DPI.
Take the stock density that the dialer works correctly at - 240dpi and divide it by your new density (for me it was 180).
240 / 180 = 1.3
The tedious bit:
Unfortunately you need to change every figure in the XML's starting with the word dialpad, this took me about and hour to do this but it was well worth it. This includes values not ending in DIP such as pp and px. To work out the new figure you need to do the following:
Take the value in the XML, for example 50
Multiply it by the value you got from dividing the old density by the new, mine was 1.3 to get the new value
50 * 1.3 = 65
*EVERY VALUE IN THESE XML's NEEDS TO BE CHANGED!*
Several hours later....:
Once you've done that we need to recompile everything.
- Open up CMD again and type in apktool b Contacts ContactsNew.apk
The b might stand for build, I have no idea, but depending on the speed of your computer/laptop this may take a few seconds/minutes. It took my macbook around 15 seconds to do it. You may get some small error messages, you can also use this to find any problems you made whilst editing.
Assuming it all went well you will see the new apk underneath your old one in the root folder. We can't use this as it doesn't have the proper signature that is needed for it to work. Therefore we will use 7zip to take the new files and drop them into the old apk.
- Open up 7zip and locate ContactsNew.apk (the one we just recompiled)
- Navigate to res/layout/ and drag all the files starting with dialler to a safe location, such as the desktop
- Go back to and open up Contacts.apk (the old one you pulled from your phone)
- Navigate to res/layout/ and drop all the files you just removed in here
- Close down everything as we don't really need it anymore
Installing:
Copy Contacts.apk to your SD Card overwriting the old one if it's still there and disconnect your phone safely. Open up root explorer and navigate to your SD card, copy Contacts.apk to /System/
*DO NOT COPY IT INTO SYSTEM/APP JUST YET*
Long press the apk and select permissions, they need to look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Once you've done that long press and move it to /System/app overwriting the old one.
Reboot!
The dialer should now be the correct size, hoped this helped!
Awesome
Thank You very much,
Would u please be kind enough to make S3 dailer for S2? (because I'm a noob)
thanks to share this !
As you says, changing every dpi values is a big job, so I mad a little tool to do it :
http://www.mediafire.com/?39olh233z2gj9n2
It's a Windows application that take all xml file of a directory and change all xml values with 'px' at the end and change the value using a given ration. Two checkbox options : replace existing files (or create new ones in a 'Done' subdirectory) and subdirectory (recursive dir process).
If it can be useful for someone ...
dont work, u can send themodified file? for example 200 dpi whathever
nmeuret said:
thanks to share this !
As you says, changing every dpi values is a big job, so I mad a little tool to do it :
It's a Windows application that take all xml file of a directory and change all xml values with 'px' at the end and change the value using a given ration. Two checkbox options : replace existing files (or create new ones in a 'Done' subdirectory) and subdirectory (recursive dir process).
If it can be useful for someone ...
Click to expand...
Click to collapse
Hi bro, I try use yours program for change dpi values in my directory with xml, but when I push Go, file has change but when I open it by Notepad++ i see nothing happen. Any issu or some tutorial how to use your program? Thank you
thank you..

[GUIDE][SS/DS] Add A Banner In About Phone!! [NOOB FRIENDLY]

Hey guys, another week calls for another NOOB FRIENDLY guide. This time is for how to add a banner in the about phone tab in the settings. We have seen this many times in various roms but today you will get a step by step tutorial on how to do it. This tutorial works on all android devices and jellybean (4.1, 4.2, 4.3).
REQUIREMENTS:
1. Java
2. SDK tools and JDK already installed with paths set on your computer. (look it up if you don't know about this)
3. PC/laptop
4. Advanced apktool: http://d-h.st/5vj
5.auto-sign: http://www.mediafire.com/?rt059vr1di2e0ao
6. A brain (no download link... Lol)
7. A bit of time
8. A fully rooted device.
9. Root explorer ( any root enabled file manager)
10. Notepad++
BEFORE WE START:
You must choose what banner you want in the about phone section. This can be any picture or any xda signature you like. Really, any picture ever.
1. Open your image through paint.
2. Click the resize button
3. Click on the pixels box instead of percentage.
4. untick maintain aspect ratio.
5. In horizontal, put 700
6. In vertical, put 215
7. Save the image and rename it to logo.png
8. It must be a png and must be called logo, please don't ignore step 7
THE GUIDE:
1. On phone, open root explorer
2. Navigate to /system/app
3. Scroll down until you see setting.apk
4. Copy it to your internal memory
5. Navigate to /system/framework
6. Copy both files framework-res.apk and semcgenericuxpres.apk also to internal sd card
7. Connect phone to computer through MTP.
8. Copy the three apks you just copied to the internal sdcard to your computer's desktop.
9. Extract the advanced apktool (link in requirements)
10. Place the three apks in the "2-In" folder of the advanced apktool.
11. Run advanced apktool
12. Hit 1 (install framework)
13. Pick framework-res.apk, let it install
14. Now pick semcgenericuxpres.apk, let it install
15. Go back and select option 2 (decompile)
16. Select settings.apk
16.1. Wait
17. When done open the "3-out" folder in the advanced apktool folder
18. Open the settings.apk folder
19. Open "res"
20. open "layout".
21. Download this file and insert it into the layout folder: http://www.mediafire.com/?8q9f09x77he93xf
22. Go back and open the "drawable" folder in "res".
23. Paste your logo.png that you made and resized before we start.
24. Go back and open the "xml" folder
25. open device_info_settings.xml using notepad++
26. Press ctrl+F at the same time on your keyboard.
27. Input this line:
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
28. Press find next
29. Close the find window
30. Look at the hilighted line
31. Press on the end of it
32. Hit enter
33. Hit tab on your keyboard.
34. Paste this:
<PreferenceScreen android:layout="@layout/logo" android:key="od_logo" />
35. Press the save button at the top.
36. Close notepad++
37. Run advanced apktool again.
38. Select option 3 (recompile)
39. Select settings.apk
40. Wait
41. When done close advanced apktool
42. Open "4-done" in the advanced apktool folder.
43. Move settings.apk in this folder to your desktop.
44. Extract the auto-sign zip to desktop
45. Move the settings.apk you just move to the desktop into the auto-sign folder
46. Run the sign.bat file in the auto-sign folder
47. Follow on screen instructions
48. When done, you will get a your_app_signed.apk in the auto-sign folder.
49. Move it to your desktop
50. Rename it to settings.apk
51. Connect your phone to PC.
52. Copy your new settings.apk to your internal memory.
53. On phone, open root explorer
54. Navigate to where you copied the settings.apk to your internal sd card.
55. Move it to /system/app overwrite the old settings.apk (MAKE A BACKUP)
56. Set permissions to rw-r--r--
57. Reboot phone.
ENJOY YOUR NEW BANNER!!
This is what mine looks like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Please share what your's looks like in the comments and don't forget to hit that thanks button!!!!
Credits: @paper13579 for making this awesome a§§ Guide @abo hani , i used his guide as a base for mine @BDFreak for making the awesome advanced apktool.
Thank you
Press Thanks If I Helped!!
Reserved for future
Should i keep making these noob friendly guides? Does it really help? What do you think?
Press Thanks If I Helped!!
paper13579 said:
Should i keep making these noob friendly guides? Does it really help? What do you think?
Press Thanks If I Helped!!
Click to expand...
Click to collapse
think will help atleast some people...but there is no need for auto sign..bcoz advanced apktool has inbuilt sign option
ansebovi said:
think will help atleast some people...but there is no need for auto sign..bcoz advanced apktool has inbuilt sign option
Click to expand...
Click to collapse
When i used the sign option in advanced apktool, it didn't work but when i used auto sign, it worked very well. By the way, did you try it? And if you did, are there any problems?
Thanks
Press Thanks If I Helped!!
paper13579 said:
When i used the sign option in advanced apktool, it didn't work but when i used auto sign, it worked very well. By the way, did you try it? And if you did, are there any problems?
Thanks
Press Thanks If I Helped!!
Click to expand...
Click to collapse
i m using only advanced apktool...no problem...if you meant the guide...sry i already know and have logo in my phone..
Did this Mod work on KitKat??
BohArie said:
Did this Mod work on KitKat??
Click to expand...
Click to collapse
Give it a go. Im 99.99%sure it will work. Just make a backup of you original settings.apk. If the new one that you make doesn't work, you can just replace it with the original one. There is no risk involved here.
Press Thanks If I Helped!!
Nice tuts bro, one question though... what image format supported for the banner? Also, can we put animated gif image on it?
Thanks,
madper said:
Nice tuts bro, one question though... what image format supported for the banner? Also, can we put animated gif image on it?
Thanks,
Click to expand...
Click to collapse
As step 8 in the before we start section says, the image must be a png and not any other format. I really doubt a gif would work. But if you are willing to experiment, you can go ahead and try, there is no risk involved, just make a backup of your original settings.apk and you are good to go.
By the way, i noticed the step 34 was not complete, so i edited it.
Press Thanks If I Helped!!

Categories

Resources