Creating Themes for LG UI - LG V30 Questions & Answers

Coming from a Samsung S7 edge to a V30 the biggest (and probably only) down fall is the severe lack of themes for the LG UI. Most themes on LG theme store seem to mostly just be wallpaper and icon changes. A lot of them do not actually change the colors of the Settings, quick toggles, and other LG apps.
The themes that are available it seems like half the time I am looking for a specific type of theme it does not exist anywhere. So it has gotten me interested in creating themes to help expand the available themes for this amazing phone.
However I can not seem to find how to create themes. I didn't see it on the LG world app, and I didn't see it on the LG website developers area, and I didn't see it with a Google search. Can someone point me in the right direction? I am not sure if it requires any Java coding or any other type of coding langauge. However I am.willing to learn whats needed to get some themes created. I just need to know the place and processor to create them.

Anyway to change the Emojis?

AndroidPurity said:
However I can not seem to find how to create themes. I didn't see it on the LG world app, and I didn't see it on the LG website developers area, and I didn't see it with a Google search. Can someone point me in the right direction? I am not sure if it requires any Java coding or any other type of coding langauge. However I am.willing to learn whats needed to get some themes created. I just need to know the place and processor to create them.
Click to expand...
Click to collapse
I havent tried it myself, but maybe LG ThemePark is the program to make them?

Oreo on v30 will allow substratum. We can only hope

epoch555 said:
I havent tried it myself, but maybe LG ThemePark is the program to make them?
Click to expand...
Click to collapse
iv tried using it but it hasn't been updated in some time plus you have to download an English translation patch as it in Korean.

I think it's pretty ridiculous no one who actually knows the answer to this has posted an answer to this after several weeks. It leads me to believe some people who know the answer have seen this thread and just don't want others to know? Prove me wrong and some one who knows please provide what is being used to create these themes for LG.

AndroidPurity said:
I think it's pretty ridiculous no one who actually knows the answer to this has posted an answer to this after several weeks. It leads me to believe some people who know the answer have seen this thread and just don't want others to know? Prove me wrong and some one who knows please provide what is being used to create these themes for LG.
Click to expand...
Click to collapse
Reminds me of the old them creator for BlackBerry. Plazmic. A few knew kinda how to use it and wouldn't tell anybody. Little to say, a team of 2 figured it out and started releasing tons of high quality free themes. ?

You may have already seen this, but here is a little bit of info
https://forum.xda-developers.com/showpost.php?p=74597574&postcount=45

Try this.
https://forum.xda-developers.com/showthread.php?t=2425402

I know this question was asked awhile ago, but I faced a similar issue with my LG Stylo 3 and want to report my findings. First off, Theme Park is available as a web application on LG's SmartWorld developer page http://us.lgworld.com/web.main.dev. However, I think you'll find its customizability to be severely disappointing. In fact, themes created using this are not even compatible with newer LG phones. The schema used for newer models is Home Theme+ (this is what my Stylo uses, and I assume it is what the V30 uses as well). I have scoured LG's dev site and could not find a straightforward way to develop Home Theme+, but it is possible and not super hard, albeit it can be time consuming. It will definitely help if you have some experience with Android app development (my personal experience is limited), however, no programming is necessary. You really only need to know how to edit XML/JSON files, and how to compile/decompile an Android app (there is a fantastic tool for this called apktool, created by Ryszard Wiśniewski and Connor Tumbleson which I will link to).
Tools Needed:
Apktool https://ibotpeaches.github.io/Apktool/
Apksigner (part of the Android SDK build tools) https://developer.android.com/studio/command-line/apksigner.html
Efficient way to create/edit XML and PNG files
Alternatively you could use Android Studio, which honestly might simplify the process.
I have provided a template for creating Home Theme+ themes here. This is just the preinstalled LG High Constrast theme which provides a great outline of what a theme should consist of. Use apktool to easily decompile it.
After spending hours of tweaking I was able to retheme the High Contrast app and brand it as my own. It honestly isn't too complicated, however, there is a LOT of settings, so it'll be up to you to figure out the specifics of what you need to edit in order to create your theme. Here is the general layout of what a Home Theme+ theme must consist of:
Inside the root directory there are 4 items:
assets (This is where the meat of your theme will go)
lib (Contains a dummy file. You can safely exclude this from your application.)
res (Contains basic drawables, preview images, and your application's title.)
AndroidManifest.xml (Important information about your application)
AndroidManifest
I'll start from the bottom up. If you're following a template, there are only a few things you'll need to change in the AndroidManifest. Find the <manifest> tag and edit the "package" attribute to your desired package name. It should be something like "com.your_company.theme.name_of_theme", where "your_company" and "name_of_theme" can be whatever you like. You'll also want to edit the <meta-data> "android:value" and <activity> "android:name" attributes to reflect this (Optionally, you can just set the <activity> "android:name" attribute to ".MainActivity"). Save and close this file, but be sure to remember the package name because you'll need to use it later.
res
Inside this folder are three others:
drawable-xhdpi-v4 - Contains PNG images of the Theme's preview (you can add additional preview images if you want) and the home and lockscreen wallpapers you would like to set. Follow the same naming conventions as listed in the template.
values - Two files: public.xml Lists everything in the res folder that the compiler should expect. If you add/remove preview images or wallpapers, you'll want to account for them in here. The "id" attribute for each tag can be an arbitrary value as long as it is unique. Go ahead an open this up and delete the tags named "app_info" and "app_tag". You won't need them. strings.xml contains your theme's name (this is how it will be displayed in the theme picker).
xml - Contains additional meta-data. Delete it. You won't need it.
assets
Here's where the fun begins. There are a few things in here, however, I will only go over what's in the overlays. Custom fonts and sound effects are completely optional, but feel free to mess around with those if you desire. The theme_info.json file is essentially a list of which applications you want to apply the theme to. Go ahead and open it and delete the "id" key/value pair. Now open the overlays folder. Inside here are a bunch of APK files. This modular setup makes it easy to pick and choose where you want to apply the theme. I'm not going to go over all of them, as their names are pretty self explanatory, but go ahead and decompile the one ending with ".common.apk". This package contains the theming for much of your general UI (such as status bar, navigation bar, text color, etc). Inside, you'll see a similar file structure as before, including an AndroidManifest and a res folder. Note: the smali folder is completely optional, and if you don't know what smali is you can safely ignore/delete this folder. First item of business is editing the AndroidManifest so that it matches your previously defined package name. You'll also want to add this tag somewhere inside it: "<uses-permission android:name="com.lge.permission.LGE_OVERLAY_THEME_APK"/>". This grants proper permission to modify system app themes. Now pop a look into the res folder. Its contents should look familiar. The multiple "xhdpi" folders all contain the same stuff, but target different resolutions. You can read more about them here. Basically the drawable-xxhdpi folders contain PNGs of various system wide UI elements (or app specific in the case of any of the other overlays). The values folder without an appended "hdpi" contains a public.xml, which functions exactly the same as previously mentioned. And the values-xxhdpi folders contain various settings for a specific resolution. I'll leave it up to you to play with them.
That's the basics of it! After recompiling an overlay APK, be sure to sign it or your theme will crash upon applying it (also be sure to sign your actual theme app with the same key). Read about the apksigner I linked to above for more info (I think Android Studio has an automatic way to sign apps with a key for debugging). Also be sure to update the theme_info.json file to list the package names of all the overlays you wish to apply.
Hopefully this helps someone. Let me know if you run into any trouble building or installing your APKs. As for what various settings do, you'll have to figure that part out on your own.
Happy theming!

AndroidPurity said:
Coming from a Samsung S7 edge to a V30 the biggest (and probably only) down fall is the severe lack of themes for the LG UI. Most themes on LG theme store seem to mostly just be wallpaper and icon changes. A lot of them do not actually change the colors of the Settings, quick toggles, and other LG apps.
The themes that are available it seems like half the time I am looking for a specific type of theme it does not exist anywhere. So it has gotten me interested in creating themes to help expand the available themes for this amazing phone.
However I can not seem to find how to create themes. I didn't see it on the LG world app, and I didn't see it on the LG website developers area, and I didn't see it with a Google search. Can someone point me in the right direction? I am not sure if it requires any Java coding or any other type of coding langauge. However I am.willing to learn whats needed to get some themes created. I just need to know the place and processor to create them.
Click to expand...
Click to collapse
hi, I'm also willing to go from s7 to v30. and also I am worried about the absence of really beautiful themes.
have you solved it in any way? thank you

axorazor said:
hi, I'm also willing to go from s7 to v30. and also I am worried about the absence of really beautiful themes.
have you solved it in any way? thank you
Click to expand...
Click to collapse
When I wrote that post multiple months ago it was more of an issue than it is now. Back then a lot of themes on the LG theme store only changed the home screen wall paper and the pre-installed app icons.
However now most of their themes also changed the accent colors of the the pull down shade of toggles and notifications, and also redesigned the settings page, and the LG app accent colors. So they are full theme over hauls in most of them. However there seems to probably only be about 40-80 of them on the LG theme store. So a good bit but really still not many.
Although some developers have created themes for the LG V30 and G6 and uploaded them to the play store to download for around $0.99 to $1.49 per theme. Most of those themes a re really nice and a lot more different types of themes. However there is probably only about 100 to 150 themes on the play store.
So over all between play store and LG store, there probably over 200 different themes now. So there's a decent selection. Still no where near Samsung and HTC theme stores, but decent enough where you can change it up once a week. Now that LG made a really good phone for first time in years that a lot of people like once they see or hear about it (the V30), the themes are slowly growing. I imagine in 1-2 years they will have several hundred themes or maybe even over a thousand once more and more people adopt the V30 and the new upcoming LG flagship phone.
If you really like every thing else about the phone, don't let the themes hold you back because it's now finally got enough themes to be decent thanks to a few developers on the play store making a lot of LG themes.

AndroidPurity said:
When I wrote that post multiple months ago it was more of an issue than it is now. Back then a lot of themes on the LG theme store only changed the home screen wall paper and the pre-installed app icons.
However now most of their themes also changed the accent colors of the the pull down shade of toggles and notifications, and also redesigned the settings page, and the LG app accent colors. So they are full theme over hauls in most of them. However there seems to probably only be about 40-80 of them on the LG theme store. So a good bit but really still not many.
Although some developers have created themes for the LG V30 and G6 and uploaded them to the play store to download for around $0.99 to $1.49 per theme. Most of those themes a re really nice and a lot more different types of themes. However there is probably only about 100 to 150 themes on the play store.
So over all between play store and LG store, there probably over 200 different themes now. So there's a decent selection. Still no where near Samsung and HTC theme stores, but decent enough where you can change it up once a week. Now that LG made a really good phone for first time in years that a lot of people like once they see or hear about it (the V30), the themes are slowly growing. I imagine in 1-2 years they will have several hundred themes or maybe even over a thousand once more and more people adopt the V30 and the new upcoming LG flagship phone.
If you really like every thing else about the phone, don't let the themes hold you back because it's now finally got enough themes to be decent thanks to a few developers on the play store making a lot of LG themes.
Click to expand...
Click to collapse
Good comments.
I only wish there was a theme to let me change the status bar icons. I'm doing it in Gravity Box on my rooted V30, but that's overkill. And I can't do it on my non-rooted LG V30+.
The two things -- OK, three -- that annoy me the most are the:
1) Really stupid 4G/miniscule LTE icon -- where you can't even see the LTE part.
View attachment 4366626
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
On LTE it has that 4G symbol above, with a LTE hanging off the side in miniscule lettering. On HSPA, is the exact same symbol without the LTE.
To me it both says "4G" unless I look VERY carefully.
This is much better:
2) the battery icon.
I prefer the circle with percentage inside when not charging, and circle with percentage outside when charging.
3) I also would like the both the Wi-Fi and carrier signal to have clearly differentiated bars.
Like this, on my Moto XT1225:
That looks better than this (LG stock), where yes the carrier signal has clearly delineated bars, but the Wi-Fi signal is just a lumped mass. That's not design consistency.
____________
I mentioned the status bar icons issue to @markbencze -- who has thread for theme support in this forum -- and he said LG won't let themers touch the status bar icons, at least with Nougat. Perhaps Oreo will bring changes?
markbencze said:
No need to be sorry my man. So lg doesn't allow us to touch the statusbar icons at all. Now Nick, syko and I were discussing that when Oreo drops that unless LG specifically and intentionally breaks things that in theory substratum should work for us like how it does for Samsung. So if and when that happens we might be able to address those things. I hope it works for us. But yeah sadly I can't help with what you asked.
Click to expand...
Click to collapse

