{
"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"
}
WOAH!!!YOUR A MIND READER:highfive:
Zpik said:
WOAH!!!YOUR A MIND READER:highfive:
Click to expand...
Click to collapse
XD
enricocid said:
XD
Click to expand...
Click to collapse
So throughout the whole rom, this background will show?
Zpik said:
So throughout the whole rom, this background will show?
Click to expand...
Click to collapse
Yes. Only dialer remain untouched
would be nice if there were an xposed framework installer for this.
EDIT: Google search ftw.
http://forum.xda-developers.com/showthread.php?t=2342570
I'm not seeing a file named values in my framework-res apk. I'm not sure if this matters, but I used a file Explorer and extracted the apk on my phone. I use my phone to make zipthemer mods, so I figured this method would work for that too. Any reason it wouldn't show up?
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
I'm not seeing a file named values in my framework-res apk. I'm not sure if this matters, but I used a file Explorer and extracted the apk on my phone. I use my phone to make zipthemer mods, so I figured this method would work for that too. Any reason it wouldn't show up?
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
No no... You should decompile using apktool this is the only say to add trasparent background, modifying the .xml
enricocid said:
No no... You should decompile using apktool this is the only say to add trasparent background, modifying the .xml
Click to expand...
Click to collapse
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
You have to actually decompile framework res apk, take apart all the pieces instead of just extracting the apk. Decompiling and extracting are not the same thing
Link for apktool http://forum.xda-developers.com/showthread.php?t=2213985
NeverSeparate said:
This is what I got when extracting the apk. I can open and modify the xml files on my phone, but there isn't a folder named values. Are you certain the folder isn't specific to certain devices or roms? I'm on carbon at the moment on a GNex.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
No... the problem is that You can't modify .apk using the phone....
This is because You can't decode an .apk with a file manager ... and You can't modify .xml if You don't decode it using apktool
If You don't use apktool You won't be able to exctract & decode the .apk
This folder must be in framework-res.apk and all .apk
Try use apktool to properly decompile it and You will be able to see all resources from .apk
If You try to exctract an .apk with a zip manager and You open an .xml, You won't see anything... only unreadable simbols
https://code.google.com/p/android-apktool/downloads/detail?name=apktool1.5.2.tar.bz2&can=2&q=
https://android-apktool.googlecode.com/files/apktool-install-windows-r05-ibot.tar.bz2
extract aapt.exe, apktool.bat and apktool.jar to a folder You will call apktool and that You will create in C:/:
C:\apktool
copy the framework-res.apk inside this folder
Press shift+leftmouse and click to "open command prompt here"
In cmd do the following
1) Install the framework-res.apk
Code:
apktool if framework-res.apk
2) Decompile framework-res.apk
Code:
apktool d framework-res.apk
3) Modify the .xml using notepad++
4) Recompile back
Code:
apktool b framework-res
5) Once done
Delete the compiled .apk in dist folder inside the framework-res folder you will find in apktool folder
open original framework-res.apk 7zip
Go to build folder
then open apk folder
Drag & drop folder META-INF & androidmanifest overwriting the original
6) Go again in CMD terminal and
Code:
apktool b framework-res
The compiled framework-res.apk is the good one
You can use the same steps I used in this guide to properly decompile/compile the framework-res.apk
http://forum.xda-developers.com/showthread.php?p=44997467#post44997467
Thanks. And I wasn't trying to argue. I know there is a difference on decompiling and extracting. And I know I can't modify the apk directly from my phone, but I use my method of extracting to locate png piles to make zipthemer zips, and it works fine for that. I wasn't looking to modify an apk. I was just going to attempt to make a zip with an edited xml and see if it would overwrite the existing one the same as it does with pngs. And I can open and edit xml using an xml app. But, if the extraction technique won't show me the file, then it doesn't matter. I'm just trying to learn a bit myself.
I was hoping to make a way that people could use the framework mods I've made without having to be in dark mode. Many of the people using mods off these threads wouldn't consider taking the time to learn any of this, they just want to use what's made. So a simple flashable zip that included an edited xml would be great. But if it won't work, it won't work.
Sent from my Galaxy Nexus using Tapatalk
NeverSeparate said:
Thanks. And I wasn't trying to argue. I know there is a difference on decompiling and extracting. And I know I can't modify the apk directly from my phone, but I use my method of extracting to locate png piles to make zipthemer zips, and it works fine for that. I wasn't looking to modify an apk. I was just going to attempt to make a zip with an edited xml and see if it would overwrite the existing one the same as it does with pngs. And I can open and edit xml using an xml app. But, if the extraction technique won't show me the file, then it doesn't matter. I'm just trying to learn a bit myself.
I was hoping to make a way that people could use the framework mods I've made without having to be in dark mode. Many of the people using mods off these threads wouldn't consider taking the time to learn any of this, they just want to use what's made. So a simple flashable zip that included an edited xml would be great. But if it won't work, it won't work.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
You can try to make vrthemes
I already resolved my problem in Step 1 by editing the "Environment Variables".
Step 4
I'm stuck with step 4 ( recompiling ):
there's no "META-INF" folder under build/apk folder
Question: after I overwritten the "META-INF & androidmanifest" from the original framework-res.apk (C:\apktool\framework-res.apk)
and recompiled it using "apktool b framework-res", how can I flashed the compiled framework-res.apk w/c is located at
(C:\apktool\framework-res\dist) to system/framework? many thanks to this one, new learning
genkralyz said:
I'm stuck with step 4 ( recompiling ):
there's no "META-INF" folder under build/apk folder
Question: after I overwritten the "META-INF & androidmanifest" from the original framework-res.apk (C:\apktool\framework-res.apk)
and recompiled it using "apktool b framework-res", how can I flashed the compiled framework-res.apk w/c is located at
(C:\apktool\framework-res\dist) to system/framework? many thanks to this one, new learning
Click to expand...
Click to collapse
I will prepare You, as soon as possible, a template to flash it
enricocid said:
I will prepare You, as soon as possible, a template to flash it
Click to expand...
Click to collapse
Thanks! btw is it ok if I only overwrite the original "androidmanifest" because there's no "META-INF" under build/apk,
or there should be a "META-INF"?
genkralyz said:
Thanks! btw is it ok if I only overwrite the original "androidmanifest" because there's no "META-INF" under build/apk,
or there should be a "META-INF"?
Click to expand...
Click to collapse
You must copy also the meta-inf
enricocid said:
You must copy also the meta-inf
Click to expand...
Click to collapse
but when I tried to re-compiled, there's no META-INF showing up under build/apk folder as you can see from my screenshot..
did I missed some steps?
genkralyz said:
but when I tried to re-compiled, there's no META-INF showing up under build/apk folder as you can see from my screenshot..
did I missed some steps?
Click to expand...
Click to collapse
After first compilation Meta-inf is missing... it's normal don't worry
but without a meta-inf Your .apk wouldn't work
So you must delete the first compiled apk from dist folder, copy meta-inf and androidmanifest from the original .apk to build/apk folder and recompile 2nd time to get the framework correctly working
You can use this mod to flash the framework
http://d-h.st/0lL
there's already a framework-res inside it... delete it using 7zip and replace with Your framework and flash it
Related
Hi, I basically want to change the Battery Icon in the Notification Bar.
Yes I replaced the .png files with the ones I wanted but the problem is, the png files I have are exact battery percentages but in my Dinc it only shows battery levels in intervals of 5'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"
}
That is the battery icon I am replacing it with. There are 134 .png's (100 battery status, 33 for battery charge, and 1 for unknown battery).
Basically my question is, how can I edit the theme so that it will show all .png files so the phone will display the exact battery percentage it is on?
This is how my phone looks so far
Thanks in advance!
I believe you'll need to edit XML files to make it pull the correct image for each 1% icon like you want. Just adding the images won't do it. I have never done this before, so maybe someone like fernando sor or Hatman (just to name a couple of themers) can help you out with that.
RMarkwald said:
I believe you'll need to edit XML files to make it pull the correct image for each 1% icon like you want. Just adding the images won't do it. I have never done this before, so maybe someone like fernando sor or Hatman (just to name a couple of themers) can help you out with that.
Click to expand...
Click to collapse
Do you have an idea of what xml file I need to edit I can't find anything that connects to the battery.
Sent from my ADR6300
eljean said:
Do you have an idea of what xml file I need to edit I can't find anything that connects to the battery.
Sent from my ADR6300
Click to expand...
Click to collapse
Maybe in framework-res - res - drawable - stat_sys_battery and stat_sys_battery_charge xml's....?
I am not running CM7/Cyanbread theme, so I'm not sure if those XML's are there.
RMarkwald said:
Maybe in framework-res - res - drawable - stat_sys_battery and stat_sys_battery_charge xml's....?
I am not running CM7/Cyanbread theme, so I'm not sure if those XML's are there.
Click to expand...
Click to collapse
Yeah is not in the Cyanbread.apk its only in the framework-res.apk... also Im kinda noobish at this sort of stuff how do I exactly edit these files?
You'd need to edit those files in the framework-res.apk to make them show. You'd need to decompile the apk file with apktool to view the XML's, then recompile it. I've decompiled framework-res, but never recompiled things with it or really made any changes.
You're best bet is to PM fernando sor or Stoney666, maybe they can help out further.
First thing is you need to decompile the apk. To get the phone to display 1% increments you will need to edit the stat_sys_battery xml file in drawable. To have the apk display your battery images you will need to define them in the android xml file in the xml folder. Once the edits are done recompile, sign the apk and install.
N-Forced said:
First thing is you need to decompile the apk. To get the phone to display 1% increments you will need to edit the stat_sys_battery xml file in drawable. To have the apk display your battery images you will need to define them in the android xml file in the xml folder. Once the edits are done recompile, sign the apk and install.
Click to expand...
Click to collapse
Will try this once I get home. Can I just open the apk using winrar and edit the xml file? Or do I need to decompile in order to read the xml file?
Sent from my ADR6300
Need to decompile first.
My suggestion would be to decompile the cyanbread apk and add the xmls for the battery to the apk. Then there's a couple more xmls in the theme apk that would need to be edited as well. When I get to my computer I can give you more info on it if you'd like but doing it this way would avoid any interference of the xml being in framework and having a standard battery icon if you go back to stock. This way too when you change nightlies you can bring your modified cyanbread theme with you instead of having to change the framework each time. Just a thought though.
Sent from my ADR6300
CondemnedSoul said:
My suggestion would be to decompile the cyanbread apk and add the xmls for the battery to the apk. Then there's a couple more xmls in the theme apk that would need to be edited as well. When I get to my computer I can give you more info on it if you'd like but doing it this way would avoid any interference of the xml being in framework and having a standard battery icon if you go back to stock. This way too when you change nightlies you can bring your modified cyanbread theme with you instead of having to change the framework each time. Just a thought though.
Sent from my ADR6300
Click to expand...
Click to collapse
Will I be able to install it by simply ADB Pushing the new Cyanbread.apk or will I have to reflash?
**This is a lot of writing sheesh, I started 10 minutes ago and I am only up to 50. Now I know how hard it is to make a theme, i really need to start donating to themers for their work lol.
CondemnedSoul said:
My suggestion would be to decompile the cyanbread apk and add the xmls for the battery to the apk. Then there's a couple more xmls in the theme apk that would need to be edited as well. When I get to my computer I can give you more info on it if you'd like but doing it this way would avoid any interference of the xml being in framework and having a standard battery icon if you go back to stock. This way too when you change nightlies you can bring your modified cyanbread theme with you instead of having to change the framework each time. Just a thought though.
Sent from my ADR6300
Click to expand...
Click to collapse
Any help signing the new APK? I cant seem to get this. I had just about done everything, eexcept this.
eljean said:
Any help signing the new APK? I cant seem to get this. I had just about done everything, eexcept this.
Click to expand...
Click to collapse
I've used Android Signer from PPC Geeks.
Sent from my ADR6300 using xda premium
Yes you can install it with adb or with root explorer and setting permissions. I've used android signer from ppc geeks as well on Windows.
Sent from my ADR6300 using XDA App
Thank you all. As I tried to install it however it tells me I compiled it wrong and to contact the developer or whatever.
All I changed was the stat_sys_battery and stat_sys_battery_charge xml files. I used cyanbreadx.apk and i dont want to edit framework-res on my rom just incase I mess it up.
I'm I missing something here? Do I have to edit anymore xml? Is it maybe the public.xml or android. xml?
Sent from my ADR6300 using XDA App
eljean said:
Thank you all. As I tried to install it however it tells me I compiled it wrong and to contact the developer or whatever.
All I changed was the stat_sys_battery and stat_sys_battery_charge xml files. I used cyanbreadx.apk and i dont want to edit framework-res on my rom just incase I mess it up.
I'm I missing something here? Do I have to edit anymore xml? Is it maybe the public.xml or android. xml?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Well, you could make a backup of your framework-res on your ROM by using adb shell. You can then use adb to revert it back if you screwed something up or it's unusable.
Create backup:
adb shell
cd /system/framework
cp framework-res.apk framework-res.bak
Restore backup:
adb shell
cd /system/framework
cp framework-res.bak framework-res.apk
Then you can try modifying your apk, and use adb push to put it back into /system/framework.
As far as other file editing, I'm not sure about that.
A very simple solution to your problem would be to use the theme kitchen http://uot.dakra.lt/. Just pick what battery you want from the ones provided, upload the cyanbread.apk, then install like a normal apk file.
RMarkwald said:
Well, you could make a backup of your framework-res on your ROM by using adb shell. You can then use adb to revert it back if you screwed something up or it's unusable.
Create backup:
adb shell
cd /system/framework
cp framework-res.apk framework-res.bak
Restore backup:
adb shell
cd /system/framework
cp framework-res.bak framework-res.apk
Then you can try modifying your apk, and use adb push to put it back into /system/framework.
As far as other file editing, I'm not sure about that.
Click to expand...
Click to collapse
It sent me in a bootloop, I guess I am compiling it wrong. I have no Idea what I am doing wrong. I rather edit the CyanbreadX.apk. So far I fixed the /res/drawable/stat_sys_battery.xml , /res/drawable/stat_sys_battery_charge and res/xml/Android.xml . I do not know what else I need to edit or what I am doing wrong.
Attached are the .xml files I customized.
Please if you can tell me what I did wrong and check them out.
***I changed the extension to .txt so it can attach.
N-Forced said:
A very simple solution to your problem would be to use the theme kitchen http://uot.dakra.lt/. Just pick what battery you want from the ones provided, upload the cyanbread.apk, then install like a normal apk file.
Click to expand...
Click to collapse
Anyway I can use my .png's since I spent a good minute modifying it in photoshop to get the colors I wanted?
eljean said:
Anyway I can use my .png's since I spent a good minute modifying it in photoshop to get the colors I wanted?
Click to expand...
Click to collapse
the theme kitchen allows you to define a custom color if you want.
Sent from my ADR6300 using XDA App
Many of the user has requested for removing of RECENT APPS from notification...so i am presenting here..do it Urself...i have confirmed it..it is working
===============================================================This mod is based on file "StatusBarFlag.smali" which is found in systemui.apk file (search for it in systemui folder after decompiling it using apktool.
Modify the below line in the "StatusBarFlag.smali" file using text editor Notepad++.
Insert "const/4 v0, 0x0" between ":goto_0 and sput-booleen v0,..." The code should be like
this-->
:goto_0
const/4 v0, 0x0
sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
-Systemui.apk decomilation and recompilation method:
Required softwaregoogle for the tools to get them):
- APKtool (apktool1.4.3.tar, apktool-install-windows-r04-brut1.tar)
- an enhanced text editor to edit the XML/smali files with (i use Notepad++);
- *Root Explorer or any other root explorer out there (i use ES File Explorer);
- any archive utility that can open .ZIP files (7zip, WinRAR etc.);
- Windows PC.
*Note: yes, you have to have root.
Step 1 (installing the tools):
- Download and install the latest Java Runtime Environment (APKtool needs at least ver. 1.6);
- Download "apktool-install-windows-r04-brut1.tar" and "apktool1.4.3.tar" and unzip
them into a folder of your choosing;
Step 2 (preparing to decompile):
- In order to properly decompile/compile SystemUI.apk, you need to install the framework with
APKtool;
- Open your root explorer of choice and navigate to /system/framework;
- Copy both "framework-res.apk" and "com.htc.resources.apk" to the SD card, then move them to
your PC either via cable or via a software of your choosing (i use AirDroid);
- Put both "framework-res.apk" and "com.htc.resources.apk" into the folder where you've
extracted APKtool;
- Open a command prompt (Windows button + R then type "cmd") and navigate to the folder
where you have APKtool and the framework APKs;
- Type "apktool if framework-res.apk" then "apktool if com.htc.resources.apk". Your files will be
processed and the required bits will be "installed" in "C:/Users//apktool
/framework";
- You can now delete both APKs from the folder.
Step 3 (proper decompilation):
- Copy your SystemUI.apk from "/system/app" to the folder where you've extracted APKtool;
- Open a command prompt, navigate to the APKtool folder, type "apktool d SystemUI.apk" and
wait 'till APKtool has finished. You should get no errors whatsoever and your APK should now be
decompiled into "readable format" in "/SystemUI". Edit the file StatusBarFlag.smali with the text editor of your choosing.
Step 4 (proper compilation):
- After making the desired changes in the systemui.apk, it's now time to compile it;
- Open a command prompt, navigate to the APKtool folder then type "apktool b SystemUI". Your
APK will now be compiled to "/SystemUI/dist" (again, you should get no
errors whatsoever). DON'T USE IT YET!
- Being a system app, SystemUI.apk must first be signed with the proper keys else odds are it
won't work. To do that, you need to rename the SystemUI.apk you're editing (the original one)
into SystemUI.zip, open it with an archive manager then extract META-INF and
AndroidManifest.xml to the "/SystemUI/build/apk" folder, then run the
"apktool b SystemUI" command again. Your APK will now be built with the proper keys included,
and is now fully functional. You may "pick it up" from the "/SystemUI/dist"
folder;
- You can now flash the resulting (modded) APK to your device either via ADB or via a way of
your choosing (.ZIP from recovery etc.) or just replace the old systemui.apk with modified systemui.apk using esfile manager, rootexplorer etc.
Enjoy
Thanks to
Upadhyay
Plz dont say this is not working for me....just read it carefully than do it..
Screen shot...
{
"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"
}
(Note:this notification bar transperancy is Moded by mee)
Its actualy sense only not sense 2.1 only as it worsk on 3.5 too.
Also confirm it works, though I had to make a flashable zip. I had previously tried to use a file manager as soon as the new apk overwrote the old I was spammed with FCs (rebooting, setting permissions, and rebooting again did nothing, the whole notification bar wouldn't load). So, if you do encounter errors, try it as a flashable zip.
lol i posted this the other day!!
elspanish88 said:
lol i posted this the other day!!
Click to expand...
Click to collapse
You actualy linked it not posted and he did say its not his invention or anything just spreading the word.
baluuu said:
You actualy linked it not posted and he did say its not his invention or anything just spreading the word.
Click to expand...
Click to collapse
thanks man...i havent said that give me credit...
baluuu said:
Its actualy sense only not sense 2.1 only as it worsk on 3.5 too.
Click to expand...
Click to collapse
if u have tried and if confirmed than tell me, i will change the title
i dont care?? im not saying he has stolen my post :/ its freely available on the net
elspanish88 said:
i dont care?? im not saying he has stolen my post :/ its freely available on the net
Click to expand...
Click to collapse
Plz give him credit officialy on xda
Lol(stolen post)
Sent from my HTC Wildfire S A510e using xda app-developers app
smartboy0668 said:
if u have tried and if confirmed than tell me, i will change the title
Click to expand...
Click to collapse
Yep tried and confirmed here
that's really worth trying, thanks for putting all of this in one place, what about removing the operator name with that "clear" button ? any clue ?
Sent from my HTC Wildfire S A510e using xda app-developers app
Thanks for this!
damnit I cant get this to work -__-
danielstar13 said:
damnit I cant get this to work -__-
Click to expand...
Click to collapse
Try it with each step carefully read...it happened with mee too...just check you have installed your apktool properly ...
Sent from my HTC Wildfire S A510e using xda app-developers app
so do I have to install apktool too? i thought you just extract that..
danielstar13 said:
so do I have to install apktool too? i thought you just extract that..
Click to expand...
Click to collapse
Try to search tutorial for apktool on xda...
Sent from my HTC Wildfire S A510e using xda app-developers app
I dont get the dist folder when compiling.. what is wrong?
danielstar13 said:
I dont get the dist folder when compiling.. what is wrong?
Click to expand...
Click to collapse
that happened to me, make sure you install JDK (Java Development Kit)...that solved the problem for me....
Sent from my HTC Wildfire S A510e using xda app-developers app
Can't Find "StatusBarFlag.smali" on SystemUI Folder
Hi,
I've installed all necessary tools on my PC.
I don't find this file on any of the SystemUI folder after decompiled.
Take a look at this image of the Folders List.
How to accomplish this...?
Theming a keyboard may be common knowledge to some of the amazing Devs here. But to a noob like me, it took some research and time to get it working without breaking the original signature (That's the trick!). I searched the forum and it doesn't look like anyone has posted a "How To" on theming a keyboard, so I thought I'd share my experience with you all.
**Some of these steps may seem elementary, but I tried to explain everything in layman's terms so even a beginner can theme a keyboard.
// Before you get started:
You must have a working environment setup. Check out QBKing77's awesome video "How to install the android-sdk" to get that going.http://forum.xda-developers.com/showthread.php?t=1614922
Make sure you also have installed:
Notepad++ (for editing xml) // (www.notepad-plus-plus.org)
7zip (for extracting apks) // (www.7-zip.org)
the image editor of your choice. I use Paint.Net(www.getpaint.net), and Gimp(www.gimp.org). Both FREE!
apktool (http://forum.xda-developers.com/showthread.php?t=1755243)
LatinImeDictionaryPack.apk (drop in the 'system\app' folder on your phone. Only for the LatinIME.apk) Grab it here: http://d-h.st/Ebb
// This method has worked with every keyboard that I have encountered so far. I will use 'LatinIME.apk' for reference, as that is the stock ICS keyboard. //
WARNING.. DO NOT POST DISTRIBUTION LINKS TO ANY MODDED 'Swype.apk'. XDA HAS A STANDING ORDER FROM NUANCE (MAKERS OF SWYPE), THAT DOES NOT ALLOW SUCH LINKS TO BE POSTED.
1) To start make sure you have a working copy of your keyboard apk; grab it out of a ROM, download it, or use a file manager with root access (like Root Explorer) to copy it to your SD card then to your computer.
**I would suggest dropping the keyboard apk into a folder on the desktop, seperate from anything else, and making a backup of the original so that you have a spare copy.
2) Using 7zip extract the 'res\drawable-xhdpi' folder into the folder you created. This folder will contain the pngs that control some of the keys, outlined in red on this pic:
{
"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"
}
Color these pngs to match using your favorite editor and save (bucket fill with Paint.Net is a breeze!)
3) Now that your pngs are themed.. Within the folder that you created containing your apk, hold down shift and right click. Select "Open Command Window Here" to fire up command prompt.
4) Next to decompile the keyboard apk with apktool (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.).
Type this command:
Code:
apktool d LatinIME.apk
When it's done, you will see a folder with the apk name appear, within the folder you created. Click into it and you should see at minimun a 'res' folder and a 'smali' folder.
5) Navigate to 'res\values' folder. Depending on the keyboard you are working on, the xml controlling the remaining key colors will be contained in the 'colors.xml' or 'styles.xml' file. Open with Notepad++, and change the color codes as needed. Save and close.
6) Go back to the root of the folder containing your apk, and fire up command prompt (if it's not still open). Now it's time to build using this command (again using 'LatinIME.apk' for reference, but the apk may be of a different name; SamsungIME.apk, HTC_IME.apk, etc.)
Code:
apktool b LatinIME
7) When it's done building, you should have 4 folders minimum now (res, smali, build, dist) and it's time for the key to success. Navigate into the 'dist' folder and you will see the "Built" apk. Open it with 7zip, and extract the 'resources.arsc' file to your folder. Close 7zip.
8) Now it's time to pull it all together. Navigate back to the ORIGINAL keyboard apk, and open with 7zip.
Copy (you can drag and drop with 7zip) the 'resources.arsc' that you extracted from your "Built" apk, into the "ORIGINAL" apk overwriting the file. Then with 7zip still open and the apk loaded, navigate (within 7zip) into the 'res\drawable-xhdpi' folder where you should see the list of unthemed pngs. Simply drop your edited pngs into this folder. Close 7zip and you're done here!
9) Finally, take your "ORIGINAL" but themed apk, and push it back the 'system\app' folder on your phone.
Fix permissions to 'rw-r--r--' (only check everything under 'read' and Owner under 'write')
Reboot, and bask in the glory of your new themed keyboard!
**Alternatively, grab my empty zip installer here: http://d-h.st/oKG to flash in recovery. You must drop your themed apk into the system\app folder of the zip and save. Also, the zip already contains the 'LatinImeDictionaryPack.apk'
Please hit THANKS if I helped!! And please keep this thread alive!
Nice,
Now, we need a simple guide on how to theme Jelly Bean...all of it ... (tapping foot patiently)
Thanks!
Naddict said:
Nice,
Now, we need a simple guide on how to theme Jelly Bean...all of it ... (tapping foot patiently)
Thanks!
Click to expand...
Click to collapse
Themed the same just new xml and some new images. I got everything to decompile and recompile, just some of the xml's have changed.
---------- Post added at 09:41 PM ---------- Previous post was at 09:39 PM ----------
Thanks rompnit. I can there a whole Rom but always have issues with the keyboard. I'll try this tomorrow night.
Sorry i'm a nub but does the apktool jar file have to be in the same folder as android-sdk?
shehroze3 said:
Sorry i'm a nub but does the apktool jar file have to be in the same folder as android-sdk?
Click to expand...
Click to collapse
I actually created a folder 'C:\apktool' where I dropped everything, then added that folder to the Path system variable; same method as you would add the SDK. Otherwise, drop it into the 'platform-tools' folder within the android-sdk. When configured properly, you should be able to open command prompt in any directory, simply type 'apktool' and see a list of commands.
rompnit said:
I actually created a folder 'C:\apktool' where I dropped everything, then added that folder to the Path system variable; same method as you would add the SDK. Otherwise, drop it into the 'platform-tools' folder within the android-sdk. When configured properly, you should be able to open command prompt in any directory, simply type 'apktool' and see a list of commands.
Click to expand...
Click to collapse
ok i did what u said and put the apktool jar file into the platform-tool folder, but when i type apktool in cmd prompt nothing happens.
shehroze3 said:
ok i did what u said and put the apktool jar file into the platform-tool folder, but when i type apktool in cmd prompt nothing happens.
Click to expand...
Click to collapse
Did you also grab the "wrapper" script from the link as well? It contains a few more necessary files that go with apktool.
Sent from my SPH-L710 using xda app-developers app
time for dazed and rompnit to collaborate. maybe a simple guide for us wannabees...
recompiling never works for me, I read somewhere about empty folders being my problem...oh well, I can use 7zip though! and notepad+...
rompnit said:
Did you also grab the "wrapper" script from the link as well? It contains a few more necessary files that go with apktool.
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
I'll check it out when I get home. Thanks
Sent from my SPH-L710 using xda premium
ok i got it to work. All i had to do was rename apktool_1.5.0 to apktool. I'm a noob, i know, try not to laugh to hard lmao
shehroze3 said:
ok i got it to work. All i had to do was rename apktool_1.5.0 to apktool. I'm a noob, i know, try not to laugh to hard lmao
Click to expand...
Click to collapse
Glad you got it to work!! And everyone has to start somewhere! Let me know how it turns out for ya!!
Sent from my SPH-L710 using xda app-developers app
Does this method work for both Odex and De-Odex ROMs??? I am currently on an Odex rom. Thanks!!
taihard said:
Does this method work for both Odex and De-Odex ROMs??? I am currently on an Odex rom. Thanks!!
Click to expand...
Click to collapse
This method will not work on .odex keyboard apk's, at least to my knowledge but I've always run deodexed ROMS. However, check to see if the keyboard apk you are working with even contains an odex file; a lot of them do not. If it does, you could always grab the apk off the web, mod it, and install it after removing the original files.
Thank you for the walk through, this is awesome
Hey Rompnit. Ok, I was having trouble getting apktool to run on my computer. That's what I was talking about on morphology anyway, so I was trying to learn how to theme an app and somehow was lead to morphology and got all caught up over there. Lol. But ya, I'm gonna have to crap clean my laptop to use this. Thanks. See ya over there
Sent from my Insanely Morphed S3 LI3 ktoonsez747 (196-2106) TW FreeGs3 2.0.0
rompnit said:
This method will not work on .odex keyboard apk's, at least to my knowledge but I've always run deodexed ROMS. However, check to see if the keyboard apk you are working with even contains an odex file; a lot of them do not. If it does, you could always grab the apk off the web, mod it, and install it after removing the original files.
Click to expand...
Click to collapse
This method WILL in fact work on odexed keyboards. Theming for an odex base is no different then a de-odexed base. You are not making any smali adjustments here so nothing that concerns the odex, thus it will not be affected.
Sent from my SPH-L710 using xda app-developers app
Guess no one was interested in theming an odexed keyboard after all huh? ....
Sent from my SPH-L710 using xda app-developers app
gruesomewolf said:
Guess no one was interested in theming an odexed keyboard after all huh? ....
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Guess not.. This thread's been quiet for a while... I guess people just don't want to theme keyboards in general!
Hey do you know if this process will work with keyboards from the market like SwiftKey 3? The themeson there are so boring need new colors lol
rompnit said:
Guess not.. This thread's been quiet for a while... I guess people just don't want to theme keyboards in general!
Click to expand...
Click to collapse
Guess that's what we get for trying to help. ... lol
[TUTORIAL][GUIDE][BATTERY ICON PACKS COMPILATION]
Assalamualaikum and hi everyone...
i make this thread for compilation of battery icon pack
you can download it from attachment at 1st, 2nd and 3rd post
Note: those icon packs are not flashable..you need to extract them and put to your framework-res.apk
screenshot for compilation of battery icon packs
{
"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"
}
GUIDE
This guide is about how to change battery icon and make it changing by 1% and continuously increasing animation by 1% while charging.
Actually this is very simple guide and many of you already know this.
Some of roms out there already have this animation so this guide is for users of rom that not have this animated battery icon.
Note: Since it is a flow animation so i don't know how to show you..i just upload some screenshots
I'm not responsible for any damage done to your phone.
Use at your own risk!
Click to expand...
Click to collapse
things needed:-
1. knowledge about how to decompile and recompile apk files
2. APKTool
3. framework-res.apk of your rom
4. XML editor
5. XML file that i attached at the attachment
6. PNG icon (download it at attachment or you can choose your own)
Make sure you make a back up for your current framework-res.apk
Click to expand...
Click to collapse
steps:-
1. download my xml file that i attached at the attachment
2. take out framework-res.apk from your device system and decompile it
3. copy downloaded xml files and go to folder framework-res/res/drawable paste and replace there
4. next put png image i attached or choose your own png to framework-res/res/drawable-ldpi
5. recompile framework-res.apk and push to your system
6. Done! (try to put charger to see whether charging animation working or not)
IF ABOVE STEPS NOT WORKING TRY THIS!
steps:-
1. download xml file that i attached at the attachment
2. take out framework-res.apk from your device system and decompile it
3. go to framework-res/res/drawable
4. open stat_sys_battery.xml with xml editor
5. find this line and delete all text below that
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
6. open stat_sys_battery.xml file that i attached and copy text inside it starting from
Code:
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
until the end of text and paste it below text at step no 5. (take note about lines and alignment)
7. save that xml file
8. next open stat_sys_battery_charge.xml in your drawable folder
9. find this line and delete all text below that
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
10. open stat_sys_battery_charge.xml that i attached and copy text inside it starting from
Code:
<item android:duration="1500" android:drawable="@drawable/stat_sys_battery_charge_anim0" />
until the end of text and paste it below line at step no 9. (i can't put here because they too long)
11. save both xml files
12. next put png image i attached or choose your own png to framework-res/res/drawable-ldpi
13. recompile framework-res.apk and push to your system
14. Done! (try to put charger to see whether charging animation working or not)
Credit:
-Google
-creator of those png icon
Sorry for my bad english
more battery icon packs
more battery icon packs
nice...
can i put it up in my upcoming website???
Blaze said:
can i put it up in my upcoming website???
Click to expand...
Click to collapse
Sure!!! and don't forget to give me link to that website,,,
Hey ! all is Good! Very Nice !
Will Try And Report !
it's not work on stock DXLF2 rom.
but it can work on CREED v4 rom.
can u tell me the problem?
fajarfuad said:
it's not work on stock DXLF2 rom.
but it can work on CREED v4 rom.
can u tell me the problem?
Click to expand...
Click to collapse
stock odex or deodex? this mode will not work on stock odex? but for stock deodex i'm not sure working or not
Asmy Yuh said:
stock odex or deodex? this mode will not work on stock odex? but for stock deodex i'm not sure working or not
Click to expand...
Click to collapse
my stock rom is deodex. but it still not working :'(
fajarfuad said:
my stock rom is deodex. but it still not working :'(
Click to expand...
Click to collapse
i'll check it and report
fajarfuad said:
it's not work on stock DXLF2 rom.
but it can work on CREED v4 rom.
can u tell me the problem?
Click to expand...
Click to collapse
i have try this mode on stock deodex DXLL1 and it works..
Asmy Yuh said:
i have try this mode on stock deodex DXLL1 and it works..
Click to expand...
Click to collapse
really?
can you tell me step by step when decompiling and compiling framework-res.apk ?
i'm confused.
thanks before
fajarfuad said:
really?
can you tell me step by step when decompiling and compiling framework-res.apk ?
i'm confused.
thanks before
Click to expand...
Click to collapse
do u really know how to recompile and decompile?
did u copy META-INF folder from original framework-res.apk?
Asmy Yuh said:
do u really know how to recompile and decompile?
did u copy META-INF folder from original framework-res.apk?
Click to expand...
Click to collapse
i'm sure i following the guide to decompile and recompile with apktool.
and i'm succes to decompile original framework-res.apk and edit this.
when i recompile. it says...
W: couldn't find sources
I: checking wheter resources has changed . . .
I: building resources . . .
Warning: AndroidManifest.xml already defines minSdkVersion (bla. . .bla. . .)
is this normal?
but build and dist folder was appear..
fajarfuad said:
i'm sure i following the guide to decompile and recompile with apktool.
and i'm succes to decompile original framework-res.apk and edit this.
when i recompile. it says...
W: couldn't find sources
I: checking wheter resources has changed . . .
I: building resources . . .
Warning: AndroidManifest.xml already defines minSdkVersion (bla. . .bla. . .)
is this normal?
but build and dist folder was appear..
Click to expand...
Click to collapse
after that did u copy META-INF folder from original framework to modified framework?
Asmy Yuh said:
after that did u copy META-INF folder from original framework to modified framework?
Click to expand...
Click to collapse
so i must copy META-INF folder from original framework to build folder?
fajarfuad said:
so i must copy META-INF folder from original framework to build folder?
Click to expand...
Click to collapse
YES! copy META-INF folder to modified framework-res.apk
Asmy Yuh said:
YES! copy META-INF folder to modified framework-res.apk
Click to expand...
Click to collapse
okay, i will try it
thank you very much.
dosen't work here
test
#Luan said:
dosen't work here
Click to expand...
Click to collapse
thanks, i'm test
@wali01x i tried decompiling twframework.apk for adding the crt animation in my gt i9082. i refered to the post that u have written here. But its not getting extracted. It is showing few errors!!(screenshot attached for ur ready referrence). So will u plz edit it for me as i wanted the horizontal crt animation in a new rom which i m making.
n will u please also tell me that where i m going rong! n yes...i have java installed. @balliboxer @chotu222 @kk9999gada and other xda members if u know the solution then i nedd ur help too!!!
(Please open the images by right clicking on the thumbnail and then opening it in a new tab. Thankyou.)
{
"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"
}
- Error
- Log
Thanking u all in anticipation!:fingers-crossed:
adityab721 said:
@wali01x i tried decompiling twframework.apk for adding the crt animation in my gt i9082. i refered to the post that u have written here. But its not getting extracted. It is showing few errors!!(screenshot attached for ur ready referrence). So will u plz edit it for me as i wanted the horizontal crt animation in a new rom which i m making.
n will u please also tell me that where i m going rong! n yes...i have java installed. @balliboxer @chotu222 @kk9999gada and other xda members if u know the solution then i nedd ur help too!!!
(Please open the images by right clicking on the thumbnail and then opening it in a new tab. Thankyou.)
- Error
- Log
Thanking u all in anticipation!:fingers-crossed:
Click to expand...
Click to collapse
First of all I recommend you to use apktool for decompiling apks.
Tools Required:
Apktool (Download)
7-zip (Don't use WinRAR) (Download from Here)
Notepad++ (Download from Here)
Installing Apktool:
Download it from the attachment.(Apktool.zip)
Now Extract 3 files present inside zip to "C:\Windows" without any folder.
You have now installed apktool.
Installing frameworks:
Create a folder named "Apktool" here "C:\Apktool" or on any location with any name you want.
Copy "framework-res.apk" and "twframework-res.apk" (without quotes) to that folder you created.
Now hold Shift key and right click anywhere on the empty area in explorer. (See Image)
Select "Open Command Window Here" (See Image)
Now you will get a command window (See Image).
Now type "apktool if framework-res.apk" (without quotes). It will be installed. (See Image)
Now type "apktool if twframework-res.apk" (without quotes). (See Image)
Now both the frameworks are installed.
Compiling & Decompiling Apks:
To decompile the Apk place desired the apk inside the folder you created.
Once again hold Shift key and right click anywhere on the empty area in explorer.
Now type "apktool d framework-res.apk" or any **.apk you want to decompile (without quotes).
Similarly you can also decompile "twframework-res.apk" (See Image)
Now to compile back type "apktool b framework-res" (without quores and without .apk extension). (See Image)
Now you have successfully compiled apk.
Lockscreen CRT-OFF Animation:
Decompile framework-res.apk using the above tutorial.
Now navigate to \framework-res\res\values\bools.xml
Now edit bools.xml using Notepad++ (Don't use the inbuilt notepad of windows it will corrupt the file as it is not linux based)
Find "<bool name="config_animateScreenLights">true</bool>"
Now change "true" to "false" and save the file and exit Notepad++
Now compile back the apk using the above tutorial.
Now open the decompiled folder you will see two new folders "build" and "dist"
Go inside "build\apk" folder you will find a file named "resources.arsc"
Now open the original apk say, "framework-res.apk" that is inside C:\Apktool using 7-zip
Drag the "resources.arsc" from framework-res\build\apk\ to the original apk
Now you have successfully applied CRT-OFF Animation.
You can now replace the apk inside the phone with the modded one using root explorer.
Don't forget to keep a Nandroid Backup and a separate backup of original framework-res.apk just in case something goes wrong
kk9999gada said:
First of all I recommend you to use apktool for decompiling apks.
Tools Required:
Apktool (Download)
7-zip (Don't use WinRAR) (Download from Here)
Notepad++ (Download from Here)
Installing Apktool:
Download it from the attachment.(Apktool.zip)
Now Extract 3 files present inside zip to "C:\Windows" without any folder.
You have now installed apktool.
Installing frameworks:
Create a folder named "Apktool" here "C:\Apktool" or on any location with any name you want.
Copy "framework-res.apk" and "twframework-res.apk" (without quotes) to that folder you created.
Now hold Shift key and right click anywhere on the empty area in explorer. (See Image)
Select "Open Command Window Here" (See Image)
Now you will get a command window (See Image).
Now type "apktool if framework-res.apk" (without quotes). It will be installed. (See Image)
Now type "apktool if twframework-res.apk" (without quotes). (See Image)
Now both the frameworks are installed.
Compiling & Decompiling Apks:
To decompile the Apk place desired the apk inside the folder you created.
Once again hold Shift key and right click anywhere on the empty area in explorer.
Now type "apktool d framework-res.apk" or any **.apk you want to decompile (without quotes).
Similarly you can also decompile "twframework-res.apk" (See Image)
Now to compile back type "apktool b framework-res" (without quores and without .apk extension). (See Image)
Now you have successfully compiled apk.
Lockscreen CRT-OFF Animation:
Decompile framework-res.apk using the above tutorial.
Now navigate to \framework-res\res\values\bools.xml
Now edit bools.xml using Notepad++ (Don't use the inbuilt notepad of windows it will corrupt the file as it is not linux based)
Find "<bool name="config_animateScreenLights">true</bool>"
Now change "true" to "false" and save the file and exit Notepad++
Now compile back the apk using the above tutorial.
Now open the decompiled folder you will see two new folders "build" and "dist"
Go inside "build\apk" folder you will find a file named "resources.arsc"
Now open the original apk say, "framework-res.apk" that is inside C:\Apktool using 7-zip
Drag the "resources.arsc" from framework-res\build\apk\ to the original apk
Now you have successfully applied CRT-OFF Animation.
You can now replace the apk inside the phone with the modded one using root explorer.
Don't forget to keep a Nandroid Backup and a separate backup of original framework-res.apk just in case something goes wrong
Click to expand...
Click to collapse
Ok! Thanku! I have decompiled my frawework successfully! Bt that animateScreenLights in my bools is already false! So waht should I do? Should I make it true? Or should I compile the apk without making any changes?
Sent from my GT-I9082 using XDA Premium 4 mobile app
adityab721 said:
Ok! Thanku! I have decompiled my frawework successfully! Bt that animateScreenLights in my bools is already false! So waht should I do? Should I make it true? Or should I compile the apk without making any changes?
Sent from my GT-I9082 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Looks like Samsung is trying to block developers from editing the apks by removing some features. Sorry bro but I know this much only about crt off animation.
However you can try this app from play store as it has CRT-OFF ANIMATION
https://play.google.com/store/apps/details?id=com.katecca.screenofflock&hl=en
kk9999gada said:
Looks like Samsung is trying to block developers from editing the apks by removing some features. Sorry bro but I know this much only about crt off animation.
However you can try this app from play store as it has CRT-OFF ANIMATION
https://play.google.com/store/apps/details?id=com.katecca.screenofflock&hl=en
Click to expand...
Click to collapse
Yes I know about that app..bt I wanted the animation as integrated in ur inspiration rom! Unlucky Me! :crying: Anywayz...thanks a ton for ur concern!
Sent from my GT-I9082 using XDA Premium 4 mobile app