AURORA mods/addons+Connect to ad-hoc hotspots guide+decompile/compile/edit apks guide - Huawei Ideos X5 U8800

*THESE MODS ARE FOR AURORA! USE THEM AT YOUR OWN RISK ! SEARCH THIS THREAD FOR BAD REPORTS BEFORE DOING ANYTHING ! SAY THANKS IF EVERYTHING GOES OK !*
*REMEMBER TO REBOOT YOUR PHONE IF YOU MAKE ANY CHANGES AT YOUR /SYSTEM/ FOLDER WITH A ROOT EXPLORER, IN ORDER FOR THE CHANGES TO TAKE EFFECT
REMEMBER ALSO TO SET THE SAME PERMISSIONS AS THE OTHER FILES OF THE FOLDER YOU EDITED
IT IS SUGGESTED TO WIPE CACHE & DALVIK CACHE BEFORE FLASHING ANYTHING
CWM 5.5.0.4 IS RECOMMENDED FOR FLASHING THESE MODS*
YOU MAY ALSO SEE THIS VERY USEFUL THREAD
ALL MODS UPDATED TO 5.0 (and compatible with any of the small updates, since they don't interfere with SystemUI, framework or android.policy.jar)
WAKEUP-WITH-VOLUME-KEYS:
UPDATE: Do you want this mod for your official 2.3.5?? See here
Hi there. I've modified a file of the dzo's aurora release in order to enable the "wakeup with volume keys" feature, when the phone is locked. I've been using it since the 1.6 dzo's release without having any problems and it has been tested also by other users without a problem yet. As many of us are having trouble with the nearly dead power button I think it may be useful. I have to pinpoint that this modification is NOT AN OPTION. IT IS PERMANENT. The only way to disable it is to reflash a regular (dzo's) aurora release, older, the same or newer, it doesn't matter or to flash the attached "stock_android.policy_(xxx)_flashable.zip" file.
So... the file that needs replacement is the /system/framework/android.policy.jar. As long as dzo doesn't make any changes to that file you can replace it without any problem at any aurora release. If any change is made I will update a new patch.
I suggest the following procedure to apply it:
1) Download the Aurora release you want.
2) Open the aurora_xx.zip file you've downloaded.
3) Navigate to /system/framework/ folder
3) Drag and drop inside that folder the "android.policy.jar" from the flashable zip attached. Replace if asked.
4) Flash the new .zip as usual.
Alternatively, you can try coping the android.policy.jar file with a root explorer to the same folder from your phone. Users have confirmed that this method works ok. I suggest the flashing method described above though.
EDIT: Flashable version added at the attachments. Flash it through clockworkmod normally. Thanks to sks976.
TABLET MODE
See this post and search this thread for reports.
http://forum.xda-developers.com/showpost.php?p=25452526&postcount=286
What is tablet mode? See this
FONT CHANGER - thank to leventccc and his thread here
Change the fonts of your phone. WARNING! COMPATIBLE WITH ANDROID 4.xx ONLY!
Flash the .zip through clockwork mod and follow the instructions. Navigate with volume buttons and select with power buttons.
It includes:
- Android Logo
- Gingerbread Stock
- MeeGo
- Nokia Pure View Font
- Roboto(Stock)
- Ubuntu
- Windows Phone 7
- Sony Xperia S
You can download the .zip from the original thread or you can get an updated version made by me (I only updated the Ubuntu fonts ) from here:
http://ubuntuone.com/3CfA4Hu4BKTjcCmPhxYzaa
{
"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"
}
ADDING SYSTEM APPLICATIONS:
Some other changes you can do is to add the applications you want at the /system/app/ folder. After flashing or copying, these application would be "system applications" and the only way to remove them is to delete their xxxxx.apk file from the /system/app/ folder of your phone. You can do that easily with a file explorer with root permissions (ex. Root Explorer). So these applications better be worth it. I do that for Nova Launcher and Apex Launcher. IF YOU COPY THEM MANUALLY REMEMBER TO SET THE CORRECT PERMISSIONS (rw-r--r--) AND REBOOT!
SGS3 Apps - thanks to sr21
http://forum.xda-developers.com/showthread.php?t=1682697
ICS Dictionary:
In the following link you will fild a post with a .zip attached. Inside the .zip is a version of LatinIME.apk with added these dictionaries:
English
French
German
Italian
Spanish
Greek
Enable it from "language & Input" settings and set the desired language! Thanks to halman for digging it for us.
THE FILE IS NOT A FLASHABLE .zip. I WON'T MAKE IT BECAUSE THE APK IS ABOUT 10MB SO COPYING IN MANUAL AS DESCRIBED ABOVE WILL ENSURE THAT YOU HAVE THE AMOUNT OF FREE SPACE NEEDED!
file here: http://forum.xda-developers.com/showpost.php?p=23949474&postcount=103
T9 Dialer:
thanks to boss_y and fsnelis for digging it up for us...
see here:
http://forum.xda-developers.com/showthread.php?t=1503581
Stock MMS APK with 160 characters sms capacity! - thanks to theos0o and mrasquinho - IMPLEMENTED ON AURORA 4.0 AND LATER
HUGEHUGEHUGEHUGE patch. See here: http://forum.xda-developers.com/showthread.php?t=1591989
You don't like the above?? You want our stock Aurora Mms.apk with correct translations?? See this - thanks to mrasquinho
http://forum.xda-developers.com/showpost.php?p=25577189&postcount=309
CM9 DSP Manager - thanks to eng.stk
see here:
http://forum.xda-developers.com/showthread.php?t=1636056
REMOVING SYSTEM APPLICATIONS:
You can also remove applications that you don't want from any rom, simply by deleting their xxxx.apk file from the /system/app/ folder of the rom's flashable .zip or from inside the phone (after flashing) with a root file manager. Just be careful with which you remove, because it may be important for the system to work properly. Here is a list of POSSIBLE unwanted applications. I haven't tested all of them, but there are reports that removing them won't harm anything. It's up to you.
OpenWnn.apk (Japanase IME) - safe to remove if you want
PinyinIME.apk (Chinese IME) - safe to remove if you want
BackupRestoreConfirmation.apk (Google's backup and restore - see settings->Backup & reset)
SharedStorageBackup.apk
WAPPushManager.apk (process incoming WAP Push messages, supported by your provider) - safe to remove if you want
PermissionToAccessLocApi.apk
PrivInit.apk
com.android.inputmethod.pinyin.apk
ChromeBookmarksSyncAdapter.apk (sync's your bookmarks from pc chrome if installed) - safe to remove if you want
Email.apk - If you use only Gmail)
Exchange.apk - If you use only Gmail)
Feedback on more apks and descriptions much appreciated!!
Thanks to eng.stk, wangjun1984
UI MODS:
SystemUI.apk:
SystemUI.apk is a system apk that controls the look/behaviour of your status bar. Here are some modified SystemUI.apk. Install them as described above (ADDING SYSTEM APPLICATIONS) or flash if .zip is a flashable file. BACKUP THE ORIGINAL SystemUI.APK AND REMEMBER TO SET THE RIGHT PERMISSIONS
return-to-stock-SystemUI.apk - flashable .zip
stock-SystemUI.apk + center clock - flashable .zip
- baterry percentage V2 (higher quality, ICS coloured) - flashable .zip
- center clock + battery percentage V2 - flashable .zip
- battery bar percentage - flashable .zip
- center clock + battery bar percentage - flashable .zip
- vertical battery percentage - flashable .zip
- vertical battery percentage + center clock -flashable .zip
- horizontal battery percentage - flashable .zip
- horizontal battery percentage + center clock - flashable .zip
- dotted circle battery percentage - flashable .zip
- dotted circle battery percentage + center clock - flashable .zip
- full circle battery percentage - flashable .zip
- full circle battery percentage + center clock - flashable .zip
- honeycomb battery - flashable .zip
- honeycomb battery + center clock - flashable .zip
- honeycomb battery V2 (only ICS colours and transparent background) - flashable .zip
- honeycomb battery V2 + center clock - flashable .zip
- liquid blue - flashable .zip
- liquid blue + center clock - flashable .zip
- more to come...
framework.apk
/system/framework/framework.apk is an .apk that configures the UI of your phone (transitions,look,icons e.t.c). Here are some mods:
return-to-stock-framework - flashable .zip
- lockscreen animation (only when screen turns off) - see howto on 3rd post - flashable.zip - thanks to fjsferreira - IMPLEMENTED BY DZO AT 4.1 AND LATER...
- Turn lockscreen animation off - flashable .zip
like this video
- lockscreen rotation - see howto on 3rd post - flashable .zip
- lockscreen animation + lockscreen rotation - see howto on 3rd post - flashable .zip
- ICS screen buttons - see howto on 3rd post - flashable .zip
- Turn lockscreen animation off + ICS screen buttons - flashable .zip
- Jellybean Animations - thanks to fjsferreira
see this post
http://forum.xda-developers.com/showpost.php?p=36596794&postcount=8326
- more to come...
If you want a combination of the above see post #3 for guides...
framework.apk + SystemUI.apk
stock framework.apk + SystemUI.apk - flashable .zip
vold.fstab - CHANGE THE DEFAULT SDCARD: -thanks to julle131
There is this file named vold.fstab at your /system/etc/ folder, which controls which of your sdcards (Internal/External) will be mounted when you connect your phone to the PC. The last 2 lines are the only that matter. These are the two possibilities:
EXTERNAL SDCARD MOUNTED (DEFAULT):
dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.4/mmc_host
dev_mount emmc /mnt/sdcard1 14 /devices/platform/msm_sdcc.2/mmc_host
INTERNAL SDCARD MOUNTED:
dev_mount sdcard /mnt/sdcard 14 /devices/platform/msm_sdcc.2/mmc_host
dev_mount emmc /mnt/sdcard1 auto /devices/platform/msm_sdcc.4/mmc_host
change them as you wish with a root explorer or before flashing.
Record Videos in .mp4 file format
I edited the /system/etc/media_profiles.xml in order to record all videos in .mp4 file format. Download it and replace the stock one on your phone with it. Remember to set the same permissions and reboot.
mp4_media_profiles.xml
Speedup wifi speeds - thanks to sbasil for the patch
Some reported that this works some didn't. Just try it if you have wifi speed problems. You can find the patch here
It replaces the /system/etc/firmware/wlan/qcom_cfg.ini file. The only difference from the original is at this line:
gDynamicPSPollvalue=5
that is commented out like this:
#gDynamicPSPollvalue=5
so you can do this change manually.
Ad-Blocking hosts
There is a file inside /system/etc/ folder named "hosts" which is responsible for blocking incoming links from the web. This can be used to filter out annoying ads from inside an app or at the browser. Flash normally without wipes. It's permissions must be rw-r--r--
download
If you want the default flash this
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GENERAL GUIDES
GPS FIXES
CHANGE THE GPS SERVER - gps.conf:
There is a file at your system/etc/ folder named gps.conf. This file has information for your GPS in order to work properly. If you open this file the first lines look like this:
#Test
#NTP_SERVER=time.gpsonextra.net
#Asia
NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
# NTP_SERVER=north-america.pool.ntp.org
These are the servers your gps is communicating with. By default a server at asia is chosen (everything after a '#' symbol is a comment and isn't "executed"). So if you are in europe you should change the default server to be the european one for better behaviour of the gps. I always do this change and my gps works good and locks really fast. So this is how you should change these lines for the european server (you can use any root explorer to open the file as text):
#Test
#NTP_SERVER=time.gpsonextra.net
#Asia
#NTP_SERVER=asia.pool.ntp.org
#Europe
NTP_SERVER=europe.pool.ntp.org
#North America
# NTP_SERVER=north-america.pool.ntp.org
and for the american:
#Test
#NTP_SERVER=time.gpsonextra.net
#Asia
#NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
NTP_SERVER=north-america.pool.ntp.org
CHANGE THE GPS INTERMEDIATE_POS - gps.conf: ON 2.03test DZO MADE THIS CHANGE - THANKS
Do this only if you have problems with gps.
Inside the /system/etc/gps.conf file you will find a line
INTERMEDIATE_POS=1
change it to
INTERMEDIATE_POS=0
save and exit. Report if it works for you...
ADD YOUR BOOT ANIMATION:
It is very simple to add your own boot animation. Just copy/replace the desired bootanimation.zip file to /data/local/ with a root explorer. Set the permissions to rwxrwxr-x and reboot.... Done! This will not delete your stock bootanimation, it just replaces it. To revert delete or rename the file you pasted...
To find boot animations search google for "ICS Bootanimations" or "Android Bootanimations" and you will find many of them. If the file you find is a flashable .zip DON'T FLASH unless it's compatible for U8800. If it is for another phone (for ex Nexus), just extract the bootanimation.zip file from it and do the procedure described above! Make sure that the file you paste is named exactly "bootanimation.zip", else it won't work.
Here is a boot animation developing thread for dzo's aurora releases. Credits to kostasvr :
http://forum.xda-developers.com/showthread.php?p=22843604
CONNECT TO AD-HOC HOTSPOTS GUIDE - FOR ANY ANDROID VERSION:
I finally figured out how to connect to ad-hoc hotspots (hotspots from your pc) since android has disabled this, by filtering out the ad-hoc networks from the list. The best way to do this is to recompile the wpa_cli file removing this filtering but since I have no idea how to do that I found another way to bypass it. The idea is to manually create the profile of your wifi inside your phone and let it connect automatically! In order to do that you need a root file manager to edit the file : /data/misc/wifi/wpa_supplicant.conf.
Lets say the ad-hoc wifi you have created is called MyWiFi and it has no password. Here is the guide:
0) Disable your wifi
1) Goto /data/misc/wifi/ and open wpa_supplicant.conf as text
2) Add this entry somewhere:
network={
ssid="MyWiFi"
mode=1
frequency=2412
key_mgmt=NONE
priority=50
}
set priority as you wish. Wifi connects automatically to the lowest available profile
3) enable your wifi and let it connect automatically!!!!
If you need encryption to your wifi (WARNING: only plaintext and static WEP) you have 2 ways:
1) Add at your wifi sharing options on your PC, MAC address filtering and enter the MAC address of your mobile. This way only your mobile would be able to connect to your wifi and no changes are needed at your phone.
OR 2) Set a WEP encryption code from your computer and add these lines inside the {...} of the above code:
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=TKIP
psk="secret passphrase"
I haven't tested it but it should work. Report if it does or not!
This entry wont be deleted until you do a FULL WIPE or delete it manually...
This is not only for Aurora, it is for any AOSP android which has ad-hoc filtering. But since MIUI and CM have this disabled I post it here and added it at the name of the thread.
BEWARE. WHEN THE PHONE IS CONNECTED TO AN AD-HOC NETWORK (MAYBE ALSO WHILE WIFI IS ON AND AT STANDBY) IT WON'T ENTER TO "DEEP-SLEEP" STATE NORMALLY, CAUSING GREATER BATTERY LOSS. I don't know why this is happening but it is a known problem!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I will support this thread with any other fixes-updates-tips-mods I find.
Thank you very much and CREDITS TO DZO FOR HIS WORK!
Enjoy!
Cheers