ChazzMatt said:
Good comments.
I only wish there was a theme to let me change the status bar icons. I'm doing it in Gravity Box on my rooted V30, but that's overkill. And I can't do it on my non-rooted LG V30+.
The two things that annoy me the most are the:
* Really stupid 4G/miniscule LTE icon -- where you can't even see the LTE part.
On LTE it has that 4G symbol above, with a LTE hanging off the side in miniscule lettering. On HSPA, is the exact same symbol without the LTE.
To me it both says "4G" unless I look VERY carefully.
* and the battery icon.
I prefer the circle with percentage inside when not charging, and circle with percentage outside when charging.
I mentioned the issue to @markbencze -- who has thread for theme support in this forum -- and he said LG won't let themers touch the status bar icons, at least for now. Perhaps Oreo will bring changes?
Click to expand...
Click to collapse
Thanks!
I agree with a couple points you made. The customization I would like added by LG is the following...
1.) Yeah I agree with you about the battery icon thing definitely. Having both battery icon and battery percent is just over kill. Wish we could modify that in settings or theme. Circle with percentage would be very nice.
2.) It would be cool if nav button design could be changes too like I believe HTC themes can. (I am hoping the new U12 is like a bit smaller version of U11 Plus, if so... then it's probably the only Q1-Q2 2018 phone that may make me consider switching from this phone. Otherwise probably wait for V40. But I am really pulling for HTC I don't want them to die, they're too good to die.)
3.) I asked also asked @markbenzce something before, but about being able to have the icons in the settings beside each option to be unique design with different colors and designs. Just like app icons are basically. He said LG themes don't have that functionality yet either. I would like that. Can't remember if Samsung or HTC themes have that ability or not.
4.) Then of course much more theme options. If we can get into the thousands like Samsung and HTC it will make LH phones even better.
The growth in LG themes over the past 5 months has been encouraging though! I think it will only accelerate.

Hello,?
One question, with theme is it possible to change a nav bar icons?

Hi,
I modified the LG High Contrast template by following Nihilian's instructions and successfully installed the apk on my device but I got this message upon applying the theme: "This theme no longer works on this device".
I attached the AndroidManifest file of the theme app and of one of the packages. Could someone please take a look and tell me if I did something wrong? (Edit: file removed, see UPDATE)
Many thanks and regards.
P.S.
I signed all apk's with this tool but that shouldn't be the culprit because I verified with the jarsigner tool afterwards. Also, I checked and the signer uses the same key for all apk's.
UPDATE
I tried again by modifying another LG theme and it somehow worked, even though I followed the same steps...
Maybe I made a typo in the other one or maybe it was something else but who cares, the issue is SOLVED!

