[Guide]Solving T-Mobile Engine/Cyanogenmod Theme "IMPROPERLY COMPILED" error - Optimus One, P500, V Themes and Apps

[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

Related

[Q] Circular Battery Indicator with % (no App)

edit:
the battery with % is working
but when i use the volume up/down button there is an strange animated image
and when i go in preferences on display i get an error with the process com.android.settings
also i get reboots sometimes
i used FrameworkUtility and the files i added to the post
plz help
Better Dont use it now
you can flash the file (framework-res.apk) with adb in the tools of android sdk
open cmd and type
cd (path like d:\android-sdk-windows\tools)
d: (when its on d
adb push framework-res.apk /system/framework/
adb shell reboot
you can try to make new folder in the root /system/framework and copy the file there, reboot and delete the files, but for me it doesnt worked
i use mdeejays froyo hd 4.3
may work with other builds, but you can try it change your framework with the files und framework utility
-----------------------------------------------------------------------------
Hello Guys,
i want to use a circular battery with %
so far i tried to use the graphics for a circullar battery which i copied into framework-res.apk with adb - this works
then i tried to add the %
i changed this files(tried it with files from diffrent threads) in framework-res.apk with adb
battery_charge_fill.xml
stat_sys_battery_charge.xml
zzz_stat_sys_battery_1.xml
stat_sys_battery.xml
but i then i have the problem that i have no battery indicator anymore or i get a boot loop.
i have read that the xml files are compiled so i decompiled the framework file with apk manager 4.9, packed the files in it but have some trouble to compile it again.i tried just to compress again but it doesnt work
so what is the problem?
compiling, the xml files,the graphics or are there more files i need?
or something else?
i know there is an app but if its possible i want to include this directly.
and i added the files i think are needed to get the full circular battery with % working
yes.. reemplacing framework of course works
but depende what kind of build are using.... for me, is easier to use and change in desire hd builds
Why dont you try replacing the framework-res.apk with one of these in this thread. It looks very similar to what you want and of course, you dont know until you try. I would not try the animated frameworks, just to be on the safe side. Of course, it would help if we knew which build you are using.
i use MDJ FroYo HD v.4.3
i dont want to replace the whole framework i want to know how i can change it on my framework
nokn956120 said:
Why dont you try replacing the framework-res.apk with one of these in this thread. It looks very similar to what you want and of course, you dont know until you try. I would not try the animated frameworks, just to be on the safe side. Of course, it would help if we knew which build you are using.
Click to expand...
Click to collapse
In MDJ Revolution 1.2 causes errors and force close.
have you tried the one from this post:
http://forum.xda-developers.com/showpost.php?p=9644930&postcount=1318
screen shot inc'
by xda member vlad48

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

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

[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

Pure Nexus + Dynamic Navbar?

Hello
I've tested quite a few roms and found a feature I live very much, it's called dynamic navbar - however I've found a Rom that I absolutely love and it's pure nexus, as much as I love it there is a huge downside for me and that's the lack of dynamic navbar.
I have seen a app on play store called "navbar apps" but u don't like it, and I've seen that you can extract the framework and edit via a pc. But is there a way to enable dynamic navbar on PN without those two options? Preferably via the phone.
Thanks
MrCreel said:
Hello
I've tested quite a few roms and found a feature I live very much, it's called dynamic navbar - however I've found a Rom that I absolutely love and it's pure nexus, as much as I love it there is a huge downside for me and that's the lack of dynamic navbar.
I have seen a app on play store called "navbar apps" but u don't like it, and I've seen that you can extract the framework and edit via a pc. But is there a way to enable dynamic navbar on PN without those two options? Preferably via the phone.
Thanks
Click to expand...
Click to collapse
Hello... Either use the mentioned app or do the changes in your framework. But you'll likely have to do it for every updates as the developer often makes change in the framework. Maybe you could maybe kindly make a request to the developer?!
Good luck...
MrCreel said:
Hello
I've tested quite a few roms and found a feature I live very much, it's called dynamic navbar - however I've found a Rom that I absolutely love and it's pure nexus, as much as I love it there is a huge downside for me and that's the lack of dynamic navbar.
I have seen a app on play store called "navbar apps" but u don't like it, and I've seen that you can extract the framework and edit via a pc. But is there a way to enable dynamic navbar on PN without those two options? Preferably via the phone.
Thanks
Click to expand...
Click to collapse
Just follow this 2 guides...
https://forum.xda-developers.com/nexus-6/general/guide-dynamic-nav-bar-android-l-m-n-t3515080
https://forum.xda-developers.com/android/apps-games/guide-enable-pixel-launcher-round-icon-t3536267
Basically you have to edit the framework-res.apk, obviously you have to be rooted, install the requirements on the second link, here I'll summarize the steps I follow, but if you have any doubt read and follow the 2 guides, the second one to decompile and compile the apk and the first one indicates the lines you have to change and the files in which you find them.
List of tools that we need
1. JDK, download it here http://www.oracle.com/technetwork/ja...sp-138363.html
2. Apktool, download it here https://ibotpeaches.github.io/Apktool/
3. Root Explorer
4. Text Editor
STEP 1 - Get the firmware-res.apk
First you need your own device firmware-res.apk, it is located here \Root\System\framework\
STEP 2 - Copy firmware-res.apk to the same folder with Apktool.jar
I recommend locate it on folder easy to located like desktop folder
STEP 3 - Decompile firmware-res.apk
Open CMD on your folder (on windows use [shift + right click -> open command window here]) that firmware-res.apk and Apktool.jar located and run this command
java -jar apktool.jar d framework-res.apk
STEP 4 - Open styles.xml and change values
Navigate to res, values, and open styles.xml with your text editor of choice (located at \framework-res\res\values\styles.xml)
Search for "navigationBar". There will be three instances of it. You only have to change the last two. Change "@colorBlack" to "?colorPrimaryDark" and save your changes
STEP 6 - Open colors.xml and change values
Navigate to res, values, and open colors.xml with your text editor of choice (located at \framework-res\res\values\colors.xml)
Open colors.xml and search for "input_method_navigation_guard". Change "ff000000" to "00000000" and save the file. If you don't change this, the navigation bar will turn black when you open the keyboard
STEP 7 - Compile your framework-res.apk
Code:
java -jar apktool.jar b framework-res -c
STEP 8 - Replace old firmware-res.apk with the new one
Copy your new compiled firmware-res.apk in framework-res\dist to your Android Device \Root\System\framework\. It is recommended to backup the default framework.res-apk first
Note: It is recommended to copy it from recovery, but you can also copy it directy via root explorer but your device will restart instantly
I do not take credit for this guide, do thank the op's if you find it useful.
Also is not perfect as a custom integration but it's something.

Categories

Resources