[ZIP][Flashable][WIP][OPP3] O-DP3 PIXEL MOD -- Why It's Taking So Long - Nexus 6P Themes and Apps

O-DP4 Pixel Mod Available here: https://forum.xda-developers.com/nexus-6p/themes-apps/zip-android-o-dp4-pixel-mod-nexus-6p-t3641880
UPDATE -- I have everything figured out at this point except for the nav bar and DT2W. I've figured out round icons and night mode and have found the "proper" way to implement the pixel color. However, the process to achieve this is difficult. I'll release another post describing it. It requires enabling the "device theme" setting in Display settings. I'm not 100% sure how to do it. But something Substratum does, and that is the work around currently. In this post, I'm not releasing all of that :good:
First things first, this is definitely a work in progress. But that's alright, we're getting there. It seems that Android O has introduced some changes that have made making these Pixel Mods difficult. The most prominent issue is apktool's inability to compile Android O's apk's (The ability to decompile wasn't available in the beginning either). Also, to put it simply, some things have been moved around or changed up.
For example, to get the blue accent color, you could previously find the accent color hex codes in framework-res.apk and make them identical to the pixel. Those have been replaced by reference numbers instead of hex codes. If you're curious, see the bottom of this post. I'll go into detail of how I achieved the Pixel accent color.
Another issue is the round icons. To my knowledge, previously you switched a code (something along the lines of config_UseRoundIcons=False) in framework-res.apk from false to true. From my testing, I've found that does absolutely nothing now. What's also interesting, I looked at the same line on my Pixel XL running DP3, and it's set to false. But I have round icons. It seems there's a new "trigger" elsewhere that I have yet to find.
I don't know if I've actually figured out anything new or not, but my work is completely open. If anyone wants to borrow my work all I ask for is credit if any belongs to me
So here is what is available currently from me!
What's Included:
-O-DP3 Pixel Launcher W/ Wallpapers (Make sure to grant notification access for notification badges)
-O-DP3 Clock
-O-DP3 Pixel Audio
-Pixel XL 1440p Boot Animation Blacked Edition (Thanks to Luthepa1)
-Pixel Blue Accent Color :good:
-All Rotations 0, 90, 180, 270 (Adds the ability to rotate upside down) Not a Pixel feature, but I like having it​
What's Missing / Being Worked On:
-Pixel Navigation Bar Animation
-Tinted Navigation Bar
-Round Icons
-Night Mode​
AFH Download Link: [url]https://www.androidfilehost.com/?fid=745425885120743210[/URL]
As always, flashing voids your warranty. Always make a backup.
Bugs:
-None that I'm currently aware of
Update: I've made progress on the nav bar. Don't know if it'll work yet, but I've got hope now
Update 2: Fixed the Live Wallpaper crashing bug, credit to jasonzarko
*Information on the Pixel Accent
-In Nougat, you would have 4 lines that contained hex codes that assigned colors to the accent. These were teal variants for the Nexus 6P (and others) and variants of blue for the Pixel. These were located in framework-res.apk in /system/framework. To get the Pixel accent you just copied the hex code, and boom, that's it. Things are different in O.
Now those hex codes have been replaced with reference numbers such as . Those reference numbers lead you to another reference number. From that leads you to a certain hex code that's located in what seems to be a database of color options. The reference numbers for the 6P take you to a few different shades of teal. If I do some comparing with a Nougat framework-res.apk for the Pixel, I'm able to piece together what those teal colors need to be replaced with. That leaves you with the Pixel accent.
However, this leaves you without the option for teal in anything that references back to that. Potentially giving something the blue color that shouldn't have it. It is possible that nothing else references to those, but I have't looked enough. It may also be possible to simply add new colors to the database with a new reference ID and just change the reference. I haven't gotten that far yet. For the mean time, this works well enough.

Great mod. When Your World is selected in Live wallpapers, the wallpapers are crashing. I have given notification access to notification badges FYI

I'm not able to dowload your mod (AFH says 404 not found)...

Suhas_JS said:
Great mod. When Your World is selected in Live wallpapers, the wallpapers are crashing. I have given notification access to notification badges FYI
Click to expand...
Click to collapse
Thanks for the feedback. I made some changes to the mod. As of now, the live earth wallpapers still crash for some reason. But the live data does work. Sadly, to update this, you'll have to reflash the system.img in TWRP and then reflash your root and the mod. But if you can live with it for a little bit, it'll be easier not to take the newer mod. I'll work on it more later and see if I can stop it from crashing. Thanks again for the feedback on that

