[Q] [APKTool] Editing Korean Froyo 80 Char Limitation SMS Stock App - Defy Android Development

I like Official Korean Froyo, it runs good and smooth.
And i like the stock SMS app on that release, it has a bubble conversation type, and it run smooth (even when compared to GO SMS).
{
"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"
}
But, it has disadvantages for who lived outside Korea, which there is no limitation 80 character each SMS.
Okay, because Korean Froyo has limitation 80 character while sending SMS.
I am trying to decompile Conversations.APK from /system/app with APKTool
I am using framework-res.apk, blur-res.apk and moto-res.apk as the framework.
It was successfuly decompiled.
I am trying to search XML which responsible limiting the character while sending SMS.
I might found it, the name is public.XML inside \res\values of that decompiled APK
I found this line:
<public type="string" name="convert_max_chars_reached" id="0x7f0b0174" />
I think, that is the line i'm searching..
But what is "0x7f0b0174"
is it hexadecimal or something..?
if it's hexadecimal, is 7f0b0174 the hexadecimal of "80"?
because if it's true, then that is the exact line i am searching,
and i want to change it with proper character limitation just like another region.
thank you,
i'm just a noob.. please forgive me if it's just stupid thing to ask

This is more complicated. It is an id, leading to location of the value you are searching for. It should be located somewhere in classes.dex as some .smali programmed in java.

peetr_ said:
This is more complicated. It is an id, leading to location of the value you are searching for. It should be located somewhere in classes.dex as some .smali programmed in java.
Click to expand...
Click to collapse
okay..
it's not that simple as i thought.
it's not a value i could simply change.
so, i have to change the value in classes.dex right?
where i can find classes.dex?
because i can't find it on my decompiled folder...

If you decompile with APKmanager, then you should have both, resources.arsc and classes.dex decompiled.
But after decompilation, there is no classes.dex, but folder with many .smali files.
And that's all I know. No java programming

if there were a switch to this in the said apk, it should be in arrays/integers/values.xml, just saying.

its an hex pointer or identifier of a part of string xml file where all the string values are stored. i know that this might sound more complicated than you expected, but if you can decode the smali files or the dex file, you might be able to get an file with all the strings on the apk. that is where you need to change the char limit. And just for your information, if you grab the Conversation.apk from a froyo tmobile us rom and replace the default one on /system/app using root explorer or adb, you might actually be able to change the limitation. i haven't tried it yet, but as far as i know, it should work. good luck

ksubedi said:
its an hex pointer or identifier of a part of string xml file where all the string values are stored. i know that this might sound more complicated than you expected, but if you can decode the smali files or the dex file, you might be able to get an file with all the strings on the apk. that is where you need to change the char limit. And just for your information, if you grab the Conversation.apk from a froyo tmobile us rom and replace the default one on /system/app using root explorer or adb, you might actually be able to change the limitation. i haven't tried it yet, but as far as i know, it should work. good luck
Click to expand...
Click to collapse
I think he knows that but he wants the korean app because of the bubbles conversation.

peetr_ said:
If you decompile with APKmanager, then you should have both, resources.arsc and classes.dex decompiled.
But after decompilation, there is no classes.dex, but folder with many .smali files.
And that's all I know. No java programming
Click to expand...
Click to collapse
um.. i think there is no DEX file here..
because i realize it is system apps, which come in pair:
an .APK file and his pair .ODEX file
i think classes.dex is lies within .ODEX file.
is that true? if it's true how to extract classes.dex from that?
racca said:
if there were a switch to this in the said apk, it should be in arrays/integers/values.xml, just saying.
Click to expand...
Click to collapse
um.. i didn't find that XML file..
i'll try to attacth my decompiled folder, you can see there there's no that file.
ksubedi said:
its an hex pointer or identifier of a part of string xml file where all the string values are stored. i know that this might sound more complicated than you expected, but if you can decode the smali files or the dex file, you might be able to get an file with all the strings on the apk. that is where you need to change the char limit. And just for your information, if you grab the Conversation.apk from a froyo tmobile us rom and replace the default one on /system/app using root explorer or adb, you might actually be able to change the limitation. i haven't tried it yet, but as far as i know, it should work. good luck
Click to expand...
Click to collapse
i google it an i found something, it is system apps, which the DEX file is not lies within the APK itself, but inside ODEX file.
there's two file named Conversation in /system/app/, it is Conversation.APK and Conversation.ODEX
so how to extract the classes.dex from that ODEX file?
about change the APP from the other SBF release,
um... maybe this is the last option for me
but i might reconsider that. i have to change two file right? the APK and ODEX?
hirano said:
I think he knows that but he wants the korean app because of the bubbles conversation.
Click to expand...
Click to collapse
hahhaa... i know it sound childish about that bubble-bubbles...
but i like it. i prefer the bubble than the normal list...
and i think stock sms apps in another release have a some glitch.
in a conversation (which in list mode, not bubbles ),
the photo/avatar of me is not shown, but the photo/avatar of the person you text to is shown.
here i attach the decompiled folder of Korean Conversation.APK using APKTool.
and i might attacht the ODEX file too...

If you want just bubbles, try the conversations.apk app from 3.4.3.11.
Sent from my MB525 using XDA App

hirano said:
If you want just bubbles, try the conversations.apk app from 3.4.3.11.
Sent from my MB525 using XDA App
Click to expand...
Click to collapse
what? i didn't knew that.
before i am using korean froyo, i am using pays 5.1 which based from 3.4.3-11.
i didn't check it though, i straight apply pays zip after flashing.
and when i am on pays rom, default sms apps is not bubbles
maybe pays edit that on his rom
um.. what is the safest way to change the conversation.APK and conversation.ODEX?
when i try to delete something from \system\app with root explorer,
suddenly the app cannot be started again,
even though i have been copy-paste the new one to the \system\app

I think you should deodex that rom first. Then you'll have all classes.dex in all apk files and no odex files.

marhensa said:
um.. what is the safest way to change the conversation.APK and conversation.ODEX?
when i try to delete something from \system\app with root explorer,
suddenly the app cannot be started again,
even though i have been copy-paste the new one to the \system\app
Click to expand...
Click to collapse
Delete the old ones first using root explorer, then copy the new ones there using root explorer again, and change permissions of all files (you need to copy odex files too) to rw-r-r using root explorer. Then reboot Sometimes, the app doesnt start if you dont reboot. I've tried it.

peetr_ said:
I think you should deodex that rom first. Then you'll have all classes.dex in all apk files and no odex files.
Click to expand...
Click to collapse
it gets more difficult..
okay i give up
maybe i just have to use 3rd party sms apps..

ksubedi said:
Delete the old ones first using root explorer, then copy the new ones there using root explorer again, and change permissions of all files (you need to copy odex files too) to rw-r-r using root explorer. Then reboot Sometimes, the app doesnt start if you dont reboot. I've tried it.
Click to expand...
Click to collapse
i've tried that just before you reply..
and now i restore my nandroid backup, because it fail, the sms apps doesn't show anywhere, even when i try to reboot..
glad i have a the nandroid backup.