AURORA ICS- "wake with volume keys" + mods/addons + Connect to ad-hoc hotspots guide
As promised, this is a complete guide on how to edit apk files. It is not only for AURORA. It is a general guide!
TOOLS YOU NEED
- apktool (It can handle .jar files too)
OR
- apkManager: Uses apktool to decompile and compile apks but offers easier UI and other options, such as signing apk. Rcommended!
You can find any of the above tools for your platform (linux, Windows, MacOs) at google or at xda threads.I won't put any links here because there are many editions. Find what works for you best. Attached you can find the version of apkManager I use (only linux compatible, and with some fixes).
UPDATE! New version (4.3.1) added that supports decompiling framework-res.apk! Enjoy!
MOD APKS
To edit any apk you need to decompile it. This process will create some folders which include the .xml files, the icons and the .smali files of the apk. The .smali code is a pain in the ass to understand but it is the only "safe" way to decompile and recompile an apk without destroying it. To edit an apk you have to do the following:
STEP 1: You need the framework-res.apk of the rom you are editing, because it contains necessary information for the apktool to decompile or compile. Copy the framework-res.apk of the rom and paste it at the same folder with apktool (if you are using apkManager, apktool is inside its "other" folder; copy it there)
STEP 2: Open a terminal/command line and navigate at the directory of the apktool
STEP 3: type this command
Code:
./apktool if framework-res.apk
This will install the framework-res.apk to your system. In linux it installs it at ~/apktool/ . I don't know for windows .
STEP 3: Decompile an apk. Lets say you want to decompile the SystemUI.apk.
If you use apkManager copy SystemUI.apk (or any apk you want to decompile/compile) at the "place-apk-here-for-modding" folder and run the Script.sh and you will easily find how to decompile, compile and sign the apk.
If you are using apktool copy SystemUI.apk (or any apk you want to decompile/compile) at the same place with apktool and execute this at terminal
Code:
./apktool d SystemUI.apk
and you will find at the same directory a folder with the name of the apk you decompiled and all of its files inside.
STEP 4: Edit anything you want to edit!
STEP 5: Recompile...
With apkManager follow the on screen instructions of the Script.sh and also sign the apk. You will find the apk ready at the "place-apk-here-for-modding" with the the name "repackaged-signed.apk". Rename it as the original and you are ready to rock.
With apktool execute this command:
Code:
./apktool b SystemUI/
SystemUI is the folder of the decompiled apk. It could be any other apk name instead. After that you will find a folder named "dist" inside the SystemUI folder and inside of it a an .apk file which is the new .apk with your changes. In order to sign your apk you need some extra tools. You can search the web on how to sign an apk. I don't know what are the consequences of using an unsigned apk. Probably it would work ok but I haven't tried it.
STEP 6: You are ready to put the new apk at your phone. Remember if you are replacing a system apk to set the correct permissions after pasting.
Cheers

