[APP] Mms.apk Contact Box Fix for CodeROM - Galaxy Ace S5830 Android Development

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.

Related

[HOW-TO] Change Galaxy Tab system font without FontFlip

Being one to never stop changing the look of any of my Android devices I wondered how to change the system font on my Tab. First result was the ability right within the system settings app itself, but more clicking on "Get more fonts" ended up with only pay options. My Tab is rooted with z4 so I though why not see if I can just swap out the files. A simple install of Root Explorer and some file renaming later I had a new font installed on my Tab that even sticks through reboot. Here is how I did it (quite simple really):
Requirements:
- A Galaxy Tab of course, rooted
- Root Explorer, paid market app or other means if you are so inclined
- Your new font in TrueType format on your sdcard with the needed ttf's for regular and bold (eg YourFont-R.ttf and YourFont-B.ttf, etc)
Steps:
1 - Using root explorer, navigate to /system/font and rename DroidSans.ttf and DroidSans-Bold.ttf (I just append ORIG to them)
2 - Still in that directory click the button "Mount as r/w" just under the notify bar on your screen
3 - Navigate back to where your new font is and copy the regular and bold ttf files to /system/fonts
4 - Rename each ttf file as DroidSans.ttf for regular fonts and DroidSans-Bold.ttf for bold fonts
5 - Go to Settings > Display > Set Font and set if to Default
NOTE If Default is already your selected font, select another font and apply then reselect Default and apply and your new font should be visible.
Your new font should now be used as the on screen display font. For reference my Tab is a Bell version and I used the attached font (Ubuntu font) as my new font.
Hope this helps some people.
Cheers
Thanks! Will try this out on my Sprint Tab later.
Any luck finding a way to do it without actually replacing the font? Surely if it allows market download of fonts then you can just add new ones and update some list somewhere...
Sent from my GT-P1000 using Tapatalk
alias_neo said:
Any luck finding a way to do it without actually replacing the font? Surely if it allows market download of fonts then you can just add new ones and update some list somewhere...
Sent from my GT-P1000 using Tapatalk
Click to expand...
Click to collapse
I didn't fully replace the original font as I renamed the original files. This is the way I was able to use the built in font switching tool without spending money on font packs. Only drawback for me is that the font list will only ever be 2 fonts for me, Default and Helvetica Neue Something. I originally changed it as I really like the Ubuntu font on my Desire and wanted to sue it on the Tab.
Or just grab any font apk from this thread!
alias_neo said:
Any luck finding a way to do it without actually replacing the font? Surely if it allows market download of fonts then you can just add new ones and update some list somewhere...
Sent from my GT-P1000 using Tapatalk
Click to expand...
Click to collapse
Create a new folder on sdcard (fonts) under that folder create 2 more 1) original 2) custom fonts or (what ever fonts u r using) go back to system/fonts and copy the original and save them on sdcard/original now download the fonts to (custom folder created)
Copy the fonts go to system/fonts and paste (Before you do this write the permissions )
After you paste change the permissions and you are done
Now go to display / fonts and/ change them to default
Happy fonting lol
bluemonde said:
Create a new folder on sdcard (fonts) under that folder create 2 more 1) original 2) custom fonts or (what ever fonts u r using) go back to system/fonts and copy the original and save them on sdcard/original now download the fonts to (custom folder created)
Copy the fonts go to system/fonts and paste (Before you do this write the permissions )
After you paste change the permissions and you are done
Now go to display / fonts and/ change them to default
Happy fonting lol
Click to expand...
Click to collapse
I'm not sure I follow your explanation here. Is there a way to just add fonts to the font folder and they show up?
Uprightmusic said:
I'm not sure I follow your explanation here. Is there a way to just add fonts to the font folder and they show up?
Click to expand...
Click to collapse
Hi the option to paste the font folder seems lost when I am opening the sd card ? Which program are you using to paste it into? Also I tried the first suggestion, renaming the fonts, but it says ...system file is read only? Your help is much appreciated.
Many thanks Devarsi
Hi the option to paste the font folder seems lost when I am opening the sd card ? Which program are you using to paste it into? Also I tried the first suggestion, renaming the fonts, but it says ...system file is read only? Your help is much appreciated.
Many thanks Devarsi
[/B]
bluemonde said:
Create a new folder on sdcard (fonts) under that folder create 2 more 1) original 2) custom fonts or (what ever fonts u r using) go back to system/fonts and copy the original and save them on sdcard/original now download the fonts to (custom folder created)
Copy the fonts go to system/fonts and paste (Before you do this write the permissions )
After you paste change the permissions and you are done
Now go to display / fonts and/ change them to default
Happy fonting lol
Click to expand...
Click to collapse
DAMN I forgot to change back the permission and now my Tab is looping boot.. AARRGGHHH
heavylildude said:
DAMN I forgot to change back the permission and now my Tab is looping boot.. AARRGGHHH
Click to expand...
Click to collapse
Boot into recovery and reflash your rom/kernel.
Tray this one, it's simple
using apk font
http://forum.xda-developers.com/showpost.php?p=12927086&postcount=6

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

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