At least you tried

peetr_ said:
At least you tried
Click to expand...
Click to collapse
is there any thread about learning how to deodexing rom for defy?

I have no guide but I used a tool called auto deodexer (google it) to deodex a few apps for barebone rom. Havn't tried to deodex a full rom with it.
But I have the SMS app from 3.4.2-115-002 deblur and that one have bubbles.

Febernacke said:
I have no guide but I used a tool called auto deodexer (google it) to deodex a few apps for barebone rom. Havn't tried to deodex a full rom with it.
But I have the SMS app from 3.4.2-115-002 deblur and that one have bubbles.
Click to expand...
Click to collapse
thanks for the info..
i found that on http://forum.xda-developers.com/showthread.php?t=598026
but certainly i have no idea about what they say...
i'm trying to understand..

This is from Official Chinese 2.21 (1.11) ROM
http://rapidshare.com/files/455899839/sms.rar
Just push the contents of the rar to /system/app/
It have 2 modes to choose, bubbles and traditional mode. Hope this works for you.

unrafa said:
This is from Official Chinese 2.21 (1.11) ROM
http://rapidshare.com/files/455899839/sms.rar
Just push the contents of the rar to /system/app/
It have 2 modes to choose, bubbles and traditional mode. Hope this works for you.
Click to expand...
Click to collapse
thank you mate..
is it any limitation of character like korean?
i hope not..
once again.. thank you..

Related

[?]Question about theming .apk files

