[GUIDE][SS/DS] Add A Banner In About Phone!! [NOOB FRIENDLY] - Sony Xperia M

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!!

Related

[THEME] Black Modified Dock and Battery Icon

hi .. posting my first here at xda,, just wanted to share the theme i created by adding some of those modifications and themes from here at xda.. cannot recall the original authors but credits goes to them... if this post seems not good for them then please delete this respectable admins and moderators..
the theme is all black and have a modified clear dock, battery icon also modified..my rom is untouched... well don't know what to say but please see the pics for reference...
1. you need to have root access and a 3rd party launcher installed like adw or launcher pro just in case you mess touchwiz.
2. create a backup of your twframework-res.apk, framework-res.apk, and TouchWiz30Launcher.apk
3. replace them with the attached files. use adb or terminal emulator to do so...must set as SU and system is mount as RW.
just revert the steps to return your original files. i don't know how to create update.zip file, if anyone like to help then please post as you wish...
tested on JPK, JPC, JP6 and JPM.. i have not tested this to other firmwares.. please do at your own risk.. thanks...
{
"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"
}
wallpaper
how to apply the theme
some detailed steps for the newbies like me..
requirements:
1. root with busy box 1.17.x
2. terminal emulator [downloadable in the market free]
3. root explorer like astro
4. other launcher like ADW or Launcher Pro - [In case you mess the touchwiz]
5. download the 3 files on my post then save it at root folder of the SDCARD of your SGS
steps :
1. using root explorer.. create a backup of the following on your computer or external card
a. TouchWiz30Launcher.apk = location is system/app/
b. framework-res.apk and twframework-res.apk = location is system/framework/
2. open your terminal emulator
3. type su then hit enter
4. type mount -o remount,rw / system then hit enter.
5. type cp -f sdcard/TouchWiz30Launcher.apk system/app then hit enter
6. type sync then hit enter
7. type reboot then hit enter
8. open your terminal emulator
9. type su then hit enter
10. type mount -o remount,rw / system then hit enter.
11. type cp -f sdcard/framework-res.apk system/framework then hit enter
12. type sync then hit enter
13. type reboot then hit enter
14. open your terminal emulator
15. type su then hit enter
16. type mount -o remount,rw / system then hit enter.
17. type cp -f sdcard/twframework-res.apk system/framework then hit enter
18. type sync then hit enter
19. type reboot then hit enter
separate each file and do sync and reboot to avoid problem such as terminal freezes then eventually system/framework will be corrupted, though you can fix it by reflashing, still best not to do reflash
done...
Is there any chance you can do a version without the tellytubby backs for the icons in the app drawer ?
i will check if that can be deleted.. love the idea
flanflinger...
i guess it is possible.. i need to test first.. i can change them to black to accompany the all black series like the dock background... wait... will use paint now and will try it first
FlanFlinger said:
Is there any chance you can do a version without the tellytubby backs for the icons in the app drawer ?
Click to expand...
Click to collapse
if you pertains to this.. here it is..
updated TouchWiz30Launcher.apk
Spot on !
Oh this looks awesome, I just have 2 questions.
1. Will this work on JM1? (As I've seen a lot of themes for just JPM, JPK etc etc etc)
2. Which apk contains the edited top bar? Is it possible to just get the rest of the mod without the top bar editing? (I already have an edited one and I like it the way it is.)
Thanks,
Luke.
While at this step:
7. type cp -f sdcard/twframework-res.apk system/framework then hit enter
My phone froze, and I couldn't do anything for too long, so I turned it off and on by removing the battery, now whenever I try to boot it, it gets stuck on Galaxy S GT-I9000 screen...
Any idea how I should recover from all this?
Hi chickie.tobias i like your work.
I wanna know if u can make a framework-res.apk working on JM8 with stock samsung icon and battery icon version z stock gradient.
If u can do this i will appreciate your work. thanks
@chickie.tobias if i give you my framework-res.apk + twframework-res.apk, could you mod this for me? I really like your work bro!
[email protected],
I can try... really depends if you wanted the same look as this...
TawaNicolas,
i believe the only way is to reflash using odin....
lelf,
i can try, i just need your framework-res.apk and this file "battery icon version z stock gradient".
chickie.tobias said:
[email protected],
I can try... really depends if you wanted the same look as this...
Click to expand...
Click to collapse
Many thanks bro. I dont need the battery icon mod but the notification bar (the black semi-transparent screen with wifi, bluetooth, gps, etc screen you modded). All i need is that (the dock bar would be a plus too). Ive included 3 files (framework-res.apk, twframework-res.apk, and touchwiz30launcher.apk), but from what i know (but not sure) is you only need twframwork-res.apk to change to semi-transparent black notification screen, as framework-res.apk changes battery icon (which i dont need). Thanks in advance bro... (btw, my eclair firmware is zsjg4)
Here we go, my apk are up. I don't need battery icon mod, in this apk is arledy modded.
Pls make all the same as in the screenshoot the icon bar too. Thx you!!!!!!!!
FW: JM8
hi,i really like your themes..i follow your step and after reach the second step it said something like my phone not enough space then it start force close when i enter main menu..i try factory reset and now my phone cannot start but i still can reflash it...but is there any other way to install your themes to my phone since i'm very newbie at this thing..btw i'm running on JP6 with root
thanks
arianto12,
make sure to sync and reboot after copying one file. do not copy all the files at the same time...
[email protected] and lelf,
i sorry cannot do your themes since I am using Froyo... seems like you guys are using Eclair... currently still trying to further check the composition of each icons to modify them...
no worries bro....was really hoping i could get my phone to look like yours.......
No problem mate, thanks you for your time. see for next update for the theme!!
I did sync and reboot when i copy the first file but when i wanna do the same for the second file it said cannot copy..any idea?
Sent from my GT-I9000 using XDA App

[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

[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..

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

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

Categories

Resources