Issue when trying to mod Mms.apk (BCM CM9 Rom)

Hi everybody,
I use the BCM CM9 2.2U2, and I want to mod the Mms.apk to override the SMS to MMS conversion after 4 texts.
Here is what I did:
- I used Apk-Multi Tool to decompile the Mms.apk.
- I modify /res/xml/mms_config.xml (to be precise, I replace the line "<int name="smsToMmsTextThreshold">4</int>" by "<int name="smsToMmsTextThreshold">100</int>")
- I recompile the apk, answering "y" to both questions and being careful with what Apk Multi Tool told me (basically, I deleted the files I needed to delete in the "keep" folder, ie. mms_config.xml and something.armsc-or-something-like that)
- I push the modded apk to my phone
But unfortunately, after I did that, I could not see the Mms.apk in the app drawer. I checked the permissions and the owner and they were correct (or at least, the same as the working Mms.apk).
I attached the original Mms.apk I'm trying to mod, and the actual modded Mms.apk (which does not work).?
Does somebody have an idea of what's gone wrong?
Thank you in advance!
FrancisFuku said:
Hi everybody,
I use the BCM CM9 2.2U2, and I want to mod the Mms.apk to override the SMS to MMS conversion after 4 texts.
Here is what I did:
- I used Apk-Multi Tool to decompile the Mms.apk.
- I modify /res/xml/mms_config.xml (to be precise, I replace the line "<int name="smsToMmsTextThreshold">4</int>" by "<int name="smsToMmsTextThreshold">100</int>")
- I recompile the apk, answering "y" to both questions and being careful with what Apk Multi Tool told me (basically, I deleted the files I needed to delete in the "keep" folder, ie. mms_config.xml and something.armsc-or-something-like that)
- I push the modded apk to my phone
But unfortunately, after I did that, I could not see the Mms.apk in the app drawer. I checked the permissions and the owner and they were correct (or at least, the same as the working Mms.apk).
I attached the original Mms.apk I'm trying to mod, and the actual modded Mms.apk (which does not work).?
Does somebody have an idea of what's gone wrong?
Thank you in advance!
Click to expand...
Click to collapse
I have the exact same problem! Did you find any solution?
I gave up but I've found a Mms.apk (from the latest CM9 source) which does include a option to not convert SMS into MMS (you have to change it in the settings of the app). But it is for the HTC One X, so I do not know if it works for other devices. I attach it so you can try.
Thank you
Sent from my HTC Desire CDMA using Tapatalk 2
The problem is that all apps must be signed to run on Android. Once you recompile your apk with apktool, you have to sign it with a release key (and optionally but recommended - run zipalign), before pushing it back to your phone.
The android developers guide has an excellent article on creating a set of release keys and using them to sign your apk (the apk just has to be signed with any key, it doesn't have to match the same key the original ROM authors used).

[MOD] Add top number row to Swype

Hello guys,
Since I use a Samsung device, I'm used to the extra number row on top of the keyboard so I modded Swype to have that extra row. However since Swype is to be purchased and not distributed, I'll only tell here how to do it for your legally purchased copy. And this is a bit complicated and for advanced users and you need to be rooted. You also need Root Explorer. Here we go:
1- First buy/download Swype from Google Play.
2- Go to /mnt/asec/com.nuance.swype.dtc-1 folder, copy pkg.apk to your sdcard, rename it to com.nuance.swype.dtc-1.apk.(keep a backup of this file at all times)
3- Go to /mnt/asec/com.nuance.swype.dtc-1/lib folder copy the files (libnmsp_speex.so and libswypecore.so) to your sdcard.
4- Using apktool (I used version 1.52) decompile com.nuance.swype.dtc-1.apk.,
5- Go to decompiled folder\res\xml folder. kbd file pertaining to your language is to be edited, I edit kbd_qwerty.xml for English using Notepad++.
6- Check the attached kbd_qwerty.xml in portrait folder and notice the extra row section I added to the top. You can in fact add secondary characters to numbers or customize the keyboard completely, rearrange letters, add symbols etc.
7- Once done, save the file and go to decompiled folder\res\xml-land folder and edit the landscape for the layout, kbd_qwerty.xml file, notice the attached file in landscape folder.
8- Once done, save the file and go to decompiled folder\res\values folder and edit the dimens.xml file. Here I raise the height of the keyboard and height of the key to 270dip and 54dip respectively, check the top rows of the attached dimens.xml. Also increase the keyboard height for landscape (if you want) by changing the dimens.xml under res\values-land folder.
9- Once done, recompile the folder with apktool, go to decompiled folder\dist folder and copy the apk here to a different folder and rename it to temp.apk.zip
10- Open temp.apk.zip with 7z/winrar and copy the resources.arsc and kbd_qwerty.xml files from res\xml and res\xml-land folders to your PC(obviously keep the 2 files in seperate folders not to overwrite)
11- Then, rename the original apk from step 2 to com.nuance.swype.dtc-1.apk.zip , open with winrar and first delete resources.arsc file, then drag the resources.arsc file from step 10 to the archive, it will be added. Staying in winrar, go to res\xml folder and replace the file with kbd_qwerty.xml from step 10 (the portrait version). Do the same with res\xml-land folder and the landcape file.
12- Once finished rename the file back to com.nuance.swype.dtc-1.apk, don't sign it, don't delete META-INF folder, leave it as it is.
13- Now, on your phone, uninstall Swype. Reinstall it from the apk file on Step 2. Go to /data/app-lib/com.nuance.swype.dtc-1 folder and move the 2 files (libnmsp_speex.so and libswypecore.so) to system/lib folder. You have to mount the System R/W from Root Explorer on this step. Fix the permissions so these 2 files have the same permissions with other files there. If you can't find these files just use the ones from Step 3.
14- Once done, copy com.nuance.swype.dtc-1.apk from Step 12 to /system/app and fix the permissions so that it has the same permissions as other files there.
15- Then delete the com.nuance.swype.dtc-1.apk from /data/app/ folder. Restart your phone.
This should be it if you followed it exactly, tracing and Dragon voice dictation also works. While you're doing all this work (takes 10 minutes by the way), you might also consider changing how Swype looks (theming) and changing many other things like swype thickness, colors etc. Please note that this is for advanced and rooted users and please don't ask me to give you the modded apk, you have to do it on your legally bought version. You might consider doing backups just in case anything goes wrong. Have fun.
And a quick tip: if you swype from swype icon to symbol key(123), arrow keyboard opens up.
You can also add arrow keys by copying arrow keys from kbd_edit.xml, check the 2nd screenshot.
Please hit the thanks button if you think this is useful.
Nice how to. But may u should tell that the latest Android versions store purchased apps in data/app-asec as asec version, this need special procedure to get a apk from the asec format.
Can you please update this tutorial to 4.3 ? I couldn't find the files in the mentioned paths. . I'm on stock rooted 4.3 on gt9500
Sent from my GT-I9500 using XDA Premium 4 mobile app
lesalloum said:
Can you please update this tutorial to 4.3 ? I couldn't find the files in the mentioned paths. . I'm on stock rooted 4.3 on gt9500
Sent from my GT-I9500 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It works same for me on 4.3 stock rooted i9500, maybe you could do a file search to find the necessary folder. Here is another screenshot with the updated Swype(1.6.2.22328), where I made number buttons smaller like original Samsung Keyboard and hide the suggestions bar to save space.
ozkaya said:
Hello guys...
9- Once done, recompile the folder with apktool, go to decompiled folder\dist folder and copy the apk here to a different folder and rename it to temp.apk.zip
....
Click to expand...
Click to collapse
using the current play store version (1.6.3.22544), i decompiled com.nuance.swype.dtc-1.apk (/mnt/asec/com.nuance.swype.dtc-1/pkg.apk) using APKTool 1.52. i made no changes and attempted to recompile without success.
the first error displayed by apktool is:
"C:\Users\Phil\apktool\com.nuance.swype.dtc-1\res\values\arrays.xml:545: error: Found tag dimen-array where item is expected"
i do use APKTool successfully to mod other apps so i am familiar with the process.
QUESTION: what frameworks file are you using when making your mods? are you using a TW ROM frameworks? that's the only other variable i can think of...
EDIT: well, i just tried using TW framework too without success
PhilDX said:
using the current play store version (1.6.3.22544), i decompiled com.nuance.swype.dtc-1.apk (/mnt/asec/com.nuance.swype.dtc-1/pkg.apk) using APKTool 1.52. i made no changes and attempted to recompile without success.
the first error displayed by apktool is:
"C:\Users\Phil\apktool\com.nuance.swype.dtc-1\res\values\arrays.xml:545: error: Found tag dimen-array where item is expected"
i do use APKTool successfully to mod other apps so i am familiar with the process.
QUESTION: what frameworks file are you using when making your mods? are you using a TW ROM frameworks? that's the only other variable i can think of...
EXIT: well, i just tried using TW framework too without success
Click to expand...
Click to collapse
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
ozkaya said:
Latest version of Skype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
i'll give this a shot tomorrow, thanks a lot!
ozkaya said:
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
it works!!!
thanks man, appreciate the help and info!
I've been going nuts trying to edit swype for a week now and still can't seem to get it to work. All I want to do is change the suggested word color and maybe a few other minor color related things. I assumed just changing the color codes in /res/values/styles.xml that seemed to pertain to the holo theme would work but I can't ever get the app to install. Not even sure where to begin to ask for help on this one but if anyone has any advice I'd greatly appreciate it.
Ok I've tried this a hundred times following all the steps completely and it just wont work.
Once I go to install the final apk it always tries to install then sais App Not Installed.
TeknoGodz said:
Ok I've tried this a hundred times following all the steps completely and it just wont work.
Once I go to install the final apk it always tries to install then sais App Not Installed.
Click to expand...
Click to collapse
You don't install the final apk, in fact you can't since the certificate is no longer valid. You copy the final apk in place as in Step 14.
I would love this! I have used Swype for years but I would love a number row. To be honest I have no idea how to follow those instructions! I have a rooted phone - what can I do?
Am I right in concluding that you can't use TB to backup and restore the finished product and this will have to be done manually? I did this on my rooted Note 3 and I keep going back to my stock image because I don't want to have to keep doing the steps when I flash a new ROM or ROM update.
Would I maybe just have to do steps 12 onward every time?
mr.BeBoT said:
Am I right in concluding that you can't use TB to backup and restore the finished product and this will have to be done manually? I did this on my rooted Note 3 and I keep going back to my stock image because I don't want to have to keep doing the steps when I flash a new ROM or ROM update.
Would I maybe just have to do steps 12 onward every time?
Click to expand...
Click to collapse
When you install a new ROM, you install original Swype from apk file then you move the lib files to /system/lib, copy the modded apk to /system/app and delete original apk from /data/app folder. So it is 4 steps once you have the modded apk ready, should take no more than 5 minutes.
thumm138 said:
I've been going nuts trying to edit swype for a week now and still can't seem to get it to work. All I want to do is change the suggested word color and maybe a few other minor color related things. I assumed just changing the color codes in /res/values/styles.xml that seemed to pertain to the holo theme would work but I can't ever get the app to install. Not even sure where to begin to ask for help on this one but if anyone has any advice I'd greatly appreciate it.
Click to expand...
Click to collapse
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
ozkaya said:
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
Click to expand...
Click to collapse
Yeah I realized that after I posted and still nothing. I'm no programmer but I've never NOT been able to change a few things and recompile. Not sure how just changing a few color codes is causing such a problem. Shame such a nice keyboard has such little customization and few themes. Don't get me wrong I like orange but it really doesn't mesh at all with the rest of the UI. Thanks for the reply though.
ozkaya said:
This is similar. Please go through the steps, you don't (can't) install the modded apk, you move it in place.
Click to expand...
Click to collapse
I did all that and it changed the height of the keyboard, but didn't add any additional number row.
kdb_qwerty or whatever it's called is the default that comes up when you install it, right? Becuase I tried again and specifically made sure to use this one and it just wont give me the extra row, just the height.
TeknoGodz said:
I did all that and it changed the height of the keyboard, but didn't add any additional number row.
kdb_qwerty or whatever it's called is the default that comes up when you install it, right? Becuase I tried again and specifically made sure to use this one and it just wont give me the extra row, just the height.
Click to expand...
Click to collapse
It depends on your system language. Try kbd_qwerty_panlatin.xml.
ozkaya said:
Latest version of Swype has incompatible tags with Apktool. What you do is go to all the lines that give error and change them to <string-array>. Then it compiles.
Click to expand...
Click to collapse
Thank you for this change, this is exactly what I was looking for to compile.
Once again my Swype is blue!!! :victory:
here's my creation, what do you guys think?
the theme is "Lucid" from the pay store: https://play.google.com/store/apps/...lucid&pcampaignid=APPU_8szYUoedK9PNsAThnoDQDQ

