This mod modifies the power_profile.xml in framework-res.apk. The values are used in Battery Usage to display how much battery has been used. The values LG used are way off, most notable is the Cell Standby and Phone Idle bug which reports using almost all the battery.
The values I have used are my estimates for battery consumption. I based this on the power_profile.xml values from the Nexus and Galaxy i9000, then modified a bit to what I think is correct based on readings from Power Tutor. Feel free to change any values you think are incorrect.
Please note that the framework-res.apk changes for each rom and for each build of a specific rom. Do not use a mod'd file for another rom or another build.
This is my mod'd power_profile.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">81</item>
<item name="bluetooth.active">142</item>
<item name="bluetooth.on">0.3</item>
<item name="bluetooth.at">35690</item>
<item name="screen.full">256</item>
<item name="wifi.on">4</item>
<item name="wifi.active">202</item>
<item name="wifi.scan">202</item>
<item name="dsp.audio">88</item>
<item name="dsp.video">88</item>
<item name="radio.active">185</item>
<item name="gps.on">108</item>
<item name="battery.capacity">1500</item>
<item name="radio.scanning">88</item>
<array name="radio.on">
<value>3.4</value>
<value>3.4</value>
</array>
<array name="cpu.speeds">
<value>300000</value>
<value>600000</value>
<value>800000</value>
<value>1000000</value>
</array>
<item name="cpu.idle">1.4</item>
<item name="cpu.awake">44</item>
<array name="cpu.active">
<value>85.3</value>
<value>154.1</value>
<value>205.4</value>
<value>259.0</value>
</array>
</device>
How to install:
1. Pull your existing framework-res.apk file
2. Download/Install 'APK MultiTool v1.02 from http://apkmultitool.com/
a) Run Script first to make the folders.
b) Place your framework-res.apk file in the folder called 'place-apk-here-for-modding'
c) Use Option 25 to select current project, select framework-res.apk
d) Use Option 9 to decompile the apk
e) The decompiled file will be placed in the projects folder
f) Open projects\framework-res.apk\res\xml\power_profile.xml with notepad
g) Copy the above xml code and replace the contents, then save your file.
h) use option 11 to compile the file (If you get compile errors complaing about can't find aapt, download from the same website 'APK Manager 5.02'. Copy the file from other\aapt.exe into your apk_multitool folder.)
i) When asked if it is a system file, enter y
j) When asked if you want to copy additional files, enter n (If you use this option, it will rebuild the apk incorrectly)
3. In the 'place-apk-here-for-modding' there will be a new file called 'unsignedframework-res.apk'. Open this with 7zip, also open your original framework-res.apk in 7zip.
4. Drag the file called resources.arsc from the unsignedframwork-res.apk window into the framework-res.apk window, overwriting the existing file.
5. In both 7zip windows, navigate to res\xml folder, and drag the file called power_profile.xml from the unsignedframwork-res.apk window into the framework-res.apk window, overwriting the existing file.
6. Your framework-res.apk has now been modded and can be pushed to the phone.
To build an update.zip flashable from CWM
1. Download Update.zip 2.0 Modifier/Creator from http://forum.xda-developers.com/showthread.php?t=717437
2. Download my cwm zip for Temasek build 56 from the link below
3. With 7zip, extract the contents of my update.zip file and place them in the Update-Zip_Packager\placehere folder. There should be 2 folders, META-INF and system.
4. Navigate to system\framework and delete my framework-res.apk file. Copy your mod'd version into this folder.
5. If you plan to upload your mod'd file for others to use, edit the file META-INF\com\google\android\updater-script with notepad and change the line ui_print("temasek's p970 KANG build P20-56"); to display the rom/build you've modded.
6. Run the script in Update-Zip_Packager and select option 2
7. Rename the update.zip file with rom/build numbers, copy to the SD card of your phone and flash through CWM. Remember to nandroid backup before flashing. Also recommended to wipe Dalvik cache.
For anyone running Temasek Self-Kang #56, you can flash my file through cwm.
Download from: http://www.mediafire.com/?d210riqatvgv9k9
Enjoy.
Very nice, we need more of this things (if it works). Thanks for sharing.
Thanks for sharing.
Will try this on my Marvel ROM.
thanksssss for sharing
First of all, thanks for sharing.
jason600 said:
This is my mod'd power_profile.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="none">0</item>
<item name="screen.on">81</item>
<item name="bluetooth.active">142</item>
<item name="bluetooth.on">0.3</item>
<item name="bluetooth.at">35690</item>
<item name="screen.full">256</item>
<item name="wifi.on">4</item>
<item name="wifi.active">202</item>
<item name="wifi.scan">202</item>
<item name="dsp.audio">88</item>
<item name="dsp.video">88</item>
<item name="radio.active">185</item>
<item name="gps.on">108</item>
<item name="battery.capacity">1500</item>
<item name="radio.scanning">88</item>
<array name="radio.on">
<value>3.4</value>
<value>3.4</value>
</array>
<array name="cpu.speeds">
<value>300000</value>
<value>600000</value>
<value>800000</value>
<value>1000000</value>
</array>
<item name="cpu.idle">1.4</item>
<item name="cpu.awake">44</item>
<array name="cpu.active">
<value>85.3</value>
<value>154.1</value>
<value>205.4</value>
<value>259.0</value>
</array>
</device>
Click to expand...
Click to collapse
Would you mind sharing how you arrived at those values?
jason600 said:
How to install:
<snip>
4. Drag the file called resources.arsc from the unsignedframwork-res.apk window into the framework-res.apk window, overwriting the existing file.
5. In both 7zip windows, navigate to res\xml folder, and drag the file called power_profile.xml from the unsignedframwork-res.apk window into the framework-res.apk window, overwriting the existing file.
6. Your framework-res.apk has now been modded and can be pushed to the phone.
Click to expand...
Click to collapse
Why is it important to replace the files in the original framework-res.apk, instead of just using the new one?
1aca said:
Would you mind sharing how you arrived at those values?
Click to expand...
Click to collapse
I started with the power_profile.xml from the Samsung i9000 (pretty much the same hardware as the Optimus Black, also the same one the Nexus uses). Some of the values didn't look right to me, for example wifi seemed to low. I used Power Tutor to show how much battery was being used for the screen at min/mix, wifi/wifi scanning, gps and processor (values in Power Tutor are Mw), then converted to mA (values in power_power.xml use mA). All other values I left alone.
As far as I'm aware, nobody has done a full power profile for our OB (connecting the battery to a multimeter and recording battery drain for diferent things). If/when someone does, we can use this values to get a more accurate display.
1aca said:
Why is it important to replace the files in the original framework-res.apk, instead of just using the new one?
Click to expand...
Click to collapse
I replace the files in the original framework-res.apk to workaround a bug in APK MultiTool 5.02. When compiling the apk, if you use the option to keep unmodified files, APK MultiTool puts a new folder in the apk called build, with the unmodified files instead of just replacing. The method I use is a manual workaround to do the same thing correctly. The reason to keep unmodified files is to reduce the possibility of errors with complied/signed files.
Has someone tried this? I think that battery monitor show the time an app has been on, not the power it consumes, so is understandable that Idle and sleep show the most time as this are almost always ON.
re4lsk said:
Has someone tried this? I think that battery monitor show the time an app has been on, not the power it consumes, so is understandable that Idle and sleep show the most time as this are almost always ON.
Click to expand...
Click to collapse
Yes, I changed the power_profile.xml in my ROM. So far it's looking better than the stock one.
Why would a battery usage app care about used up time instead of used power? That's nonsensical. It's like comparing the energy requirements of a person who's training 6 hours a day with that of someone who sleeps 18 hours a day by comparing the times and not taking into account the energy consumption during that time. It's beyond ridiculous.
1aca said:
Yes, I changed the power_profile.xml in my ROM. So far it's looking better than the stock one.
Why would a battery usage app care about used up time instead of used power? That's nonsensical. It's like comparing the energy requirements of a person who's training 6 hours a day with that of someone who sleeps 18 hours a day by comparing the times and not taking into account the energy consumption during that time. It's beyond ridiculous.
Click to expand...
Click to collapse
dude, that was I thougth, just cuz when you click an activity in the battery manager(the stock that cames with any rom) it just shows the time the app has been running. battery monitoring its not my thing, I prefer performance rather than battery (but a balance between them is what I'll look) just was asking if it works to add this to my rom.
PS to 1aca: relax, breathe in and breathe out...
re4lsk said:
Has someone tried this? I think that battery monitor show the time an app has been on, not the power it consumes, so is understandable that Idle and sleep show the most time as this are almost always ON.
Click to expand...
Click to collapse
For apps, it shows how much processor usage (not time used) that app has used and bases power usage for that on the values supplied for the processor. For example, if an app max's out the processor for 10 minutes, it is obviously using more power than an app that sits idling for 10 minutes.
Cell standby uses a couple of mA, phone idle is when the processor is asleep and uses next to nothing. Compare that with the screen on max at approx 256 ma or wifi using about 200 ma when active. If LG's values were correct, we'd run through our batteries in a couple of hours of standby, without even turning on the phone!
Is there an easier way to do this?
AysBerg said:
Is there an easier way to do this?
Click to expand...
Click to collapse
Ask the dev of whichever rom you use to include it in the rom.
Dunno why but ICS use non-traditional cpu speeds. It's the same as CM10 as it was based on KU5900 ICS. https://github.com/CyanogenMod/android_device_lge_p970/commit/740f579dc1001d223139a1dc1b7d72be8f0bb10c
It's using 100mhz, 200, 400, 800, 1ghz... Any known problem with this?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Can someone please make a flash able zip of the mod and upload???
Thanks in advance
Sent from my Potato
gabwerkz said:
Dunno why but ICS use non-traditional cpu speeds. It's the same as CM10 as it was based on KU5900 ICS. https://github.com/CyanogenMod/android_device_lge_p970/commit/740f579dc1001d223139a1dc1b7d72be8f0bb10c
It's using 100mhz, 200, 400, 800, 1ghz... Any known problem with this?
Click to expand...
Click to collapse
Shouldn't cause any problems to change, thats what I did when I originally did this mod.
The Battery Usage is not very acurate, it pulls info from batterystats.bin, then does calculations on them, also a lot of things aren't covered, such as GPU, SD, sensors, diferences for 2G,3G etc.
All you can really do is tweak it to what feels right for you.
@Vivek_Vivek. Its not practical to upload a flashable mod as a mod for one rom won't work on another one, every build of every rom needs a separate mod, hence the tutorial to do it yourself. Also, its not needed for CM10/ICS roms, the problem seems fixed in those.
Thanks. I include here in my next rom
Related
{
"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"
}
--==--
As far as I know, this is the first time this has been accomplished on Sense framework for Froyo. I spent a considerable amount of time getting this to work, so I hope everyone likes it. I attempted to make this a MetaMorph theme so it would be easy to apply to any ROM, but I did not have any success. Thus, I will release this with links to framework for different ROMs.
Thanks goes to koush and cyanogen and everyone else that put code into CM6. I started with code from CM6 so it's only fair to show my gratitude for the great dev work they do for this community.
WARNING: I am not responsible for any harm this may directly or indirectly do to your phone. It is always wise to do a backup before applying a mod of this magnitude.
NOTE: You must remove the HTC Lockscreen if you have not done so already. This can be done by running the code below. This mod may also undo some theming you may have done to your rom. After flashing this mod, DO NOT replace your framework-res.apk file with another one or you will end up with a boot loop. I suggest you pull the new one from this mod and theme it manually. Otherwise, run the revert script and then flash whatever theme you want.
Remove HTC lock screen:
Code:
adb shell
mv /system/app/HtcLockScreen.apk /system/app/HtcLockScreen.bak
Install DeskClock.apk:
Code:
adb remount
adb push DeskClock.apk /system/app
Requirements:
You must be using one of the supported ROMs.
Your ROM must be deodexed.
If you are using the HTC clock for your alarms, you will have to install the vanilla clock and use it's alarms instead.
If you have a request for support on another ROM, just ask. I may even put a tutorial together on how to mod your own framework.
Install Instructions:
Remove the HTC lock screen if necessary
Install the vanilla clock if necessary
Download the framework zip for the ROM you are running
Download either the Rotary_Music or Rotary_NoMusic zip
Flash both of the zips in recovery
Reboot
Profit
--==--
Thanks to everyone that has donated
Supported ROMs and Their Framework Zip:
SkyRaider Sense 3.x -- SkyRaider_Sense_Rotary.zip (Mirror)
SkyRaider Vanilla 3.x -- SkyRaider_Vanilla_Rotary.zip (Mirror)
Virtuous 2.6 or Stock OTA -- Virtuous_Rotary.zip (Mirror)
Frankenrom -- FrankenRom_Rotary.zip (Mirror)
Themes:
Smooth Sense 1.0 (framework only; use for stock ROM) -- Smooth_Sense_Rotary.zip (Mirror) -- Original Thread
INCredible REVOlution -- Manup456_REVOlution_1_2r1-INC-rotary.zip
INCredible REVOlution (framework only) -- INCredible_REVOlution_rotary_framework.zip
Theme based on this thread with fixes -- original thread
Fixed Gmail/Voice Search
Fixed emmc not mounting
Lock Screen Options:Sense UI
Rotary w/ Music Controls -- Rotary_Music.zip (Mirror)
Rotary w/ Music Controls & Menu Unlock -- Rotary_Music_MenuUnlock.zip (Mirror)
Rotary w/ No Controls -- Rotary_NoMusic.zip (Mirror)
Revert to Tab Unlock -- Revert.zip (Mirror)
CyanogenMod
Coming soon ...
Complete Roms with Lock Screen:
CyanogenMod 6.0.2 - TouchPro Mod -- cm-6.0.2-Inc-tp-mod.zip
Additional Resources:
Vanilla Desk Clock -- DeskClock.apk
HTC Lock Screen -- HtcLockScreen.apk
TUTORIAL: How to mod your own frameworkFor this mod to work with your framework, you must alter your framework-res.apk file. It requires only editing /res/values/ids.xml and /res/values/public.xml. You need to add lines to both. There are also a couple layouts you need to add to /res/layout. Keep in mind, this tutorial only applies to dinc Sense framework.
Disclaimer: This requires knowledge of some advanced Android tools. I will not explain how to install or use them in this tutorial. I will only outline on a high level what needs to be done.
REQUIRED RESOURCES:
apktool - http://code.google.com/p/android-apktool/
DIRECTIONS:
Decompile framework-res.apk
Make the changes outlined below
Recompile
Open the original apk and delete the /res folder and resources.arsc file
Open up the newly compiled apk and copy over the /res folder and resources.arsc file into the original apk
At this point, you can push it over to your phone for testing
REQUIRED CHANGES:For ids.xml, add the following:
Code:
<item type="id" name="musicControlPlay">false</item>
<item type="id" name="musicControlPause">false</item>
<item type="id" name="musicControlPrevious">false</item>
<item type="id" name="musicControlNext">false</item>
<item type="id" name="fill_parent">false</item>
<item type="id" name="rotary">false</item>
For public.xml, add the following:
Code:
<public type="id" name="musicControlPlay" id="0x0102021e" />
<public type="id" name="musicControlPause" id="0x0102021f" />
<public type="id" name="musicControlPrevious" id="0x01020220" />
<public type="id" name="musicControlNext" id="0x01020221" />
<public type="id" name="rotary" id="0x01020222" />
And ...
Code:
<public type="layout" name="keyguard_screen_rotary_unlock" id="0x01090076" />
<public type="layout" name="keyguard_screen_rotary_unlock_land" id="0x01090077" />
Last, add these two files to /res/layout:
keyguard_screen_rotary_unlock_land.xml
keyguard_screen_rotary_unlock.xml
As always, great work ihtfp69. Do the music controls always stay on screen even if there is no music playing? I'm assuming the controls only work for the default music program?
do i need to install vanilla clock if im using your SR 2.5.2 or SR 3.0?
Nice job ihtfp69. You've been doing good things for the Inc.
You rock......
Sent from my ADR6300 using XDA App
TheWhiteBandito said:
As always, great work ihtfp69. Do the music controls always stay on screen even if there is no music playing? I'm assuming the controls only work for the default music program?
Click to expand...
Click to collapse
They are always on. They will work with whatever your default player is. It works with HTC Music, MusicMod, the stock Android Music, etc ...
zeke1988 said:
do i need to install vanilla clock if im using your SR 2.5.2 or SR 3.0?
Click to expand...
Click to collapse
Only if you are using the Sense version as you likely do not have it installed. It is already included with SkyRaider Vanilla 3.x.
Awesome.
Will this overwrite existing customizations such as status bar mods?
OSully said:
Awesome.
Will this overwrite existing customizations such as status bar mods?
Click to expand...
Click to collapse
It will not undo some status bar mods (like the ones that remove icons from the status bar or change the color of your clock), but may undo some themes like custom battery graphics.
This mod can be applied to any framework, though. It just takes five minutes of work. Currently, I have only done three. I may post a tutorial later if there is interest.
ihtfp69 said:
It will not undo some status bar mods (like the ones that remove icons from the status bar or change the color of your clock), but may undo some themes like custom battery graphics.
This mod can be applied to any framework, though. It just takes five minutes of work. Currently, I have only done three. I may post a tutorial later if there is interest.
Click to expand...
Click to collapse
It did overwrite the Revolution theme on Virtuous 2.6 rom, and I tried overwriting it by reinstalling the theme, which caused a force close on boot up and a boot loop, lol.
Nandroid ftw.
Any theme that includes a framework-res.apk file will either have to be patched or re-applied to the framework in the second post. Just post a request or have the themer pm me. To avoid boot loops, flash the revert script before flashing another theme. It will put things back.
Nothing for CM6?
ihtfp69 said:
Any theme that includes a framework-res.apk file will either have to be patched or re-applied to the framework in the second post. Just post a request or have the themer pm me. To avoid boot loops, flash the revert script before flashing another theme. It will put things back.
Click to expand...
Click to collapse
I meant no disrespect, just throwing it out there for anyone was in my shoes.
Installed this happily on my SR Vanilla 3.0 RC2! It is delightful.
However, what wasn't so delightful was that it removed my black notification bar with circle battery and replaced it with the white vanilla.
"What the heck, I did not authorize this" I say to myself.
I try to reinstall the black notification bar from rom manager and... boot loops
Color me strange but I prefer the black notification bar to the rotary lockscreen with music controls. I'm all about aesthetics!
Good thing I heeded the warnings and made a backup before install
Nice!!
Thanks ihtfp69 !!
Div033 said:
"What the heck, I did not authorize this" I say to myself.
Click to expand...
Click to collapse
lmao!
10char
Blue Theme
For those that might already have a blue theme for SkyRaider 3.1 RC3 I have ported the blue theme over to the new Rotary Framework that ihtfp69 just released. Just install it via Rom manager or recovery. Also make sure that you are running a blue theme or you will just have only parts of the theme blue. I also ported a blue them over to this rom so you can check it out in the theme section. I take no credit for anything that I did. All I did was copy and paste and rename some files. As always great work ihtfp69
File download -----> http://www.mediafire.com/?pbzs4ddjjvwm1cm
Music controls
So I cannot get the music controls to work. I am just useing the default HTC music player. I start to listen to some music then lock the screen and the pause does nothing. Nor do any of the buttons.
This is a real nice mod.
Thanks!
Hello,
I want to change to text color of the popup-menu from black to white.
Here's the reason why:
{
"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"
}
I changed the background graphics from white to black. So the text has to get white.
I just can't find a clue what file to edit.
Would be great if anyone could give a hint.
Thanks in advance!
This should help: http://forum.xda-developers.com/showpost.php?p=8316984&postcount=2297
Thank you so much.
Helps me a lot!
Does this not work in the DX or something? I extracted my framework apk but dont have the value folder nor an styles.xml ??
sniffs said:
Does this not work in the DX or something? I extracted my framework apk but dont have the value folder nor an styles.xml ??
Click to expand...
Click to collapse
To get the values folder it isn't enough to just unzip the apk.
You have to decompile it with APKTool. Then change the xml and compile it back.
However, I got problems with the latest version of the tool. My phone's stuck in a boot loop when compiling with it. The former version 1.3.1 works fine.
This issue is described here.
Also, you have to copy the Manifest file and the META-INF folder from the original framework apk to the new compiled one.
Oh, and another thing.
If you have a menu where you can click on a button named "More", this is what you get:
To make this text become white you have to change
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?[COLOR="Red"]textAppearanceLargeInverse[/COLOR]</item>
</style>
to
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?[COLOR="Red"]textAppearanceLarge[/COLOR]</item>
</style>
I think.
Sorry guy,
but on this way i got the font in menu more not white.
Do you have any other idea to get the text in menu more white?
It doesn't work, if the textAppearanceLarge is black, too.
You can directly make it white via
Code:
<item name="itemTextAppearance">#ffffffff</item>
Thanks a lot Wallla, I've been trying to figure this out (expanded menu > white text) for a few weeks now!
so after doing that, how's your menu>settings>sound working...does it open?
i did this on my rom (cm 6.1 d/s) and menu is black with white text, expanded menus are black with white text, but certain things are force closing due to a layout error...
12-20 13:35:06.860 E/AndroidRuntime( 1015): FATAL EXCEPTION: main
12-20 13:35:06.860 E/AndroidRuntime( 1015): java.lang.RuntimeException: Binary XML file line #2: You must supply a layout_width attribute.
is the brunt of it
beautiful widgets wouldnt work either
sound, call settings, and some other assorted submenus are force closing for me
tnpapadakos said:
so after doing that, how's your menu>settings>sound working...does it open?
i did this on my rom (cm 6.1 d/s) and menu is black with white text, expanded menus are black with white text, but certain things are force closing due to a layout error...
12-20 13:35:06.860 E/AndroidRuntime( 1015): FATAL EXCEPTION: main
12-20 13:35:06.860 E/AndroidRuntime( 1015): java.lang.RuntimeException: Binary XML file line #2: You must supply a layout_width attribute.
is the brunt of it
beautiful widgets wouldnt work either
sound, call settings, and some other assorted submenus are force closing for me
Click to expand...
Click to collapse
Sounds like there's a syntax error in the file. You're sure you made no mistake?
I've no problems at all with the changes described in this thread.
wallla said:
Sounds like there's a syntax error in the file. You're sure you made no mistake?
I've no problems at all with the changes described in this thread.
Click to expand...
Click to collapse
hmmm, i'll check...i cut/paste'd the code on your OP so, if there is a mistake, its on you LOL (joking)
thanks, i'll check
You coppied... But you replaced the old one with it, right?
Just adding it at the bottom doesn't work.
However, I'm sure you already know that.
wallla said:
You coppied... But you replaced the old one with it, right?
Just adding it at the bottom doesn't work.
However, I'm sure you already know that.
Click to expand...
Click to collapse
absolutely
Im on a cm6.2 rom for the eris and i think im missing somthing or not doing somthing, i got the menu to work going into styles.xml and i changed
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
to
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">@color/bright_foreground_dark</item>
to get the text to show and than i changed
verticalDivider">@drawable/divider_vertical_bright
to
verticalDivider">@drawable/divider_vertical_dark
And that got the virtical divider to show. now it all looks great but widgets, widget settings, settings and anything like that fc's, so am i missing somthing? Ohh and im using apk manager
tnpapadakos said:
so after doing that, how's your menu>settings>sound working...does it open?
i did this on my rom (cm 6.1 d/s) and menu is black with white text, expanded menus are black with white text, but certain things are force closing due to a layout error...
12-20 13:35:06.860 E/AndroidRuntime( 1015): FATAL EXCEPTION: main
12-20 13:35:06.860 E/AndroidRuntime( 1015): java.lang.RuntimeException: Binary XML file line #2: You must supply a layout_width attribute.
Click to expand...
Click to collapse
Skyllos said:
Im on a cm6.2 rom for the eris and i think im missing somthing or not doing somthing, i got the menu to work going into styles.xml and i changed
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
to
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">@color/bright_foreground_dark</item>
to get the text to show and than i changed
verticalDivider">@drawable/divider_vertical_bright
to
verticalDivider">@drawable/divider_vertical_dark
And that got the virtical divider to show. now it all looks great but widgets, widget settings, settings and anything like that fc's, so am i missing somthing? Ohh and im using apk manager
Click to expand...
Click to collapse
Now, that you mention apkmanager...
What version of APKTool are you two using? (APKManager is also only using APKTool, in the inside).
Like I described in post #5: With the newest version of APKTool I also have problems. My device even didn't boot up any more.
Try to use version 1.3.1.
im using the vs you post a few pages back
Edit: ohh i didnt realize apk manager is using apktools, which version of ApkTools is in the Apk Manager folder?
Update: i changed ApkTool in the apk manager folder for version 1.3.1 and that created a bootloop
I'm trying to do this on a sense ROM a I had the menu background black at one time but had the same text problem I want to try and see if this will work but I can't for the life of me remember how I changed the menu background to black do you guys have any ideas? thanks in advance!
Skyllos said:
im using the vs you post a few pages back
Edit: ohh i didnt realize apk manager is using apktools, which version of ApkTools is in the Apk Manager folder?
Update: i changed ApkTool in the apk manager folder for version 1.3.1 and that created a bootloop
Click to expand...
Click to collapse
I never used apkmanager. But I could guess additionaly to building the apk, it also compresses the PNGs, zipaligns everything and signs it.
I think I read about some of that stuff doesn't go well with system-files.
So, in conclusion, I would advise you to make a build just with apktool. It's really easy to use.
Oh, and don't forget to copy/overwrite the Manifest file and the META-INF folder from the original framework apk to the new compiled one, as I already wrote in post #5.
ACD168 said:
I'm trying to do this on a sense ROM a I had the menu background black at one time but had the same text problem I want to try and see if this will work but I can't for the life of me remember how I changed the menu background to black do you guys have any ideas? thanks in advance!
Click to expand...
Click to collapse
It's a nine-patch-png file.
I just re-did it again with just apktool instead, And its still the same issue. It looks great menu works but trying to open settings up on anything FC's
{
"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"
}
You will see many ROMs like SUVI ROM, Creed's ROM etc. having a transparent effect. Adding this feature is easy but some developers won't tell their secret. So I will show you a very easy guide by which you can add 'transparent' effect in your ROM.
How to make any Rom transparent
I am not responsible for your bootlooped devices!
I will be showing you for types of transpareny effects.
Requirements
1 APKManager.
2 framework-res.apk
3 Notepad++
For Eclair, Froyo and Gingerbread
1 Guide-
1- Decompile app from apktool/apkmanager etc etc !!
2 Goto framework-res (is by apktool , framework-res.apk is by apkmanager) folder and goto Res>values
3 Open 'styles.xml'
4 Search for <style name="Theme"> tag
5 Edit some lines like this
Code:
<item name="colorBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
Search for <style name="Theme.Black" parent="@style/Theme">
Edit like this
Code:
<item name="colorBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
The End
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 Guide-
1- Decompile app from apktool/apkmanager etc etc !!
2 Goto framework-res (is by apktool , framework-res.apk is by apkmanager) folder and goto Res>values
3 Open 'styles.xml'
4 Search for <style name="Theme"> tag
5 Edit some lines like this
Code:
<item name="colorBackground">[COLOR="Red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="Red"]@drawable/youpicturename[/COLOR]</item>
Search for <style name="Theme.Black" parent="@style/Theme">
Edit like this
Code:
<item name="colorBackground">[COLOR="Red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@drawable/yourpicturename[/COLOR]</item>
The End
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 Guide-
1- Decompile app from apktool/apkmanager etc etc !!
2 Goto framework-res (is by apktool , framework-res.apk is by apkmanager) folder and goto Res>values
3 Open 'styles.xml'
4 Search for <style name="Theme"> tag
5 Edit some lines like this
Code:
<item name="colorBackground">#93ffffff</item> (or any hex color)
<item name="windowBackground">#0000000</item> (or any hex color)
Search for <style name="Theme.Black" parent="@style/Theme">
Edit like this
Code:
<item name="colorBackground">#00000</item> (or any hex color)
<item name="windowBackground">#00000</item> (or any hex color)
The End
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 Guide-
1- Decompile app from apktool/apkmanager etc etc !!
2 Goto framework-res (is by apktool , framework-res.apk is by apkmanager) folder and goto Res>values
3 Open 'styles.xml'
4 Search for <style name="Theme"> tag
5 Edit some lines like this
Code:
<item name="colorBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@color/transparent
<item name="windowShowWallpaper">true</item>[/COLOR]</item>
Search for <style name="Theme.Black" parent="@style/Theme">
Edit like this
Code:
<item name="colorBackground">[COLOR="red"]@color/black[/COLOR]</item>
<item name="windowBackground">[COLOR="red"]@color/transparent[/COLOR]</item>
<item name="windowShowWallpaper">true</item>
The End
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ics rom-:
FOR CM9 roms, you need to edit the theme.holo sections of styles.xml
If theme.light on froyo/GB then
theme.holo.light on ICS
forexample, theme.holo.noactionbar(actionbar=titlebar)
But in froyo/gb its theme.notification,,,
Just holo is added in ICS framework
After you end making transparent compile application and flash this framework-res.apk , for finding Hex value visit colorpicker.com
Chooose the guide suites you the best!!
PS. if you are using this guide in your rom make sure there is proper credits to this guide and link
Note-
drawable/yourpicturename means copy your .png file (will be background like in settings.apk) in drawable-mdpi (your device DPI)
Make sure perfect size !!
Cheeeeeeeeeeeeeeeeeeeeeeeeeeeeers...!!
Plz hit thanks to guide and post comments for more guides
I dont really get the ICS part....
could you explain it further..
rocking bro
umm
awesome brooooo......!
:laugh::laugh:
forever king said:
[/CENTER]
Ever thought your rom can be transparent...!!??
Ah! its awesome but i dont know how to make!!??
...
Click to expand...
Click to collapse
Why dont add some shot of your ROM?
you forgot to require an android phone
sorry friend edited all lines
<item name="colorBackground"> y
<item name="windowBackground">
for that is what I do and does not work
* I'm on ics
Can you provide me some SS for make it clear
GSculerlor said:
Can you provide me some SS for make it clear
Click to expand...
Click to collapse
Nopes, sorry. Please ask here what's difficult in it?
Forever Alone said:
Nopes, sorry. Please ask here what's difficult in it?
Click to expand...
Click to collapse
I think it bit easy, but just avoid bootloop And i just choose 1 guide right ?
Edit : Sir i done try it. It not make bootloop. But make i can do anything cause my backgroud is covering any app. I use last guide Please help me
GSculerlor said:
I think it bit easy, but just avoid bootloop And i just choose 1 guide right ?
Edit : Sir i done try it. It not make bootloop. But make i can do anything cause my backgroud is covering any app. I use last guide Please help me
Click to expand...
Click to collapse
<item name="windowShowWallpaper">true</item></item> > "false".
Then replace @Color/transparent to "#424242" or with any SEMI TRANSPARENT or a TRANSLUCENT color.
Forever Alone said:
<item name="windowShowWallpaper">true</item></item> > "false".
Then replace @Color/transparent to "#424242" or with any SEMI TRANSPARENT or a TRANSLUCENT color.
Click to expand...
Click to collapse
So, i must keep windowShowWallpaper false ?
GSculerlor said:
So, i must keep windowShowWallpaper false ?
Click to expand...
Click to collapse
false will MAKE YOUR WALLPAPER NOT SHOW IN THE BACKGROUND where as true will MAKE YOUR BACKGROUND SHOW IN THE BACKGROUND..Gotcha?
Forever Alone said:
You will see many ROMs like SUVI ROM, Creed's ROM etc. having a transparent effect. Adding this feature is easy but some developers won't tell their secret. So I will show you a very easy guide by which you can add 'transparent' effect in your ROM.
Click to expand...
Click to collapse
how about semi-transparency ? how to do it ?
EpullSalvatrucha said:
how about semi-transparency ? how to do it ?
Click to expand...
Click to collapse
semi transparent color codes.
dint work
tried all the steps but dint work
ashwinvishesh said:
tried all the steps but dint work
Click to expand...
Click to collapse
ICS and above? Did you add Holo?
Forever Alone said:
ICS and above? Did you add Holo?
Click to expand...
Click to collapse
hey.. i am on gingerbread and tried the last method... but after doing that method, no app is visible... every thing became transparent.. apps are running but i am only able to see my wallpaper nothing else... please help me asap
Reserved
Hi anyone can help me. Yesterday i try to edit setting.apk to change image. But before edit, i try to decompile and recompile.
After recompile i try push my setting.apk (no edit, just decompile and recompile and then push to system with permission 0644) but my setting is lost? What happen?
Help me.
Sent from my Lenovo A328 using XDA Free mobile app
{
"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"
}
Want to port CM11 themes? Go here:
CMX- Port CM11 themes in one click.
I will update the information whenever time allows.
Please feel free to contribute or discuss.
In this first post I'm going to try and explain what XTheme and the theme apk's are and how they work. Why? Because you'll have a better understanding of the workings, this will hopefully enable better self sufficiency.
In the second post i'll describe how to set up an environment to port themes and the process of how to port CM 10 themes to XTheme.
I'm going to assume you know nothing about anything to try and cover everything. I myself don't know everything, but what i do know I will try to share.
I'm going to try and keep this as basic as possible so anyone with no knowledge can follow along.
There are already some brilliant guides out there that will help if you read them, so i will link to them instead of regurgitating info from them.
[Guide]T-mobile theme engine.
[Tool]XML generator.
[Guide]How to theme CM10.1.
CM 10 theme mega thread.
[How to] XMLGenerator and .bat script
Knowledge is power!
Click to expand...
Click to collapse
You can find the XTheme thread here containing install instructions, compatible devices and more.
Basically it performs in a similar manner to the theme chooser engine for CM based ROM's... but for ROM bases other than just CM. Until now-18/04/13, the theme chooser engine was restricted to CM based ROM's. XTheme makes it possible to theme stock ROM's.
Click to expand...
Click to collapse
The theme chooser engine allows you to choose a theme and apply it whilst your device is turned on without overwriting your stock images (requires a reboot to see full changes).
This is opposed to a different method of theming, zip flashing or Metamorphing. These methods overwrites either whole apk's or just the relevant images depending on the method you use.
The beauty of the theme chooser is if you decide to change theme or remove it, there is no fallout from the theme that was applied, so all the images are returned back to stock. This isn't really possible through Metamorph or zip flashing unless you use VRTheme or the Universal theme zip which creates a backup. Even so i've found this doesn't work 100%. And restoring your original images through Metamorph and zip flashing can be a painful and tiresome task.
The theme chooser works by redirecting images from inside a theme apk, provided that the relevant images and redirection are present.
If the images or redirections are not present for battery icons for example, then the battery icons will not be themed.
A simple and clean method to theme.
Click to expand...
Click to collapse
Now you know how the engine works we'll talk about the theme apk.
Within the apk is a folder named "res", this contains all the images and xml files that is used within the theme.
Inside the "res" directory are a number folders. Depending on the theme you are porting/creating, some folders will not be used. The folders are mainly self explanatory and these include:
anim ~Controls animations, e.g. screen fades, rotations etc.
color ~xmls control colors used in the theme.
drawable ~Contains xmls that control drawables.
drawable-*dpi ~Contains theme images and possibly xml's.
layout ~Contains xml's that controls the layout values of elements in the theme.
mipmap-*dpi ~Houses "ic_launcher" icons.
values ~Contains xmls including strings, styles, drawables which we will discuss later.
xml ~Contains the redirection xmls. This is where the magic happens.
You can find more in depth details here:
http://developer.android.com/guide/topics/resources/providing-resources.html
If you are unsure where to house elements when adding to your theme, simply look inside the original apk.
For example if i want to theme the icon of Gmail, i would extract the Gmail apk and search for the location of the launcher icon. This is located in mipmap-*dpi, so i would add it to the mipmap-*dpi directory in my theme with the relevant redirections.
Click to expand...
Click to collapse
The redirections xml diverts the original package resources to the theme resources.
Here's a little workflow for changing the Gmail launcher icon.
This is achieved by adding the relevant syntax to the redirection.xml like so:
Code:
<?xml version="1.0" encoding="utf-8"?>
<theme-redirections
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pluto="http://www.w3.org/2001/pluto.html">
[COLOR=Red]<package-redirections android:name="[COLOR=RoyalBlue]com.google.android.gm[/COLOR]" android:resource="@xml/[COLOR=SeaGreen]com_google_android_gm[/COLOR]" android:minSdkVersion="16" />[/COLOR]
</theme-redirections>
I have highlighted the package redirection above to break it down.
Red= Package redirection syntax.
Blue= Original package name. Found in the "AndroidManifest"
Green= Redirection package name. you can call this anything but i strongly suggest you stick with the original and change "." to "_" as above.
This has told the engine to divert "com.google.android.gm" (Gmail.apk) to use the resources defined in "com_google_android_gm".xml in the theme xml folder.
Now we need to create an xml inside the xml folder named "com_google_android_gm".
Within this xml we add the correct syntax for the resources to be used:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
[COLOR=Red]<item name="[COLOR=Blue]mipmap/ic_launcher_mail[/COLOR]">@[COLOR=SeaGreen]mipmap/com_google_android_gm_ic_launcher_mail[/COLOR]</item>[/COLOR]
</resources>
Red= Resource redirection syntax.
Blue= Original directory and resource
Green= Redirection directory and resource
This is telling the engine to display "com_google_android_gm_ic_launcher_mail".png located in the mipmap-*dpi directory within the theme apk.
Now we add the "com_google_android_gm_ic_launcher_mail".png into the mipmap-*dpi directory to complete the redirection process.
You can see why i suggest to keep the redirection package name the same. it keeps a consistency that's easy to follow.
Click to expand...
Click to collapse
Time Taken:
Setting up 10 minutes
Porting 10 minutes
Difficulty:
Xtheme Engine themes. Most themes in this thread are for Sony devices. To enable these to work fully on other OEM devices, they require proper redirections.
[THEMES]Xposed theme Engine.
[PORT]CM to XThemeEngine.
[[XTHEMES]] THEMES PLANET [4.3 supported].
Port CM Themes to Xtheme Engine in One Click!
Post any other threads here and i will add them to the above list.
Click to expand...
Click to collapse
Now we know the basics of how the engine and redirections work we can start creating/porting some themes.
We need to gather some tools for the process:
Java Link
ApkManager/Multitool Link
CM10 theme to port Take your pick.
SampleTheme.apk Link at bottom of the page.
Notepad++ Link
7zip Link
Weapon of choice- i chose a beverage with alcoholic content. Link
Java.
Download, install and add bin path to your environment variables.
Windows 7.
Select Computer from the Start menu
Choose System Properties from the context menu
Click Advanced system settings > Advanced tab
Click on Environment Variables, under System Variables, click "new".
In the "variable name" field enter JAVA_HOME
In the "variable value" field enter the "bin" location from the java folder.
My location is "C:\Program Files\Java\jre7\bin"
Reboot.
Open a cmd window and type java. If you added the path correctly you will receive an help menu. If not try to add the path again.
For more help see below or use Google.
http://www.java.com/en/download/help/path.xml
ApkManager/Multitool.
Extract and read the "README"
You can also follow instructions here:
http://forum.xda-developers.com/showthread.php?t=1310151
Click to expand...
Click to collapse
Alternative method. Thanks pier10.
Firstly let me say. If you do not have a redirections.xml in the CM theme xml folder you will need to create one.
See this post for details.
Once we have our environment setup we can get started.
XTheme creator ruqqq has described how to port CM themes in his thread but ill try to expand it.
http://forum.xda-developers.com/showpost.php?p=40428425&postcount=2
1 .Run the setup.bat and select option 3 to create directories.
2. Place your CM10 and SampleTheme.apk's in "place-apk-here-for-modding". Sample theme link. CM10 theme link.
3. Run script.bat and choose option 24 to set project.
4. Select your CM 10 theme apk and choose option 9 to decompile.
5. Repeat the process with the sample theme
6. Your now presented with 2 output folders in "projects" with the same name as the apk.
7. Enter "projects/SampleTheme.apk" and delete the "res" folder.
8. Goto the CM10 theme in projects and copy the "res" folder across into the SampleTheme.apk folder.
9. Open both "AndroidManifest.xml" with notepad++
10. In the SampleTheme AndroidManifest change
Code:
package="[COLOR=Red]sg.ruqqq.theme.SampleTheme[/COLOR]"
with the package name from the CM10 AndroidManifest. Add an X or Xtheme to the end of the package name to differentiate it from the original.
Code:
package="sg.ruqqq.theme.SampleTheme"
Becomes
Code:
package="com.vicino.theme.honeycombl.xtheme"
Or
Code:
package="com.vicino.theme.honeycomb.x"
We can also reflect the change in res/values/strings.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">HoneycombTheme</string>
<string name="theme_name">HoneycombTheme</string>
<string name="style_appearance_name">HoneycombTheme</string>
<string name="author">vicino</string>
<string name="copyright">vicino</string>
</resources>
Becomes
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">HoneycombTheme X</string>
<string name="theme_name">HoneycombTheme X</string>
<string name="style_appearance_name">HoneycombTheme</string>
<string name="author">vicino</string>
<string name="copyright">vicino</string>
</resources>
11. Check If the theme contains a redirections.xml (res/xml/redirections.xml), if it doesn't you must create one. See the post above headed "redirections.xml" orsee this post for details on editing. You should have a line of code for each package xml file in the xml folder.
This applies to every ROM. If the theme does not contain a redirections.xml it will not redirect resources.
Delete any unused lines of code.
If you are using a "stock" ROM, example TouchWiz(Samsung), Sense(HTC), Semc(Sony), open up "android.xml" in res/xml and add redirections for your OEM images.
For Sony based ROM's you can find my redirections below. For other ROM's you will have to create them or find them
http://forum.xda-developers.com/showpost.php?p=40024969&postcount=5
TIP:
My redirections syntax refer to framework images as "framework_res", if the theme you are porting uses "frameworks_res" for example follow this:
Open up the android xml with NotePad ++.
Click the search tab at the top and select replace.
In the field "Find what" enter @drawable/framework_res.
In the field "Replace with" enter @drawable/frameworks_res.
Click replace all, save and close.
12. Compile the project by selecting 12. When prompted select option 2.
13. You will recieve a "unsignedSampleTheme.apk" in the "place-apk-here-for-modding" folder. Select option 13 to sign the apk.
14. You now have a "signedSampleTheme.apk" in "place-apk-here-for-modding", you can rename this to the CM10 theme name.
15. Place the apk on your device, install, apply and reboot.
Click to expand...
Click to collapse
@ruqqq for the XTheme engine.
CM team for the Theme chooser engine.
All the authors of the guides and posts.
@MrDSL for helping me out with Theme Chooser.
@mcsqwizzys98, @Rycon33, @josephnero, @peetr_ and many others over on the Xperia T forum (sorry if i forgot anyone).
@Brut.all, @iBotPeaches, @JesusFreke, @Daneshm90, and @raziel23x for apktool, smali/ baksmali, apkManager/multiTool,
@rovo89 and @Tungstwenty for making this possible with Xposed framework.
@vicino for using Honeycomb theme as an example.
Everyone else who they credited.
Click to expand...
Click to collapse
Q.Why does the ported theme not look 100% as the original theme?
A.
ruqqq said:
There are 2 reason for this. Firstly, as stated in the previous post, styles.xml is not working for XThemeEngine. Hence, the ported themes would not work 100%. For better success, port a theme which is closer to Holo styles (dark background, bright text). Second reason, which is the most common reason, is that the theme is made for CM10. CM10 is very close to AOSP while your device which is running stock rom only retain some parts of AOSP. The theme need to be properly ported (analyze your stock rom frameworks and redirect the proper files in your ported theme etc.) to fully support your device.
Click to expand...
Click to collapse
Q. My theme is not recognized.
A. Make sure you have permissions in the android.manifest.xml.
Code:
<uses-permission android:name="sg.ruqqq.XThemeEngine.permission.SYSTEM_THEME" />
Q. Nothing is themed!?.
A. You must have a "redirections.xml" and package.xml's in the "res/xml" folder
If you plan on releasing any ported themes then ask the author of the theme for permission and give credits and link back to their thread. Not only is this good community manners, it's XDA rules.
XDA rule 12:
12. Using the work of others.
If you are developing something that is based on the work of another Member, you MUST first seek their permission, and you must give credit to the member whose work you used. If a dispute occurs about who developed / created a piece of work, first try to settle the matter by private message and NOT in open forum. If this fails then you may contact a moderator with clear evidence that the work was created by you.
Convincing evidence will result in copied work being removed. If there is no clear evidence you created the work then in the spirit of sharing all work will remain posted on the forums.
As an addition, developers have the right to hold exclusivity over their work for as long as it is deemed necessary by the dev or freely share it. However, if the work is claimed as exclusive, it must remain as such. No selective sharing will be allowed (ie allowing certain people to use it and not others). Should the dev decide to start sharing the work with others, the work automatically becomes fair game for all to use.
In regards to permissions, same rules remain for this but if permission was already given, unless there is a very valid reason, it cannot be revoked (same applies to major updates on the work). Under that same premise, permissions cannot be denied unless the work is exclusive or under severe circumstances.
In plain English: If you want to keep your work exclusive, go for it. However, if you are going to share your work, do it fairly.
These rules apply to all software posted on XDA (including but not limited to ROMs, RUUs, apps, games, kernels, themes, icons, etc) unless that software comes with a license that waives these rules.
Click to expand...
Click to collapse
Thanks to @vicino, as i used his "Honeycomb Lite Theme" as an example.
Awesome guide it will help many people!!!
Sent from my LT30p using Tapatalk 4 Beta
you never fail to amaze mate.thank you
very nice guide dully:good:
it's very comprehensible
i'd like to add some redirections for Xperia(coz Sony always do some funny funny things )
at android.xml:
- for screenshot dialog image
Code:
<item name="drawable/semc_ic_dialog_screenshot">@drawable/frameworks_res_ic_lock_screenshot</item>
at com_android_systemui.xml:
- for data H+
Code:
<item name="drawable/stat_sys_data_connected_h_plus">@drawable/com_android_systemui_stat_sys_data_connected_hp</item>
<item name="drawable/stat_sys_data_fully_connected_h_plus">@drawable/com_android_systemui_stat_sys_data_fully_connected_hp</item>
Rycon and his hplus icon
Sent from my LT30p using Tapatalk 4 Beta
mcsqwizzys98 said:
Rycon and his hplus icon
Sent from my LT30p using Tapatalk 4 Beta
Click to expand...
Click to collapse
hahaha, true mate, as you know i'm mostly on mobile
i'll add some more later, those i can remember
EDIT: Another option for ApkManager is TickleMyAndroid tool for de/recompiling, signing apks.
EDIT2: If you want to have a nice Sony accent theme that can blend well to any ported themes, try to mod an existing Sony accent theme. I personally used white accent(ccffffff) so the default toggles, panel clock, etc won't look out of place when using any ported XTheme theme.
Cheers fellas.:good: I've updated the guide to use the SampleTheme method as described in the XTheme thread. It seems to be less temperamental.
i port a theme flowing your guide
Bt when i click apply its shows failed please help
i m using xtheme engine beta5
only i skip step 10 is it mandatory?
Drockk_Xm said:
i port a theme flowing your guide
Bt when i click apply its shows failed please help
i m using xtheme engine beta5
only i skip step 10 is it mandatory?
Click to expand...
Click to collapse
Only if your using an OEM ROM and want the theme to work fully on your device.
Can you post your AndroidManifest.xml or post the contents and wrap code tags around it, thanks.
dully79 said:
Only if your using an OEM ROM and want the theme to work fully on your device.
Can you post your AndroidManifest.xml or post the contents and wrap code tags around it, thanks.
Click to expand...
Click to collapse
AndroidManifest.xml
PHP:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:hasCode="false" package="com.gekn.theme.Sense5.xtheme"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pluto="http://www.w3.org/2001/pluto.html">
<uses-permission android:name="sg.ruqqq.XThemeEngine.permission.SYSTEM_THEME" />
<application android:label="@string/app_name" android:icon="@drawable/icon" />
</manifest>
Drockk_Xm said:
AndroidManifest.xml
PHP:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:hasCode="false" package="com.gekn.theme.Sense5.xtheme"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:pluto="http://www.w3.org/2001/pluto.html">
<uses-permission android:name="sg.ruqqq.XThemeEngine.permission.SYSTEM_THEME" />
<application android:label="@string/app_name" android:icon="@drawable/icon" />
</manifest>
Click to expand...
Click to collapse
Ok your manifest is fine, can you send me your apk or link to the original?
dully79 said:
Ok your manifest is fine, can you send me your apk or link to the original?
Click to expand...
Click to collapse
apk link
https://www.dropbox.com/s/jvd5sill84i8ga8/Sense 5 CM10.1 signed.apk
apk signed via ZipSigner
and got .zip format
then rename the extension zip to apk
Drockk_Xm said:
apk link
https://www.dropbox.com/s/jvd5sill84i8ga8/Sense%205%20CM10.1%20signed.apk
apk signed via ZipSigner
and got .zip format
then rename the extension zip to apk
Click to expand...
Click to collapse
There is no redirections.xml in res/xml.
Edit: After looking at it more that theme isnt very well constructed.
None of the images have package names designated to them, so it's a bit of a free for all inside res/drawable-*dpi.
Now that I have my Optimus pro g and have been working with this more I gotta say its more frustrating then anything..
Metamorph using zipthemer from the market seems like a better alternative.
Stuff that should work and clearly works in other areas just randomly doesn't work for no known reason.
Very fustrating..
MrDSL said:
Now that I have my Optimus pro g and have been working with this more I gotta say its more frustrating then anything..
Metamorph using zipthemer from the market seems like a better alternative.
Stuff that should work and clearly works in other areas just randomly doesn't work for no known reason.
Very fustrating..
Click to expand...
Click to collapse
Without a doubt. Now you know why I feel like I'm banging my head against a wall.
You definitely need to hide anything that is fragile and within arms reach when messing with xtheme.
dully79 said:
There is no redirections.xml in res/xml.
Edit: After looking at it more that theme isnt very well constructed.
None of the images have package names designated to them, so it's a bit of a free for all inside res/drawable-*dpi.
Click to expand...
Click to collapse
here is my apk link bro
http://d-h.st/9fQ
I have added redirections. Xml as well n added permissions as well then wat is d problem
Sent from my Galaxy GT-I9500 using xda premium
harisaduelite said:
here is my apk link bro
http://d-h.st/9fQ
I have added redirections. Xml as well n added permissions as well then wat is d problem
Sent from my Galaxy GT-I9500 using xda premium
Click to expand...
Click to collapse
Why don't you read the quide and figure it out like most people this honestly isn't really that hard at all you make redirections delete the public file and make sure yo add device specific redirections in android XML and your done-_-
Sent from my LT30p using Tapatalk 4 Beta
harisaduelite said:
here is my apk link bro
http://d-h.st/9fQ
I have added redirections. Xml as well n added permissions as well then wat is d problem
Sent from my Galaxy GT-I9500 using xda premium
Click to expand...
Click to collapse
You've quoted a post that WASN'T directed at you. It was for Drockk. And ive told you, your AndroidManifest is messed up. Use the one from the SampleTheme.apk just like the guide describes and i guarantee it will work.
{
"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"
}
- Section One -
Hey guys! I'm back again with another contribution to the community, this time I'm posting a guide on behalf of my theme, Svelte UI.
I have noticed there is a very few amount of theme's available for the new CyanogenMod Theme Chooser out there. And hopefully I can change this.
This guide will cover everything needed to create a Theme, from creating the initial project to theming itself. And some tips on how I theme.
And to make all you lovely people even happier. I will provide all code and even a sample .apk
And also I don't want to add screenshots of my desktop to this thread, because the resolution will be way to big. Instead I'll have links. So let's get started shall we?
VIDEO TUTORIALS
[x] One - Create Project
[x] Two - Initial Setup
More coming.
- Section One -
This section is vital for you to accomplish your theme, so please do not skim through it.
For the requirements, you need an IDE. Yes I will be showing you how build the theme from scratch and not a template.
Use an IDE that you're comfortable with, I wont be showing yo how to use it. I will be using Eclipse for this tutorial.
You will need an image editing program, I am going to use Paint.NET. It's free, advanced, and does the job as good as Photoshop.
We are also going to need patience. Yeap. Theming takes allot of time and patience, it is frustrating especially if you're doing precise editing but it's worth it at the end.
One more thing we are going to need is, an APK decompiler. So download one you like, install the required .apk's for it to work properly.
Then get hold of the SystemUI.apk and Framework-res.apk, we're going to use this later.
- Section One -
Okay, now go ahead and open up your IDE, and create a new Project, give it a name and an appropriate package name.
For example mine is "Svelte UI" and "com.ascendapps.sui". [View Screenshot]
Now click next till you end the project setup. Once your project has been created.
- Section Two -
Go ahead and delete the following folders.
[src, layout, menu, values-sw600dp, and values-sw720dp-land also delete drawable-ldpi if you want] [View Screenshot]
Now in the values folder, create a new xml and call it "public.xml" and make sure to delete the "dimens.xml" file.
Inside the xml file (public.xml) add the following code - [View Screenshot]
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="drawable" name="ic_launcher" id="0x7f020000" />
<public type="string" name="app_name" id="0x7f030000" />
<public type="style" name="AppBaseTheme" id="0x7f040000" />
<public type="style" name="AppTheme" id="0x7f040001" />
</resources>
- Section Three -
Now go ahead and save it. Make you save things when working throughout your project, better be safe than sorry.
Open up AndroidManifest.xml, and add the following code and do what it tells you - [View Screenshot]
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="7" android:versionName="1.0" package="com.ascendapps.sui" <!-- Enter the package name of your project that you had done in the setup earlier -->
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:name="org.cyanogenmod.theme" android:required="true" />
<application android:label="Svelte" android:icon="@drawable/ic_launcher" android:hasCode="false" /> <!-- Change label to theme name -->
<meta-data android:name="org.cyanogenmod.theme.name" android:value="Svelte" /> <!-- Name of Theme -->
<meta-data android:name="org.cyanogenmod.theme.author" android:value="Krish Gounder" /> <!-- Your Name -->
</manifest>
.
Please make sure to delete the Info statements once you've finished editing the xml.
For example delete the lines in green. Which is the following -
Code:
<!-- Your Name -->
<!-- Name of Theme -->
<!-- Change label to theme name -->
<!-- Enter the package name of your project that you had done in the setup earlier -->
- Section Four -
Now save your project, and close everything. Once closed, navigate to your project workspace. In there you should see your projects name.
Like this . [View Screenshot]
Open the the project then inside the work folder open the "Assets" folder. This is where everything comes to life.
Go ahead, and create the things you want to be included in your theme.
- fonts - If you wish to use different fonts in your theme.
- images - The images that are displayed when applying the theme.
- overlays - You must create this folder, this is where all the theming images are kept.
- wallpapers - If you want to add a wallpaper to your theme. Use .jpg
- bootanimation- Add a .zip file of your bootanimation in here.
- alarms - If you want to add alarm sounds to your theme.
- lockscreen - Add a lockscreen wallpaper. Use .jpg
- notifications - If you want notification sounds.
- ringtones - If you want to have ringtone sounds.
I will be using images, overlays and wallpapers.
So inside the images folder you will need -
lockscreen_preview.jpg if you are having a lockscreen wallpaper.
styles_preview.jpg just add your wallpaper.
wallpaper_preview.jpg Just use the wallpaper and add an icon in the middle of the image.
Add your wallpaper in the wallpapers folder and name it - wallpaper1.jpg
[Screenshot One] - [Screenshot Two] Now we've completed this section.
- Section One -
For theming you'll need a reasonable image editing software, Paint.NET works quite well.
So you want to know how to theme apps and components? Let's start with the framework-res.apk.
Earlier, I had stated that you'll need an APK Decompiler. So using the decompiler, decompile the framework-res.apk.
Open up to decompiled project and navigate to the folder you wish to work on. for example, drawable-xxhdpi.
Now in your theme work folder, go into "overlays" and create a folder called "android"
Inside there, create a folder called "res" and inside "res" create drawable-xxhdpi or the folder you chose.
Now go back to the project you decompiled earlier, and copy in all the .png files that you know you'll theme.
- Section Two -
How to them other apps and get it to work. the way the theme chooser knows what to them is by package names.
So if you want to theme an app you''l need to find out it's package name. For example Instagram is - com.android.instagram
If you make a folder with that name, and inside you have to create the res folder, it's basically the same layout but the initial name is the package name.
- Section Three -
It's often weird to work with .9.png's when you come face to face with it the first time. The best way to edit them is by working with the image inside the borders.
By this I mean, when you open the image in an editor it has these black lines around the edges, using a selecting tool. select everything inside the border, and do not select the border.
These borders help the Android system with stretching the image.
CREDITS -
[x] Me for preparing this guide.
[x] CyanogenMod Team for the Theme Chooser.
[x] Imgur
[x] XDA
[x] Eclipse
[x] QuickMod Dev
[x] And curiosity.
RESERVED
This section is user based, so if you need help with theming something.
Let me know and I'll update this thread post and I'll directly link you to the info.
When theming a specific application, whether it's a system app or a normal app.
You will need to give the folder the package name so the system knows what to theme.
So if you want to theme the settings app you'll have to name the folder "com.android.settings".
Thanks to @Vincentmrl He requested me to add these so people have a better idea and don't get confused.
The names on the left correspond to the app to right.
android (framework-res.apk)
com.android.dialer (Dialer.apk)
com.android.email (Email.apk)
com.android.keyguard (Keyguard.apk , lockscreen theming)
com.android.settings (Settings.apk)
com.android.systemui (SystemUI.apk)
I will be adding more to these. And easy way of finding the apps package name is by looking at its PlayStore url.
Or by checking in android app manager.
- Section One - Add your own custom background
First of all, you'll need to create or find your own image.
Make sure it's a reasonable size, this is basically a common sense statement.
Don't use a really small image. Okay once you've gotten your image.
Change the name of the image to the following - background_holo_dark.png
Place this image in the following folder - /overlays/android/res/drawable-nodpi
Once done, you need a way for the system to find the image, you can do this by creating a new styles.xml in the values folder.
So go ahead and create a file named styles.xml in the values folder.
The next thing you have to do is add this code inside your xml file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Black" parent="@*android:style/Theme">
<item name="android:colorBackground">@color/transparent</item>
<item name="android:windowBackground">@drawable/background_holo_dark</item>
</style>
</resources>
Save the file and you're done.
Thank you guy, I love it, maybe I'll do one
GæxD said:
Thank you guy, I love it, maybe I'll do one
Click to expand...
Click to collapse
Goodluck! let me know when you make it. I'll be glad to check it out. :]
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
Goodluck! let me know when you make it. I'll be glad to check it out. :]
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks again
I have one question, how to change this colors? Example, I marked the colors in red:
The switch button can be change in the framework-res.apk.
And the text can be changed in colors.xml. it should be displayed as "primary_text" and "secondary_text".
Edit - You may need to look in Settings.apk for the text colors. If they don't work, then look for it in framework-res.apk.
It will be a trial and error thing, so you'll have to test many times.
Sent from my Nexus 5 using Tapatalk
krishneelg3 said:
The switch button can be change in the framework-res.apk.
And the text can be changed in colors.xml. it should be displayed as "primary_text" and "secondary_text".
Edit - You may need to look in Settings.apk for the text colors. If they don't work, then look for it in framework-res.apk.
It will be a trial and error thing, so you'll have to test many times.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Okay
You can make a tutorial explaining better this part of colors and others things to put in OP. Other peoples may also have the same doubt =)
GæxD said:
Okay
You can make a tutorial explaining better this part of colors and others things to put in OP. Other peoples may also have the same doubt =)
Click to expand...
Click to collapse
Thanks, I will be sure to add more info about this when I prepare it later.
I look forward
I have a theme in the works. ?
HI thank you for the guide but i keep getting 'Errorublic symbol style/AppBaseTheme declared here is not defined.' while using android studio. how do i solve this? it wont let me compile my apk.
RealiableCandy4 said:
HI thank you for the guide but i keep getting 'Errorublic symbol style/AppBaseTheme declared here is not defined.' while using android studio. how do i solve this? it wont let me compile my apk.
Click to expand...
Click to collapse
Use eclipse dude, with one click you install your apk on device and test the theme
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting an error whenever I try to create the public.xml file. Any ideas?
torresfelipe said:
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting a error whenever I try to create the public.xml file. Any ideas?
Click to expand...
Click to collapse
Eclipse Kepler, is the current one. I don't think you need a specific version.
Sent from my Nexus 5 using Tapatalk
torresfelipe said:
What version of Eclipse are you guys using? I downloaded the Standard version and it keeps me prompting an error whenever I try to create the public.xml file. Any ideas?
Click to expand...
Click to collapse
Eclipse Standard/SDK
Version: Kepler Service Release 2
Build id: 20140224-0627
Thanks guys. I might have done something wrong, but it's working now. I'm using the latest release, 4.4 Luna.
GæxD said:
Use eclipse dude, with one click you install your apk on device and test the theme
Click to expand...
Click to collapse
Thanks for the reply i fixed it by adding
Code:
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar"></style>
in the styles.xml file
I used Generator to generate png/9.png files of my theme. Problem is that all of files look like this themename_background.png, themename_tab.png etc. (you know what i mean). How to make theme work with that named images? I need to edit some code to audo add this or how? Its not so easy to rename all pngs (takes alot of time)
I just cant do it.Downloaded eclipse with android SDK and aplication wizzard isnt that easy: next, next, next. Also i dont have folders what you said to delete... For me (newbie) its useless guide.. Just trying and still cant do anything because dont know how...
And finally when i will make any project how to build it to be ready to install?
@baciany Check your Pm
@TheArc;
Which APK Decompiler do you use? Do you think that something simple as http://www.decompileandroid.com/ would work?