I'm trying to theme a few .apk's and I can't figure out what I'm doing wrong. I'm new to theming android so bare with me if its a noob mistake.
I get the original.apk and change it to original.zip
Then I extract original.zip to a folder
In the folder I go into SYSTEM/drawable/ folder and edit the .png files that I want to edit.
Once finished I re-package the folder as a .zip
Change the .zip to .apk
Then I run it through the APK Signer (don't remember where I got it but it was on XDA)
Once signed I change the name back to whatever it was before
Then I try to install it but installation always fails.
Is there a step I'm missing or messing up? Is there another way to sign APK's that works better? Like I said I'm new to this way of theming but I thought this was all I was supposed to do.
PMDColeslaw said:
I'm trying to theme a few .apk's and I can't figure out what I'm doing wrong. I'm new to theming android so bare with me if its a noob mistake.
I get the original.apk and change it to original.zip
Then I extract original.zip to a folder
In the folder I go into SYSTEM/drawable/ folder and edit the .png files that I want to edit.
Once finished I re-package the folder as a .zip
Change the .zip to .apk
Then I run it through the APK Signer (don't remember where I got it but it was on XDA)
Once signed I change the name back to whatever it was before
Then I try to install it but installation always fails.
Is there a step I'm missing or messing up? Is there another way to sign APK's that works better? Like I said I'm new to this way of theming but I thought this was all I was supposed to do.
Click to expand...
Click to collapse
Yeah ur making it harder than it should be.
First thing search for my everything android zip in the dev section.
Then extract the Res file from the app. Do ur edits using Photoshop or gimp or whatever.
The take the edited Res file and drag it to the app. No need to resign the app or anything.
Then it can be pushed back to ur phone with adb or u can make a signed zip if u want to flash it to ur phone via recovery.
Piece of advice...use 7zip. Not winzip or winrar. Its easier for working with apps and zips.
Papa Smurf151 said:
Yeah ur making it harder than it should be.
First thing search for my everything android zip in the dev section.
Then extract the Res file from the app. Do ur edits using Photoshop or gimp or whatever.
The take the edited Res file and drag it to the app. No need to resign the app or anything.
Then it can be pushed back to ur phone with adb or u can make a signed zip if u want to flash it to ur phone via recovery.
Piece of advice...use 7zip. Not winzip or winrar. Its easier for working with apps and zips.
Click to expand...
Click to collapse
Awesome! I'll try it out. I figured I was making it harder than it had to be, lol.
EDIT: Whoa! I'll have to try that everything zip of yours at home. I'm at work right now and that thing is a monster, lol. I'm still gonna try the 7z steps though
PMDColeslaw said:
Awesome! I'll try it out. I figured I was making it harder than it had to be, lol.
EDIT: Whoa! I'll have to try that everything zip of yours at home. I'm at work right now and that thing is a monster, lol. I'm still gonna try the 7z steps though
Click to expand...
Click to collapse
Yeah its a huge file but has a ton of stuff to get started with theming and rom building and app building. Its worth the download but again its huge lol
Ok so I've been working on it all day and I've made some progress, but still nothing usable. Now when I flash my signed zip the phone loads and the theme is there (looking great) but the phone never finds signal. It searches for a while but never hits on a tower or anything. After a few minutes the android process starts FC'ing over and over. :-(
Here's what I got if someone has time to look at it...
http://www.4shared.com/file/qwzRnZ0T/update1-signed.html
Sent from my SUPER HERO with Froyo using the XDA app
PMDColeslaw said:
Then I try to install it but installation always fails.
Is there a step I'm missing or messing up?
Click to expand...
Click to collapse
im assuming u are pushing the apk back to the phone.. if this is where its failing it seems like u didn't adb remount before you push the apk...
bk718 said:
im assuming u are pushing the apk back to the phone.. if this is where its failing it seems like u didn't adb remount before you push the apk...
Click to expand...
Click to collapse
No I am signing the .zip to be flashable from recovery (I'm at work = no ADB) I did just get it working though! I think that the issue was with an xml file I tried to edit to change the carrier name. (I'm not with sprint)
Not sure why it broke it but once I reverted back to the original it flashed fine.
Ok new issue, how do I get an apk to work/install once I've edited it? I packed it back up as a zip and then changed .zip to . apk . What else should I do? It shows up as the app and let's me go through the install steps, but then it says app not installed.
Sent from my SUPER HERO with Froyo using the XDA app
PMDColeslaw said:
Ok new issue, how do I get an apk to work/install once I've edited it? I packed it back up as a zip and then changed .zip to . apk . What else should I do? It shows up as the app and let's me go through the install steps, but then it says app not installed.
Sent from my SUPER HERO with Froyo using the XDA app
Click to expand...
Click to collapse
No reason to keep changing from apk to zip and so forth. Some apps wont install if its a system app.
U might have to flash it via recovery in a signed zip or push via adb
Papa Smurf151 said:
No reason to keep changing from apk to zip and so forth. Some apps wont install if its a system app.
U might have to flash it via recovery in a signed zip or push via adb
Click to expand...
Click to collapse
Oh ok, its the launcher pro app. I guess ill just add it to the theme flash zip
I just thought you could edit an apk and then install it.
Thanks!
Sent from my SUPER HERO with Froyo using the XDA app
Blue Echo Rom Page Theme
Papa Smurf151 said:
No reason to keep changing from apk to zip and so forth. Some apps wont install if its a system app.
U might have to flash it via recovery in a signed zip or push via adb
Click to expand...
Click to collapse
I was wondering if I can use Launcher Pro with these themes????
PMDColeslaw said:
Oh ok, its the launcher pro app. I guess ill just add it to the theme flash zip
I just thought you could edit an apk and then install it.
Thanks!
Sent from my SUPER HERO with Froyo using the XDA app
Click to expand...
Click to collapse
That's not a system app. Delete the Meta folder. Then resign the apk and it will install
Papa Smurf151 said:
That's not a system app. Delete the Meta folder. Then resign the apk and it will install
Click to expand...
Click to collapse
Ahh, ok. Thanks!
Sent from my SUPER HERO with Froyo using the XDA app
rickyq12 said:
I was wondering if I can use Launcher Pro with these themes????
Click to expand...
Click to collapse
Yeah you can use it with any theme. But if you want it to match you may have to theme launcher pro yourself.
Sent from my SUPER HERO with Froyousing the XDA app
Thanks for your help bro. I'll give some of the themes a try. I was afraid I wasn't going to be able to use LP once I installed a theme. I like LP a lot so thanks for the info.
Can anyone tell me where or what the .apk is for the Power widget? I want to theme it but I cant seem to find it. I looked in the settings apk but It didnt look like the parts I want to therme were in there.
PMDColeslaw said:
Can anyone tell me where or what the .apk is for the Power widget? I want to theme it but I cant seem to find it. I looked in the settings apk but It didnt look like the parts I want to therme were in there.
Click to expand...
Click to collapse
I think its settings.apk
Papa Smurf151 said:
I think its settings.apk
Click to expand...
Click to collapse
Hmm well I looked in the settings.apk, but I couldnt tell what to edit. I'd like to change the color of the on/off indicator in the widget, but I cant figure out which png files to edit.
Can anyone tell me what .png files correspond to the white text area at the top of the Facebook widget? I want to straighten it up a bit but I can't figure out which files to edit.
{
"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"
}
Also would anyone else like the idea of changing this thread to a general Q & A for themeing different .apk's? Just a thought.
I am theming .apk too and it is defiantly a system app lol... I'm having trouble getting it to install as well and I did sign the .apk when I was done. My question is that is there a thread that I missed in my searches that I could post questions or might someone here think they could help me figure out what I'm doing wrong.
Edit:
I did try to install the .apk by flashing it as a .zip and that installs it but will force close before it is even opens. Thanks in advance

[MOD]Change "Sprint" on AOSP (No HexEdit/CDMA)(Scrolling Lockscreen Text)

I searched through EVO 4G Themes and Apps and did not find this method; however, I am posting it here in case it is a repost. I suppose a mod could move it later if users find it helpful and they felt inclined to do so.
So far the two main methods I've seen are done with CDMA workshop or hex editing .xml files. I didn't like either of these methods too much. CDMA workshop costs money unless you download it illegally, and even then it only works half the time. I do not care for hex editing very much either. Not to mention the fact that you have to use a text-hex converter and download a hex editor. Plus, whenever the framework changes in the rom (happens very often with CM) you have to do a lot of work with the .xml if you don't want your phone to bootloop into eternity. (Do not misconstrue what I am saying. The user who created the hex editing method for changing your lockscreen/notification bar text does great work and I used his method for a long time. The framework in CM changes so much though and I don't expect him to constantly update his method for one specific rom.)
I scoured several sites to find this method only to find out it has been posted on XDA. The only problem I saw was that the posts were within [Q] threads and therefore buried to the average user. This is my attempt to share this with the community. I don't take any credit for the actual method. Just trying to bring it up so we all have options.
This edit is very easy to complete. Try it at your own risk.
0. Make a Nandroid backup. Hopefully this is second nature by now.
1. Download eri.zip
2. Unzip the file to wherever you please.
3. Right click on eri.xml and choose "Open with Notepad"
4. Once you open the file you will see "Sprint" in the 5th line.
5. Delete Sprint and place whatever you would like in it's place. I believe you have up to 16 spaces to work with if need be.
6. Save the file with an .xml extension. Important: Make sure it is eri.xml and not eri.xml.txt. This will cause issues.
7. Place the eri.xml in your /androidsdk/tools directory.
8. Pull up your Command Promt/Terminal/Etc
9. CD to your /androidsdk/tools directory and:
Code:
adb remount
adb push eri.xml /data/eri.xml
adb reboot
10. Success. Hopefully.
I have heard that this method does not work for some. It worked for me earlier tonight and for another CM user that I shared it with. Hopefully this gives you an alternative to the other methods if they didn't work or if you aren't comfortable with them.
Let me know if I left anything out or if there are any issues.
{
"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"
}
UPDATE:
Thank you lovethyEVO for bringing it to my attention. Looks like this will only work for CM roms (though I would imagine it would work on any AOSP rom) at this point in time. Just tested on a Sense based rom and saw no change. Sorry folks.
UPDATE 2:
After reading through a few posts, I figured it was only right to write up some instructions on how to complete the edit from the phone itself.
Apps needed: Root explorer is ideal but it costs money and it is not necessary if you don’t want to pay for it. So for this method, we will go the long way and use AndroZip and Terminal Emulator (Possibly DropBox as well, will explain later), all of which are free on the Market.
1. Download the file to your phone. Depending on your settings it will either be on the root of your SDCard or in a “download” folder. If in a folder, move it to the root of your card. Do this by opening Androzip, go to your download folder on your SD card, long press on the file, select “Move,” press the back button, and then press the “Move Here” button that has appeared in the top right.
2. Unzip the eri.zip file. Tap on eri.zip and select “Extract file here.”
3. Open the file. Tap on your newly unzipped eri.xml, tap “Open,” pick an app to edit the file (AndroZip has a built in text reader that won’t work because it does not have an Edit option. This is where DropBox can come in handy since it contains a Text Editor in case your rom does not have one built in.)
4. Find “Sprint” and change it to your desired text. Save the file before exiting. If you try to back out before saving it should prompt you to save.
5. Move the file to the appropriate location. Exit AndroZip and Open up Terminal Emulator. Type:
Code:
su
cd /sdcard
mv eri.xml /data/eri.xml
Alternately, use
Code:
cp
instead of
Code:
mv
if you want to keep a copy of your edit eri.xml on your sdcard. Will come in handy if you ever do a full wipe and a fresh install of CM.
6. Back out of Terminal Emulator and restart your phone.
7. Success?
Sorry for the wordy directions. Tried to make sure I covered all of my bases. Figured more directions were better than not enough. Let me know how this works. You can use other apps if you want. These just happened to be the ones I had on my phone at the time. Hope this helps those that don't like ADB or just want to complete the edit straight from the phone.
UPDATE 3:
To remove the edit completely you can use Root Explorer, navigate to /data, long press on eri.xml, and then select Delete. If you don't have Root Explorer, then open Terminal Emulator and type:
Code:
su
rm -r /data/eri.xml
Reboot after deleting the file and you will go back to Sprint.
UPDATE 4:
There doesn't really seem to be a limit on the character count with this modification. 24601 did a little bit of experimenting and found out that the text will actually scroll across the lockscreen if you complete the edit with a long enough phrase. The text doesn't scroll in the drop down notification menu and looks a little jumbled, but it is definitely a cool effect on the lockscreen. Nice find either way.
Thanks man finally a fast way to do it.....using a mac everything is different lol but just wanted to confirm that it worked for me
fantastic post...
gonna test it out later and complain to you about it.
This didn't work for me. The text change is definitely on the phone. I used root explorer to find and read the eri.xml file in the data folder and my change is there, but "Sprint" still shows up on my notification bar and lockscreen, not my newly revised text. Have rebooted a second time just to be sure. Dang, I knew this sounded too easy, lol.
I'm assuming this only works for cm since in most sense based roms (and I think aosp but I'm not sure) there aren't any xml files that are parsed from the data folder.
As far as needing a text-hex convertor, you don't need it with hxd or any decent hex editor. In hxd, on the right hand pane are the text equivalents of the hex values. Just replace the text in the right hand pane and the proper hex values will be automatically updated.
When replacing text in xml files it takes me all of about 5 to 7 seconds to find, replace, and save the text without using an externel text-hex convertor.
w84mike said:
This didn't work for me. The text change is definitely on the phone. I used root explorer to find and read the eri.xml file in the data folder and my change is there, but "Sprint" still shows up on my notification bar and lockscreen, not my newly revised text. Have rebooted a second time just to be sure. Dang, I knew this sounded too easy, lol.
Click to expand...
Click to collapse
I know some people have gotten it to work by doing the edit entirely from the phone. I have noticed that sometimes files only work or rather work best when pushed to the phone. You might try the ADB method and see if that helps. If not, I will investigate. Thanks for the feedback.
lovethyEVO said:
I'm assuming this only works for cm since in most sense based roms (and I think aosp but I'm not sure) there aren't any xml files that are parsed from the data folder.
As far as needing a text-hex convertor, you don't need it with hxd or any decent hex editor. In hxd, on the right hand pane are the text equivalents of the hex values. Just replace the text in the right hand pane and the proper hex values will be automatically updated.
When replacing text in xml files it takes me all of about 5 to 7 seconds to find, replace, and save the text without using an externel text-hex convertor.
Click to expand...
Click to collapse
Excellent. I encourage you to use the method that works best for you. This method is for those whole would rather not download an extra program or deal with hex editing at all.
I will check into the question about compatibility with Sense based roms. Off the top of my head I think it works, but I won't say for sure until I can prove it.
lovethyEVO said:
I'm assuming this only works for cm since in most sense based roms (and I think aosp but I'm not sure) there aren't any xml files that are parsed from the data folder.
As far as needing a text-hex convertor, you don't need it with hxd or any decent hex editor. In hxd, on the right hand pane are the text equivalents of the hex values. Just replace the text in the right hand pane and the proper hex values will be automatically updated.
When replacing text in xml files it takes me all of about 5 to 7 seconds to find, replace, and save the text without using an externel text-hex convertor.
Click to expand...
Click to collapse
i believe the purpose of karadorde sharing is that it doesn't require a hex editor; that it can be done in notepad. it's good that you can do it in 5-7 seconds, but there are always users who will feel uncomfortable with taking that route.
kudos on timing yourself though.
shift_ said:
i believe the purpose of karadorde sharing is that it doesn't require a hex editor; that it can be done in notepad. it's good that you can do it in 5-7 seconds, but there are always users who will feel uncomfortable with taking that route.
kudos on timing yourself though.
Click to expand...
Click to collapse
The hex edit method saves time everywhere else. Like I said, sense based roms don't parse xml files from the data folder that I know of.
In order to edit any xml file in sense you have to decompile the apk, make the edits, and then recompile the apk and hope it doesn't bootloop. That's longer than a couple of seconds to hexedit a file and reinsert it into the apk.
With this method, while it works for cm, almost all xml files in sense are binary and are not easily edited in notepad and won't be edited properly.
Kudos to the op for the method but unless the rom explicity allows parsing human readable xml files the hexedit method will still be a "go to" overall.
lovethyEVO said:
The hex edit method saves time everywhere else. Like I said, sense based roms don't parse xml files from the data folder that I know of.
In order to edit any xml file in sense you have to decompile the apk, make the edits, and then recompile the apk and hope it doesn't bootloop. That's longer than a couple of seconds to hexedit a file and reinsert it into the apk.
With this method, while it works for cm, almost all xml files in sense are binary and are not easily edited in notepad and won't be edited properly.
Kudos to the op for the method but unless the rom explicity allows parsing human readable xml files the hexedit method will still be a "go to" overall.
Click to expand...
Click to collapse
agreed. i use hxd myself, but for any cm users who want to customize, this is a pretty good method. regardless, i believe karadorde is testing it out on sense to provide a definitive answer.
shift_ said:
agreed. i use hxd myself, but for any cm users who want to customize, this is a pretty good method. regardless, i believe karadorde is testing it out on sense to provide a definitive answer.
Click to expand...
Click to collapse
Would be nice if it did work. Would be even better if the option to allow parsing of non-binary xml files could be integrated into a sense based rom.
lovethyEVO said:
Would be nice if it did work. Would be even better if the option to allow parsing of non-binary xml files could be integrated into a sense based rom.
Click to expand...
Click to collapse
heh that's sense for ya.
lovethyEVO said:
Would be nice if it did work. Would be even better if the option to allow parsing of non-binary xml files could be integrated into a sense based rom.
Click to expand...
Click to collapse
In time maybe we can use it to complete the edit in Sense based roms. For now it looks like CDMA Workshop or HxD is the best option for those lacking AOSP in their lives . Regardless, OP updated with the info.
Karadorde said:
9. CD to your /androidsdk/tools directory [/B]
Click to expand...
Click to collapse
I'm not that well versed using terminal commands. What does this part mean?
Sent from my PC36100 using XDA App
jcjr81 said:
I'm not that well versed using terminal commands. What does this part mean?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
No problem. We have all been there and the cmd prompt can be a difficult place sometimes. First and foremost, do you have the Android SDK installed on your computer?
Sent from me to you via the interwebs.
Thanks for the help! I do have it installed on my PC.
Also, is there any way to do this right on the phone using terminal emulator?
Sent from my PC36100 using XDA App
jcjr81 said:
Thanks for the help! I do have it installed on my PC.
Also, is there any way to do this right on the phone using terminal emulator?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
CD means change direction. So you are opening a command terminal and directing toward your tools folder. I installed my SDK right on my C: drive. So when I open open my command terminal I type cd C:\androidsdk\tools. It all comes down to where it is installed on your computer.
Also, you can do everything from the phone. Don't need to use terminal emulator at all from the phone. I will update the OP in a few with directions. Sorry, I am at work right now and trying to get you a quick response. Hope this helps a little bit. More instructions to come.
Sent from me to you via the interwebs.
Karadorde said:
CD means change direction.
Click to expand...
Click to collapse
Not to be a jerk, but cd is change directory, not direction. I don't get to contribute much when it comes to the phones, so thats the best kind of help I can offer here
Karadorde said:
I know some people have gotten it to work by doing the edit entirely from the phone. I have noticed that sometimes files only work or rather work best when pushed to the phone. You might try the ADB method and see if that helps. If not, I will investigate. Thanks for the feedback.
I did use adb to push it to the phone. I didn't edit it on the phone, just opened the file and looked at it to make sure my change was there, which it was. I am using Myn's RLS4, so sense based. Maybe that is the problem.
Click to expand...
Click to collapse
I would also really love a method that could be done from the phone only. I'm doing this for a friend and there usb is messed up so can't use adb to push files from the computer. Thanks for this.
Sent from my PC36100 using XDA App
w84mike said:
Karadorde said:
I know some people have gotten it to work by doing the edit entirely from the phone. I have noticed that sometimes files only work or rather work best when pushed to the phone. You might try the ADB method and see if that helps. If not, I will investigate. Thanks for the feedback.
I did use adb to push it to the phone. I didn't edit it on the phone, just opened the file and looked at it to make sure my change was there, which it was. I am using Myn's RLS4, so sense based. Maybe that is the problem.
Click to expand...
Click to collapse
Sorry about that sir. I should have tested before hand to verify compatibility. Forgive the confusion.
Sent from me to you via the interwebs.
Click to expand...
Click to collapse