AURORA ICS- "wake with volume keys" + mods/addons + Connect to ad-hoc hotspots guide
How to Change Battery in ICS ROM - thanks to fergie716 and his guide here
After you got apktool all set up with ICS resources installed get the SystemUI.apk from your ICS ROM, decompile it.
Make sure you have installed framework-res.apk in apktool prior to decompiling ICS apks
Navigate to your decompiled SystemUI folder, go to /res/drawable-hdpi/
This is where the battery png's are in ICS. Copy/paste your battery png's. To make it more easy, make sure your png's follow the pattern (stat_sys_battery_1.png, etc)
If you plan on changing the png's for charging animation make sure you have the correct png's named stat_sys_battery_charge_anim0.png etc
(optional) Delete leftover battery png's, if any, from stock ICS
Once all your png's are in place, you need to modify the corresponding xml's
Those are found in SystemUI/res/drawable/stat_sys_battery.xml and stat_sys_battery_charge.xml
The first is responisble for the look of the battery while discharging and the second while charging. The form of them is like: When battery=20% show stat_sys_battery_20.png (random example). if you have percentage icons with all the values (0-100) you need to have a stat_sys_battery.xml like the attached named "stat_sys_battery_allpercentage.xml.zip".
For the charging images you can keep the stock stat_sys_battery_charge.xml or you can create a new based on the stock in order to show all percentages (if icons are provided). Attached you will find a charging animation .xml named "stat_sys_battery_charge_allpercentage_anim.xml.zip" which needs charging icons for all percentages in order to work properly.
If you have made mistakes at one of the .xml files the build will probalby fail or you will lose the battery icon. Your phone will work ok though and a flash of the stock SystemUI.apk will fix everything. You can decompile and use .xml files from other SystemUI.apk as long as the filenames match.
Now that you have your png's and xml's in place, go back and recompile.
How to Enable Lockscreen Rotation (ICS) - thanks to fergie716 and his guide here
-decompile framework-res.apk using apktool
-navigate to decompiled folder, go to /res/values/bools.xml
-change "config_enableLockScreenRotation" to "true"
-recompile framework-res.apk
HOW TO CENTER CLOCK - thanks to fergie716 and his guide here
-decompile your SystemUI.apk
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
-make sure everything lines up (see the attached xml below)
-lastly, find this line:
Code:
name="notification_header_bg">
#00000000 would be fully transparent, #ff000000 is fully opaque.
[SIZE="5"][B]Lockscreen animation - thanks to fjsferreira for the guide[/B][/SIZE]
decompile framework-res.apk
go to res/values/bool.xml
change line
[CODE]true
to
Code:
false
Disable Unlock-with-menu-key - implemented by dzo on 2.05 and later
You may have noticed that if you are at lockscreen and press the menu key the phone unlocks. If you want to disable this do the following:
decompile framework-res.apk
go to res/values/bool.xml
change line
Code:
false
to
Code:
true
Enable ICS screen buttons
decompile framework-res.apk
go to res/values/bool.xml
change line
Code:
false
to
Code:
true
SystemUI.apk - bools.xml
After decompiling the SystemUI.apk you will find the bools.xml file inside res/values/ and it's stock form is this (I added descriptions, trueN, falseFF):
Code:
[COLOR="YellowGreen"][/COLOR]
false
[COLOR="YellowGreen"] [/COLOR]
false
[COLOR="YellowGreen"][/COLOR]
false
[COLOR="YellowGreen"][/COLOR]
false
[COLOR="YellowGreen"][/COLOR]
false
[COLOR="YellowGreen"][/COLOR]
false
Change them in your desire and report if you find something.
ENABLE VOLUME WAKE:
1) decompile android.policy.jar
I use apktool 1.4.3 for linux.
with the command:
apktool d [dir-of-the-.jar]
2) go to the apktool folder where the decompiled version is.
3) find the KeyguardViewMediator.smali source
4) change this:
...
.method private isWakeKeyWhenKeyguardShowing(IZ)Z
....
:sswitch_data_8
.sparse-switch
#0x18 remove
#0x19 remove
0x1b -> :sswitch_5
....
5) save and compile again with the command:
apktool b -f [dir-of-the-decompiled]
- ...more to come
Cheers

hey mate.
Just flashed 1.9, but forgot to change the android policy jar file
Well, tried to do it just moving it to the /system/framework, and it worked great, after reboot
thanks

Thanks spirosbond, REP+

thanks a lot. works great

Thanks for the feedback guys.
Cheers
Sent from my U8800 using xda premium