Micha El said:
I'm not able to dowload your mod (AFH says 404 not found)...
Click to expand...
Click to collapse
I took it down for a second to make a modification hoping to resolve a bug. It's now good to go!

I don't know if it's me or a Google thing, but it seems as if the weather isn't showing up for me. It did previously, which is interesting. Is anybody else having the same issue?

krisyarno said:
I don't know if it's me or a Google thing, but it seems as if the weather isn't showing up for me. It did previously, which is interesting. Is anybody else having the same issue?
Click to expand...
Click to collapse
All OK here with the first mod. Haven't tried the latest though.

I have the live earth wallpapers working. There are three files that need to be in System/Apps/WallpapersBReel/Lib/Arm64. Three files are:
- libgdx.so
-libgeswallpapers-jni.so
-libjpeg.so
https://www.mediafire.com/download/rl68f6sxc3fl8ai
You can either copy the lib folder to WallpapersBReel folder or open folder until you get to the three files and copy seperately. Make sure permissions are set to 644 for all files.

jasonzarko said:
I have the live earth wallpapers working. There are three files that need to be in System/Apps/WallpapersBReel/Lib/Arm64. Three files are:
- libgdx.so
-libgeswallpapers-jni.so
-libjpeg.so
https://www.mediafire.com/download/rl68f6sxc3fl8ai
You can either copy the lib folder to WallpapersBReel folder or open folder until you get to the three files and copy seperately. Make sure permissions are set to 644 for all files.
Click to expand...
Click to collapse
thanks, this works and fixed live earth wallpapers for me :good:

Congratulations for your work , maybe someone could do the same for bullhead. Thanks

jasonzarko said:
I have the live earth wallpapers working. There are three files that need to be in System/Apps/WallpapersBReel/Lib/Arm64. Three files are:
- libgdx.so
-libgeswallpapers-jni.so
-libjpeg.so
https://www.mediafire.com/download/rl68f6sxc3fl8ai
You can either copy the lib folder to WallpapersBReel folder or open folder until you get to the three files and copy seperately. Make sure permissions are set to 644 for all files.
Click to expand...
Click to collapse
Thanks for the help on that :good:

krisyarno said:
Thanks for the help on that :good:
Click to expand...
Click to collapse
No problem. Thanks for the great mod!!

If you plan on using substratum I highly recommend not flashing this. For some reason this zip breaks substratum

Hate to tell this, but the live wallpapers are still crashing.

Suhas_JS said:
Hate to tell this, but the live wallpapers are still crashing.
Click to expand...
Click to collapse
It doesn't look like the 3 files were added yet to fix it. There is a post earlier in here with the three files and instructions to get it working.

Suhas_JS said:
Hate to tell this, but the live wallpapers are still crashing.
Click to expand...
Click to collapse
Sorry, I've been busy today. I added the files necessary and uploaded to AFH. I didn't change the link though. I'm updating the link, it for sure works now

Suhas_JS said:
Hate to tell this, but the live wallpapers are still crashing.
Click to expand...
Click to collapse
jasonzarko said:
It doesn't look like the 3 files were added yet to fix it. There is a post earlier in here with the three files and instructions to get it working.
Click to expand...
Click to collapse
I updated the link now. The zip should have a suffix of V2. That contains the necessary fix

krisyarno said:
I updated the link now. The zip should have a suffix of V2. That contains the necessary fix
Click to expand...
Click to collapse
No luck yet ?

Suhas_JS said:
No luck yet ?
Click to expand...
Click to collapse
That's interesting. I have it working on mine. Did you flash V2 of the mod?
If so, then you may need to flash your system.img over in twrp. That's found in the stock factory image for DP3. I'd just flash that in twrp in the system.img slot and the reflash too and that should revert everything back to stock and clean install the mod

krisyarno said:
That's interesting. I have it working on mine. Did you flash V2 of the mod?
If so, then you may need to flash your system.img over in twrp. That's found in the stock factory image for DP3. I'd just flash that in twrp in the system.img slot and the reflash too and that should revert everything back to stock and clean install the mod
Click to expand...
Click to collapse
Will do it and get back to you. In any case nice work champ. Thanks for this.:good:

Related

Theme Porter v1.3...now supports CM4.1.5+