English patch
cryhavok13 said:
iv tried using it but it hasn't been updated in some time plus you have to download an English translation patch as it in Korean.
Click to expand...
Click to collapse
The English patch is easy to install just copy and paste to directory. My problem is where does the export apk file go when your finished with the theme if you don't want to install using USB say I'm making the theme for a friend with LG after I compile the apk with LG themepark its no where to be found ;(
---------- Post added at 12:28 AM ---------- Previous post was at 12:24 AM ----------
cryhavok13 said:
iv tried using it but it hasn't been updated in some time plus you have to download an English translation patch as it in Korean.
Click to expand...
Click to collapse
AndroidPurity said:
I think it's pretty ridiculous no one who actually knows the answer to this has posted an answer to this after several weeks. It leads me to believe some people who know the answer have seen this thread and just don't want others to know? Prove me wrong and some one who knows please provide what is being used to create these themes for LG.
Click to expand...
Click to collapse
I been looking and trying to find same answer since the LG v20 came out. I know there is a way to create themes I even tried apk tool to decompile LG v20 themes and I get an error. But when I decompile other themes that are apk not for LG it works no error. I think the people who know don't want to share because they are making money selling the themes. Hey I don't want to sell themes I just want to make my own for my lgv20 wish someone could point us in rite direction I don't think theme park will work for newer LG phones ;(
---------- Post added at 12:37 AM ---------- Previous post was at 12:28 AM ----------
Nihilian said:
I know this question was asked awhile ago, but I faced a similar issue with my LG Stylo 3 and want to report my findings. First off, Theme Park is available as a web application on LG's SmartWorld developer page http://us.lgworld.com/web.main.dev. However, I think you'll find its customizability to be severely disappointing. In fact, themes created using this are not even compatible with newer LG phones. The schema used for newer models is Home Theme+ (this is what my Stylo uses, and I assume it is what the V30 uses as well). I have scoured LG's dev site and could not find a straightforward way to develop Home Theme+, but it is possible and not super hard, albeit it can be time consuming. It will definitely help if you have some experience with Android app development (my personal experience is limited), however, no programming is necessary. You really only need to know how to edit XML/JSON files, and how to compile/decompile an Android app (there is a fantastic tool for this called apktool, created by Ryszard Wiśniewski and Connor Tumbleson which I will link to).
Tools Needed:
Apktool https://ibotpeaches.github.io/Apktool/
Apksigner (part of the Android SDK build tools) https://developer.android.com/studio/command-line/apksigner.html
Efficient way to create/edit XML and PNG files
Alternatively you could use Android Studio, which honestly might simplify the process.
I have provided a template for creating Home Theme+ themes here. This is just the preinstalled LG High Constrast theme which provides a great outline of what a theme should consist of. Use apktool to easily decompile it.
After spending hours of tweaking I was able to retheme the High Contrast app and brand it as my own. It honestly isn't too complicated, however, there is a LOT of settings, so it'll be up to you to figure out the specifics of what you need to edit in order to create your theme. Here is the general layout of what a Home Theme+ theme must consist of:
Inside the root directory there are 4 items:
assets (This is where the meat of your theme will go)
lib (Contains a dummy file. You can safely exclude this from your application.)
res (Contains basic drawables, preview images, and your application's title.)
AndroidManifest.xml (Important information about your application)
AndroidManifest
I'll start from the bottom up. If you're following a template, there are only a few things you'll need to change in the AndroidManifest. Find the <manifest> tag and edit the "package" attribute to your desired package name. It should be something like "com.your_company.theme.name_of_theme", where "your_company" and "name_of_theme" can be whatever you like. You'll also want to edit the <meta-data> "android:value" and <activity> "android:name" attributes to reflect this (Optionally, you can just set the <activity> "android:name" attribute to ".MainActivity"). Save and close this file, but be sure to remember the package name because you'll need to use it later.
res
Inside this folder are three others:
drawable-xhdpi-v4 - Contains PNG images of the Theme's preview (you can add additional preview images if you want) and the home and lockscreen wallpapers you would like to set. Follow the same naming conventions as listed in the template.
values - Two files: public.xml Lists everything in the res folder that the compiler should expect. If you add/remove preview images or wallpapers, you'll want to account for them in here. The "id" attribute for each tag can be an arbitrary value as long as it is unique. Go ahead an open this up and delete the tags named "app_info" and "app_tag". You won't need them. strings.xml contains your theme's name (this is how it will be displayed in the theme picker).
xml - Contains additional meta-data. Delete it. You won't need it.
assets
Here's where the fun begins. There are a few things in here, however, I will only go over what's in the overlays. Custom fonts and sound effects are completely optional, but feel free to mess around with those if you desire. The theme_info.json file is essentially a list of which applications you want to apply the theme to. Go ahead and open it and delete the "id" key/value pair. Now open the overlays folder. Inside here are a bunch of APK files. This modular setup makes it easy to pick and choose where you want to apply the theme. I'm not going to go over all of them, as their names are pretty self explanatory, but go ahead and decompile the one ending with ".common.apk". This package contains the theming for much of your general UI (such as status bar, navigation bar, text color, etc). Inside, you'll see a similar file structure as before, including an AndroidManifest and a res folder. Note: the smali folder is completely optional, and if you don't know what smali is you can safely ignore/delete this folder. First item of business is editing the AndroidManifest so that it matches your previously defined package name. You'll also want to add this tag somewhere inside it: "<uses-permission android:name="com.lge.permission.LGE_OVERLAY_THEME_APK"/>". This grants proper permission to modify system app themes. Now pop a look into the res folder. Its contents should look familiar. The multiple "xhdpi" folders all contain the same stuff, but target different resolutions. You can read more about them here. Basically the drawable-xxhdpi folders contain PNGs of various system wide UI elements (or app specific in the case of any of the other overlays). The values folder without an appended "hdpi" contains a public.xml, which functions exactly the same as previously mentioned. And the values-xxhdpi folders contain various settings for a specific resolution. I'll leave it up to you to play with them.
That's the basics of it! After recompiling an overlay APK, be sure to sign it or your theme will crash upon applying it (also be sure to sign your actual theme app with the same key). Read about the apksigner I linked to above for more info (I think Android Studio has an automatic way to sign apps with a key for debugging). Also be sure to update the theme_info.json file to list the package names of all the overlays you wish to apply.
Hopefully this helps someone. Let me know if you run into any trouble building or installing your APKs. As for what various settings do, you'll have to figure that part out on your own.
Happy theming!
Click to expand...
Click to collapse
Thanks so much I been trying to figure this out for year already!

Resell
Nihilian said:
I know this question was asked awhile ago, but I faced a similar issue with my LG Stylo 3 and want to report my findings. First off, Theme Park is available as a web application on LG's SmartWorld developer page http://us.lgworld.com/web.main.dev. However, I think you'll find its customizability to be severely disappointing. In fact, themes created using this are not even compatible with newer LG phones. The schema used for newer models is Home Theme+ (this is what my Stylo uses, and I assume it is what the V30 uses as well). I have scoured LG's dev site and could not find a straightforward way to develop Home Theme+, but it is possible and not super hard, albeit it can be time consuming. It will definitely help if you have some experience with Android app development (my personal experience is limited), however, no programming is necessary. You really only need to know how to edit XML/JSON files, and how to compile/decompile an Android app (there is a fantastic tool for this called apktool, created by Ryszard Wiśniewski and Connor Tumbleson which I will link to).
Tools Needed:
Apktool https://ibotpeaches.github.io/Apktool/
Apksigner (part of the Android SDK build tools) https://developer.android.com/studio/command-line/apksigner.html
Efficient way to create/edit XML and PNG files
Alternatively you could use Android Studio, which honestly might simplify the process.
I have provided a template for creating Home Theme+ themes here. This is just the preinstalled LG High Constrast theme which provides a great outline of what a theme should consist of. Use apktool to easily decompile it.
After spending hours of tweaking I was able to retheme the High Contrast app and brand it as my own. It honestly isn't too complicated, however, there is a LOT of settings, so it'll be up to you to figure out the specifics of what you need to edit in order to create your theme. Here is the general layout of what a Home Theme+ theme must consist of:
Inside the root directory there are 4 items:
assets (This is where the meat of your theme will go)
lib (Contains a dummy file. You can safely exclude this from your application.)
res (Contains basic drawables, preview images, and your application's title.)
AndroidManifest.xml (Important information about your application)
AndroidManifest
I'll start from the bottom up. If you're following a template, there are only a few things you'll need to change in the AndroidManifest. Find the <manifest> tag and edit the "package" attribute to your desired package name. It should be something like "com.your_company.theme.name_of_theme", where "your_company" and "name_of_theme" can be whatever you like. You'll also want to edit the <meta-data> "android:value" and <activity> "android:name" attributes to reflect this (Optionally, you can just set the <activity> "android:name" attribute to ".MainActivity"). Save and close this file, but be sure to remember the package name because you'll need to use it later.
res
Inside this folder are three others:
drawable-xhdpi-v4 - Contains PNG images of the Theme's preview (you can add additional preview images if you want) and the home and lockscreen wallpapers you would like to set. Follow the same naming conventions as listed in the template.
values - Two files: public.xml Lists everything in the res folder that the compiler should expect. If you add/remove preview images or wallpapers, you'll want to account for them in here. The "id" attribute for each tag can be an arbitrary value as long as it is unique. Go ahead an open this up and delete the tags named "app_info" and "app_tag". You won't need them. strings.xml contains your theme's name (this is how it will be displayed in the theme picker).
xml - Contains additional meta-data. Delete it. You won't need it.
assets
Here's where the fun begins. There are a few things in here, however, I will only go over what's in the overlays. Custom fonts and sound effects are completely optional, but feel free to mess around with those if you desire. The theme_info.json file is essentially a list of which applications you want to apply the theme to. Go ahead and open it and delete the "id" key/value pair. Now open the overlays folder. Inside here are a bunch of APK files. This modular setup makes it easy to pick and choose where you want to apply the theme. I'm not going to go over all of them, as their names are pretty self explanatory, but go ahead and decompile the one ending with ".common.apk". This package contains the theming for much of your general UI (such as status bar, navigation bar, text color, etc). Inside, you'll see a similar file structure as before, including an AndroidManifest and a res folder. Note: the smali folder is completely optional, and if you don't know what smali is you can safely ignore/delete this folder. First item of business is editing the AndroidManifest so that it matches your previously defined package name. You'll also want to add this tag somewhere inside it: "<uses-permission android:name="com.lge.permission.LGE_OVERLAY_THEME_APK"/>". This grants proper permission to modify system app themes. Now pop a look into the res folder. Its contents should look familiar. The multiple "xhdpi" folders all contain the same stuff, but target different resolutions. You can read more about them here. Basically the drawable-xxhdpi folders contain PNGs of various system wide UI elements (or app specific in the case of any of the other overlays). The values folder without an appended "hdpi" contains a public.xml, which functions exactly the same as previously mentioned. And the values-xxhdpi folders contain various settings for a specific resolution. I'll leave it up to you to play with them.
That's the basics of it! After recompiling an overlay APK, be sure to sign it or your theme will crash upon applying it (also be sure to sign your actual theme app with the same key). Read about the apksigner I linked to above for more info (I think Android Studio has an automatic way to sign apps with a key for debugging). Also be sure to update the theme_info.json file to list the package names of all the overlays you wish to apply.
Hopefully this helps someone. Let me know if you run into any trouble building or installing your APKs. As for what various settings do, you'll have to figure that part out on your own.
Happy theming!
Click to expand...
Click to collapse
Can I resell theme created with this method?

Nihilian said:
I know this question was asked awhile ago, but I faced a similar issue with my LG Stylo 3 and want to report my findings. First off, Theme Park is available as a web application on LG's SmartWorld developer page http://us.lgworld.com/web.main.dev. However, I think you'll find its customizability to be severely disappointing. In fact, themes created using this are not even compatible with newer LG phones. The schema used for newer models is Home Theme+ (this is what my Stylo uses, and I assume it is what the V30 uses as well). I have scoured LG's dev site and could not find a straightforward way to develop Home Theme+, but it is possible and not super hard, albeit it can be time consuming. It will definitely help if you have some experience with Android app development (my personal experience is limited), however, no programming is necessary. You really only need to know how to edit XML/JSON files, and how to compile/decompile an Android app (there is a fantastic tool for this called apktool, created by Ryszard Wiśniewski and Connor Tumbleson which I will link to).
Tools Needed:
Apktool https://ibotpeaches.github.io/Apktool/
Apksigner (part of the Android SDK build tools) https://developer.android.com/studio/command-line/apksigner.html
Efficient way to create/edit XML and PNG files
Alternatively you could use Android Studio, which honestly might simplify the process.
I have provided a template for creating Home Theme+ themes here. This is just the preinstalled LG High Constrast theme which provides a great outline of what a theme should consist of. Use apktool to easily decompile it.
After spending hours of tweaking I was able to retheme the High Contrast app and brand it as my own. It honestly isn't too complicated, however, there is a LOT of settings, so it'll be up to you to figure out the specifics of what you need to edit in order to create your theme. Here is the general layout of what a Home Theme+ theme must consist of:
Inside the root directory there are 4 items:
assets (This is where the meat of your theme will go)
lib (Contains a dummy file. You can safely exclude this from your application.)
res (Contains basic drawables, preview images, and your application's title.)
AndroidManifest.xml (Important information about your application)
AndroidManifest
I'll start from the bottom up. If you're following a template, there are only a few things you'll need to change in the AndroidManifest. Find the <manifest> tag and edit the "package" attribute to your desired package name. It should be something like "com.your_company.theme.name_of_theme", where "your_company" and "name_of_theme" can be whatever you like. You'll also want to edit the <meta-data> "android:value" and <activity> "android:name" attributes to reflect this (Optionally, you can just set the <activity> "android:name" attribute to ".MainActivity"). Save and close this file, but be sure to remember the package name because you'll need to use it later.
res
Inside this folder are three others:
drawable-xhdpi-v4 - Contains PNG images of the Theme's preview (you can add additional preview images if you want) and the home and lockscreen wallpapers you would like to set. Follow the same naming conventions as listed in the template.
values - Two files: public.xml Lists everything in the res folder that the compiler should expect. If you add/remove preview images or wallpapers, you'll want to account for them in here. The "id" attribute for each tag can be an arbitrary value as long as it is unique. Go ahead an open this up and delete the tags named "app_info" and "app_tag". You won't need them. strings.xml contains your theme's name (this is how it will be displayed in the theme picker).
xml - Contains additional meta-data. Delete it. You won't need it.
assets
Here's where the fun begins. There are a few things in here, however, I will only go over what's in the overlays. Custom fonts and sound effects are completely optional, but feel free to mess around with those if you desire. The theme_info.json file is essentially a list of which applications you want to apply the theme to. Go ahead and open it and delete the "id" key/value pair. Now open the overlays folder. Inside here are a bunch of APK files. This modular setup makes it easy to pick and choose where you want to apply the theme. I'm not going to go over all of them, as their names are pretty self explanatory, but go ahead and decompile the one ending with ".common.apk". This package contains the theming for much of your general UI (such as status bar, navigation bar, text color, etc). Inside, you'll see a similar file structure as before, including an AndroidManifest and a res folder. Note: the smali folder is completely optional, and if you don't know what smali is you can safely ignore/delete this folder. First item of business is editing the AndroidManifest so that it matches your previously defined package name. You'll also want to add this tag somewhere inside it: "<uses-permission android:name="com.lge.permission.LGE_OVERLAY_THEME_APK"/>". This grants proper permission to modify system app themes. Now pop a look into the res folder. Its contents should look familiar. The multiple "xhdpi" folders all contain the same stuff, but target different resolutions. You can read more about them here. Basically the drawable-xxhdpi folders contain PNGs of various system wide UI elements (or app specific in the case of any of the other overlays). The values folder without an appended "hdpi" contains a public.xml, which functions exactly the same as previously mentioned. And the values-xxhdpi folders contain various settings for a specific resolution. I'll leave it up to you to play with them.
That's the basics of it! After recompiling an overlay APK, be sure to sign it or your theme will crash upon applying it (also be sure to sign your actual theme app with the same key). Read about the apksigner I linked to above for more info (I think Android Studio has an automatic way to sign apps with a key for debugging). Also be sure to update the theme_info.json file to list the package names of all the overlays you wish to apply.
Hopefully this helps someone. Let me know if you run into any trouble building or installing your APKs. As for what various settings do, you'll have to figure that part out on your own.
Happy theming!
Click to expand...
Click to collapse
I did this and was able to change colours. Then i pushed a step forward and changed .json file (changed package name and apk names in it) and added new icons in all assets. Thing is, its failing on apply. Can you check it? As i don't have coding knowledge.

Nihilian said:
I know this question was asked awhile ago, but I faced a similar issue with my LG Stylo 3 and want to report my findings. First off, Theme Park is available as a web application on LG's SmartWorld developer page http://us.lgworld.com/web.main.dev. However, I think you'll find its customizability to be severely disappointing. In fact, themes created using this are not even compatible with newer LG phones. The schema used for newer models is Home Theme+ (this is what my Stylo uses, and I assume it is what the V30 uses as well). I have scoured LG's dev site and could not find a straightforward way to develop Home Theme+, but it is possible and not super hard, albeit it can be time consuming. It will definitely help if you have some experience with Android app development (my personal experience is limited), however, no programming is necessary. You really only need to know how to edit XML/JSON files, and how to compile/decompile an Android app (there is a fantastic tool for this called apktool, created by Ryszard Wiśniewski and Connor Tumbleson which I will link to).
Tools Needed:
Apktool https://ibotpeaches.github.io/Apktool/
Apksigner (part of the Android SDK build tools) https://developer.android.com/studio/command-line/apksigner.html
Efficient way to create/edit XML and PNG files
Alternatively you could use Android Studio, which honestly might simplify the process.
I have provided a template for creating Home Theme+ themes here. This is just the preinstalled LG High Constrast theme which provides a great outline of what a theme should consist of. Use apktool to easily decompile it.
After spending hours of tweaking I was able to retheme the High Contrast app and brand it as my own. It honestly isn't too complicated, however, there is a LOT of settings, so it'll be up to you to figure out the specifics of what you need to edit in order to create your theme. Here is the general layout of what a Home Theme+ theme must consist of:
Inside the root directory there are 4 items:
assets (This is where the meat of your theme will go)
lib (Contains a dummy file. You can safely exclude this from your application.)
res (Contains basic drawables, preview images, and your application's title.)
AndroidManifest.xml (Important information about your application)
AndroidManifest
I'll start from the bottom up. If you're following a template, there are only a few things you'll need to change in the AndroidManifest. Find the tag and edit the "package" attribute to your desired package name. It should be something like "com.your_company.theme.name_of_theme", where "your_company" and "name_of_theme" can be whatever you like. You'll also want to edit the "android:value" and "android:name" attributes to reflect this (Optionally, you can just set the "android:name" attribute to ".MainActivity"). Save and close this file, but be sure to remember the package name because you'll need to use it later.
res
Inside this folder are three others:
drawable-xhdpi-v4 - Contains PNG images of the Theme's preview (you can add additional preview images if you want) and the home and lockscreen wallpapers you would like to set. Follow the same naming conventions as listed in the template.
values - Two files: public.xml Lists everything in the res folder that the compiler should expect. If you add/remove preview images or wallpapers, you'll want to account for them in here. The "id" attribute for each tag can be an arbitrary value as long as it is unique. Go ahead an open this up and delete the tags named "app_info" and "app_tag". You won't need them. strings.xml contains your theme's name (this is how it will be displayed in the theme picker).
xml - Contains additional meta-data. Delete it. You won't need it.
assets
Here's where the fun begins. There are a few things in here, however, I will only go over what's in the overlays. Custom fonts and sound effects are completely optional, but feel free to mess around with those if you desire. The theme_info.json file is essentially a list of which applications you want to apply the theme to. Go ahead and open it and delete the "id" key/value pair. Now open the overlays folder. Inside here are a bunch of APK files. This modular setup makes it easy to pick and choose where you want to apply the theme. I'm not going to go over all of them, as their names are pretty self explanatory, but go ahead and decompile the one ending with ".common.apk". This package contains the theming for much of your general UI (such as status bar, navigation bar, text color, etc). Inside, you'll see a similar file structure as before, including an AndroidManifest and a res folder. Note: the smali folder is completely optional, and if you don't know what smali is you can safely ignore/delete this folder. First item of business is editing the AndroidManifest so that it matches your previously defined package name. You'll also want to add this tag somewhere inside it: "". This grants proper permission to modify system app themes. Now pop a look into the res folder. Its contents should look familiar. The multiple "xhdpi" folders all contain the same stuff, but target different resolutions. You can read more about them here. Basically the drawable-xxhdpi folders contain PNGs of various system wide UI elements (or app specific in the case of any of the other overlays). The values folder without an appended "hdpi" contains a public.xml, which functions exactly the same as previously mentioned. And the values-xxhdpi folders contain various settings for a specific resolution. I'll leave it up to you to play with them.
That's the basics of it! After recompiling an overlay APK, be sure to sign it or your theme will crash upon applying it (also be sure to sign your actual theme app with the same key). Read about the apksigner I linked to above for more info (I think Android Studio has an automatic way to sign apps with a key for debugging). Also be sure to update the theme_info.json file to list the package names of all the overlays you wish to apply.
Hopefully this helps someone. Let me know if you run into any trouble building or installing your APKs. As for what various settings do, you'll have to figure that part out on your own.
Happy theming!
Click to expand...
Click to collapse
Been trying this with my Stylo 4, was able to get it to install and apply the theme once, but now it tells me theme cannot be applied. Any thoughts?
Basically, If I modify any of the apks in assets it will not apply the theme anymore. It doesn't matter If I resign them all or if I copy the originals.
Hopefully with a little help I can get past this hurdle and be able to create my own themes for the Stylo 4.
Edit: Got it working, the problem was not changing all of the package names. Thanks.

Related

[Q] Icon set creator / replacer / packager out there?

Hello everyone,
I can see many custom icon sets out here, but after some downloads, I realised I would like to create my own icon set, to satisfy my creative needs
The question is: Is there somewhere any kind of application (on PC or PPC) that enables you to replace stock icons on their respected locatons
I'll make myself more clear... Let's say I would like to change my Start menu icons (folders, apps,...) I do know that you can do this with some apps already available on the WM 6.5 platform, but only individually. What I'm searching for, is an app that manages to replace the icons with my own, importing (replacing) them on their locations (for example it will find the icon "Comm Manager" under Start Menu>Settings>Connections>Comm Manager.lnk) In this approach you could make one personalized icon set and use it repeatedly even after a new ROM arrives all in one sweep.
I understand that all aplications are packed in .cab files. So perhaps there is one desktop app, that manages to link my .png/.ico files to the appropriate files, converts that to a .cab and after copying to the storage, that cab after execution would replace/overwrite all the icons.
Hope it's understandable. Sorry, english is not my native language.
If this was asked/commented before, I apologise for bringing that up again...
See you all
there is nothing to do exactly what you want.
however, if you use jwmd and change them 1 by 1, you can save as a "theme" and then import it after you flash a new rom and get the same icons back.
jsmccabe78 said:
there is nothing to do exactly what you want.
however, if you use jwmd and change them 1 by 1, you can save as a "theme" and then import it after you flash a new rom and get the same icons back.
Click to expand...
Click to collapse
Great app, this will do, thanks! Downloading now, will try it out

[Guide] [Miui] Introductory Guide To Theming! [Updated 11/14/11]

An Introductory Guide To Theming Miui
Much like CM7’s theme chooser, Miui has it’s own powerful theme engine. If you’ve ever wanted to create your own theme or have a theme that you like, but want to make some personalized changes; then this guide’s for you. This guide is intended as a supplement to Team D3rp’s thread; [Guide][Reference] An Intro to Themeing. Please keep all questions, comments, and suggestions in this thread Miui related also feel free to hit us up at #miuithemes on the IRC. General theme questions, image editing questions, xml editing questions, or anything of that nature should be asked in the afore mentioned thread. Before we begin it’s necessary to thank scott951 and bigrushdog for there past, present, and future work on this rom. In addition, thanks to toastcfh & Cayniarb for they’re work on the AOSP kernel, to bliind for his ongoing IRC support, tips & tricks, and lastly thank you to Team D3rp (il Duce, ranger61878, thoughtlesskyle, vanessaem, dkdude36, jdeloach, and pstevep), all the old HeroC guys, the many talented themers, and everyone else on XDA and IRC who continue to advance my knowledge of the Android Operating System.
To begin your adventure into the world of Miui theming you will need some tools, listed below:
7zip or similar archiving program
Notepad ++ or similar text editor
gimp or another image editor of your liking
Root Explorer (or your prefered file manager with root access)
Patience, patience, patience
Time, time, time
A willingness to bork your theme over and over again until you’re satisfied with how it looks
Recommended knowledge of adb and/or Android Commander- not required but may save you the time of having to restore a nand.
Table Of Contents: for your convenience in finding specific areas of help.
Lesson 1: File Structure
Lesson 2: Beginning Your Theme
Lesson 3: Lockscreens
Lesson 4: Changing Icons
Lesson 5: SystemUI
Lesson 1-File Structure
Before you can actually theme anything, you need to learn and understand the basic file structure used by Miui. Themes are compressed into zip files with a .mtz extension and are applied by the Miui theme engine at “run time”, meaning you can change almost any aspect of your theme on the fly, without a reboot. Download my intro.mtzfor use along with this guide. This is the default Miui theme with a simple lockscreen included that you will have to edit (It works but you will have to edit it per my instructions for it to look good), and a generic android boot animation / boot audio file. If you currently have a theme that you are generally happy with and would prefer to edit that more to your liking, you may do so by opening the Miui theme engine, select customize, scroll down to the bottom of the page and select “Backup Theme” After the backup finishes running, navigate to /sdcard/Miui/theme/backup and move the “backup.mtz” to your computer. Now let’s extract our .mtz and have a look at what’s inside. Right click on the intro.mtz, select 7zip from the popup window, and then select extract. Now navigate to the extracted intro.mtz folder and have a look inside. You should see the following:
“boots” folder
“preview” folder
“ringtones” folder
“wallpaper” folder
“com.android.launcher” zip file
“description” xml file
“icons” zip file
“lockscreen” zip file
The folders can be opened as any normal non-compressed document folder, the zip files (although their extensions are nonconventional can be extracted with 7zip, and the xml file can be edited with notepad ++.
Lesson 2 – Beginning Your Theme
Decide what you want your theme to be called and create a new folder for it somewhere that’s easily accessible.
Open up the description xml with notepad ++ and edit it to reflect your theme name on this line: <title>Default</title> (Change default to the name of your theme), edit this line: <author>MIUI</author> (Change MIUI to your name), and edit this line: <version>1.0</version> (from 1.0 to whatever version # you would like to call your theme). Save your changes and move the document to your newly created theme folder.
Now, if you so desire, in your theme folder create a sub-folder entitled “boots”. Place any boot animation & boot audio files in there that you would like to use, and make sure they are named correctly (bootanimation.zip & bootaudio.mp3).
Create a “preview” sub-folder next. This is where you’ll put screenies of your theme as you continue to develop it. Make a note of the file names and sizes in our original preview folder, also if you look you’ll see that some of the photo’s are jpegs and some are pngs. I’m not sure as though it matters, but I’ve developed a habit of keeping the extensions the same.
Now you can create an optional “ringtones” subfolder and assign rintones, notifications, and alarm sounds, by default when applying your theme. Use any mp3 you like so long as the files are named alarm.mp3, notification.mp3, and ringtone.mp3.
Create a “wallpaper” sub-folder within your theme folder next. This will be the home of your theme’s default wallpapers. Again look back at the intro.mtz and notice the size of the wallpapers in that folder and the file names. When you put your jpegs in this folder make sure they are named exactly default_lock_wallpaper & default_wallpaper.
Congratulations, you’re now on your way to making your own custom theme. Now that we have the simplest things covered and out of the way, we can really start to dig in and do some theming!
Lesson 3 – Lockscreens
Skipping over icons for a moment, lets jump to the lockscreen. As you know by now our Evo 3D’s QHD displays don’t play nice with a lot of lockscreens. So lets have a look at what we can do to fix some lockscreens. Please keep in mind that depending on which lockscreen you want to use they will require varying degrees of changes to work properly. The lockscreen I included with the intro.mtz functions, but looks terrible so now we’re going to fix it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Extract the “lockscreen” file that you downloaded. Inside you’ll see an advance folder.
Open the advance folder. This is where the lockscreen magic happens. In this folder are all of the lockscreen png’s and the manifest.xml
Let’s start with the png’s.
-Resize bg to 540X854
-Resize bottom to 540X178
-Resize bottom_batterylow to 540X178
-Resize bottom_batterylow_light to 540X240
-Resize charging_bg to 540X178
-Resize charging_bg_mask to 540X178
-Resize status_bar to 540X40
-Resize time_bg to 540X107
Feel free at this time to edit and/or replace any of the png’s in here, as you see fit, but be sure to keep the icon names correct and watch out for the .9png’s (there are none in this lockscreen, but if you’re using a different one beware).
Now that the png’s have been fixed let’s have a look at the manifest.xml, shall we? Our images are all the proper size, but if we loaded the lockscreen now the icons and text would all be shifted to the left of the screen. In addition to making positional adjustments in this file we can change font sizes, font colors, time & date format, even which apps the lockscreen will launch. Go ahead and open that xml file now with notepad ++.
Find the two lines that begin with <DateTime. On these lines you can change the x & y locations to get the proper spacing from the edge of the screen. (x is the horizontal plane, y is vertical x0,y0 being the top left corner of the screen). You can change the text color (#FFFFFFFF) to whatever you like, the font size (size="22"), and the date format (format="EEEE, MMM d")
Now, work your way down through the xml file making any adjustments you want to make to text sizes, colors, and the necessary x shifts to get your lock screen lined up and centered. If by chance you get stumped, compare your manifest.xml with my manifest_edited.xml.
*hint, I usually use a pencil and paper to draw out the screen, then calculate how big of a left margin I want, add the image widths, to figure how big of a change to make. For example x20 + 480 png width=500 (leaving a margin of 40 on the right). Now if I change to x30 + 480 png width = 510 (leaving me a margin of 30 on both sides).
Once you’re done editing the .xml save it (keeping the original of course to refer back to)
Back out of the advance folder now and right click on it. Select 7zip from your popup window and “add to archive”. When prompted, save as “lockscreen.File”, set your file type as .zip and save your lockscreen to your theme folder. After it saves delete the .File from the name. Windows will prompt you that this may make the file unusable, click ok.
Navigate to your theme folder and select all of the contents inside of it (boots, preview, etc…). After selecting all of your theme components, right click again, select 7zip, and add to archive. Save your theme as “whatever_name”.mtz again choosing .zip as the file type.
Place your newly created theme on your sd card in /sdcard/MIUI/theme
Apply your theme and enjoy. If you’re happy with your lockscreen take a screenie to add to your preview folder when you make your next edits. Remember if you do something that breaks your lockscreen you can unlock by pressing back & volume up, or you can use adb to delete lockscreen from /data/system/theme and push a good lockscreen back.
Lesson 4 – Changing Icons
Changing your desktop and folder icons is a great way to enhance your theme. Miui’s theme manager makes this a relatively simple process. You can edit the default system icons with your image editor, or take your favorite icon collection and resize them to 90 X 90 pixels if you wish to keep the default Miui icon size. Lets begin!
Navigate to your intro.mtz and use 7zip again to extract the icon.File
Inside your extracted icon folder you’ll find all of the icons for the default system apps.
Changing system app icons
Find the icon that you want to replace in the folder. Let’s use the browser for example.
Find the icon you want to replace it with and rename that icon to com.android.browser
Copy your new browser icon into the icon folder, overwriting the existing one.
Adding icons for user installed apps is a little more involved but worth the extra time to make your theme complete. Here is where it’s handy to have Root Explorer.
Let’s say we want to add an icon for dropbox
To do this we need to know the process name. There’s a couple of ways we can figure this out. Since every app installed creates a data folder we can use Root Explorer to look in /data/data for the package name of dropbox.
If the package name didn’t jump out at you, don’t worry there’s another way to do this. Again using Root Explorer navigate to /data/app and find the dropbox apk, long press on in and select “extract all”, navigate to /sdcard/extracted and open up the extracted dropbox apk. Now tap the AndroidManifext.xml file, which should open up a text document and the very first line should give you the manifest package name.
By now you should know that the package name for dropbox is com.dropbox.android
Find the dropbox icon you want to use.
Rename the icon to com.dropbox.android
Drop the icon into your icon folder.
Repeat these steps for all of the icons which you want to replace.
Once you are finished replacing and / or adding icons, from within the icon folder, select all, then right click, select 7zip, and add to archive.
When the 7zip popup screen appears, save them as icons.File
Delete the .File extension
Move your zipped icons file to your theme folder.
Zip your themes folder up as a .mtz and apply it to your phone the same as you did after you finished your lockscreen.
Again, if you are happy with your icons take a couple of screenshots for your preview folder.
One last side note in regards to icons. You may notice some apps such as google + install additional icons to your homescreen (G+ Messenger). I have not figured out the image naming trick yet for these icons to display from the theme, but I’m working on it. For the time being I extracted my G+ Messenger and replaced the icon in the /res/drawable-hdpi folder, but I am searching for the correct way of doing this and will update accordingly once it’s figured out.
Lesson 5 – SystemUI
Now, we're going to add a whole new element to our theme. We're going to create a SystemUI zip in our theme mtz. Examples of some things that we can change in SystemUI are notification bar icons (signal, battery, gps etc), Statusbar back ground, and the various tabs you see in your drop down expanded notification page. Let's begin.
Create a working folder somewhere easily accessible on your computer (I like to work from my desktop)
Inside of your working folder, create a subfolder named "res"
download my theme_values_SysUI.xml, place it in your working folder (not in the "res" subfolder), and rename it to theme_values.xml.
Now you will need a SystemUI.apk from Miui. You can either unzip the rom on your computer and move the .apk to a convenient location of your choosing, or you can use adb to pull the SystemUI.apk from your phone. It's located in /system/app.
Now that you have your SystemUI.apk, using 7zip, extract it.
Open up your extracted apk and navigate to the "res" folder. Copy the "drawable-hdpi" folder and the "raw" folder and move them to the working folder on your desktop, placing inside of the "res" subfolder you created earlier.
Begining with the "drawable-hdpi" folder, use your image editor to make any .png adjustments that you want incorporated into your theme, or replace the png files as you see fit. Be sure to maintain the nomenclature of the images if you opt to replace them. Beware of editing .9.png's as they cannot be edited in a conventional fashion. If you need help editing .9.png's there are several methods and guides around xda. Or ask in [Guide][Reference] An Intro to Themeing.
When you're finished with the drawable-hdpi folder move to the raw folder. This is where your battery icons are located, contrary to Sense and CM7 roms. You'll notice that there are not 200 little battery png's but 3 large png's with all of the images put together in a sort of battery collage. To assemble a battery collage, take your individual battery pngs and resize them to 38 X 38. For graphical and charge indicators, you will now need to create a new image sized at 152 X 190, copy and paste your individual png's into the large image so that you have 5 rows each with 4 png's. Follow the same procedure for making a % png, except that you'll be using 10 rows of 10 images, so your png size should be 380 X 380.
When you're done with all of your images, open up the theme_values.xml with notepad ++ and make any color edits that you see fit. Please note, that these color changes will have minimal impact on the look of your theme. Most of the color changes of your system will not happen here. These are default values for only a handfull of apps.
When you're finished editing the xml save it and close it.
Finally select your theme_values.xml and your "res" folder and right click your mouse, select 7zip, and add to archive. In the 7zip popup window name your file com.android.systemui (no additional extension here, make sure it does not say zip at the end....just: com.android.systemui)
After the folder is compressed and zipped, move it to your theme folder and zip your theme up as a .mtz as you have been doing right along. Apply theme to your phone and enjoy.
To Be Continued…..Next update will be for Framework-res or launcher depending on my upcoming amount of free time!!!
Additional Information: Tips, Tricks, & Links
Advanced Lockscreens - Tips and Tricks
Thanks il Duce for these links:
Lockscreen 2.0 Reference
General Miui Tips & Tricks
I wasn't born rich, I'm good lookin' instead!!
Great job Hockey!! Love how everything is coming together!
Added to the OP in the one stop shop also.
Edit: This is really thorough. Very nice indeed.....
Awesome work
Sent from my PG86100 using xda premium
Place holder for me
Is that all we do to the manifest because I really want that Evoluer slider to unlock my phone.
Temari x Shikamaru
scott951 said:
Place holder for me
Click to expand...
Click to collapse
Thank you sir, for providing us with a rom worthy of the time it takes to do all of this!......No disrespect intended to any of the other developers who's roms I also use, but I've fallen head over heels for Miui
knowledge561 said:
Is that all we do to the manifest because I really want that Evoluer slider to unlock my phone.
Temari x Shikamaru
Click to expand...
Click to collapse
Well, there's a lot you can do with the manifest xml, but to make them work properly yeah....It's just resizing the png's and shifting the x & y values accordingly for our screen size. I'm downloading the lockscreen you're trying to use now.
Thanks for this.
hockeyfamily737 said:
Well, there's a lot you can do with the manifest xml, but to make them work properly yeah....It's just resizing the png's and shifting the x & y values accordingly for our screen size. I'm downloading the lockscreen you're trying to use now.
Click to expand...
Click to collapse
Thanks because im Stumped!!!! If you manage to hook it up do you think you can throw in that green charging light? And when its not charging it turns blue when you touch it? Check out "ikun" to understand the lockscreen.
Temari x Shikamaru
vanessaem said:
Thanks for this.
Click to expand...
Click to collapse
My pleasure. Hopefully everyone including myself can learn from this, because I'm certainly no expert. Just a guy who like to take stuff apart to see how it works.
knowledge561 said:
Thanks because im Stumped!!!! If you manage to hook it up do you think you can throw in that green charging light? And when its not charging it turns blue when you touch it? Check out "ikun" to understand the lockscreen.
Temari x Shikamaru
Click to expand...
Click to collapse
I'll do what I can. First let's see if I can get it to work right Working lots of O/T right now so I haven't had a heap of time.
Thanks so much for this hockeyfamily737!
Sent from my PG86100 using Tapatalk
Thanks homie.
Temari x Shikamaru
Also I will possibly be able to help out on this as well if someone doesn't get it figured out by Sunday... been working alot of double shifts..
knowledge561 said:
Thanks because im Stumped!!!! If you manage to hook it up do you think you can throw in that green charging light? And when its not charging it turns blue when you touch it? Check out "ikun" to understand the lockscreen.
Temari x Shikamaru
Click to expand...
Click to collapse
Sent from my PG86100 using Tapatalk
Hey, nice introduction =)
If anyone is inerested in speeding up the process of testing your themes, I have created a Makefile/Windows Batch file for compressing themes and pushing them to the phone auto-magically
http://forums.miui.us/showthread.ph...ild-Script-(Windows-Unix)-Now-with-a-Makefile
Let me know if you guys have any problems!
Thank you for posting this amazing tutorial!
I am slowly fixing my lock screen, I'll post some before and after screen shots.
Before:
After:
thanks for this. i rlly needed it....
now to figure out more stuff...
steam374 said:
Thank you for posting this amazing tutorial!
I am slowly fixing my lock screen, I'll post some before and after screen shots.
Before:
After:
Click to expand...
Click to collapse
Terrific and this was the one I was trying to do today. Great job with this.
Brought to you from my EVOlutionary 3-Dimensional Smartphone
Wow! Great work... looking forward to more. Thanks hockeyfamily!
Sent from 3D A.W.E.S.O.M-O

Development Discussion: Modification of PDF Viewer

Taking notes over PDF slides with the scribe pen has really saved me a lot of hassle. I love this function of the flyer. There's really only one way it could be better: Fullscreen support, or at least "more screen" support.
Not only does the HC bar take up space, but the menu/title bar on top is even bigger. The pdf viewer has the screen real estate of a 5inch phone.
PDF editing seems like only a moderately used feature, so I don't see this getting done on it's own. I'm offering a very modest reward for a fix.
I would be willing to donate for the removal of the huge uppermost Title/menu bar in PDF viewer, so that a double-tapped fitted pdf page will fill the new space. See the attached image. You can leave the small menu button in the corner if possible, or just get rid of it if it's too difficult.
I'm hoping this is as simple as modifying a few variables in the apk. I could be very wrong.
I can live with just the HC bar at the bottom.
Note: I have tried apps like repligo and ezpdf which do offer fullscreen support. However, annotating and changing annotation options takes many more steps than the HTC pdf viewer.
Secondary goal:
Apps like honeybar and honey hide widget cause all pen written annotations to be shifted up.
I believe the solution to the first problem would also allow an easy fix of the shifting pen annotations. I would like the PDF viewer to accept pen strokes properly with a hidden HC bar.
No one's willing to give it a shot? Ah well.
This will be my only bump.
I've attached the (unmodified, I think) HTCPDFViewer.apk from /system/app from LeeDroid's 4.1.0 rom.
I was the guy who removed the obnoxiously large language bar from Sony Ericsson's keyboard back when I was still using my u20i phone... unless HTC is particularly irritating about how it structures its resources, you're right that it is a matter of decompiling the APK, adjusting numbers, and recompiling it. Merely hiding is not difficult (making the Menu button semi-transparent is probably too difficult, though, but you can pick a ROM with the hardware buttons enabled).
Unfortunately it is also incredibly tedious to decompile and recompile everything right, from my experience of the keyboard hack. I'm not really up to it at the moment. Hope you can do it.
I've poked around in the archive. I wonder if I could just delete the ti.tle bar png or layout file. There doesn't seem to be a definitive title bar png
I'm also experimenting with apk multitool.
Since it's a stock rom app, is this venture going to be a lot more complicated than editing an xml line and then recompiling?
Here's where I'm at. Everything I know about android programming I've learned tonight, so this may be confusing and stupid sounding:
The decompiled apk has several things which could refer to the title bar.
dimens.xml has lines like
<dimen name="global_title_height">35.0dip</dimen>
<dimen name="editing_panel_header_height">56.0px</dimen>
<dimen name="editing_panel_header_margin">47.0px</dimen>
<dimen name="editing_panel_no_footer_header_margin">35.0px</dimen>
However there are also thousands of header and title lines from other xmls.
Can I just use a theme line in the manifest?
It uses the ActPDFReaderTheme whose parent is the HtcActionBar.FullScreen from the com.htc.resources.apk
These link to the common_mainnav xmls and pngs in the resources.
Do I need to find an HTC theme from the com.htc.resources.apk that doesn't have a title bar? Could I edit the com.htc.resources.apk and edit the pngs or delete the referencing lines in the styles.xml?
Thanks. I'll keep digging.
And btw, the bounty's still out if anyone can do it faster. I don't have much free time.
I think I've got this. I'm real close
I figured out how to decompile, edit xmls, recompile, copy original meta-infs and androidmanifest, and adb push.
The dimens.xml in the viewer apk has no effect on the bar. It's a standard template htcactionbar.fullscreen
I could direct the apk to a new theme, but I've decided just to try deleting or shrinking the bar from the com resources apk.
Good luck! Remember the apk you push back must be a signed one, probably via hacking the modified xml files back into the original signed apk.
Now I've run into a snag.
No matter how many margin and layout dimension variables in the com resource I set to 1.0px, I still have a black bar above the pdf.
Then I tried changing the theme reference in the pdfviewer.apk. It loads the file picker without an action bar, but as soon as I click a file it crashes. It seems (I think) that the program has too many calls for the action bar. I'm not a programmer. Do you know how I can get the program to simply ignore any lines referencing the "actionbar"?
Lines such as: "invoke-virtual {v3}, Lcom/htc/pdfviewer/ActPDFReader;->getActionBarHeight()I"
I also tried <item name="android:windowNoTitle">true</item> after the theme and I have the same effect of no title bar but a forceclose after selecting a file
Could you post the entirety of the relevant xml layout file?
porcupineadvocate said:
Could you post the entirety of the relevant xml layout file?
Click to expand...
Click to collapse
Unfortunately there is no simple relevant layout file. I can't go any further with this project because I don't know programming. Here's my progress if anyone would like to give it a shot:
In the decompiled HTCPDFViewer is a \res\values\styles.xml
There is the line:
<style name="ActPDFReaderTheme" parent="@com.htc:style/HtcActionBar.FullScreen">
This tells the program to use the HTCactionbar.fullscreen template style in com.htc.resources.apk
Now there are two paths to take from here:
1) Changing the style template to @android:style/Theme.NoTitleBar.Fullscreen
or adding the requestWindowFeature(Window.FEATURE_NO_TITLE) line
Issue: This causes the file picker to load without a title fine, but as soon as a pdf loads, the program crashes.
How far I got: I simply deleted 2 lines referring to the actionbar in the PdfLoadingPage$LOADING_PAGE_Handler.smali and the pdf loads. However there is a now a black empty bar on the bottom, and any pen writing is being moved upwards.
I suspect this is because of the ActionBarMenuAdapter.smali that controls how the pen annotations are moved in relation to the actionbar. There are also 100 more lines referring the actionbar in the other smalis. You can find them all by searching the apk for "actionbar". A proper programmer could remove these lines, or more easily make every m_iActionBarHeight:I line refer to zero.
If someone can fix the programming, I suspect that this would also solve the hidden HC bar issue, allowing true fullscreen support!
2) Editing the com.htc.resources.apk
The styles.xml in this file has a NoTitleBar.Fullscreen theme that redirects to other xmls redirecting to different layout files and pngs.
I've looked through every dimens.xml and other xmls that may be even loosely linked to the actionbar. I even tried haphazardly changing every possibly connected dimension to 1.0px.
I then tried shrinking all of the related PNGs to 1x1 pixel.
The end result was just a funking looking grey and black bar at the top.
I have no idea where to find the dimensions controlling the size of the actionbar.
Thanks for any help! Warning: Recovery backup before pushing a new com.htc apk, if you don't do it correctly, things can get messy with the OS.
porcupineadvocate said:
Could you post the entirety of the relevant xml layout file?
Click to expand...
Click to collapse
Ok I may have lied. There are one or two files I wasn't sure about.
These are from the xmls in layout folders of com.htc apk.
Can you take a look and see if there are simple line(s) to change here? notepad++ is great.
I already attempted to edit all of the dimens.xml dimensions. I can't remember if I got all of the dimensions in these files too.
The bar seems to be about 56 pixels. I gathered that from reduced editing view dimensions but I could be wrong.
Not that it is a big deal for a minor issue like this in a low traffic forum like EVO View but "bounty threads" are strictly prohibited by xda.
I doubt the mods will hassle you since this isn't a heavily travelled thread but they might shut you down at any second. Good idea to get some PM's going with anyone who is helping you.
Good luck.
Sent from my PG41200 using Tapatalk
Post the decompiled HTPDFViewer, please. I particularly want to see the contents of res/layout/*.xml files.
As a tip, don't delete any elements; just resize them to zero height/width if possible. Deleting will cause crashes when the program tries to reference them.
porcupineadvocate said:
Post the decompiled HTPDFViewer, please. I particularly want to see the contents of res/layout/*.xml files.
As a tip, don't delete any elements; just resize them to zero height/width if possible. Deleting will cause crashes when the program tries to reference them.
Click to expand...
Click to collapse
Here it is.
Woops I didn't realize bounties were prohibited, especially with so many developers asking for "donations"
Delete this if you'd like. I didn't mean to break the rules.
Donations and bounties are different. Donations are thanks for work done, bounties are offer of compensation to do work. If they allowed bounty threads xda would be overrun with them.
No big deal. I doubt the mods even visit this thread. Just wanted to give you heads up to establish pm conversations in case they did
Sent from my PG41200 using Tapatalk
No progress since my last update on the programming front. However I have been playing with the lcd density changer.
Setting it to 170 from 160 and enabling the GB like bar on top has interesting results. The pdfviewer only edits properly when I use Honeyhide or Honeybar. So we know that disabling the notification bar and having a working pdfviewer is possible.
However, I found I have the best pdf editing real estate when I set the lcd density to very low, like 120. In fact, not only are the title and HC bars smaller, but the pen seems to be more accurate too!
Maybe this information will help with our goal.
EDIT: at 120 and below, the scribe color wheel pops up on the wrong side. Still works though. Other tablet functions are much slower and there's some screen corruption too. It's not a permanent solution, but works for annotating pdfs.

"Newbie" looking to create a "standard" android theme. Some starter questions

"Newbie" looking to create a "standard" android theme. Some starter questions
Hello,
I am not new to Android but I have had a tough time finding a "native" way to create themes. I do not want to use a theme launcher or an alternative home app. I just want to use the standard android home app and create a theme for it. I took a brief look at the theme starting page above but none of the links I tried work. I just want to use the standard android theme (it fits my tastes closely enough) and change only a few things (for now). Here is what I want to change:
Wallpaper (so that it changes periodically through a "slide show"... only one shows currently... I have already some of these)
Lock out Wallpaper (so that a different one shows every time like it currently does... I have already created these)
Replace specific icons (I already have the icons I want to use)
Possibly replace colors of one or two apps (such as texting).
Is it possible to do this?
I have done some initial exploring on my own. My phone came with one theme (and the default theme) and that is it. I found it on my phone and decompiled it. It appears a bit more complex than I was hoping though I understand most of it. There are lots of extra icons I do not want to replace so I have a few questions which are number in parenthesis. First, there appears to be some sort of pseudo java code. I know both C++ and C# and have used them extensively. However Java isn't nearly as familiar. It does not however seem to quite fit the Java syntax I have seen and used in the past.
The files that contain this pseudo java code also seem to define the file names to use for each icon followed by a hex code which I am assuming is the activity that the file is associated with. However, I have not found where it defines the lock out wallpaper. (1) If I only specify specific icons, will the default android icon be used or do I need to identify them all? (2) If I need to do them all, is there a location to download the standard theme for Java 6.0.1 (the version on my phone?) (3) Is there a standard format for themes that can be used by the Android Home/Launcher? (4) Is someone going to update the sticky post above with more recent file links?
I found this icon pack generator tool. (5) Does it create "standard" icon packs that can be used without a third party launcher? I still would like to integrate my own wallpapers and lockout wallpapers though.
primem0er said:
Hello,
I am not new to Android but I have had a tough time finding a "native" way to create themes. I do not want to use a theme launcher or an alternative home app. I just want to use the standard android home app and create a theme for it. I took a brief look at the theme starting page above but none of the links I tried work. I just want to use the standard android theme (it fits my tastes closely enough) and change only a few things (for now). Here is what I want to change:
Wallpaper (so that it changes periodically through a "slide show"... only one shows currently... I have already some of these)
Lock out Wallpaper (so that a different one shows every time like it currently does... I have already created these)
Replace specific icons (I already have the icons I want to use)
Possibly replace colors of one or two apps (such as texting).
Is it possible to do this?
I have done some initial exploring on my own. My phone came with one theme (and the default theme) and that is it. I found it on my phone and decompiled it. It appears a bit more complex than I was hoping though I understand most of it. There are lots of extra icons I do not want to replace so I have a few questions which are number in parenthesis. First, there appears to be some sort of pseudo java code. I know both C++ and C# and have used them extensively. However Java isn't nearly as familiar. It does not however seem to quite fit the Java syntax I have seen and used in the past.
The files that contain this pseudo java code also seem to define the file names to use for each icon followed by a hex code which I am assuming is the activity that the file is associated with. However, I have not found where it defines the lock out wallpaper. (1) If I only specify specific icons, will the default android icon be used or do I need to identify them all? (2) If I need to do them all, is there a location to download the standard theme for Java 6.0.1 (the version on my phone?) (3) Is there a standard format for themes that can be used by the Android Home/Launcher? (4) Is someone going to update the sticky post above with more recent file links?
I found this icon pack generator tool. (5) Does it create "standard" icon packs that can be used without a third party launcher? I still would like to integrate my own wallpapers and lockout wallpapers though.
Click to expand...
Click to collapse
I've moved your thread to Q&A as I think it is more appropriate. So you want to keep the standard android launcher, depending on your device you could install a rom that has substratum support. This will allow you to keep your normal launcher but theme every aspect of your rom
sawdoctor said:
I've moved your thread to Q&A as I think it is more appropriate. So you want to keep the standard android launcher, depending on your device you could install a rom that has substratum support. This will allow you to keep your normal launcher but theme every aspect of your rom
Click to expand...
Click to collapse
What about my device would it depend on? If I even understand this question, my first guess would be my OEM. since...
I really don't know what you are talking about. Wouldn't the rom depend on the OEM? What if my OEM doesn't provide substratum report (not that I know what that is).

[Q]How to identify drawable name/id on running app?

Hi! I'm new into creating themes, and I'm looking for a tool that could make it easier. I know how to extract .apk, how to replace images, modify .xmls, but often I don't know what an image is for. Let's say im modding SystemUI and I want to change background of my notification bar. The only thing I know is that inside drawables folder I have to look for something named notification_bar.png, something like that. I was looking for an app that could tell me how an image inside an app is called in code ( example: I'm inside calculator app, I press on background and the app says that file is called background.png and is inside drawables-xxhdpi). I tried Android Studio --> Layout Inspector, but it didn't help me at all because, well, I just don't understand it.
Of course, while modifying SystemUI I can look for explaination of certain pngs on the internet, but
-not every SystemUI is the same
- if I want to change drawables of an app that doesn't have specific explaination I have to know how to identify drawables.
It must be possible somehow, because I've run into some themes that modify external apps (like WhatsApp, SuperSU etc.)
Those ppl had to know what certain .png is for, the question is: How?
I don't believe they just had to sit there and try every possible combination.
Also, inside SystemUI there's A LOT of files that are never used, and their names can be misleading.
Is there any way to identify drawable inside running app easily? Without digging in code and guessing?
Thanks in advance for any answer
I tried to analyze Mms.apk (it's system app). I was looking for a drawable representing default contact icon, here called ic_contact_picture.png .
I actually managed to find a proper layer in Layout Inspector(ConversationListItem.xml), analyzed it and found a code referring to table "id" in resources.arsc . The object the id referred to was called "avatar". And that's it. I couldn't find id(I got it from resources.arsc/drawables) of ic_contact_picture.png anywhere in that layout. There was only id referring to "id/avatar". It doesn't make any sense.
How do I find drawables using Layout Inspector or any other tool?
It was easier when it came to text. I also found an id referring to resources.arsc/id, but that id was included in the layer I was looking at (ConversationListItem.xml).
But I still wasn't able to perform any action on that text, because there wasn't any setting like text color or anything, there was just a line android:textAppearance="@attr/0x1010041"
It is an attrib from framework-res.apk, but when I opened framework-res.apk and found that attrib there was no reference to anything like color, font, so there was nothing I could really do.
Can someone help me with those 2 problems?

Categories

Resources