[Mod] Calendar.apk

I changed the application Calendar mainly for myself. Those brown wooden colors...
I would first have to thank you user agentdr8 for his deodex, again.
How to:
First, backup your existing TouchWizCalendar.apk and TouchWizCalendar.odex to somewhere else then remove them and replace with the attached TouchWizCalendar.apk, reboot.
Screens:
{
"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 was wating on this! Thanks BuzzFuzz and agentdr8!
I can confirm it works with ROTO-JMEv3.
I use Root explorer to move the files and reboot.
I made i fail, i delete the .odex file for the calculator when i should delete the file from calendar. Somebody got it and can send me a mail with it? Pm me
And again Thanks buzzfuzz and agentdr8. Calendar and contact look so nice
Sent from my GT-P1000 using XDA App
Thanks for the Mod, it works great with Roto-JME v4.
Sent from my GT-P1000 using XDA App
Cool calendar app thx
Sent from my HTC Desire using XDA App
I like it
THX BuzzFuzz!!!
VZW Tab - Calendar
Hey guys, I backed up my calendar.apk , and odex, and then deleted them and installed the new touchwiz calendar.apk It didnt work(which is ok) I then deleted touchwiz calendar.apk , and odex , and replaced it with the original calendar.apk and odex, and rebooted my system. My calendar is still showing up with no wood border, and whenever i try to access "calendars(in order to choose which calendars I want to display) it force closes. Can anyone help me out, maybe send me all the original apk's and odex files for calendar?
[email protected]
I don't know if Buzz mentioned on his first post, but the file posted most likely will only work on GSM tabs. The CDMA tabs (Sprint/Verizon) seem to have different framework files so both the modified Calendar and Contacts apks posted won't work. I asked one individual to send me the framework files from his Sprint tab but haven't heard back. If you'd like to volunteer your framework files and your calendar.apk and .odex, I can probably deodex them for you and put BF's modified pngs into it.
Does your Verizon tab have different calendar apps installed? The GSM-based ones have just TouchWizCalendar.apk/odex, but you mention a Calendar.apk/odex?
Hi,
Just wanting to say, mod is awesome - clean and simple
Just curious though - have you simply removed/replaced the images in the apks or have there been other tweaks..?
Having noticed that the Dialer pane in Contacts, Launcher, Mail and Camera don't scale as screen density increases. Would altering these apps so that they scale be do-able?
Thanks
Craig
Sent from my GT-P1000 using XDA App
ck3ml said:
Hi,
Just wanting to say, mod is awesome - clean and simple
Just curious though - have you simply removed/replaced the images in the apks or have there been other tweaks..?
Having noticed that the Dialer pane in Contacts, Launcher, Mail and Camera don't scale as screen density increases. Would altering these apps so that they scale be do-able?
Thanks
Craig
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
Only changed background with new template - Replaced
BuzzFuzz said:
Only changed background with new template - Replaced
Click to expand...
Click to collapse
Could you explain me how to do that?
Is it possible to use any of my own picture to make as template and replace it like you did?
and..
Is it same way to do it in all region of device and firmware ?
Thanks
desperate said:
Could you explain me how to do that?
Is it possible to use any of my own picture to make as template and replace it like you did?
and..
Is it same way to do it in all region of device and firmware ?
Thanks
Click to expand...
Click to collapse
Region doesn't matter.
How: e.g. contacts.apk
open contacts.apk with winrar, and u will see inside some folders.
All image files are always in res folder. U can unzip res folder to desktop and inside res folders are subfolders like drawable, drawable-hdpi...
there u have all images from apk. Im sure u know how to see image size and image formats (jpg, png..)
Than check what do u want to change, take one of your pics, resize it to same size, rename in same name as original and replace with existing one. Easy...
After editing just put new image back into folder in rar.
Navigate to eg. drawable-hdpi in winrar and put inside new image. Winrar will be auto replace file with new one.
Sure, first create backup of your original apk...in case you do something wrong.
hum.. I wasn't that careful, and just moved the original apk elsewhere and replaced with your apk.
Of course it didn't work, calendar didn't show in the applications drawer.
I replaced with the original but it force closes every 2mn, and still do not show in the app drawer.
Any tip?
I would like to avoid having to reflash my tab just for that...
BuzzFuzz said:
Region doesn't matter.
How: e.g. contacts.apk
open contacts.apk with winrar, and u will see inside some folders.
All image files are always in res folder. U can unzip res folder to desktop and inside res folders are subfolders like drawable, drawable-hdpi...
there u have all images from apk. Im sure u know how to see image size and image formats (jpg, png..)
Than check what do u want to change, take one of your pics, resize it to same size, rename in same name as original and replace with existing one. Easy...
After editing just put new image back into folder in rar.
Navigate to eg. drawable-hdpi in winrar and put inside new image. Winrar will be auto replace file with new one.
Sure, first create backup of your original apk...in case you do something wrong.
Click to expand...
Click to collapse
Got it! Thanks!
I'll try
nico1375 said:
hum.. I wasn't that careful, and just moved the original apk elsewhere and replaced with your apk.
Of course it didn't work, calendar didn't show in the applications drawer.
I replaced with the original but it force closes every 2mn, and still do not show in the app drawer.
Any tip?
I would like to avoid having to reflash my tab just for that...
Click to expand...
Click to collapse
Any clue? Anyone?
nico1375 said:
Any clue? Anyone?
Click to expand...
Click to collapse
Hmm, im not sure, did u delete both original files, apk & odex?
than just copy new apk...and must work. maybe even without reboot.
U can try this:
download original files forem here:
http://www.mediafire.com/?7m0xq4db05ht71y
-delete your old apk or odex files from app folder
-copy originals files (from link above)
-reboot tab, than your calendar MUST work.
-download calendar.apk from first page
-go back into app folder, delete TouchWizCalendar.apk + TouchWizCalendar.odex
-than copy new TouchWizCalendar.apk (downloaded from first page)
-MUST be ok
BuzzFuzz said:
Hmm, im not sure, did u delete both original files, apk & odex?
than just copy new apk...and must work. maybe even without reboot.
U can try this:
download original files forem here:
http://www.mediafire.com/?7m0xq4db05ht71y
-delete your old apk or odex files from app folder
-copy originals files (from link above)
-reboot tab, than your calendar MUST work.
-download calendar.apk from first page
-go back into app folder, delete TouchWizCalendar.apk + TouchWizCalendar.odex
-than copy new TouchWizCalendar.apk (downloaded from first page)
-MUST be ok
Click to expand...
Click to collapse
Thanks for your answer.
I use Modaco custom ROM which is deodexed so I don't have any odex file in my /system/app
Would it work in this case?
nico1375 said:
Thanks for your answer.
I use Modaco custom ROM which is deodexed so I don't have any odex file in my /system/app
Would it work in this case?
Click to expand...
Click to collapse
np...
it should be
well even the original app (i copied apk + odex in /system/app) still refuses to appear in the app drawer...
should I do something specific? wiping cache or...?
I rebooted, still nothing and the force close happens automatically...
EDIT :
finally reflashed my rom (non wipe so no trouble), made a proper backup and try again but still the same problem...
at least I could restore my calendar backup this time
@nico
There might be some differences in the framework files for JMI that MCR uses vs. say Roto's JMIv2. I used the modded Contacts and Calendar from JME on my new JMIv2 install and it works just fine.
If you'd like to upload your stock MCR TouchWizCalendar.apk I can compare it to the one from JME and see what needs to be changed.
agentdr8 said:
@nico
There might be some differences in the framework files for JMI that MCR uses vs. say Roto's JMIv2. I used the modded Contacts and Calendar from JME on my new JMIv2 install and it works just fine.
If you'd like to upload your stock MCR TouchWizCalendar.apk I can compare it to the one from JME and see what needs to be changed.
Click to expand...
Click to collapse
thanks very much, it's very kind of you
Th apk is uploaded here :
http://www.megaupload.com/?d=3DQDHLWI

[MOD] Apple Color Emoji system-wide for KitKat+ (updated with unicorns)

Screenshot:
{
"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"
}
To install:
Grab AppleColorEmoji.ttf and place it into /system/fonts/
Set /system/fonts/AppleColorEmoji.ttf to have permissions 644 (rw-r--r--) and owner:group root:root.
Modify /system/etc/fonts.xml like so:
Find
Code:
<family>
<font weight="400" style="normal">NotoSansSymbols-Regular-Subsetted.ttf</font>
</family>
Above this block, add
Code:
<family>
<font weight="400" style="normal">AppleColorEmoji.ttf</font>
</family>
Set /system/etc/fonts.xml to have permissions 644 (rw-r--r--) and owner:group root:root.
Reboot.
(Thanks cclaxx for mentioning permissions!)
Old stuff:
Not sure if this has been done before, but here is my work.
Screenshots (warning: large)
You get my point. They work the same way KitKat's colour emojis work.
What I did:
Asked someone (jakew02 on #cyanogenmod-dev) to help me grab Apple Color Emoji.ttf off an OS X 10.9 system.
Used code available here to extract the PNG files from the TTF file's SBIX table.
Used fonttools (ttx) to create an empty TTF file based on the original Apple Color Emoji.ttf and this template by Google
Used this code by Google to add the extracted PNGs into the empty TTF file in CBDT/CBLC (the OpenType extension Google created) tables
Took the resulting TTF file and threw it into /system/fonts/, modifying /system/etc/fallback_fonts.xml accordingly
And it works. This is unlikely to work on versions of Android pre-KitKat, unless support for CBDT/CBLC tables in font files is present (or backported from KitKat).
Update: No need to do all this anymore. Later versions of Android support sbix out of the box. Just adjust the platEncID/platformID in the cmap of AppleColorEmoji.ttf.
The font size and kerning (all the emojis are the same size!) doesn't seem all that great, but someone who knows fonts better can fix that using ttx. If anyone wishes to create a flashable zip for this, please do so.
Update: I've updated this for the iOS 9.1/unicorn emoji. Details here
Update: ligatures (mostly) now work. details
Thank Google for deciding to implement colour emoji (and releasing their tools for creating those fonts too!) in KitKat, because they essentially did all the work.
Looked for it great
How did you do the fourth step?
im running windows and couldnt launch it.
I want to port Touchwiz Smileys to KitKat.
Those looking best :fingers-crossed:
Use Python 2.7.
I did this all on Linux, so I'm not sure if this can be done on Windows or not. But since all the tools are written in Python, I'd imagine that it can with minimal effort.
Hi, I have just tried this on Android 4.4.2 (root, stock kernel & ROM) and it didn't work although I have followed your guide step-by-step. Any thoughts?
Also didnt work for me. Omni rom 4.4.2
Sadly it also doesn't work for me! Please could you try fixing it? I love the idea!
Jaggions said:
Hi, I have just tried this on Android 4.4.2 (root, stock kernel & ROM) and it didn't work although I have followed your guide step-by-step. Any thoughts?
Click to expand...
Click to collapse
hhamzah49 said:
Also didnt work for me. Omni rom 4.4.2
Click to expand...
Click to collapse
Fusionalex said:
Sadly it also doesn't work for me! Please could you try fixing it? I love the idea!
Click to expand...
Click to collapse
guys maybe the problem are the permissions. you must set both files to rw-r-r otherwise it does not work.
cclaxx said:
guys maybe the problem are the permissions. you must set both files to rw-r-r otherwise it does not work.
Click to expand...
Click to collapse
Oh, you're right, it worked! I feel so stupid Thank you!
cclaxx said:
guys maybe the problem are the permissions. you must set both files to rw-r-r otherwise it does not work.
Click to expand...
Click to collapse
Thanks! works! love it!
cclaxx said:
guys maybe the problem are the permissions. you must set both files to rw-r-r otherwise it does not work.
Click to expand...
Click to collapse
Thank you so much it works perfectly! I love this!
Maybe someone should create a flashable zip to make this easier tho
EDIT:
I quickly tried to make a flashable zip. Never did this before so I'm not sure if I did it right. Maybe someone can check it and tell me if everything should work
I took the update-binary from CM11 because I wasn't sure if the older one from the tutorial I read would work.
http://ge.tt/8kOOWOB1?c
I don't know if it works and if it doesn't I am not responsible for any damage done to your devices. I just hope someone here who has more experience than me can check it out and confirm if it works
work for jellybean also??
rezarivani said:
work for jellybean also??
Click to expand...
Click to collapse
No Google just introduced the framework for colored fonts in KitKat.
Fusionalex said:
Thank you so much it works perfectly! I love this!
Maybe someone should create a flashable zip to make this easier tho
EDIT:
I quickly tried to make a flashable zip. Never did this before so I'm not sure if I did it right. Maybe someone can check it and tell me if everything should work
I took the update-binary from CM11 because I wasn't sure if the older one from the tutorial I read would work.
https://mega.co.nz/#!xFFSRLZS!ITICxm3LSw1PKxDYzAaPbloCGwMlt4JnDohepI4YiRo
I don't know if it works and if it doesn't I am not responsible for any damage done to your devices. I just hope someone here who has more experience than me can check it out and confirm if it works
Click to expand...
Click to collapse
Great work.
Is the update via zip reversible?
If so, I'm willing to give it a try.
Sent from my GT-I9300 using Tapatalk
---------- Post added at 10:35 AM ---------- Previous post was at 09:35 AM ----------
Firstly, BIG THANKS to Angelsel, FusionAlex and cclaxx!
If you don't want to use the zip, simply download it and then extract the files (TTF and XML) out of the /etc and /fonts directories.
Summary of instructions:
1. Backup your fallback_fonts.xml file on your phone (found at: /system/etc/fallback_fonts.xml)
2. Copy the new fallback_fonts.xml into the /system/etc/ directory.
3. Set fallback_fonts.xml's file permissions to rw-r--r--
4. Copy the AppleColorEmoji.ttf into the /system/fonts/ directory. (Don't worry about overwriting anything, because this is a new file, it doesn't overwrite any of your other fonts).
5. Set AppleColorEmoji.ttf's file permissions to rw-r--r--
6. Reboot your phone.
7. Enjoy
The reason you don't have to overwrite any actual fonts is because the fallback_fonts.xml has been amended to look at the new (AppleColorEmoji.ttf) font before checking the standard android ones.
Iceman_jkh said:
Great work.
Is the update via zip reversible?
If so, I'm willing to give it a try.
Click to expand...
Click to collapse
Well I'm not sure. It's possible that it won't even flash because I might have done something wrong. In fact it should of course be reversible because the only thing it's supposed to do is copy the 2 files and fix the permissions of them. Still I'd rather have someone who knows how those zips work take a look at it before someone tries it, because I don't have any experience
EDIT:
I took another look at some more recent flashable zips and changed some stuff again. I also decided to upload the unsigned zip in case someone wants to edit the zip and sign it
http://ge.tt/8kOOWOB1?c
EDIT 2:
OK, I think, that my zip would also work, but I found an app called ZIPme and created a flashable zip with it. It works perfectly (I just tested it on my phone)
So finally:
Enjoy this flashable zip of this amazing mod:
https://mega.co.nz/#!JU0nRAZY!Pbv9Gy5tS8e5pIjDX8OuZzSnkVA3zegHlXD_ImAGXIc
PS. If some experienced DEV could take a look at my original zip tho and told me if i did everything right I would still be happy
Fusionalex said:
Well I'm not sure. It's possible that it won't even flash because I might have done something wrong. In fact it should of course be reversible because the only thing it's supposed to do is copy the 2 files and fix the permissions of them. Still I'd rather have someone who knows how those zips work take a look at it before someone tries it, because I don't have any experience
EDIT:
I took another look at some more recent flashable zips and changed some stuff again. I also decided to upload the unsigned zip in case someone wants to edit the zip and sign it
http://ge.tt/8kOOWOB1?c
EDIT 2:
OK, I think, that my zip would also work, but I found an app called ZIPme and created a flashable zip with it. It works perfectly (I just tested it on my phone)
So finally:
Enjoy this flashable zip of this amazing mod:
https://mega.co.nz/#!JU0nRAZY!Pbv9Gy5tS8e5pIjDX8OuZzSnkVA3zegHlXD_ImAGXIc
PS. If some experienced DEV could take a look at my original zip tho and told me if i did everything right I would still be happy
Click to expand...
Click to collapse
Ge.tt and Amazon S3 seems to hate me. I can't download your original zip.
The second zip will work fine, but there is no need to set permissions - extract_dir's default permissions (and file ownership) are already correct. This zip sets the owner/group to 1000/1000 (system, iirc) which is not correct; the files should be owned by root (uid/gid 0, naturally).
Thanks for creating a flashable zip
angelsel said:
Ge.tt and Amazon S3 seems to hate me. I can't download your original zip.
The second zip will work fine, but there is no need to set permissions - extract_dir's default permissions (and file ownership) are already correct. This zip sets the owner/group to 1000/1000 (system, iirc) which is not correct; the files should be owned by root (uid/gid 0, naturally).
Thanks for creating a flashable zip
Click to expand...
Click to collapse
Hm I can upload the original zip somewhere else later
Oh ok, I didn't know that extract_dir already sets the permission Also the zip was created by an app It still works but I will try to change it maybe ) Thanks!
This is really good but the font seems to be incomplete. I get messages that just show a square instead of the emoji in the notification bar.
Sent from my GT-I9505G using Tapatalk
AMoosa said:
This is really good but the font seems to be incomplete. I get messages that just show a square instead of the emoji in the notification bar.
Sent from my GT-I9505G using Tapatalk
Click to expand...
Click to collapse
I dont think so This never happened to me!
Wow very cool and based on the screenshots , You did resize all of the image ?
Cool ..
Wait , why didnt we just replace the AndroidEmoji.ttf and change it to AppleColorEmoji.ttf ? I think its the same ..
Sent from my Nokia 3310™
Works on Galaxy S4 i9505 running KitKat Google Play Edition! Thanks!

Editing the framework.apk (Solved)

So I was wondering, is there anyway for me to edit the base and accent colours of the framework.apk in the system files so I can make my phone look different from others. I know this can be done using Cyanogenmod's theme engine but I'd prefer to stay on a stock version of android which is more stable and up to date.
I have android 7.1.1 beta with root and an unlocked bootloader, I have tried taking the framework.apk from other device to put on my own but it always causes a stuff up in the data partition (which is kind of expected) meaning that I need to factory reset my phone to get it working again.
Thank you in advance.
Images of some extreme examples are available below
Substratum legacy works on stock roms, but ypu need root from ive read! Ive never tried! Always make backup first
Jackio987 said:
So I was wondering, is there anyway for me to edit the base and accent colours of the framework.apk in the system files so I can make my phone look different from others. I know this can be done using Cyanogenmod's theme engine but I'd prefer to stay on a stock version of android which is more stable and up to date.
I have android 7.1.1 beta with root and an unlocked bootloader, I have tried taking the framework.apk from other device to put on my own but it always causes a stuff up in the data partition (which is kind of expected) meaning that I need to factory reset my phone to get it working again.
Thank you in advance.
Images of some extreme examples are available below
Click to expand...
Click to collapse
Yes it is possible. Decompile your framework-res.apk and change the accent colors in your res/values/colors . XML and your Systemui.apk and your Settings Google.apk for the switchbar background.
{
"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"
}
Tulsadiver said:
Yes it is possible. Decompile your framework-res.apk and change the accent colors in your res/values/colors . XML and your Systemui.apk and your Settings Google.apk for the switchbar background.
View attachment 3925511 View attachment 3925512 View attachment 3925513
Click to expand...
Click to collapse
So I have taken a look at the framework-res.apk/res/values/color folder and extracted a few of the .xml files to take a look at them. I opened the files using notepad++ but nothing comes up correctly and I can't find any number values to represent the colors. So I was wondering if there were any special programs that I have to open the .xml files in and if there is can you also point me to the .xml file that edits the colors of the quick settings.
I have also taken a look at Substratum and it says that android 7.1.1 is unstable for use with the application.
Jackio987 said:
So I have taken a look at the framework-res.apk/res/values/color folder and extracted a few of the .xml files to take a look at them. I opened the files using notepad++ but nothing comes up correctly and I can't find any number values to represent the colors. So I was wondering if there were any special programs that I have to open the .xml files in and if there is can you also point me to the .xml file that edits the colors of the quick settings.
I have also taken a look at Substratum and it says that android 7.1.1 is unstable for use with the application.
Click to expand...
Click to collapse
What are you using to decompile the apk? If you haven't already, try using apktool. Install apktool and then in a terminal use:
Code:
apktool decode framework-res.apk
That should spit out proper xml files.
screenshot:
[IMG]http://i.imgur.com/ap6auRM.png[/IMG]
Jackio987 said:
So I have taken a look at the framework-res.apk/res/values/color folder and extracted a few of the .xml files to take a look at them. I opened the files using notepad++ but nothing comes up correctly and I can't find any number values to represent the colors. So I was wondering if there were any special programs that I have to open the .xml files in and if there is can you also point me to the .xml file that edits the colors of the quick settings.
I have also taken a look at Substratum and it says that android 7.1.1 is unstable for use with the application.
Click to expand...
Click to collapse
Yes, you are looking at files that have not been decompiled Apktool is a great tool. Take a look at "tickle my android" if you want the best and easiest one around.
And, for the QS background, you will need to decompile Systemui.apk I believe it is in the layout folder, a XML file called qs_background_primary. XML change the solid color from ?android color primary to the hex code color of your choice
http://forum.xda-developers.com/showthread.php?t=1633333
synesthete said:
What are you using to decompile the apk? If you haven't already, try using apktool. Install apktool and then in a terminal use:
Code:
apktool decode framework-res.apk
That should spit out proper xml files.
screenshot:
[IMG]http://i.imgur.com/ap6auRM.png[/IMG]
Click to expand...
Click to collapse
Thank you for your help. Now I just want to make sure because this is my first time actually playing around with system apk's, Do I need to do anything special to package the apk back together and onto my device other than applying the right permissions?
Also the reason why the xml's weren't working at first was because I just used winrar to extract the files because that worked on iOS's IPA's when I used to work with them and my current guess would be that if I was to put the apk back onto my phone I would need to do more than package it as a .zip and rename it as an .apk.
I would test this on my Moto G first but it's super stuffed up at the moment.
Jackio987 said:
Thank you for your help. Now I just want to make sure because this is my first time actually playing around with system apk's, Do I need to do anything special to package the apk back together and onto my device other than applying the right permissions?
Also the reason why the xml's weren't working at first was because I just used winrar to extract the files because that worked on iOS's IPA's when I used to work with them and my current guess would be that if I was to put the apk back onto my phone I would need to do more than package it as a .zip and rename it as an .apk.
I would test this on my Moto G first but it's super stuffed up at the moment.
Click to expand...
Click to collapse
To recompile,
Code:
apktool b systemui
(or framework-res) You will want to replace the meta-inf and android manifest of your newly recompiled apk with the original ones.
First, before you do any decompiling you must install your framework
Code:
apktool if framework-res.apk
Tulsadiver said:
To recompile, Apktool b systemui (or framework-res) You will want to replace the meta-inf and android manifest of your newly recompiled apk with the original ones.
Click to expand...
Click to collapse
Thank you I'll try it now
Ok it worked. Thank you so much for your help. With this new found knowledge I probably won't do much but it's just something useful to know just in case I have a sudden urge to make my operating system's main colours yellow and brown. Also editing just the colour values in the framework edited the colours in the quick settings and the settings application because they all refer to the framework for that colour.
Things I have learned:
How to decompile apk's properly
How to edit system ui/ framework/ settings colours
How to recompile an apk
How to make sure that the apk works when your device boots up.
Thank you everyone I couldn't of done it with out you.
EDIT: Oops. Just saw that someone else replied (and with better info). You can disregard this post. I'm glad you got your answers.
Jackio987 said:
Thank you for your help. Now I just want to make sure because this is my first time actually playing around with system apk's, Do I need to do anything special to package the apk back together and onto my device other than applying the right permissions?
Also the reason why the xml's weren't working at first was because I just used winrar to extract the files because that worked on iOS's IPA's when I used to work with them and my current guess would be that if I was to put the apk back onto my phone I would need to do more than package it as a .zip and rename it as an .apk.
I would test this on my Moto G first but it's super stuffed up at the moment.
Click to expand...
Click to collapse
The apktool decode command will spit out a folder tree. After making your edits, you should be able to use the apktool build command to recompile to an apk file again. If you don't specify a specific output path, it will probably dump it in a "dist" subfolder within the decompiled apk folder. If you just type "apktool" in the terminal, it should give you more detailed instructions for its options. Once you have an apk, you might need to sign it. You should be able to do that easily on your android device with the app zipsigner: https://play.google.com/store/apps/details?id=kellinwood.zipsigner2
Once you have the signed apk you should be able to replace the original with the same permissions and group policy settings and reboot. I would recommend making a nandroid backup to revert to in case you get stuck in a bootloop. It has been a long time since I have done this, so I might have missed something. Maybe I will give it a try when I have some time later.
how to add pixel icons in system apk
hilla_killa said:
Substratum legacy works on stock roms, but ypu need root from ive read! Ive never tried! Always make backup first
Click to expand...
Click to collapse
Unfortunately Substratum isn't really working too well on the 7.1 DP and it will notifiy you when using the app that modifying anything may very well cause bootloop, which in my case was very true. Tried to install the Pixel Theme that worked flawlessly on 7.0, then bootlooped after the required reboot. However, you can still try it and revert back fairly easily. The dev created 2 .zips in the Substratum folder to fix the bootloop if it does happen (the legacy zip is what fixed mine).
A$h!$h said:
how to add pixel icons in system apk
Click to expand...
Click to collapse
Which icons are you referring to? Navbar or apps?
Jackio987 said:
So I was wondering, is there anyway for me to edit the base and accent colours of the framework.apk in the system files so I can make my phone look different from others. I know this can be done using Cyanogenmod's theme engine but I'd prefer to stay on a stock version of android which is more stable and up to date.
I have android 7.1.1 beta with root and an unlocked bootloader, I have tried taking the framework.apk from other device to put on my own but it always causes a stuff up in the data partition (which is kind of expected) meaning that I need to factory reset my phone to get it working again.
Thank you in advance.
Images of some extreme examples are available below
Click to expand...
Click to collapse
Hey Jackio987,
Yeah! that's true
Refer to my post for better customizations! That's here

Categories

Resources