CHANGELOG
v1.1 - Added "Ultra" compression switch. Added a few more commands.
v1.2 -Now includes batch file that signs the theme also. So if you need to add anything else to the theme, like an xml file, add it to themenew.zip BEFORE you run the batch file. I also included a batch file that change the Ticker, Date and Clock font colors to white, then signs it. Of course, you can make it change it to any color, you just need to edit the batch.
v1.3 - Now compatible with CM 4.1.5+ themes.
http://www.mediafire.com/?gmjbnzted5m
Then follow these steps...
Download and extract "themeporter.zip" to C:\themeporter(IMPORTANT that it's extracted there).
1) Copy old theme to c:\themeporter and rename it to "themeold.zip".
2) Copy new theme template to c:\themeporter and rename it to "themenew.zip".
3) Run Port.bat
note: If you want to see for yourself that this works, don't copy and paste "themenew.zip" into the themeporter directory. This batch will automatically create one if there isn't one there. You will then be able to see exactly which files are being ported over.
BIG NOTE: This only ports over.png's. You will still have to manually copy over and xml's, jar's or whatever over to "themenew.zip".
WOW
Man if this works.... WOW!!
The other issue is any modified xml's for color changes...
daveid said:
The other issue is any modified xml's for color changes...
Click to expand...
Click to collapse
Yea, this will only be used just for png's.
Is this geared toward theme creators or users? If creators you could modify it so that if they store only modified files in a tiered folder structure it could just dump them into the new template.
If end users then you will be limited on your current track since you have to unpack/repack with entire files instead of it being selective.
Take a look into the bash scripts available here:
http://forum.xda-developers.com/showthread.php?t=530081
Port the bash > batch, and you'll have a very nice theme porting experience in the windows environment.
I've been using it for the past month, and it's a champ.
cant wait to see this finished. with 6 themes to update this will be helpful!!!
sir*mez said:
cant wait to see this finished. with 6 themes to update this will be helpful!!!
Click to expand...
Click to collapse
So far so good...it's maybe about 60% complete. Hopefully I'll have something whipped up by tomorrow.
ThemePorter v1.0 is up. Check it out!
Looks good. So now all that is needed is the manual updates for HTC Music, XML edits and colorchanger.
Nice timesaver!
Thanks
SICK!!!!! I love this man with this and colorchanger.jar porting is a breeze for cyanogen builds thanks a million!!
Tried porting over Kspec Oreo Theme to Cyanogen 3.9.4
Kept getting a E:\Wrong Digest error with Phone.apk
I tried resigning it and same error
Beats me
xidominicanoix said:
Tried porting over Kspec Oreo Theme to Cyanogen 3.9.4
Kept getting a E:\Wrong Digest error with Phone.apk
I tried resigning it and same error
Beats me
Click to expand...
Click to collapse
Did you have the bat running in C:\themeporter\? Worked for me with Cyan's 3.9.4
Btw ultra Spikey, I have noooo idea why this thread is not insanely bigger cuz this thing is freakin awesome and helps a ish ton for me. Thats why it went unnoticed by me until now. Thanks man! : D
well i did a test that i was thinking about last night. Is it possible to port a theme over to a new CM before the new rom finishes flashing and booting up? the answer............ YES!!! i started the download for the rom and theme template at the same time and with this and colorChange.jar by Oshaka i was able to port my theme before my phone had fully booted up the rom. Also it only took 2 minutes to download the rom so that didn't affect timing too much. Great job ultra spikey, this is amazing
RainCrow said:
Did you have the bat running in C:\themeporter\? Worked for me with Cyan's 3.9.4
Btw ultra Spikey, I have noooo idea why this thread is not insanely bigger cuz this thing is freakin awesome and helps a ish ton for me. Thats why it went unnoticed by me until now. Thanks man! : D
Click to expand...
Click to collapse
Yup had it in the right place and everything .. it zipped everything up into "themenew.zip" but just hit that error when trying to flash it
EDIT: just tried it again ... didnt get the error!! lol ... i had to resign the update.zip (duh) ... rebooting now
Just FYI, for some reason (on my Linux box), when rezipping the files, it does not keep the same letter case.
Phone.apk becomes
phone.apk
This caused some problems...but all I had to do was go in an manually rename. Other than that - awesome work!
EDIT: Actually, just realized that the battery progress icon does not work at all. When I manually change the files - it is fine. But when I run your tool - it is not. My guess is the case-sensitive thing.
erissiva said:
Just FYI, for some reason (on my Linux box), when rezipping the files, it does not keep the same letter case.
Phone.apk becomes
phone.apk
Click to expand...
Click to collapse
Good catch eriss. I just noticed that as well and came in here to post that I am seeing the same issue.
hmm I didnt realize it was case sensitive. It's not on any of my themes at least. I will fix and to match later today.
I fixed the case-sensitive issue in 1.2.
ultra spikey said:
I fixed the case-sensitive issue in 1.2.
Click to expand...
Click to collapse
If you are looking for increased ease you might think about rolling into/incorporating the color changer jar. : )
I have my updating/porting down to about 3 commands:
Code:
490 wget http://n0rp.chemlab.org/android/experimental/template-cm-3.9.6-signed.zip
491 unzip template-cm-3.9.6-signed.zip -d ./theme.new/
492 ./update.theme theme.aero/ theme.new/
493 ./create.new theme.new/
I've incorporated the colorChanger.jar into my own script, and it has dramatically reduced the time/effort in making updates/ports...

