Guide to port Nova Icon Packs to Huawei theme engine!

Boosik

Senior Member
Feb 13, 2011
218
67
0
Prague
This will replace icons in the Huawei launcher and also in notification bar and pull-down.
It is pretty simple, but takes some time so be patient.
I've done this with the Urmun Icon Pack.

Needed things:
  • PSPad
  • Bulk Rename Utility
  • 7zip
  • Icon Pack APK for Nova
  • Some Huawei Theme file
  • Little patience

First of all you need Icon Pack APK for Nova, which you will decompress using 7zip.
Then in the folder find folder called res and inside of it you have to find the folder with all the icons (will be the biggest folder).
Copy the icons somewhere and remember the place.

Second step is finding file called appfilter.xml. Note that there are 2 of these files in some icon packs, one is encrypted, but the second one isn't and you need the unencrypted one.
Open appfilter.xml with PSPad.
Hit Control+H and check Regular Expressions, search in whole document and whole file.
The the first field paste the following:
Code:
(<[a-zA-Z0-9 ="]+\{)([a-zA-Z0-9._]+)(\/[a-zA-Z0-9._\}" ]+=")([a-zA-Z0-9._]+)([" \/>]+)
To the second field paste the following:
Code:
$4.png|$2.png
Now hit ok and you can rest and watch the magic for a while.
Once is the magic finished, you have to to remove all comments from the file by pasting the following to the first field in the PSPad Control+H and nothing at all to the second field.
Code:
<!--.*-->
Hit OK, wait a little.
Now remove all the lines above the first line with the following format:
Code:
some_name.png|some.other.name.png
Now you have to remove all the tabs and spaces so hit Control+H again and paste this to the first field, leaving the second blank.
Code:
[	 ]+
Hit OK, watch the magic.
Once this is done, you have to remove all blank lines. To do this simply hit EDIT -> Lines manipulation -> Remove blank lines in the PSPad.
Now save this file as rules.txt

Third step is to open Bulk Rename Utility and navigate it to the folder with images you extracted in the first step.
Hit Renaming options -> Prevent duplicates
Hit Actions -> Import Rename-Pairs
Select the rules.txt you saved before
Click one of the images in the list and hit Control+A to select them all
Finally click Rename in the right down part of the window
Confirm all and wait a little

Final step is to put all the icons to the Huawei Theme file.
Open Huawei Theme file (.hwt) with 7zip, there should be file called icons so open it in 7zip
Now drag'n'drop all the renamed icons to the 7zip window
Wait a while
Once done, you can copy your theme to the phone and apply it.
Viola, new icons!
 
Last edited:

malekowsky

Senior Member
Apr 14, 2015
83
62
38
@Boosik would you happen to know how to change the font? I added a fonts folder and inserted the font and update descriptions.xml anything else?
I have used lot of font apps but none of them worked. The only one that did the job is rom toolbox pro. It's not the perfect solution but it does the job. I am now using ubuntu font.
 

Dead_Dude

Senior Member
Jan 31, 2014
124
17
0
First you will rip out the appfilter.XML
Then format it to use as the input for a bulk file rename on the icon graphics.
Then put the formatted-named icons inside the icon zip inside the hwt file.

Jump to my double posts.



I greatly appreciate this guide, but can you be slightly more specific?

I'm unsure what the first field is or the second field, in respect to this guide... are you saying to do a find and replace function on the file?

Open appfilter.xml (unencrypted copy)

Find: (<[a-zA-Z0-9 ="]+\{)([a-zA-Z0-9._]+)(\/[a-zA-Z0-9._\}" ]+=")([a-zA-Z0-9._]+)([" \/>]+)

Replace with: $4.png|$2.png

Then, Remove all comments by doing a find and replace on this: <!--.*-->
Replace all <!--.*--> with emptiness
(I STILL HAVE COMMENTS IN THE FILE IM FOLLOWING ALONG WITH)

Next, remove all these lines ABOVE some_name.png|some.other.name.png