[FONT] CyanogenMod Hexolibre font for any device

This is the official CyanogenMod's theme Hexolibre font. I have extracted all the font files from the Hexolibre app itself and put all of them in a *non flashable* zip.
I tested this on my phone (VS985 running Resurrection Remix 7.1.1 v5.8.1). I saw that the colon on the lock screen and the Dollar icon ($) on keyboard is appearing as a question mark (?). Other than that, everything is working great. All the special symbols, exponential numbers, fractions etc are working too.
_INSTRUCTIONS:_
1) Take a backup of all the files which are starting with 'Roboto' such as 'Roboto-Italic'.
2) Download the zip file and extract all the *.ttf files to /system/font.
3) Set permissions to rw-r-r (644).
4) Reboot and enjoy! \(^O^)/
How to fix the semi colon? Any ideas?
abefaxe said:
How to fix the semi colon? Any ideas?
Click to expand...
Click to collapse
I am not a developer. I just pulled the original files from CM 13 ROM, renamed and put them all in a zip file. I have no idea how to fix it. Sorry
Sorry to necro, but for anyone still looking to do this I fixed it with a font editor. The colon in the clock is in Roboto-Light.ttf, so you can patch 0xEE01 with another colon yourself for any font, or if you are trying to specifically get that awesome Hexolibre font (aka Lato, my favorite system font) just use the attached already-fixed Hexolibre fonts. If you have already replaced them all and just want to fix the lock screen colon, you just need to replace the Roboto-Light.ttf file. Enjoy!

Categories

Resources