[ICON THEME] Coloured status bar icons

Well I never thought I would find myself contributing anything to XDA-Dev but I liked these icons so much I decided to share!
These icons are either hand made by myself, or edited from various sources. They feature a transparent background, so they should work well with most statusbar's out there. I am currently working on finishing the blue style icons across the board, and perhaps the purple as well (like the battery).
I have tested these on VanillaEclaire 4 and FroydVillan 1.1, and these work without MetaMorph etc etc.
These are fairly simple to install:
- Pull your framework-res.apk (should be in /system/framework) to the folder of your choice.
- Open framework-res.apk with WinRAR or 7zip and navigate to res\drawable-mdpi (some may be called drawable-hdpi). Just find the .png files that match the ones in my zip files.
- Drag your favourite .png files into the WinRAR/7zip window and click OK to save
- Push updated framework-res.apk to your device and reboot. (adb remount, then, adb push ..., adb reboot)
- If you wish to include the gmail, email, or sms icons like in the screenshot, please also update gmail.apk, email.apk, mms.apk as appropriate!
Update: Pictures! Tons more icons!
Update 2: Vending.apk icons (Market download notifications) See post
Mass spam of the icons, pick and choose!
Disclaimer:
Please update the filenames of the .png's as appropriate. I have created/included several copies that can be used as you please, so the names don't always match the .apk files.
Please make backups before pushing to /system
I have read posts on this forum regarding editing .apk files and the need to re-sign them, or issues with endless reboots after editing .apk files. I used WinRAR and did not create a new framework file, only edited it. I have had 0 issues.
Mega pack attachment below contains all icons from the other 3 zip files!
Update: Pink/Purple pack!
Reserved.
Hopefully I can upload pictures now.
Credits:
istockphoto.com
psdgraphics.com
My brother for helping me learn to use photoshop!
I can't get it to work? this what I get
E:Wrong digest:
system/framework/framework-res.apk
E:Verification failed
=[
I'll keep trying.I really wanna see a purple battery instead of green or blue
<3
Hi Jen, sorry was this when you were pushing or pulling the file? Rebooting?
I use a vanilla rom, and the location of framework-res.apk is exactly where you mentioned. I use a program called "ADB File Explorer" to find things on my device.
SpeeDemon said:
Hi Jen, sorry was this when you were pushing or pulling the file? Rebooting?
I use a vanilla rom, and the location of framework-res.apk is exactly where you mentioned. I use a program called "ADB File Explorer" to find things on my device.
Click to expand...
Click to collapse
When I was pushing in files..
I haven't tried it since I last posted,just don't have the time at the momment i'll give it another try tomorrow..But im really excited on getting this to work <3 i've been looking for something like this for the longest.
Ok sounds good! If it keeps failing to push, try ADB file explorer:
http://code.google.com/p/adb-file-explorer/downloads/list
Jen, you're not repacking the apk are you? Just need to update, If you look at my sig i've made a video on how to update images on the phone, might help =o)
SpeeDemon, I really like your battery icons, would it be ok to use them on my next video? I'm making a video on how to change the look of the battery status bar icon and rather than making crappy images myself would like to use your ones, I would of course give credit to you for the icons.
.FxN
Hey, sure thing fxn, go wild!
Bump for huge update! Still more to come!!!
These are superb SpeeDemon! Mind if I use a few of them in a theme I'm looking into creating?
Beautiful! Gonna try them ASAP! Thanks!
Absolutely fantastic work, muchly appreciated!
I have one small request… Could you make a blue Alarm Clock status bar icon please? Its the only thing left white on my system and looks weird lol
Soul_Est said:
These are superb SpeeDemon! Mind if I use a few of them in a theme I'm looking into creating?
Click to expand...
Click to collapse
Please, feel free, thank you!
SLX69 said:
Beautiful! Gonna try them ASAP! Thanks!
Click to expand...
Click to collapse
Thank you! Lemme know how they work out. Especially if you have a dark statusbar as I havent tested them on dark.
shadowch31 said:
Absolutely fantastic work, muchly appreciated!
I have one small request… Could you make a blue Alarm Clock status bar icon please? Its the only thing left white on my system and looks weird lol
Click to expand...
Click to collapse
How's this? Added some silver colour to the trim as it seems to fit the style.
That looks stunning!
By the way I'm using a black status bar and the electric blue set just fyi.
not working on my galaxy spica!! is there any resolution problem..
vineet.rox said:
not working on my galaxy spica!! is there any resolution problem..
Click to expand...
Click to collapse
Can you please elaborate for me? Are you getting error messages?
How did you update your .apk files and push them back to your device?
Thanks for your interest in the icons!
HTC Desire
Hi, first of nice icons
Second, do I need to put another rom on my Desire ???
It's running with what ever it came with.
Dennis
can i push my framework.apk without adb?
like with root explorer?
kind regards DauL
[email protected] said:
Hi, first of nice icons
Second, do I need to put another rom on my Desire ???
It's running with what ever it came with.
Dennis
Click to expand...
Click to collapse
Hi Dennis. These icons should work with most ROM's out there available for your device, rooted or otherwise. You will need to familiarise yourself with any of the various methods of pulling framework-res.apk from your phone, and placing the .png files into their correct folder (as outlined in my first post). Then you will need to update the file on the phone with your modified .apk (Google/Android call this "push").
x10i DauL said:
can i push my framework.apk without adb?
like with root explorer?
kind regards DauL
Click to expand...
Click to collapse
If root explorer can pull a copy to your SD card, you may be able to pull it and just do a normal file copy to your PC. You would then need to push it back from SD > /system using root explorer. I have never used the app before, but I just googled it now and some screenshots hint at this possibility.
I would still suggest trying to get ADB working - it is worth the hassle and much quicker than mounting/unmounting an SD card all the time!
i made it with root explorer. I made a copy from the system folder to SD card. then i sent the file via bluetooth to my pc. then i replaced some pictures and clicked OK. after this i sent the framework-res.apk back to my device. then i copied this and pasted it in System/framework and replaced the old one.
and now i cant boot anymore.
it just shows the startupshow (modified) and then there is a black screen which is illuminated a little bit..
so what can I do?
hope for a quick answer.
kind regards from sad DauL