Finally remove all tab characters and empty spaces. Rename this file to: Rules.txt

Can you post a screenshot of the file before and after manipulations have been done?

My manipulated appfilter.xml file begins:

<?xml version="1.0" encoding="UTF-8"?>
<resources>
<version>1</version>
<iconback img1="iconback" />
<iconupon img1="iconfront" />
<scale factor="1.00" />
app_sunrise_calendar_.png|am.sunrise.android.calendar.png
many many more lines similar to the one directly above
</resources>

Am I supposed to remove everything before app_sunrise_calendar_.etc ?


Third step is to open Bulk Rename Utility and navigate it to the folder with images you extracted in the first step.
Hit Renaming options -> Prevent duplicates
Hit Actions -> Import Rename-Pairs
Click one of the images in the list and hit Control+A to select them all
Finally click Rename in the right down part of the window
Confirm all and wait a little

Rename the files to what? Import Rename-Pairs? What?

Open Rules.txt you created earlier and tell Bulk Renamer to use that.







I figured it all out. I do have a few icons that aren't being themed though.... any idea why not? The icons exist in the pack I used, and the files for the missing icons are present in the hwt file, just not applied.

Thank you in advance for this guide and any help provided to me! I have been trying to do this by hand, sans PC tools.

---------- Post added at 02:55 PM ---------- Previous post was at 02:03 PM ----------

any icon that doesn't begin with com can be deleted, as it won't be used

some apps, like google sheets, are not themed. trying to deduce why

---------- Post added at 02:55 PM ---------- Previous post was at 02:55 PM ----------

thinking of trying to make a zip with a zip inside named icons... renaming first zip to hwt... see if I can make a 'theme' of only an icon pack...

---------- Post added at 02:57 PM ---------- Previous post was at 02:55 PM ----------

how do we change the folder appearance, or/and the masking effect applied to unthemed icons?
 
Last edited:

Dead_Dude

Senior Member
Jan 31, 2014
124
17
0
Well, I've discovered that many apps have multiple icons to theme.

There's an icon for the share window
There's an icon for the home screen
There's an icon for the Notification pull down
There's an icon for the entry in Settings

I finally managed to get Sheets properly themed (to NOT use the Google Photos icon) in all areas.

Having a hard time getting the names for all the areas Google Plus puts an icon....

Had a hell of a time tracking down all the file names.



Does anyone know if other aspects of themeing (like com.android.systemui) uses layers compatible coding? I'm going about this like a mad man... cutting/pasting/renaming/zipping/unzipping various themes together... Unable to get a total original creation to get picked up as a theme by the theme manager though... :(

Think my problem is the fact I kept the theme manager app open the whole time I was manipulating files and adding themes and deleting themes... Rebooted the phone and it shows all my files in the theme manager app.




---------- Post added at 04:19 PM ---------- Previous post was at 03:34 PM ----------



Here's what I've cobbled together.
 
Last edited:
  • Like
Reactions: Boosik and Gahanta

mathurmatt

Senior Member
May 2, 2013
275
83
0
Delhi
Well, I've discovered that many apps have multiple icons to theme.

There's an icon for the share window
There's an icon for the home screen
There's an icon for the Notification pull down
There's an icon for the entry in Settings

I finally managed to get Sheets properly themed (to NOT use the Google Photos icon) in all areas.

Having a hard time getting the names for all the areas Google Plus puts an icon....

Had a hell of a time tracking down all the file names.



Does anyone know if other aspects of themeing (like com.android.systemui) uses layers compatible coding? I'm going about this like a mad man... cutting/pasting/renaming/zipping/unzipping various themes together... Unable to get a total original creation to get picked up as a theme by the theme manager though... :(

Think my problem is the fact I kept the theme manager app open the whole time I was manipulating files and adding themes and deleting themes... Rebooted the phone and it shows all my files in the theme manager app.




---------- Post added at 04:19 PM ---------- Previous post was at 03:34 PM ----------



Here's what I've cobbled together.
@Dead_Dude would you be kind enough to share your creation.
 
Last edited: