[Samsung Galaxy S8+ Guides, News, & Discussion] monroe0328:
White Notification Text and YOU

~

How to...

Decompile - Modify - Recompile - Sign

Your Framework-res.apk

~

GET WHAT YOU WANT IN LIFE​

Disclaimer: This is how I went about getting white notification text on my sprint s8+ running [MENTION=8360749]partcyborg[/MENTION]'s latest U2 Rom. Whatever you do to your device is your business and if you brick your device it is also your fault! I do not take responsibility for your actions. That being said, enjoy! ...at your own risk. MUAHAAHA! ...sry

So basically I followed the instructions [MENTION=6157501]envy~[/MENTION] laid out in his bodhisattva_V3 theme. I'm not a dev by any means so I figured I would record the steps I took when modifying my framework-res to share for us fellow noobs. There's a bunch of color values that can be changed, most of which i'm too lazy to test. Together we may be able to find all the values we need for the perfect white notification text arrangement. Once you get the process down pat, its really quick and easy to crank out zips to test for yourself. word.

Tested on galaxy s8/s8+ with snapdragon. Should work on all kinds of devices, long as you change the right values.

Prerequisites:

-- Need root.

-- download/install apktool and TickleMyAndroid (TMA) and take note of their installed folder locations. Make sure you have latest versions, update apktool by downloading the latest .jar file from their thread and put it in your "apktool" folder. I renamed it from apktool2.0.3.jar to just apktool.jar and that seemed to work nicely.

-- I put TMA and apktool in same parent folder for convenience.

-- Install notepad++ because its pimp, and we use it later.

-- Use a root file explorer to grab your "framework-res.apk" located in (root)/system/framework, copy and paste it to your PC.

-- Make a backup of your framework-res.apk by copy/pasting the file somewhere and add ".bak" to the end of the full filename.

!!!!!!!!!!!!!!!MAKE!!!!!BACKUPS!!!!!!!!!!!!!!!!

If you mess up and get a boot-loop, I believe the(an) easy way out is to just boot into stock recovery and factory reset(then restore). Factory reset wipes your internal SD along with whatever else. So BEFORE FLASHING YOUR MODDED FRAMEWORK-RES, go ahead and backup EVERYTHING. Use TiBu, use flashfire to do a FULL BACKUP. Copy paste your entire internal SD onto your external SD card or on your PC. If you are backed up then you should have no problems moving forward. In fact, if it comes down to it, your phone will be thanking you for the factory reset.

Anyways, If you have a better way to recover from a boot-loop in this scenario please share if you want. If your not familiar with backing up/restoring data (without custom recovery) please reconsider this... "Do I really need white notification text?" If the answer is "yes!" then lets go!

The good thing about this method and using TickleMyAndroid is that TMA will just error out if you messed up somewhere along the process. If it doesn't error out, then you did everything right and the zip should flash fine and boot successfully.

!!!!!!!!!!!!!!!MAKE!!!!!BACKUPS!!!!!!!!!!!!!!!!

Thanks and credit go out to:

[MENTION=6157501]envy~[/MENTION] for his framework fix

[MENTION=3924617]iBotPeaches[/MENTION] for apktool

[MENTION=4315551]Ticklefish[/MENTION] for TickleMyAndroid

[MENTION=8360749]partcyborg[/MENTION] for his incredible GalaxyS8 and GalaxyS8+ Roms

-----------------------------------------------------------------------​

1. Put original framework-res.apk in TMA workarea folder - "C://.../TickleMyAndroid/_workareaX/_in"

2. Open "Tickle My Android.exe" from inside your TickleMyAndroid folder.

Enter 5 - setting menu.

Enter 1 - Change active work area. Enter (#) - Of the Workspace "_in" folder you chose before.

Enter y - for yeah.

Enter x - to go back (twice).

Enter 3 - theming menu.

3. (I DN IF THIS IS NECESSARY, BUT IT MAY BE CRUCIAL, SO DO IT)

Enter 3 - Install Framework on PC.

Enter 1 - (should be your framework-res.apk from inside the ".../_in" folder)

Enter y - for YES FOOL! Press any key...

4. Enter x - to back up to the theming menu.

5. Enter 5 - Decompile files.

Enter 1 - Decompile Files (again).

Enter 1 - framework-res.apk. THEN behold, "...[This Will Overwrite Any Existing blah blee blee]"

Enter y - for YUSSS

6. Decompiling in progress (in second window) If you were too busy to watch this elegant automated miracle of technology happen, and the second window is gone, THIS IS OK, so press any key to continue....

7. Enter x - to back dat azz up, to the theming menu...

8. Enter 1 - Explore "_working" Folder, to explore the decompiled framework-res.apk

9. Navigate to framework-res.apk\res\values, locate "colors.xml" and left click right click to choose "Edit with Notepad++"

10. Here (as recommended by [MENTION=6157501]envy~[/MENTION] in his thread) you can change these three values for a good look. But If you wanna go further to change more text/icon color values that remain unaffected you are going to have to look around, change some other color values and see what happens ya know, trial and error!

Example: If you wanna know what color say "ff669900" is, just google #669900. There's a good site where u can easily grab darker or lighter shades of a certain color value to suit your theming needs. Cool!

11. Ok these are the three values mentioned by [MENTION=6157501]envy~[/MENTION] you can change. I decided to just go all white ("#ffffffff") everywhere I could:

<color name="notification_title_color">#ff252525</color>
<color name="notification_info_color">#ff8c8c8c</color>
<color name="notification_text_color">#ff515151</color>

Changed to...

<color name="notification_title_color">#ffffffff</color>
<color name="notification_info_color">#ffffffff</color>
<color name="notification_text_color">#ffffffff</color>

In an attempt to make more stuff white I edited these values too with success...

<color name="notification_icon_default_color">@color/notification_default_color</color>
<color name="system_notification_accent_color">#ff607d8b</color>

Changed to...

<color name="notification_icon_default_color">#ffffffff</color>
<color name="system_notification_accent_color">#ffffffff</color>

12. Ok once you are done making history, SAVE it.

13. Enter 9 - Recompile Files.

Enter 2 - Recompile App with Original Signature.

Enter 1 - framework-res.apk

14. To keep any changes to "AndroidManifest.xml" OR NOT TO Keep Any Changes To "AndroidManifest.xml"?... THAT, is the question.

Enter n - FOR NO!

15. Add Recompiled File To ZIP Workspace?

Enter y - for YUP.

16. Enter 4 - Add "system/framework/" File To Project.

Enter 3 - Create Standard Zip File.

Enter y - Creating Standard Flashable ZIP File From Files In Existing Project To Destination Folder: "c:\ticklemyandroid".

Just hit ENTER - to use given filename... or not.

Enter y - Overwrite dat shiii.

17. Recompiling in another window. If it's successful... press any key to continue...

18. Go to C://Ticklemyandroid and grab the latest flashable zip u made, rename if u want (good idea to rename it regarding the colors you chose). Put flashable .zip on Phone and flash via flashfire (choose "flash zip or OTA", select "Mount /system read/write", disable everroot, then flash)

19. and 20. PROFIT

-----------------------------------------------------------------------​

If you guys notice any black text on black background or similar situations... sometimes its the app's theme and sometimes its a sammy theme thing from what I can tell. If yall have little problems/solutions like this and wanna share maybe we can help/learn from each other. Its def not a perfect solution but its better than nothing. I freaking love my white text, amoled black all day son!

I'll Post some screenshots of my results so far in just a sec... this post took forever.... need a break.