[Link] Theme-Porter

http://forum.xda-developers.com/showthread.php?t=737526
Heres a script that ports your themes from firmware to firmware, rom to rom.
How it works:
- Looks through app/framework folder for apks that exist in new/old rom
- Then extracts pngs from those apks
- Then deletes mismatching pngs
- Repacks old themes pngs into new rom
- Done
Click to expand...
Click to collapse
Easy cheesy multi rom theme ports
Here we go! This is gonna be fun this weekend.
xtremekilla09 said:
Here we go! This is gonna be fun this weekend.
Click to expand...
Click to collapse
lol... +1
Now I can port my themes for the whole world to share. Thanks for the find...and thanks for sharing.
sent using a phone.
Now what would really be nice would be if someone designed an .apk that did this on the phone(while adding the originals to a "theme-revert.zip" and the new theme to "theme.zip"). Then you just make one theme and post the link to the .apk.
The closest i ever found was zipthemer but it didnt work every time and thats no good.
If only someone could port the open source t-mobile theme choser to samsuck.
So this is it until someone who knows how to code jumps on that idea lol. Still glad it exists and that i bumped into it. And even more so that two of main people i had hoped would make use of it appear to be willing to do just that.
whiteguypl said:
And even more so that two of main people i had hoped would make use of it appear to be willing to do just that.
Click to expand...
Click to collapse
You bet. If this works, there are so many things that can be done, oh man. It will rain themes, well at least for FireFly to start with.
Again, thanks for pointing this out.
xtremekilla09 said:
You bet. If this works, there are so many things that can be done, oh man. It will rain themes, well at least for FireFly to start with.
Again, thanks for pointing this out.
Click to expand...
Click to collapse
From the limited testing ive done it seems to be working 100%. The only real potential problem im seeing (and the script might have a way to handel it) is porting a theme that uses drawable-hdpi to an apk that has both an hdpi AND hdpi-v4 folder in it. I would hope its defaulting hdpi to hdpi-v4. Lol... But i dont know.
Edit: and even that hope is based on the possible incorrect assumption that andriod will allways pull from the v4 folder given the choice? Anyone care to enlighten me?
whiteguypl said:
From the limited testing ive done it seems to be working 100%. The only real potential problem im seeing (and the script might have a way to handel it) is porting a theme that uses drawable-hdpi to an apk that has both an hdpi AND hdpi-v4 folder in it. I would hope its defaulting hdpi to hdpi-v4. Lol... But i dont know.
Edit: and even that hope is based on the possible incorrect assumption that andriod will allways pull from the v4 folder given the choice? Anyone care to enlighten me?
Click to expand...
Click to collapse
I think it does. Isn't the non-v4 there for compatibility reasons with older os versions? I saw something like that a little while ago, in a theming guide
Herp derp Captivate XDA app.
Well after a lot of testing i can safely say that it does not know how to handle hdpi vs hdpi-v4. And since our rom maintainers have decided to mix and match at will without smoothing anything out this script will not work a large majority of the time, depending on what rom you are on.
Quickish fix is to go into the apk before using the script and renaming all the drawable folders to match both the "themed" and "to be themed" apks. Then after the processes you can go in and rename them back to there original names.
............. Im also assuming that if you kept the folder name changes the xml wouldnt know where to look for the images???? I know little to nothing about how android handels that, if someone would like to chime in please do.
Well I most definitely be playing with it this weekend. Thanks again for the info.
sent using a phone.
whiteguypl said:
Well after a lot of testing i can safely say that it does not know how to handle hdpi vs hdpi-v4. And since our rom maintainers have decided to mix and match at will without smoothing anything out this script will not work a large majority of the time, depending on what rom you are on.
Quickish fix is to go into the apk before using the script and renaming all the drawable folders to match both the "themed" and "to be themed" apks. Then after the processes you can go in and rename them back to there original names.
............. Im also assuming that if you kept the folder name changes the xml wouldnt know where to look for the images???? I know little to nothing about how android handels that, if someone would like to chime in please do.
Click to expand...
Click to collapse
Maybe it could be tweaked.
Like after line 55(like roms) (and line 130 pre to post)
Code:
if EXIST "%~dp0old\%dcrt%\%%~nF\res\drawable-hdpi-v4" (rename "%~dp0old\%dcrt%\%%~nF\res\drawable-hdpi-v4" drawable-mdpi)
if EXIST "%~dp0old\%dcrt%\%%~nF\res\drawable-en-hdpi-v4" (rename "%~dp0old\%dcrt%\%%~nF\res\drawable-en-hdpi-v4" drawable-en-mdpi)
Line 240 seems to be for eclair. Most roms here are froyo.
It is possible. Daneshm90 knows his stuff and keeps it fairly simple. If you come up with something he would probably add it.
I will see what I can come up with.
Edit: Extracted file to C:\Theme-Porter_beta_3.
I added the above lines to to the script at lline 57 and 58.
Added files per directions. No errors. Changed files are dated 3/17. Untouched files still old date.
I may reflash soon to test it. Will follow up.
IamSonoma said:
Maybe it could be tweaked.
Like after line 55(like roms) (and line 130 pre to post)
Code:
if EXIST "%~dp0old\%dcrt%\%%~nF\res\drawable-hdpi-v4" (rename "%~dp0old\%dcrt%\%%~nF\res\drawable-hdpi-v4" drawable-mdpi)
if EXIST "%~dp0old\%dcrt%\%%~nF\res\drawable-en-hdpi-v4" (rename "%~dp0old\%dcrt%\%%~nF\res\drawable-en-hdpi-v4" drawable-en-mdpi)
Line 240 seems to be for eclair. Most roms here are froyo.
It is possible. Daneshm90 knows his stuff and keeps it fairly simple. If you come up with something he would probably add it.
I will see what I can come up with.
Edit: Extracted file to C:\Theme-Porter_beta_3.
I added the above lines to to the script at lline 57 and 58.
Added files per directions. No errors. Changed files are dated 3/17. Untouched files still old date.
I may reflash soon to test it. Will follow up.
Click to expand...
Click to collapse
Looks like that would take it one step closer. The main problem would still exist with those changes. It wont take images from a drawable-hdpi folder and migrate them to a drawable-hdpi-v4 folder. I posted in the op and asked if there might be a way for him to add an option to force the images into the other directory. I would assume it would be similar to part of what the script does to handle hdpi to mdpi conversions.

Need Help Editing SystemUI

Hello Guys,
I decided to try and modify the SystemUI of Stock OxygenOs 4.0.3 myself in order to achieve: Center Clock in Status bar as well as quick settings menu, 6 small qs tiles, 6 qs tiles in a row and only one row at that.
I already got familiar with apktool and the process but I have no Idea what file to edit, I searched through the files but could achieve any change.
I didn't find any tutorials that could help me either so I was hoping someone could help me here.
Thanks and if you need any more information just ask
Basically I want it to look something like this (Resurrection Remix)
The location is here system/priv-app/OPSystemUI
For tutorials, you can try to look around in Op3/Op3T mods sections - the dark theme/notifications have some.
davebugyi said:
The location is here system/priv-app/OPSystemUI
For tutorials, you can try to look around in Op3/Op3T mods sections - the dark theme/notifications have some.
Click to expand...
Click to collapse
Yes yes I know that but I meant which files inside the APK to edit, sorry for the confusion and thank you
Download the modded and stock Systemui.apk and decompile. Compare the result. You will learn everything only that way. The clock position is defined in status_bar.xml.
Sent from my ONEPLUS A3003 using Tapatalk
If you're using a Windows computer, you can use a program called Winmerge to compare entire decompiled OPSystemUI folders (And all their sub-folders/files) and highlight differences in text files (including xml) between the two. If you find someone who has already posted a similar mod, you can compare that with the stock file to determine what they have changed. From there, it should be fairly intuitive.
Kickoff said:
Download the modded and stock Systemui.apk and decompile. Compare the result. You will learn everything only that way. The clock position is defined in status_bar.xml.
Sent from my ONEPLUS A3003 using Tapatalk
Click to expand...
Click to collapse
Anova's Origin said:
If you're using a Windows computer, you can use a program called Winmerge to compare entire decompiled OPSystemUI folders (And all their sub-folders/files) and highlight differences in text files (including xml) between the two. If you find someone who has already posted a similar mod, you can compare that with the stock file to determine what they have changed. From there, it should be fairly intuitive.
Click to expand...
Click to collapse
Thank you, I actually thought about that but I didn't know a program capable of that, I'll try that
Update: I played around a bit and those Tips were somewhat helpful but I didn't manage to get the clock in the Center .
Most of the time there where no problems applying the new System ui but a few times it just refused to start sytemzui and I was Straight in the Launcher without a Statusbar and so on. After restoring the original apk to get it to work it Booted just to a Blackscreen where I could only open the power Menü and I had to wipe data to get in again. Amy idea why?
Also After restoring a backup of data cpu was always at Max
Pharrax said:
Update: I played around a bit and those Tips were somewhat helpful but I didn't manage to get the clock in the Center .
Most of the time there where no problems applying the new System ui but a few times it just refused to start sytemzui and I was Straight in the Launcher without a Statusbar and so on. After restoring the original apk to get it to work it Booted just to a Blackscreen where I could only open the power Menü and I had to wipe data to get in again. Amy idea why?
Also After restoring a backup of data cpu was always at Max
Click to expand...
Click to collapse
You probably forgot to include the AndroidManifest and META-INF files in the APK. Read up on this guide. It's quite old, but steps 1, 2, 3, and 15 in his guide are still applicable. Pay special attention to step 15 as it shows you how to sign the modded APK with the original signature. Without including these files, OOS will refuse to run the app. Any time he mentions SystemUI.apk, assume that you can do the same with OPSystemUI.apk.
---------- Post added at 12:34 AM ---------- Previous post was at 12:31 AM ----------
For some reason, OOS 4.0.3 and below will sometimes allow improperly compiled OPSystemUI to run. It seems that as of OOS 4.1.0, you must correctly compile the app or it will always refuse to run it at boot.
Kickoff said:
Download the modded and stock Systemui.apk and decompile. Compare the result. You will learn everything only that way. The clock position is defined in status_bar.xml.
Sent from my ONEPLUS A3003 using Tapatalk
Click to expand...
Click to collapse
There is also a need to work with smali files to get status bar clock hidden in lockscreen
Anova's Origin said:
You probably forgot to include the AndroidManifest and META-INF files in the APK. Read up on this guide. It's quite old, but steps 1, 2, 3, and 15 in his guide are still applicable. Pay special attention to step 15 as it shows you how to sign the modded APK with the original signature. Without including these files, OOS will refuse to run the app. Any time he mentions SystemUI.apk, assume that you can do the same with OPSystemUI.apk.
---------- Post added at 12:34 AM ---------- Previous post was at 12:31 AM ----------
For some reason, OOS 4.0.3 and below will sometimes allow improperly compiled OPSystemUI to run. It seems that as of OOS 4.1.0, you must correctly compile the app or it will always refuse to run it at boot.
Click to expand...
Click to collapse
I was using apktool with the -c command, i thought that signs the apk properly and does exactly that? But thank you i will look into the tutorial
BaaDNwZ said:
There is also a need to work with smali files to get status bar clock hidden in lockscreen
Click to expand...
Click to collapse
Any links that help me understand smali and how to edit them?
Pharrax said:
Any links that help me understand smali and how to edit them?
Click to expand...
Click to collapse
The best link is - google.com
Sorry bro =\