One thing you could add here (If you want) is a list of "bloatware" in this rom. The un-needed keyboards and some things. It would be easier to find the list from this topic than searching the post in ICS aurora topic.

julle131 said:
One thing you could add here (If you want) is a list of "bloatware" in this rom. The un-needed keyboards and some things. It would be easier to find the list from this topic than searching the post in ICS aurora topic.
Click to expand...
Click to collapse
Yes, I am preparing it!
Thanks

Nice work! Always nice with tweaks. Thanks!
Can you provide a simple solution/explanation how to get long press volume key to skip to next song in media players?
Thanks in advance!

cokratex said:
Nice work! Always nice with tweaks. Thanks!
Can you provide a simple solution/explanation how to get long press volume key to skip to next song in media players?
Thanks in advance!
Click to expand...
Click to collapse
I use player pro which has this option inbuilt . You can try it from market... it's a paid apk though...

spirosbond, can you add in the first post mod "center clock"?
Made for myself, decided to share)
View attachment center_clock.zip
sorry for my bad english)

sks976 said:
spirosbond, can you add in the first post mod "center clock"?
View attachment 919702
Made for myself, decided to share)
View attachment 919700
sorry for my bad english)
Click to expand...
Click to collapse
Thanks a lot sks. I've added all your work as UI MODS.

sks976,
How about working on a battery % icon for status bar ?!
The circle battery icon used on 2.1 roms would look great on this one!
Great work both of you !!! Thanks !!!

nrdl said:
sks976,
How about working on a battery % icon for status bar ?!
The circle battery icon used on 2.1 roms would look great on this one!
Great work both of you !!! Thanks !!!
Click to expand...
Click to collapse
I have long been using it) starting with version 1.7. Made it in UOT Kitchen - It is very simple)))
View attachment battery_1.9.zip
for undo stock battery flash this - View attachment battery_1.9_stock.zip
But when using this % battey mod need another center_clock.
Here it is - View attachment center_clock_forbatterymod.zip
But I have a problem with animation is charging. I do not have time to fix it.

I lost all statusbar icons, including clock, after flashing the center clock mod...
Sent from my U8800 using xda premium

Tested and approved
Thanks sks976!

I 've replaced ths file by root explorer and this method works ok without any problem ..
Thank u

olfyboy said:
I lost all statusbar icons, including clock, after flashing the center clock mod...
Sent from my U8800 using xda premium
Click to expand...
Click to collapse
Have you wipe anything ?
I made in this order:
Wipe Data Cache
Wipe Dalvik Cache
Flash battery_1.9
Flash center clock mod
Tested and working fine

nrdl said:
Have you wipe anything ?
I made in this order:
Wipe Data Cache
Wipe Dalvik Cache
Flash battery_1.9
Flash center clock mod
Tested and working fine
Click to expand...
Click to collapse
I didn't do that and work fine too...

Related

[THEME] Mixed_Theme for Cyanogen Port for Milestone

Hello everyone....
1st part:
For users with 0.02 kabaldan's releases........
To all users who want to install my THEME:
I strongly recomment to use the latest version of OpenRecovery made by colaianni.andrea and Luca.dimaio1 HERE.
From now and on i will release my theme as two (2) XXXXXXXXX.zip files....
So there will be two(2) .zip files with modified apps:
1) The first .zip file will be the same name as kabaldan names his releases (f.e. update-cm-6.1.0-RC0-Milestone-signed-2010-10-02.zip).
2) The second .zip file will be the latest google apps modified by me (f.e gapps-hdpi-20100930-signed.zip).
So lets begin:
Download .zip files:
1) Kabaldan's latest release (Modified by me - see screenshots at the and of this post, except the notification bar color and the color of the fonts in notification bar, as you can choose your own color combinations from Settings - CyanogenMod settings - User Inteface).
2) Latest Googles Apps (Modified by me - see screenshots at the and of this post, except the notification bar color and the color of the fonts in notification bar, as you can choose your own color combinations from Settings - CyanogenMod settings - User Inteface).
Put these two(2) .zip files you downloaded to /sdcard/OpenRecovery/updates.
Then reboot into OpenRecovery made by colaianni.andrea and Luca.dimaio1 and follow the next 2 steps:
1) Wipe dalvik-cache and Wipe cache.
2) Apply the two(2) .zip files you downloaded from Update menu.
That's it.......
Reboot and enjoy !!!!!
------------------------------------------------------------------------------------------------------------------------
2nd part:
For users before 0.02 kabaldan's releases........
I made a theme for our Milestone (ONLY FOR CyanogenMod 0.01c for Milestone made by kabaldan HERE)
To install my theme you will need OpenRecovery v1.2 by Azhad that you can download from HERE...
First Do A Nandroid Backup Just In Case...
So you can download my theme from HERE...
Mirror in multiupload.com HERE...
In .zip file you will find 3 folders (apps, CMTheme and framework).
Take all the .apk from my apps folder and put them in /sdcard/OpenRecovery/azhad/theme/apps
Take framework-res.apk file from my framework folder and put it in /sdcard/OpenRecovery/azhad/theme/framework
Take the forder CMTheme and put it as it is in root of your sdcard
Then reboot your Milestone in Recovery mode and from Azhad's OpenRecovery go to Theme menu - Install Theme to install my Theme...
Then restart your phone.When your phone reboots, go settings - CyanogenMod settings - User interface - Tweaks extras - Select a theme and select kalagas.
Then restart again your phone.... and here you are with my theme....
I have to say that i' ve changed almost every icon in a lot of .apks (which can you see in screenshots) and almost every icon in framework-res.apk. So you understand that it took me a lot lot time to finish my work....
For full screenshots please go HERE...
To see a small sample here is some screenshots:
I don't have any kind of responsibility if something happens to your Phone...
If you like my work, feel free to buy me a beer...
kalagas said:
Hello everyone....
In .zip file you will find 3 folders (apps, CMTheme and framework).
Take all the .apk from my apps folder and put them in /sdcard/OpenRecovery/azhad/theme/apps
Take framework-res.apk file from my framework folder and put it in /sdcard/OpenRecovery/azhad/theme/framework
Take the forder CMTheme and put it as it is in root of your sdcard
Click to expand...
Click to collapse
Rapidshare?
Please use multiupload.com
And for the zip file, if you make a zip with all the files in the right folder, there is no need for the user to copy the files manually, but just unzip in the root of the sdcard.
[Start zip]
/CMTheme
/OpenRecovery/azhad/theme/framework
/OpenRecovery/azhad/theme/apps
[End Zip]
Sent from my Milestone
Azhad said:
Rapidshare?
Please use multiupload.com
And for the zip file, if you make a zip with all the files in the right folder, there is no need for the user to copy the files manually, but just unzip in the root of the sdcard.
[Start zip]
/CMTheme
/OpenRecovery/azhad/theme/framework
/OpenRecovery/azhad/theme/apps
[End Zip]
Sent from my Milestone
Click to expand...
Click to collapse
It's not so difficult for anyone, I think, to copy the files manually...
As for multiupload.com when I am at home I will add a mirror...
Edit: Done. Now you have an multiupload link to download my theme....
yea, you're right, the problem solved, and its good work!
I'm glad that it was so easy to solve your issue.... Tell me your impressions about my theme....
after i apply this theme, when i put my milestone on the dock, it will mount the sd card to computer automatically, any way not to mount everytime?
I think you must change the mount to "charge only", wait to prepare the sdcard and then remove your phone from dock...
Then every time you put your phone to dock, i think it will be in "charge only" mode....
Dumb question I know.. but I'll take it this can be put on the Droid 2 since its in the Droid 2 section right?
No it's "Motorola Droid and Milestone Themes" section....
Both Droid and Milestone....
My badddd. Im def in the wrong section!
nice, problem solved,
overall its a very good theme
@kalagas
Sorry mate, I should have told you before: when we included eclair in the recovery I changed the folders for the themes, now they are in:
/sdcard/OpenRecovy/theme/eclair/
/sdcard/OpenRecovy/theme/froyo/
You should use the froyo folder, inside you will find the usual app, framework, bootanimation and font folders
Sent from my Milestone
Azhad said:
@kalagas
Sorry mate, I should have told you before: when we included eclair in the recovery I changed the folders for the themes, now they are in:
/sdcard/OpenRecovy/theme/eclair/
/sdcard/OpenRecovy/theme/froyo/
You should use the froyo folder, inside you will find the usual app, framework, bootanimation and font folders
Sent from my Milestone
Click to expand...
Click to collapse
As you can see in first post I changed the way my theme is installing. I made 2 separate .zip files, one for Rom and one for Google apps. And both .zip files go in OpenRecovery/updates folder and apply them from your OpenRecovery Update menu....
I think it's easier this way, don't you think?
kalagas said:
Hello everyone....
1st part:
For users with 0.02 kabaldan's releases........
To all users who want to install my THEME:
I strongly recomment to use the latest version of OpenRecovery made by colaianni.andrea and Luca.dimaio1 HERE.
From now and on i will release my theme as two (2) XXXXXXXXX.zip files....
So there will be two(2) .zip files with modified apps:
1) The first .zip file will be the same name as kabaldan names his releases (f.e. update-cm-6.1.0-RC0-Milestone-signed-2010-10-02.zip).
2) The second .zip file will be the latest google apps modified by me (f.e gapps-hdpi-20100930-signed.zip).
So lets begin:
Download .zip files:
1) Kabaldan's latest release (Modified by me - see screenshots at the and of this post, except the notification bar color and the color of the fonts in notification bar, as you can choose your own color combinations from Settings - CyanogenMod settings - User Inteface).
2) Latest Googles Apps (Modified by me - see screenshots at the and of this post, except the notification bar color and the color of the fonts in notification bar, as you can choose your own color combinations from Settings - CyanogenMod settings - User Inteface).
Put these two(2) .zip files you downloaded to /sdcard/OpenRecovery/updates.
Then reboot into OpenRecovery made by colaianni.andrea and Luca.dimaio1 and follow the next 2 steps:
1) Wipe dalvik-cache and Wipe cache.
2) Apply the two(2) .zip files you downloaded from Update menu.
That's it.......
Reboot and enjoy !!!!!
------------------------------------------------------------------------------------------------------------------------
2nd part:
For users before 0.02 kabaldan's releases........
I made a theme for our Milestone (ONLY FOR CyanogenMod 0.01c for Milestone made by kabaldan HERE)
To install my theme you will need OpenRecovery v1.2 by Azhad that you can download from HERE...
First Do A Nandroid Backup Just In Case...
So you can download my theme from HERE...
Mirror in multiupload.com HERE...
In .zip file you will find 3 folders (apps, CMTheme and framework).
Take all the .apk from my apps folder and put them in /sdcard/OpenRecovery/azhad/theme/apps
Take framework-res.apk file from my framework folder and put it in /sdcard/OpenRecovery/azhad/theme/framework
Take the forder CMTheme and put it as it is in root of your sdcard
Then reboot your Milestone in Recovery mode and from Azhad's OpenRecovery go to Theme menu - Install Theme to install my Theme...
Then restart your phone.When your phone reboots, go settings - CyanogenMod settings - User interface - Tweaks extras - Select a theme and select kalagas.
Then restart again your phone.... and here you are with my theme....
I have to say that i' ve changed almost every icon in a lot of .apks (which can you see in screenshots) and almost every icon in framework-res.apk. So you understand that it took me a lot lot time to finish my work....
For full screenshots please go HERE...
To see a small sample here is some screenshots:
I don't have any kind of responsibility if something happens to your Phone...
If you like my work, feel free to buy me a beer...
Click to expand...
Click to collapse
Can this work with ROM "alpha 0.03-10.10.27][27 oct 2010]CyanogenMod 6 " semms dose not work with this rom!
Thanks!
Not yet.... If you see in description you will see it's only until 0.02 releases...
But soon i will theme the 0.03 releases too....

[APP] Mms.apk Contact Box Fix for CodeROM

I patched a copy of the Mms.apk to remove the green bars behind the contact photo.
Tested with CodeROM NexusAce and CodeROMv2, should work CodeROMv1.
Note:
Skins feature is disabled.
Instructions:
1. Download the modified Mms.apk (Attached file)
2. Make a backup of your old Mms.apk in /system/app (Use Root Explorer).
3. Mount /system/app as R/W
3. Copy the modified Mms.apk to /system/app
4. Set the permissions to ---rwxr-x
5. Chane the file owner and group to 0 - root
6. Reboot
7. Hit the Thanks button if it worked
Update:
- Smaller file size.
Maybe i can help or give you an idea:
1. The Skin Option in menu is activated via the preferences.xml included in the MMS.apk file (you can copy from XXKPE, and try to install the MMS.apk, however whatever skin you select it does not change) which i think you need to do the next part.
2. The actual implementation of the skin is under the coding of classes.dex, which i dont know how to decompile.
thanks, it works
i will be waiting for the update for the skins
worked for me!
Thanks a lot!
vertcam9 said:
2. The actual implementation of the skin is under the coding of classes.dex, which i dont know how to decompile.
Click to expand...
Click to collapse
thanks for this, can't get past this one though...
I found out that there must have been a miss declaration of an image res file in the class.dex or in the Mms.apk's before compiling. Its calling progressbar_indeterminate4.png instead of quickcontact_badge_small_unpressed.9.png or quickcontact_badge_unpressed.9.png from the /system/framework/framework-res.apk file.
Updated the first post.
- Smaller file size.
- Still no support for skins [May not be updated to support this feature. Sorry]
help!!
after reboot message icon in now inside menu and gone in the launcher, however the green thing is gone.
now there are only 3 icons in launcher ( keypad, contacts, menu )
update:
thanks i got fixed it myself, btw it is working but no skins.
mikko3024 said:
Updated the first post.
- Smaller file size.
- Still no support for skins [May not be updated to support this feature. Sorry]
Click to expand...
Click to collapse
Mikko3024, how did you get by the problem? was it via the XML files?
vertcam9 said:
Mikko3024, how did you get by the problem? was it via the XML files?
Click to expand...
Click to collapse
The problem is in the classes.dex of the apk.
I copied a properly working classes.dex from another version of the Mms.apk and patched the res files to match the appearance of CodeROM's Mms.apk. But the new classes.dex either does not support the skin features or there is something in conflict.
As mentioned by vertcam9, preferences.xml activates the skin selection in the settings part of the app, but does not apply any changes whatever skin is selected. Proper classes.dex is necessary.

[Guide]Solving T-Mobile Engine/Cyanogenmod Theme "IMPROPERLY COMPILED" error

[Guide]Solving T-Mobile Engine/Cyanogenmod Theme "IMPROPERLY COMPILED" error
If u r using Cyanogenmod or Metamorph then u might see an error "THEME IMPROPERLY COMPILED" while applying some themes... Sometimes it might get fixed by just restarting the phone but many times it doesnt... There is a simple fix for this...
Requirements:-
1. Windows PC
2. Java Installed
Get one from here...
http://www.java.com/en/download/manual.jsp
3. apktool
Download here http://www.multiupload.com/OV96GE5JOL
4. Autosign Tool http://www.mediafire.com/?recnmyzergg
5. .apk file of the theme which you want to make work (there are many tools to create apk file of apps you downloaded like Astro file manager or Estrong file manager)
Huh.. That was quiet simple...
Procedure:-
1. Install the java you downloaded
2. Extract the apktool & autosign you downloaded (i assume you extracted it on desktop for convenience)
3. place .apk file of the theme in the same folder where you extracted apktool & rename it to something simple like theme.apk (in my case it is desktop/apktool)
4. open command prompt (type cmd in run)
5. Go to the location with command prompt where you extracted the apk tool
(in my case type cd desktop)
6. then type cd apktool ( I assume there is no sub folder inside apktool folder)
7. Now type apktool d theme.apk
It will process some files and in less then a minute it will be completed
8. Now type apktool b theme
9. Open the folder apktool on desktop (with windows explorer and not with cmd)
Go to folder "Theme", Open folder "dist"
10. Copy the file "theme.apk" inside dist folder and paste it in autosign folder on desktop (which you extracted earlier)
NOTE:- There shouldn't be any other .apk file except theme.apk in autosign folder)
11. Now open sign.bat and press any key to sign the app...
YOU ARE DONE
A file will be generated with name "your_app_signed.apk" copy this to your phone and install this (obviously after removing the theme which was giving error)
Now it should work without any problems..
NOTE:- In theme manager you wont get display image of the theme instead you will get a black coloured image with name @string/theme_name....
This is the theme you just installed (I dont know y no image is shown in display after recompiling)
IT MIGHT SEEM A DAUNTING TASK FOR THE BEGINNERS BUT IN SHORT WHAT I HAVE DONE IS EXPLAINED YOU THE WHOLE PROCESS IN DETAIL OF DECOMPILING & COMPILING THE APK FILE AND THEN SIGNING IT
Alternative
Thanks for solution friend, u can also add this aternative fix to ur post.
Download LCD densiy modder pro. change dpi to 140 reboot. install theme & apply. change dpi to default reboot. OK
Tested number of times on many roms, and works fine...
Found here: http://lavabite.blogspot.in/2012/10/cm-theme-chooser-fix-for-theme.html
AmAnzx said:
Thanks for solution friend, u can also add this aternative fix to ur post.
Download LCD densiy modder pro. change dpi to 140 reboot. install theme & apply. change dpi to default reboot. OK
Tested number of times on many roms, and works fine...
Found here: http://lavabite.blogspot.in/2012/10/cm-theme-chooser-fix-for-theme.html
Click to expand...
Click to collapse
Actually changing screen density changes the overall screen perspective, so its not good to recommend it, everything looks too small
fundoozzz said:
Actually changing screen density changes the overall screen perspective, so its not good to recommend it, everything looks too small
Click to expand...
Click to collapse
After applying theme returns to 160 dpi and everything looks normal.
Whenever I try to apply the 140 DPI setting, my boot screen screws up and I'm stuck in a boot loop. Running unofficial JB ROM on LG Phoenix. Any suggestions?
SiberianLeopard said:
Whenever I try to apply the 140 DPI setting, my boot screen screws up and I'm stuck in a boot loop. Running unofficial JB ROM on LG Phoenix. Any suggestions?
Click to expand...
Click to collapse
idk this error hapens on my thrive (same as phoenix) when im runing 4.2.1 cm10.1
why dont they work without the stupid fixes, the themes should work without them

[GUIDE]Ultimate Guide[Decompiling][9 pngs][Theming]

