[MOD] S5-Themed Settings - The Easy Way - Galaxy S 4 Active Themes and Apps

So I found a really easy way to make our Settings app (SecSettings.apk) look like the S5 Settings app. I didn't figure this out, I'm just passing this along because I thought this was really cool and useful, @maxx35000 came up with this and I found it on his post here. You have to copy SecSettings.apk from /system/priv-app to your PC, and decompile using apktool (if you don't know how, look it up in xda, it's easy and there's plenty of tutorials). In the decompiled folder navigate to res/values and open bools.xml. Search for these lines:
Code:
<bool name="settings_list">true</bool>
<bool name="settings_tab">false</bool>
<bool name="settings_grid">false</bool>
You want to set settings_list and settings_tab to false, and settings_grid to true, so it'll look like this:
Code:
<bool name="settings_list">false</bool>
<bool name="settings_tab">false</bool>
<bool name="settings_grid">true</bool>
Save file, recompile, and push to phone. You obviously must set permissions to 644, and reboot once you've replaced the old SecSettings.apk with the new. All the usual stuff.
I've tried selecting several different settings options and everything has worked normally so far, with one exception: this mod created a fingerprints option, which force closes Settings every time I've tried to select it. My guess is this is an S5 feature not natively supported on our phone; I couldn't care less because I'll just avoid that one button, all I really wanted was for my settings to all be together on one screen. Next I'm gonna see about changing the settings color theme, it turns out you can theme the drop-down menu almost entirely from res/values/drawables, so who knows, maybe SecSettings will be that easy too. Anyway, I'm just sharing this because it's really easy and it really helped me, I hope it helps someone else too. Again I deserve no credit for this, max35000 posted this mod and I just wanted to share it here.

Duh, a screenshot might help. Pretty wild seeing this on my S4 Active haha

Thanks got it working on my tab 3
Sent from my SM-G900T using XDA Free mobile app

Is tab view working?

joe3681 said:
Is tab view working?
Click to expand...
Click to collapse
I can't say for sure since I haven't tried, but I think it should. It's just an xml edit, you're not touching the smali code so nothing really can go wrong in a ruin-your-phone sort of way. My suggestion would be to back up SecSettings.apk somewhere and give it a try. Worst case scenario is it causes Settings to force close when you try to start it, in which case just restore the backed up version.

Tab view is working here
Sent from my SM-T310 using XDA Free mobile app

Richcar said:
Tab view is working here
Sent from my SM-T310 using XDA Free mobile app
Click to expand...
Click to collapse
Cool! I was curious but too lazy to try lol. Looks nice

Thanks for taking those 2 seconds and one button push out of your day!

thisisapoorusernamechoice said:
So I found a really easy way to make our Settings app (SecSettings.apk) look like the S5 Settings app. I didn't figure this out, I'm just passing this along because I thought this was really cool and useful, @maxx35000 came up with this and I found it on his post here. You have to copy SecSettings.apk from /system/priv-app to your PC, and decompile using apktool (if you don't know how, look it up in xda, it's easy and there's plenty of tutorials). In the decompiled folder navigate to res/values and open bools.xml. Search for these lines:
Code:
<bool name="settings_list">true</bool>
<bool name="settings_tab">false</bool>
<bool name="settings_grid">false</bool>
You want to set settings_list and settings_tab to false, and settings_grid to true, so it'll look like this:
Code:
<bool name="settings_list">false</bool>
<bool name="settings_tab">false</bool>
<bool name="settings_grid">true</bool>
Save file, recompile, and push to phone. You obviously must set permissions to 644, and reboot once you've replaced the old SecSettings.apk with the new. All the usual stuff.
I've tried selecting several different settings options and everything has worked normally so far, with one exception: this mod created a fingerprints option, which force closes Settings every time I've tried to select it. My guess is this is an S5 feature not natively supported on our phone; I couldn't care less because I'll just avoid that one button, all I really wanted was for my settings to all be together on one screen. Next I'm gonna see about changing the settings color theme, it turns out you can theme the drop-down menu almost entirely from res/values/drawables, so who knows, maybe SecSettings will be that easy too. Anyway, I'm just sharing this because it's really easy and it really helped me, I hope it helps someone else too. Again I deserve no credit for this, max35000 posted this mod and I just wanted to share it here.
Click to expand...
Click to collapse
@thisisapoorusernamechoice Hello I am having trouble recompiling my SecSettings APK. I've successfully decompiled and edit the SecSettings to match the settings above, but when I try to recompile the app, it says "Could not find sources" and then a bunch of warnings. The frameworks I am using are framework-res.apk and twframework-res.apk, and my S4 Active is running 4.4.2 if it helps. Basically after that, I recompile, sign and push the new SecSettings.apk into my phone and then set the correct permissions. After the reboot, my Settings App disppears from my Desktop and list of apps installed. Maybe the disappearance has to do with the recompiling error. Anyway I was wondering if you could help me figure that's wrong. Here's an image of the error. http://i.imgur.com/ioH5vyI.png?1

thnx will try it and will let u know .

anyone have one of these for oc3? main pc with everything on it dead at the moment.
link would be great?
thx

Thanks for taking those 2 seconds and one button push out of your day! My Little Pony

Related

[request] Themed 3G icon

can anyone post up a themed version of the stock or new MIUI rom flashable 3G indicator, themed to match this (or both):
http://forum.xda-developers.com/showthread.php?t=788214
Thanks!
Do you mean you're after:
A theme for MIUI which has the 3G icons from that theme
or
That theme with the MIUI 3G icons?
Josh.
fllash said:
Do you mean you're after:
A theme for MIUI which has the 3G icons from that theme
or
That theme with the MIUI 3G icons?
Josh.
Click to expand...
Click to collapse
I would like the 3g icon from that rom to flash over SkyRaider 3.2
^Same^ but likt the one from the smooth blue theme that is a blue 3G indicator. Or JUST the stock HTC 3G indicator in blue if possible. Thanks
just pull it out of the framework and color it yourself, it's like 4 images
worm- said:
just pull it out of the framework and color it yourself, it's like 4 images
Click to expand...
Click to collapse
How do I do this?
Thanks
Funny. I was just going to post asking anyone if they had it in red. I would also like to know how to do it.
Contempt4You said:
Funny. I was just going to post asking anyone if they had it in red. I would also like to know how to do it.
Click to expand...
Click to collapse
I know. I really want it lol, because i kinda hate the 3G indicator in the theme i have currently, as it's hard to see the upload/download arrows, so i just wanted a flashable indicator so I dont lose the cool notification pulldown
I can edit it with photoshop if I can find it. Can anyone give me a hint to the file path?
EDIT: Hah...ok I suck and fail.
I found the apk and edited the images. Looked great. Put the apk back together. Unistalled the original apk and tried to install my modified apk. Would not install. I'm done with it for now. I guess I will read up on signing tomorrow although I thought I had read that system apps didn't need to be signed.
I'll play with it more tomorrow.
do adb pull /system/framework/framework-res.apk
And the images should n in the drawable-hdpi. Folder if not just look around until u find the images
Then pull the framework from your current Rom and replace your images with the images you want then repush your framework hack to the phone and reboot
Sent from my ADR6300 using Tapatalk
Contempt4You said:
I can edit it with photoshop if I can find it. Can anyone give me a hint to the file path?
EDIT: Hah...ok I suck and fail.
I found the apk and edited the images. Looked great. Put the apk back together. Unistalled the original apk and tried to install my modified apk. Would not install. I'm done with it for now. I guess I will read up on signing tomorrow although I thought I had read that system apps didn't need to be signed.
I'll play with it more tomorrow.
Click to expand...
Click to collapse
If you figure it out can you pack a zip of just the 3g icon in blue as well for me?
Thanks man
Thanks for the tips. With a little help from google, I was able to figure it out.
Which icon did you need exactly? The 3g toggle or the notification bar?
well, i did it and replaced some old icons with cooler looking ones, but the 3g icons (along with similar data icons) did not show up. all of the other ones showed up. also, i read a thread where this dude got 4g icons from another rom and installed them on his phone to make it look like he had 4g, but then hours later, he experienced loss of mobile data... and now i think i am too... any suggestions?
I'm sorry I can't help you. I am learning all this myself and wouldn't pretend to know where to start on that. All I can say is that if you are going to make any changes then backup early and often.
The 3g toggle icons I was looking for were in system/app. I merely reskinned them and dropped them back in.
Contempt4You said:
I'm sorry I can't help you. I am learning all this myself and wouldn't pretend to know where to start on that. All I can say is that if you are going to make any changes then backup early and often.
The 3g toggle icons I was looking for were in system/app. I merely reskinned them and dropped them back in.
Click to expand...
Click to collapse
i wanted notification bar icon
I'm running a theme and mine is already skinned. I think either way you would still have to adb push it onto your phone. I did some googling and took a crash course on changing system icons.
Once I figured it out, it made sense (i know that sounds stupid, but after i did it, I was like oh yeah I get it now). I know that's not a big help, but I'm new to this and wouldn't want to bork your phone. Maybe someone more knowledgable will come save the day.
Otherwise I would google in terms like editing apks and adb pull adb push etc. and maybe you will figure it out too.
Hell I can't wait to ruin my phone now that I am armed and dangerous =)
Contempt4You said:
I'm running a theme and mine is already skinned. I think either way you would still have to adb push it onto your phone. I did some googling and took a crash course on changing system icons.
Once I figured it out, it made sense (i know that sounds stupid, but after i did it, I was like oh yeah I get it now). I know that's not a big help, but I'm new to this and wouldn't want to bork your phone. Maybe someone more knowledgable will come save the day.
Otherwise I would google in terms like editing apks and adb pull adb push etc. and maybe you will figure it out too.
Hell I can't wait to ruin my phone now that I am armed and dangerous =)
Click to expand...
Click to collapse
Lol, i actuallly finally figured out how to extract the png's, so i am going to edit in photoshop, then replace the current images with the app ninjamorph.
*didnt work* left a huge blank space on noti. bar and when I rebooted to see if it would show, I bootlooped*
Well. I spent last night learning to resign edited apk files, so literally nothing on my phone is safe now.
Contempt4You said:
Well. I spent last night learning to resign edited apk files, so literally nothing on my phone is safe now.
Click to expand...
Click to collapse
Is there any way to pack the png's so that I can flash them or install as an apk?
Anyone know how I'd do this? I already have the edited png's.
Can I send any of you guys the folder with the icons and you can help me out with this?
Thanks again
It seems the easiest way to change or theme icons is to not unzip them. Just open them with 7zip and make your changes, then close it. They will stay compressed and all of the info and size will remain intact.
Once changed you will have to resign the apk or zip file.
I spent the better part of 2 hours reading up on it using these forums and google, but I do not in any way feel knowledgable enough to instruct you on the finer points. There are oodles of topics on editing apk's and signing them when you are finished.
The steps seem pretty clear:
1. download or pull apk
2. open with 7zip
3. make changes keeping sizes and file names the same
4. close
5. re-sign the apk or zip file (most likely have to delete the existing files to the original signing which will be replaced with your own)
6. push or install the zip or apk (make sure the original app is uninstalled prior to reinstalling the changed app)
There are various methods and tools. The most helpful thread I found on signing is here: http://forum.xda-developers.com/showthread.php?t=473580
I hope this covers it all and is helpful to you. I am new at it and can only tell you to backup everything and if you are unclear on any of it, then don't attempt it.
Read all the posts related to it. There is great info and plenty of feedback on known issues or mistakes others have had.

Alter Cyanogen mod Settings

Hey everyone,
i have removed apps that i don't think i will ever use, E.G themes, and would like to alter the Cyanogen mod Settings to remove the entires that are no longer needed, as i have never done this before, i will most likely need to be helped step by step, or if you have a link to a guide already made that will be great
This is probably more involved that you would like to go.
That is part of "ROM" itself and can't be removed like a apk in system app.
Do you want to remove it from the source and compile it yourself? Think that is the way you have to go to accomplish what you want. Maybe it can be edited out in the ROM.zip prior to flash but I don't know
dam, i hoped it would be simple, i may have to re-compile it as you say, cause since i removed themes, it obliviously crashes if i accidentally hit the theme button in settings, i'll go looking to see if i can find something relating to that, thanks
kenpachizero said:
dam, i hoped it would be simple, i may have to re-compile it as you say, cause since i removed themes, it obliviously crashes if i accidentally hit the theme button in settings, i'll go looking to see if i can find something relating to that, thanks
Click to expand...
Click to collapse
Hi,
You can always just try a launcher that allows u to hide the apps u do not want to use....
And you can also disable some of those hidden apps under "manage applications" but be careful since some of the main apps are used by other system apps like gallery, email, etc. I just hide them and its like they do not exist.
This way if a force close happens due that app being disabled u can always reenable it so it fixed the force closures.
Or find a ROM that slim/minimal so u dont have worry about those apks in the first place.
Good luck
Vs Nexus S4G using tapatalk2
He is actually referring to the stuff in the settings menu.
So when he deletes the theme manager apk for example it also disappears from the settings.
At least that's what I think he is talking about.
albundy2010 said:
He is actually referring to the stuff in the settings menu.
So when he deletes the theme manager apk for example it also disappears from the settings.
At least that's what I think he is talking about.
Click to expand...
Click to collapse
After reading the post again..
I believe ur correct since it seemed to easy of a question to ask and answer.
But I just wonder why those settings are even a bother to the phone or its performance.
Vs Nexus S4G using tapatalk2
Minimalist approach. I can see how it can annoy somebody very easily.
Decompile and edit the smali files which is a huge pain in the ass or do it from source, those are generally your only 2 options. I did it for my GS2, it's much, MUCH, easier to do it from source. Understanding smali makes me want to rip my hair out. Stick to the source, haha trust me.
Try your luck. Here are some resources to help you out.
http://code.google.com/p/smali/w/list
http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html
http://s.android.com/tech/dalvik/dalvik-bytecode.html
Look for something called dex2jar, it'll convert the classes.dex in an apk file to a jar which you'll be able to read/understand with jd-gui.

[HOW-TO]Successfully decompile and compile com.htc.resources.apk

This guide assumes you already know how to use apktool and use latest 1.52 version. If you don`t, there are plenty of guides already on XDA.
Latest Sense 5 com.htc.resources.apk and apktool are not great friends. Actually there is a long history of compile issues with this file, but also I managed to fix it usually in the past. I stumbled about some theme threads, who were correctly complaining, that they can`t fully finish their work, since many essentially stuff in HTC`s framework can`t be themed, since com.htc.resources.apk can`t be compiled and as a result many color themes remain incomplete.
So I had a quick look and here is the workaround, which is tested and works.
For those having other apktool issues, it also might pay off looking in my One S apktool issues thread, maybe you will find some ideas to solve other problems.
http://forum.xda-developers.com/showthread.php?t=1642224
Credits:
brut for his awesome apktool
hdneuling for being a great tester and guy
1. First thing you will recognize, when decompiling the "nice" way, apktool will miserably fail. So let`s be the bad guy and brute force decompile
2. Decompile com.htc.resources apk with the following:
PHP:
java -jar apktool.jar d --keep-broken-res com.htc.resources.apk com.htc.resources-decoded
This ignores all errors and decompiles the apk
3. Since the real issues here in reality are only very minor dimens decompile problems, you can now simply delete all unneeded folders with an ERR at the end.
4. Make all necessary edits
5. Now compile the apk as usual, there are different ways to do it - I compile with
PHP:
java -jar apktool.jar b com.htc.resources-decoded
6. Flash and enjoy your work
Good job
Had to look into it, Helmut was desperate
Great Job, and o.k., feeling guilty now :silly:
LG, Helmut
One thing we noticed when putting together our tranquility rom was that any com.htc.resources, sense 4 and after, was that even when it could be decompiled it was better to hex edit. It caused issues with the rom. The dialer and battery life were affected. There were other performance issues also.
Sent from my HTC6435LVW using xda premium
fernando sor said:
One thing we noticed when putting together our tranquility rom was that any com.htc.resources, sense 4 and after, was that even when it could be decompiled it was better to hex edit. It caused issues with the rom. The dialer and battery life were affected. There were other performance issues also.
Sent from my HTC6435LVW using xda premium
Click to expand...
Click to collapse
Yep font size was stuck at medium aswell no matter what we set it to
i´m running a pretty heavy edited com.htc.resources.apk on my One since yesterday and didnt notice and afaik he_stheone did the same since yesterday.
Of course we have to have a look at "maybe problems", but it´s good to have a solution to de/compile it now i think
LG, Helmut
fernando sor said:
One thing we noticed when putting together our tranquility rom was that any com.htc.resources, sense 4 and after, was that even when it could be decompiled it was better to hex edit. It caused issues with the rom. The dialer and battery life were affected. There were other performance issues also.
Sent from my HTC6435LVW using xda premium
Click to expand...
Click to collapse
Hi Fernando, we will watch behavior going forward on Sense 5. So far we still could not find negative side effects. But we surely keep an eye on it.
Sent from my HTC ONE - powered by TrickDroid
Nice work, thanks for sharing. Have to say, you and Helm are really blazing the way with One theming!
Did try this approach with the Sense4.5 resources, could never get the apk to compile after deleting the _ERR folders, but I'll definitely give it a try with Sense5
Fisha, where are you?
We need your skills on the One :fingers-crossed:
LG, Helmut
hd2neuling said:
Fisha, where are you?
We need your skills on the One :fingers-crossed:
LG, Helmut
Click to expand...
Click to collapse
Nah, you guys are doing a great job. I'm enjoying just being a user for now
he_stheone64 said:
Hi Fernando, we will watch behavior going forward on Sense 5. So far we still could not find negative side effects. But we surely keep an eye on it.
Sent from my HTC ONE - powered by TrickDroid
Click to expand...
Click to collapse
Haha yes those of you lucky enough to have the phone! 8 days for me.
Sent from my HTC6435LVW using xda premium
Small Update:
Was running 4 different edited versions com.htc.resouces.apk, until yet, and no problems noticed, of course i´m still watching on it :fingers-crossed:
LG, Helmut
hd2neuling said:
Small Update:
Was running 4 different edited versions com.htc.resouces.apk, until yet, and no problems noticed, of course i´m still watching on it :fingers-crossed:
LG, Helmut
Click to expand...
Click to collapse
That's awesome. Hex editing is not as fun.
Sent from my HTC6435LVW using xda premium
First off, Nice find!! So far the only ill effect I'm noticing is the fonts in settings/display, gestures and buttons doesn't function properly. it changes the font size in certain areas but not system wide like it should. this is the same error we had before, and maybe its because im using the port rom for Evo LTE. I'm looking into it but we couldn't find a resolve for this before.
double post.
steal25 said:
First off, Nice find!! So far the only ill effect I'm noticing is the fonts in settings/display, gestures and buttons doesn't function properly. it changes the font size in certain areas but not system wide like it should. this is the same error we had before, and maybe its because im using the port rom for Evo LTE. I'm looking into it but we couldn't find a resolve for this before.
Click to expand...
Click to collapse
Just to confirm, this is also the case on the One ROMs themselves as well, not just limited to ports.
To see it clearly, just go into Settings/Display, Gestures and Buttons, and try flicking between small and extra large fonts. When you go back out into the main Settings menu, the font size doesn't change as expected.
Did try to get around this by compiling the images, and dragging them into the stock resources apk. If you do this without renaming some of the 9.pngs back into r.9.pngs, you get SysUI FC, and a messed up lockscreen. With those corrections made, everything boots fine, but Dialer FCs and several Settings menu options also FC.
Next thing to try is using villaintheme to insert the altered pngs directly on-device....
Edit: yup, using villaintheme seems to give the best result. No app FCs and no text resizing issue. Just means we still need to hex edit to change any of the values xmls.
At least the recompile workaround gives us a way to easily test resource edits. Thanks again for the heads up!
fisha21 said:
Just to confirm, this is also the case on the One ROMs themselves as well, not just limited to ports.
To see it clearly, just go into Settings/Display, Gestures and Buttons, and try flicking between small and extra large fonts. When you go back out into the main Settings menu, the font size doesn't change as expected.
Did try to get around this by compiling the images, and dragging them into the stock resources apk. If you do this without renaming some of the 9.pngs back into r.9.pngs, you get SysUI FC, and a messed up lockscreen. With those corrections made, everything boots fine, but Dialer FCs and several Settings menu options also FC.
Next thing to try is using villaintheme to insert the altered pngs directly on-device....
Edit: yup, using villaintheme seems to give the best result. No app FCs and no text resizing issue. Just means we still need to hex edit to change any of the values xmls.
At least the recompile workaround gives us a way to easily test resource edits. Thanks again for the heads up!
Click to expand...
Click to collapse
no problem, Ive dug in settings and com.htc.resources and see no link in the two. Not arrays, dimens, nothing. all the arrays and sizes for the different fonts are in settings so i dont understand why that would be affected. If i find afix/workaraound ill post it here.
Noticed the fontsize-problem before de/compiling com.htc.resources.apk too, dont know if it works on Stock because i never booted Stock ^^
Besides this, my edited com.htc.resources.apks are still working without problems, even with ROMs based on 1.29.401.1/2
LG, Helmut
This will no doubt come in handy. Thanks
Sent from my HTC One using Tapatalk 2

How to theme Contacts and Clock VZW S5 PKM files

So I am sure many of you have noticed that when you decompile ClockPackage.apk or SecContacts_Phone_FLAGSHIP_USA.apk you see a bunch of PKM image files. I have managed to replace most of them with PNG files and sucessfully theme both APK's.
Here is a link to both of my ASU Sun Devil themed ClockPackage.apk and SecContacts_Phone_FLAGSHIP_USA.apk. http://d-h.st/q5D
You are welcome to theme them as you see fit. I spent over 100 hours on these. PS: the text color code I use is ffffb310 hex and -0x4cf0 smali. There are some smali edits in ClockPackage. None in Contacts.
Thanks for looking!!!
Enjoy!!!
Ok, I'm stumped. I took ALL the images from XXHDPI and vrthemed them into another SecContacts_Phone_FLAGSHIP_USA.apk file and it didn't appear to do anything except maybe change the statusbar.
I pulled the apk just to be certain and sure enough, the themed png files were there. Any ideas?
tdunham said:
Ok, I'm stumped. I took ALL the images from XXHDPI and vrthemed them into another SecContacts_Phone_FLAGSHIP_USA.apk file and it didn't appear to do anything except maybe change the statusbar.
I pulled the apk just to be certain and sure enough, the themed png files were there. Any ideas?
Click to expand...
Click to collapse
You can't do that. The PKM files will still exist. You must morph the whole folder if you are going to do that so it erases the stock one.
Best way is to just decompile and theme it. Use my APK's as a base.
EMSpilot said:
You can't do that. The PKM files will still exist. You must morph the whole folder if you are going to do that so it erases the stock one.
Best way is to just decompile and theme it. Use my APK's as a base.
Click to expand...
Click to collapse
Ahhh!!! Gotcha. Totally forgot about that. I don't do a lot of theming I work on other development stuff mainly but this particular release is going to keep us busy for a while I think. LOL
Dev Edition?
Ok figured out that your contacts apk flashes and works fine on the Sprint S5 variant btw (very nice, this could come in handy later).
However, it does not play nice with apktool 2.0x so I decompiled it with apktool 1.5.2 and it 'almost' recompiled fine except for an apktool dummy error that was being generated by res/drawable/select_all_item_bg.xml. The resource is definitely there but it gave it that value for this line anyway.
Code:
<item android:state_pressed="true" android:drawable="@*android:drawable/APKTOOL_DUMMY_0b03" />
To correct for that, I pulled the stock select_all_item_bg.xml, copied right over the decompiled one with the apktool dummy code (I know I could have just fixed the line but whatever ) and it now recompiles perfectly. I am attaching that file for anyone that may have issues. This xml file is ALREADY decompiled.
Edit: EMSPilot, I heard you got the original images from the S4. You don't still happen to have an stock/unthemed version of contacts we can work from do you ?
Dev Phone
Dennisg34 said:
Dev Edition?
Click to expand...
Click to collapse
Yes Dev Edition
Awesome mate, I was going crazy looking for ways to thematize these PKM files.
Tested and works perfect s5 International. :laugh::laugh:
Thanks and regards.:good:
Hello guys, someone can tell me how to change the log window colors? I can not find ?
Thanks
Spinner
BoBCatRoM said:
Hello guys, someone can tell me how to change the log window colors? I can not find ?
Thanks
Click to expand...
Click to collapse
That would be a tw_spinner in framework-res. Not sure which one as I always theme them all.
EMSpilot said:
That would be a tw_spinner in framework-res. Not sure which one as I always theme them all.
Click to expand...
Click to collapse
thanks, I try to see in the framework
This is awesome work. Would love to see someone develop a dark contacts and SMS stock app darkened too. If anyone can do sothat would be awesome. But not dark MMS like the old school stuff but dark MMS with ways to change the bubble colors too. Would love to see where this goes thanks again devs
Of course we can make dark contacts, lol. Working on some now
Sent from my SM-G900P using Tapatalk
EMSpilot said:
So I am sure many of you have noticed that when you decompile ClockPackage.apk or SecContacts_Phone_FLAGSHIP_USA.apk you see a bunch of PKM image files. I have managed to replace most of them with PNG files and sucessfully theme both APK's.
Here is a link to both of my ASU Sun Devil themed ClockPackage.apk and SecContacts_Phone_FLAGSHIP_USA.apk. http://d-h.st/q5D
You are welcome to theme them as you see fit. I spent over 100 hours on these. PS: the text color code I use is ffffb310 hex and -0x4cf0 smali. There are some smali edits in ClockPackage. None in Contacts.
Thanks for looking!!!
Enjoy!!!
Click to expand...
Click to collapse
Do you also theme /system/app/InCallUI.apk? That's the contacts screen during a phone call.
InCallUI
blulite said:
Do you also theme /system/app/InCallUI.apk? That's the contacts screen during a phone call.
Click to expand...
Click to collapse
Yes of course I theme InCallUI.apk.
i decided that i would try and make a theme for the tmo s5 varient even tho i do not have the device and boy i had no idea what i got myself into when it was time to theme contacts!!! i have never seen anything like this over my past years theming the s2-s4 and note 3! i was like a pkm what??? i was able to edit in my own images for dialer buttons and dialer bg but stopped there! lol. I was truly amazed when coming across this thread and just wanted to take my hat off to you! i have a question tho... sorry if you already answered for i attempted to search for the answer in this thread but am still a little confused.. so again how did you replace the pkm with a png? just by using another seccontacts image and replacing the pkm with the png?? i doubt thats how because you would have to change it in the values folder or something like that correct? kinda like i and i also saw you figured out how to edit our own dialer button image? ive just been so stumped with these pkms that i am like i need to know how you did it! lol.
@EMSpilot
Great work in here Sir..... made couples adjustment for AT&T S5 SM-G900A And everything look good....
EDIT: Sept 15
Hi Bill @EMSpilot
I really appreciated all your guide and pointers

SystemUI Navigation Bar Animations (Solved)

Hey I know that other people have asked this sort of question before, but I was wondering if anyone can help me with setting up the Pixel/Pixel XL navigation bar animation on a none Pixel device (in my case Nexus 5X).
The reason I have started this thread is because I'm very suspicious of people when ever I see someone post a system modification for a device without explaining what they did to get there so I research things online and make my own version of they're system mod. Another reason is that asking these questions allows people to help me with my struggles and it expands everyone's knowledge on system modifications allowing everyone to create their own system mods or this same mod for their own device on any version of android.
Anyway the current things that I have found out is that the Pixel's SystemUI has a few extra files in the drawable folder (SystemUI.apk\res\drawable) they are
ic_sysbar_opa_blue.xml
ic_sysbar_opa_green.xml
ic_sysbar_opa_red.xml
ic_sysbar_opa_yellow.xml
Click to expand...
Click to collapse
they contain a information similar to these
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="oval"
xmlns:android="http://schemas.android.com/apk/res/android">
<size android:height="@dimen/opa_dot_diam" android:width="@dimen/opa_dot_diam" />
<solid android:color="#fffbbc05" />
</shape>
What this means:
Version of XML
Start of draw circle shape string
Thing
The size of the circle
Colour of the circle
End of string
Click to expand...
Click to collapse
This tells android to draw the little dots that appear when you press the home button on the Pixel. I have inported these files into my sytemui and was now wondering how to create the dots and make them move. I believe that this can be activated by finding out which file causes the home button to make that little ripple effect when you tap it and comparing it to find out what's different. So my question is at the moment is:
What file controls current home button animations (the home button ripple effect) on the Nexus 5X?
Click to expand...
Click to collapse
If any of you want the uncompressed versions of the Pixel's SystemUI and current Nexus SystemUI that I'm using then feel free too download them. (I have removed any unnecessary guff).
Edit: I think I have found the file. It's located at:
SystemUI.apk\res\layout\home.xml
Edit: I have edited the home.xml and it seems that it just cuases my SystemUI to crash. I believe this is caused by something else in the apk.
My current guess is that there is another file in the Pixels SystemUI that reads the xml file ic_sysbar_opa_colour.xml or home.xml
If anyone knows of a way I can search for those values in a large amount of xml files quickly, then please tell me.
No, It is not that simple. lots of things needs to modify, not only the res, dex code needs to patch, the one that detect the assistant and trigger the animation.
The worse thing is, if you do anything wrong, you have to use the twrp to restore the phone...
Charles_l said:
No, It is not that simple. lots of things needs to modify, not only the res, dex code needs to patch, the one that detect the assistant and trigger the animation.
The worse thing is, if you do anything wrong, you have to use the twrp to restore the phone...
Click to expand...
Click to collapse
I've edited the navigation bar in the SystemUI before without any problems. I know what you mean by resetting the phone if I mess anything up because I messed up a few things while editing the framework.apk but I haven't run into any problems with the dex file before.
Jackio987 said:
I've edited the navigation bar in the SystemUI before without any problems. I know what you mean by resetting the phone if I mess anything up because I messed up a few things while editing the framework.apk but I haven't run into any problems with the dex file before.
Click to expand...
Click to collapse
The dev that figured out how to enable the animated nav bar for the Nexus 5 posted this I hope it helps
http://forum.xda-developers.com/goo...-fake-nexus-rom-nexus-5-t3466736/post69496350
kevtrysmoddin said:
The dev that figured out how to enable the animated nav bar for the Nexus 5 posted this I hope it helps
http://forum.xda-developers.com/goo...-fake-nexus-rom-nexus-5-t3466736/post69496350
Click to expand...
Click to collapse
I noticed that someone else has done it before, (it's on page 120) link:
http://forum.xda-developers.com/goo...t/rom-fake-nexus-rom-nexus-5-t3466736/page120
Click to expand...
Click to collapse
And that inspired me to ask how it was done. Another thing is that I have a nexus 5X and he has a nexus 5 which both have different processor types (arm and arm64). I also tried flashing his zip which as you would of guessed caused my phone to crash as soon as the phone had booted up requiring me to factory reset it. I might try flashing the zip onto a phone that has an arm processor (my moto g 2nd generation running cyanogenmod 14 beta) and figure out how to export it to my Nexus. Anyway I have asked qitt the guy that made the original nav bar animation for the nexus 5 work how he did it and he still hasn't responed.
Also taking a look at it, it seems that the Pixel's SystemUI and qitt's SystemUI are almost identical with only about a 200 byte difference.
Jackio987 said:
Hey I know that other people have asked this sort of question before, but I was wondering if anyone can help me with setting up the Pixel/Pixel XL navigation bar animation on a none Pixel device (in my case Nexus 5X).
The reason I have started this thread is because I'm very suspicious of people when ever I see someone post a system modification for a device without explaining what they did to get there so I research things online and make my own version of they're system mod. Another reason is that asking these questions allows people to help me with my struggles and it expands everyone's knowledge on system modification allowing everyone to create their own system mod or this same mod for their own device on any operating system.
Anyway the current things that I have found out is that the Pixel's SystemUI has a few extra files in the drawable folder (SystemUI.apk\res\drawable) they are
they contain a information similar to these
This tells android to draw the little dots that appear when you press the home button on the Pixel. I have inported these files into my sytemui and was now wondering how to create the dots and make them move. I believe that this can be activated by finding out which file causes the home button to make that little ripple effect when you tap it and comparing it to find out what's different. So my question is at the moment is:
If any of you want the uncompressed versions of the Pixel's SystemUI and current Nexus SystemUI that I'm using then feel free too download them. (I have removed any unnecessary guff).
Edit: I think I have found the file. It's located at:
SystemUI.apk\res\layout\home.xml
Edit: I have edited the home.xml and it seems that it just cuases my SystemUI to crash. I believe this is caused by something else in the apk.
My current guess is that there is another file in the Pixels SystemUI that reads the xml file ic_sysbar_opa_colour.xml or home.xml
If anyone knows of a way I can search for those values in a large amount of xml files quickly, then please tell me.
Click to expand...
Click to collapse
I'm working on same and I'm willing to help you .. it's quite a surprise why despite so many ppl being there, none have managed to figure this one out. I'm also moderately knowledgeable about the subject so I just might be Able to help you. Can you share the systemUI.apk file for pixel?
raghavsharmaxda said:
I'm working on same and I'm willing to help you .. it's quite a surprise why despite so many ppl being there, none have managed to figure this one out. I'm also moderately knowledgeable about the subject so I just might be Able to help you. Can you share the systemUI.apk file for pixel?
Click to expand...
Click to collapse
Here you go.
I got this by flashing the Pixel's system.img onto my Nexus 5X extracting the entire system partition then re flashing android 7.1.1 beta. I have also included the .obex files in the system_other.img that comes with the Pixel's factory image.
I'm just wondering if it's as simple as changing the name of the Pixel's SystemUI, the AndroidManifest.xml, the meta-inf, the .odex and anything else related to application identification to get it working. The reason I say this is because qitt claims to have done this and I've taken a look at what he has done and it seems that there is basically no different between the Pixel's SystemUI and his in terms of file and folder layout. One problem is that qitt's SystemUI is optimized for the Nexus 5 which has a arm based processor not a arm64 one like the nexus 5x meaning that we just can't install it.
Here is qitts post
http://forum.xda-developers.com/goo...t/rom-fake-nexus-rom-nexus-5-t3466736/page120
Just create a flashable zip of systemui with animated navbar ( from 26/10 ). Try it if you want. Worked for me on 1/11 Fake Nexus. All credits to author this ROM ganachoco.
Attached Files
File Type: zip Pixel_NavBar.zip - [Click for QR Code] (11.56 MB, 856 views)
Click to expand...
Click to collapse
Jackio987 said:
Here you go.
I got this by flashing the Pixel's system.img onto my Nexus 5X extracting the entire system partition then re flashing android 7.1.1 beta. I have also included the .obex files in the system_other.img that comes with the Pixel's factory image.
I'm just wondering if it's as simple as changing the name of the Pixel's SystemUI, the AndroidManifest.xml, the meta-inf, the .odex and anything else related to application identification to get it working. The reason I say this is because qitt claims to have done this and I've taken a look at what he has done and it seems that there is basically no different between the Pixel's SystemUI and his in terms of file and folder layout. One problem is that qitt's SystemUI is optimized for the Nexus 5 which has a arm based processor not a arm64 one like the nexus 5x meaning that we just can't install it.
Here is qitts post
http://forum.xda-developers.com/goo...t/rom-fake-nexus-rom-nexus-5-t3466736/page120
Click to expand...
Click to collapse
I'm wondering how to solve the signature problem after modifying the AndroidManifest.xml?
Charles_l said:
I'm wondering how to solve the signature problem after modifying the AndroidManifest.xml?
Click to expand...
Click to collapse
I really want to just flash the files and then start editing from there but since my 5X is my personal device and if there are any stuff ups with this installation it meas that I have to factory reset my device which isn't that great if I have to do it every time I flash the file. I also don't want to make a TWRP backup and just recover from that when I'm all finished be cause every time I have done that my data partition always stuffs up basically causing me to factory reset again.
Testing this could become a slow and repetitive process
Ok I have figured out how to keep my devices data intact so I can flash the systemUI.apk over and over again without having to factory reset my device, now it's time to get this thing working.
Jackio987 said:
Ok I have figured out how to keep my devices data intact so I can flash the systemUI.apk over and over again without having to factory reset my device, now it's time to get this thing working.
Click to expand...
Click to collapse
If you keep the apk signature, when you get systemui fc, you can always replace the original apk file with TWRP, reboot and everything back to normal.
Jackio987 said:
Ok I have figured out how to keep my devices data intact so I can flash the systemUI.apk over and over again without having to factory reset my device, now it's time to get this thing working.
Click to expand...
Click to collapse
I have succeeded in porting all res and smali things to 5X's systemUI which is related to Assistant.
Process by now, the sendOpaBroadcast refuse to work.
issue:
Code:
11-11 11:58:02.915 D/AssistManagerGoogle(3038): New assistant: null
Charles_l said:
I have succeeded in porting all res and smali things to 5X's systemUI which is related to Assistant.
Process by now, the sendOpaBroadcast refuse to work.
issue:
Code:
11-11 11:58:02.915 D/AssistManagerGoogle(3038): New assistant: null
Click to expand...
Click to collapse
Do you have the new google assistant enabled?
If not then you can change your build.prop to get it working
Code:
change
ro.product.model=Nexus 5X to ro.product.model=Pixel
and add
ro.opa.eligible_device=true
somewhere into the build.prop then flash it or push it back onto the device.
This might be useful since the little circles the home buttons draws are called
ic_sysbar_opa_colour.xml
Click to expand...
Click to collapse
and the build prop tells the device that you can use opa with this line
ro.opa.eligible_device=true
Click to expand...
Click to collapse
Charles_l said:
I have succeeded in porting all res and smali things to 5X's systemUI which is related to Assistant.
Process by now, the sendOpaBroadcast refuse to work.
issue:
Code:
11-11 11:58:02.915 D/AssistManagerGoogle(3038): New assistant: null
Click to expand...
Click to collapse
Also can you tell us how to got the System UI's nav bar working, if it does work after you have changed the build.prop
Jackio987 said:
Also can you tell us how to got the System UI's nav bar working, if it does work after you have changed the build.prop
Click to expand...
Click to collapse
What did you do with build.prop, if you add a line in it to enable some settings, the setting doesn't turn off when you delete the line, you have to set the value to 0 of what you have added.
Good news, now I got the home button animation, though the four dots didn't appera.
I might need the Pixel phone user setting, if I can't override the Opa_Enabled settings.
Charles_l said:
What did you do with build.prop, if you add a line in it to enable some settings, the setting doesn't turn off when you delete the line, you have to set the value to 0 of what you have added.
Good news, now I got the home button animation, though the four dots didn't appera.
I might need the Pixel phone user setting, if I can't override the Opa_Enabled settings.
Click to expand...
Click to collapse
Here goes the build.prop from the Pixel if it helps.
Jackio987 said:
Here goes the build.prop from the Pixel if it helps.
Click to expand...
Click to collapse
Thank you but no need, after analysising Google App, I found a way to get systemUI turn on the OPA animation switch. I will start a new thread for details.
Charles_l said:
Thank you but no need, after analysising Google App, I found a way to get systemUI turn on the OPA animation switch. I will start a new thread for details.
Click to expand...
Click to collapse
Can you please make a tutorial on this so we can port it to other devices like my moto g 2014 or a nexus 6P or future updates to the nexus 5X.
Charles_l said:
Thank you but no need, after analysising Google App, I found a way to get systemUI turn on the OPA animation switch. I will start a new thread for details.
Click to expand...
Click to collapse
I worked on this for week but no luck .. if you have figured out how and do know the exact reasons, let me know..thank you
PS- don't back and restore /data all the time. Simply replace the apk and grand permissions from aroma file manager which can manipulate data from recovery itself.

Categories

Resources