Themes not working and looking for some advice or info

I've been looking for themes for my Mate 9 and to be honest none I found online are up to my expectations. (I'm not trying to talk bad about the authors who made them) But I decided to make my own. The only information I found was the thread of the Theme app downloaded from the play store but that doesn't seem to work at least not to my specifications. so I kept researching and learn that the .HWT are just ZIP files renamed with a different extension. So I downloaded an already made theme and I unzipped and just for testing purposes, I replace all graphics with my own including the colors in the XML file Repack it and renamed it testing.zip then change it to testing.HWT and loaded up in my themes folders and when I tried loading it didn't show on my theme menu on the phone. The one I downloaded and use as a base also didn't work.
I went to the Huawei Site for some info and found out you have to be a developer to even see the documents and to top it all off they don't have any USA based sign ups the closest I found was Mexico. Anyways If anyone has any information on how to make these themes from scratch I would appreciate.
Once I get this going I will post them up here.
Did you try this amazing application to rebuild your theme?
https://play.google.com/store/apps/details?id=com.mixapplications.themeeditor
chibixzero said:
I've been looking for themes for my Mate 9 and to be honest none I found online are up to my expectations. (I'm not trying to talk bad about the authors who made them) But I decided to make my own. The only information I found was the thread of the Theme app downloaded from the play store but that doesn't seem to work at least not to my specifications. so I kept researching and learn that the .HWT are just ZIP files renamed with a different extension. So I downloaded an already made theme and I unzipped and just for testing purposes, I replace all graphics with my own including the colors in the XML file Repack it and renamed it testing.zip then change it to testing.HWT and loaded up in my themes folders and when I tried loading it didn't show on my theme menu on the phone. The one I downloaded and use as a base also didn't work.
I went to the Huawei Site for some info and found out you have to be a developer to even see the documents and to top it all off they don't have any USA based sign ups the closest I found was Mexico. Anyways If anyone has any information on how to make these themes from scratch I would appreciate.
Once I get this going I will post them up here.
Click to expand...
Click to collapse
I think you did everything correct!
But did you made a normal zip file and renamed it?
I think you should select all the files and say 7zip that you want to make an archive!
On the upcoming screen choose STORE from the compression list (no compression)!
Then rename it to .hwt and try again!
mahmoudhafez2000 said:
Did you try this amazing application to rebuild your theme?
https://play.google.com/store/apps/details?id=com.mixapplications.themeeditor
Click to expand...
Click to collapse
Yes, I did and all it does is replace images and color over a stock theme. Doesn't give you much control it's like taking a website template and replacing the default logo and other to your colors and liking.
chibixzero said:
Yes, I did and all it does is replace images and color over a stock theme. Doesn't give you much control it's like taking a website template and replacing the default logo and other to your colors and liking.
Click to expand...
Click to collapse
I know I'm pretty late to this thread, but i've been investigating themes this morning, and ran across this...
http://huaweihigame.com/wp-content/uploads/2017/07/HowToCreateThemes-Guide2017-1.pdf

Categories

Resources