The Ultimate Guide​
Preliminary Requirements:-
PC with Windows(Please avoid Windows Vista)
Java JRE or JDK
APK Multitool
framework-res.apk, SystemUI.apk, twframework-res.apk, com.htc.resources for installing
7-zip
Notepad++
Android Device for testing
Photoshop or equivalent image editing software
android-sdk(for 9 png editing)
Lots and lots of patience and mind
What this guide includes:-
Main Part:
1. Easiest Decompiling and Recompiling Guide *Must Read before continuing*
Theming Part:
2. APK png resources(General Location of General pngs)
3. Explanation of 9 pngs and how to edit or make them
4. How to Batch edit pngs (Not 9 pngs) (Changing color, etc)
All of us like if all things are present in one guide
This guide covers topics like decompiling, 9 png editing, theming in a very newbie friendly manner.
I have worked upon this guide to make it so that no problem arises during performing certain tasks which I faced.
I have covered workarounds such that they ensure LEAST no. of errors while performing these tasks.
However, if even then any problem arises, I am always there to help you out :laugh:
Main Part:
Decompiling: [MUST READ]
We are assuming that you have installed JAVA, Android SDK and apk-multitool without any problems
1. Copy your mobile's framework-res.apk, SystemUI.apk and twframework-res.apk in others folder in directory where you have extracted apk-multiool
2. Open Setup.bat. Choose 2 :- Installing Framework-res
{
"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"
}
Setup.bat​
Choose 1 (framework-res.apk)
Choose 2 (twframework-res.apk) [similarly install OEM specific files such as com.htc.resources , etc]
Choose 4 (SystemUI.apk)
Window will close each time you choose an option
You will have to restart Setup.bat each time
3. Now place the apk you want to edit in place-apk-here-for-modding
4. Now open script.bat. (If you see any error, either you haven't installed JAVA and SDK[adb] or they aren't implented, Please install them properly before continuing). Click any key to continue
APK-Multitool Window​
5. You will see the above window. Now, make sure you have installed all frameworks and Compression level is set to 9.
6. Now, we will choose our project. Click 24. A list of files present in place-apk-here-for-modding will be in front of you. Choose any file
7. Click on 9. Now decompiling will be in process.
8. After it is complete, go to projects folder, you will see a folder with the name of apk you decompiled
Decompiled apk example​
If it is decompiled properly, then there will be apktool.yml file in it
9. Do your modifications. Now, you can edit .9.png files (they will be discussed later) and xml files which were uneditable first
You will notice that there will be many new folders which weren't present in compiled form of apk. These all folders are generated from a file called resources.arsc present in compiled form which is absent in decompiled form
Such an example is of values folder which contains crucial xml files like styles.xml, strings.xml, ids.xml, etc
Always open xml files with Notepad++, it will mark commands and syntax making it look aligned and making it easy to understand
Example of decompiled xml file ​
Also, you can edit 9 patch files also which will be changed from now on
Example:-
We will discuss 9 png in detail later on
10. After you have done your modifications and you are ready to recompile the app, choose 11 (Compile System APK) if you are editing System App or 12(Compile Non-System App) if you are editing other than System App
11. a) If System App:-
After some time it will ask that if you want to copy additional files other than signatures to ensure less amount of errors, then choose y
After extracting some files, it will ask you to delete files from keep folder
Simply go to keep folder,
If you edited any pngs and there are many and you are lazy enough to delete one by one, then delete the whole folder in which you edited pngs
If you edited any xml file, then delete that xml file AND ALSO DELETE RESOURCES.ARSC
Why? Because we told that values and several other folders are generated from resources.arsc while decompiling
Now, if we don't delete resources.arsc, the modification we did in values folder will be reverted to original state
After doing this, go to script.bat again and press any key to continue
11. b)If its not system app:
Just recompile it and sign it man through the menu in apk multitool man.
It is easy as hell. Tutorial of non-system app has been ended here
12. Now, you will get another apk name System_ apkname.apk
Open both apks as archives by 7-zip
13. Last and most important step:-
Just drop the files you edited from new apk to old apk in correct folders. By now, you may have understood that resouces.arsc INCLUDES your edited xmls
14. Now, the final apk is not System_apkname.apk but apkname.apk (the original file you started with). Push it and enjoy
This is a work in progress.
Will add more things soon
Don't hesitate to ask any questions about anything
Credits:
@d3cka for teaching best about 9 pngs
@deathnotice01 for helping me
Miscellaneous Google and xda posts
Theming Part​
General APK png Resources
Here I will tell you where to find some pngs to theme your Phone
Note: Here I will tell location of pngs but that may differ based on modification done to your ROM by OEMs or devs. These pngs are found after decompiling or extracting the apk files. For more reference, read this.
In this part, there is only brief information, but for a very good guide, please go here. I haven't covered it all up as d3cka himself has done a marvellous job in making that guide. All the things present in that guide should solve all your queries.
General location of apks:
SystemUI.apk - /system/app/
framework-res.apk - /system/framework/
twframework-res.apk - /system/framework
framework.jar - /system/framework/
lidroid-res.apk - /system/framework/
Click to expand...
Click to collapse
Variable list:
I have referred to some locations as drawable-xdpi. X here stands for
X: m, l, h, xh
Meaning pngs can be in drawable-mdpi, drawable-hdpi, drawable-ldpi, drawable-xhdpi depending on resolution of your phone
In some places, I have just added * in order to fill spaces that are not common in each png
[?] means maybe only for GB or Samsung
Click to expand...
Click to collapse
Battery Icons -
(i)Ice Cream Sandwich/Jelly Bean: SystemUI.apk/res/drawable-xdpi/stat_sys_battery**.png
(ii)Gingerbread: framework-res.apk/res/drawable-xdpi/stat_sys_battery**.png
Status Bar icons - SystemUI.apk/res/drawable-xdpi/
Note, some, however very few status bar icons are also present in framework-res.apk
Platlogo - framework-res.apk/res/drawable-nodpi/platlogo*.jpg
(image that pops up when repeatedly clicked on Android Version)
In Gingerbrad, its a single file but in ICS and JB, they are many images.
Default Wallpaper - framework-res/res/drawable-xdpi/default_wallpaper.jpg
Default Lockscreen Wallpaper[?] - framework-res.apk/res/drawable-xdpi/zzzzzzzz_default_lockscreenw.jpg
On stock based HTC roms, the default wallpaper location is specified in the.build.prop (so the dev can either swap out the image, or change the path)
The default wallpaper path for HTC roms is /system/customize/resource/wallpapers_a_00.jpg (Thanks to CNExus)
Spinners[GB] - framework-res.apk/res/drawable-xdpi/spinner_****_**.png
(The loading circles)
Menu Icons - framework-res.apk/res/drawable-xdpi/ic_menu_**.png
These icons may also be present in twframework-res.apk for Samsung Touchwiz ROMs
Notification Toggles
(i)With lidroid 15 toggles : lidroid-res.apk/res/drawable-xdpi/
(ii)Without lidroid mod : SystemUI.apk/res/drawable-xdpi
These were some general pngs of system apps that may be used to theme the phone. You can find respective pngs to theme in their apks.
Will add more soon...
9 PNG Discussion
These are special types of pngs that can be stretched to fit the need of program or different scenarios or cases. It contains 1 pixel lines on each border of different lengths for different things
As told above, we can't edit 9 png in compiled form as it will lose these lines which define its properties. So, we first need to decompile apk in order to edit 9 pngs
So, after decompiling apk, open 9 png in Photoshop and select the part inside that 1 px border and edit anything you want (Hue, Saturation, Bevel, Emboss, ANYTHING)
Now save it (save it as a normal png and then rename it as .9.png because photoshop doesn't recognise 9 png extension and image will loose its RGB format)
Explanation of 9 png:-
You can read this for more information
If you have doubt that you have gone wrong somewhere or you have made a new png from scratch and want to test if it is correct or not:
(Check all 9 png files you edit as they can cause Force Closes or bootloops)
Go to folder where you extracted android-sdk and go to tools folder and open draw9patch.bat
A window like this will open up:-
Drop you 9 png here
A new window will open with you 9 png on it
Tick on show bad patches
If you see red rectangles, you have a bad 9 patch image. You will need to delete or add those lines in png to remove all red boxes. If you want to delete, press Shift and start moving cursor over lines you want to delete. You can choose method of hit and trial to remove all rectangles and move the lower scale to see how your image size is adjusted
Or you can do what I do:
1. Remove all lines
2. Add single dot on top centre and left centre border of image (That can be taken as stretchable area)
3. Add lines on right and bottom of image where you want to fill content. Now, click on Show Content
The purple area you see in image is the content area (Text will be filled there. Eg:- Popup Menu)
4. Now, you can adjust these lines acoording to your need that what you want for stretchable area and content area until an unless there comes an red triangle
5. When it is done. Save the file. DONE
Easy, isn't it?
That's what theming is
Batch Editing pngs in Photoshop
Well the scenario is you have 200 pngs and you want to change their color, hue, add effect to them, etc. Definitely not worth the time you will spent doing this one by one. So, here, I will cover how to batch apply same edits on to your infinite pngs. Here, I am taking example of changing color of battery png from green to purple, you can apply any attribute to your image in the same way. I repeat it is not for .9.png files. Read above guide for reference
Let's start
1. First copy all your pngs you need to edit in a separate folder. I have made a folder named Battery Base and pasted my all pngs of battery there.
Now create another folder where your edited pngs will be saved. For eg:- Battery Done. (Don't create it inside Battery Base folder)
2. Open Adobe Photoshop and Choose Window>Actions or Alt+F9
3. Click on the note like file (Create new Action)
Rename it to anything you want . I have chosen Battery_color
Then click on Record. Now, you will see that red circle is enabled and now everything you do on image will be recorded and will be applied on each image.
4. Now, do this very carefully, don't miss any step.
We will do every thing that we want Photoshop to do with each file we want to edit.
a) So, first we want Photoshop to open the image. So , click on Open and choose any png from Battery Base folder (Choose a file with more color so that you know what color exactly your file will be after editing. That is why I chose 90 percent battery here).
b) Now, after opening, we want to change Color of png from green to purple. So, choose Image>Adjustment>Hue and Saturation or Ctrl+U
A dialog box with 3 sliders will appear. Move upper slider to change color. You can move other slider to change saturation and brightness if you want. Now, if you got it right, click on OK.
Every step of yours is being recorded, so don't do unnecessary stuff you don't want to do on other images. Nonetheless, if you have done it, then Drop down the Battery Base Action in action palette and you will see your every action there, If you want to delete any action , you can delete it from there. You can also add any action before pre completed action by clicking above that action and performing it.
Now, you can do anything you want to be done on your rest of pngs.
c) Now, we want Photoshop to save this png to carry on working on others. So, Go to File>Save as... and save it as a png in Battery Done folder. Photoshop will ask you to choose, so choose smallest compression and no interlace.
d) Image is saved but we also want Photoshop to close the png so that it does not open 200 tabs for editing 200 pngs. So, click on close (Small cross on title bar of png). If, it asks that do you want to save changes to png . Say no, because if you say yes, the png in Battery Base will be changes and when batch processing is done, that png in Battery Done will be of different color that all others.And also, your all green pngs in Battery Base folder will turn purple too. But we want purple images in Battery Done and green in Battery Base.
5. Now, we hae done what we want, so, we will stop recording the Action. Click on that square in Actions Palette.
6. Fun Starts. Now we will do the batch processing.
Go to File>Automate>Batch
In the dialog box, Choose the action to be Battery_Color (or obiviously any action you created)
Source folder: Battery Base
Destination Folder: Battery Done
Tick both Override Action 'Open' commands and Override Action 'Save as' commands
Click on OK. Sit back for 3 to 5 minutes(204 pngs) and TADA
You can apply any action in same way. Such as bevel, glossy, pale, etc to innumerous amount of pngs
Why APK-Multitool?​
Yeah, why not just apktool or VTS (Virtuous Ten Studio)
But, when working with certain system apk files, there is a feature of APK Multitool that comes in very handy and that is, making a keep folder and asking you to delete stuff which you modded to then make an apk file. Certain files in apk do not need to be touched which can be easily controlled by APK Multitool.
Note: This is no way against VTS in any form
As I was making a guide which ensured least amount of errors, I chose APK Multitool, because we can easily fix those known errors od Status Bar disappearing or this and that :victory:
apktool is very minimalistic but not too user friendly for a newbie. And it may return with huge amount of errors if not used correctly.
So, APK Multitool is a perfect balance in between simplicity and work power
FAQ
Oops
Last One left
Awesome guide areeb..
Will include this guide in the index for sure
-asdf-
Will be a great guide for me
Sent from my GT-I9100 using Tapatalk 2
Great guide.
Good info. Nice work :good:
This is a good guide, very good one. But, I've found that the latest APK Multi Tool doesn't work for Android 4.2.2 apks.
Does this one work? Any solution?
krazzyvishal said:
This is a good guide, very good one. But, I've found that the latest APK Multi Tool doesn't work for Android 4.2.2 apks.
Does this one work? Any solution?
Click to expand...
Click to collapse
Thanks for notifying
You can try downloading this - http://d-h.st/cze and replacing the previous files with the new files in others folder
It's by Rizal Lovin from his guide here http://forum.xda-developers.com/showthread.php?t=2195680
Or you can notify the bug (if it's a bug ) here http://forum.xda-developers.com/showthread.php?t=1310151
Best theming guide i ever seen
i love ur ,9 pngs method and how u explained us more deeply about them
Thanks
krazzyvishal said:
This is a good guide, very good one. But, I've found that the latest APK Multi Tool doesn't work for Android 4.2.2 apks.
Does this one work? Any solution?
Click to expand...
Click to collapse
Try some of the suggestions in my guide. Link below.
From me to you.
great guide for starters
all hail to areeb
iamareebjamal said:
So, after decompiling apk, open 9 png in Photoshop and select the part inside that 1 px border and edit anything you want (Hue, Saturation, Bevel, Emboss, ANYTHING)
Click to expand...
Click to collapse
Here's what i do if i want to keep the .9.png border intact:
Open my .9.png.
Select>All.
Select>Modify>Border. Set width at 1 pixel.
Select>Inverse.
Edit>Cut.
Edit>Paste special>Paste in place.
Layer>Arrange>Send to back.
This splits the the border from the image allowing you to edit the image freely without affecting the 9patch.
I'll attach my action i created to automate the process.
Extract the action from the zip.
Window>Actions.
Select dropdown menu.
Load actions> select split.9.atn
One final thing. Photoshop has no problems with the .9.png extension. When you save your image (save for web) it will show as .png, just insert .9 into the name. I've never had a problem.:good:
Appreciate! Great guide
dully79 said:
Here's what i do if i want to keep the .9.png border intact:
Open my .9.png.
Select>All.
Select>Modify>Border. Set width at 1 pixel.
Select>Inverse.
Edit>Cut.
Edit>Paste special>Paste in place.
Layer>Arrange>Send to back.
This splits the the border from the image allowing you to edit the image freely without affecting the 9patch.
I'll attach my action i created to automate the process.
Extract the action from the zip.
Window>Actions.
Select dropdown menu.
Load actions> select split.9.atn
One final thing. Photoshop has no problems with the .9.png extension. When you save your image (save for web) it will show as .png, just insert .9 into the name. I've never had a problem.:good:
Click to expand...
Click to collapse
Thanks for suggestions
About last thing, I never said anything about Photoshop having problems with .9.png files
Maybe words appeared different from what they meant
iamareebjamal said:
Thanks for suggestions
About last thing, I never said anything about Photoshop having problems with .9.png files
Maybe words appeared different from what they meant
Click to expand...
Click to collapse
Sorry, my bad. I didn't mean it had problems. What I was trying to say is you can just add the .9 without any problems.
Normally I just copy the nines into a separate folder, work on them, then when saving double click and replace. Doesn't save much time with a handful, but when you have quite a lot it all adds up. Plus you still have the originals incase of an error.
dully79 said:
One final thing. Photoshop has no problems with the .9.png extension. When you save your image (save for web) it will show as .png, just insert .9 into the name. I've never had a problem.:good:
Click to expand...
Click to collapse
I think you're using a step or two more than you need to layer the border, and to save I just merge the layers, save and close.
XperienceD said:
I think you're using a step or two more than you need to layer the border, and to save I just merge the layers, save and close.
Click to expand...
Click to collapse
What steps are they? When it's automated using the action it takes less than a second.
Everyone has their own technique, personally I think merging layers and saving is redundant as they are merged when saved.

Customize Xperia Themes [no computer]

Sometimes someone makes a theme you love, but you wish just one thing was different, or maybe, like me, you have a modded system with dark background, and you apply a theme with dark text on settings dashboard, etc, and you can't read the words. This is what I do about it, (screenshots - Dark Sense theme by @shehabskull). Maybe someone else will appreciate...
** Note - you may not use this method to modify someone else's theme, then re-post it as your own. Always give credit and get proper permission before using a developer's work.
I posted a similar thread a year and a half ago, but seems like Sony theme creator has changed since then, (can't say for sure since I've never used it, but the files and folders in recent themes seem different than they were back then).
This assumes you know something about apktool. If not, that's a different thread. I recommend using ApktoolX for decompile / recompile, and Mixplorer for editing.
1. Install ApktoolX - https://www.androidfilehost.com/?fid=673368273298927619 - and set it up, (check 'root' in settings, make apktool folder, copy framework files and import each one). Also copy whatever theme you want to mod to apktool folder.
2. Decompile theme apk. You will get a folder with a few files and folders in it. One of them is called 'assets', which contains a bunch of zip files. The zips are all apks with zip extension.
3. Make a temp folder somewhere and copy whatever zips in the assets folder you want to mod, (settings, systemui, etc). Change the file extension from zip to apk. Then go back to ApktoolX and decompile those. Now you can mod the values.
4. After making mods, use ApktoolX to recompile. When recompile is done, change the filename back to what it was originally, (whatever.zip). Then copy that zip into the original location in the decompiled theme apk, deleting the one that's already there.
5. Now go back to ApktoolX and recompile the theme. When it's done, you will get a filed called (whatever)_src.apk. Use ApktoolX to sign it, (click on the file and choose 'sign' from the menu). The new file can be installed normally.
Note - occasionally you can change something that will recompile and install just fine, but will cause systemui to crash or something. If so, just boot to recovery, and delete the theme from /data/app.
Also - some themes might have a certain asset you like that another theme doesn't have. You can add them, but you have to modify android manifest xml accordingly, (look at it and you'll see). They're not always cross-compatible, though.
Nice guide.. Keep it up ?
Sent from my E6633 using Tapatalk

Categories

Resources