yashsingh1/xdaforums huggingface dataset:
[prjkt.io] ZeuBug:
Hi All!

I created my own theme a long time ago.

Everything was working well on all my phones, and with all my new applications it became heavier and heavier, but no problem.

Since I installed various versions of Android Pie on my OP6, at least half of my applications are closed at startup. The only way to launch them is to disable the layers related to these applications.

Here is an simple example of an apk I have themed and crash like explained above : https://play.google.com/store/apps/d...do.pulse&hl=fr

Inside the res folder, I just put mipmap-xxhdpi-v4 with one png, and in values, this xml:

<?xml version="1.0" encoding="utf-8"?>

<resources>

<color name="blue">#ff3f51b5</color>

<color name="colorAccent">#ff4285f4</color>

<color name="green">#ff0f9d58</color>

<color name="magenta">#ffba5e98</color>

<color name="orange">#ffed8621</color>

<color name="purple">#ff3f51b5</color>

<color name="red">#ffda4336</color>

<color name="rose">#ffed8eea</color>

<color name="skyBlue">#ff4285f4</color>

<color name="teal">#ff96591d</color>

<color name="tealGreen">#fff8c017</color>

<color name="yellow">#fff8c017</color>

</resources>

What is my mistake?

Thanks!

edit: I precise I have no problem with Oreo 8.1
[prjkt.io] djdarkknight96:
You should compare 8.1 and 9.0 resources and see why. We would have no idea looking at that.
[prjkt.io] ZeuBug:
Thanks! but how to compare resources? inside android 9.0? sorry but I don't understand your answer (my skills have some limitations :D), the application I was talking about is one among many others, a very simple small app. I don't understand why some color codes it makes things so complicated... :confused:
[prjkt.io] kdb13_dev:
How substratum manages the overlays?

I am a beginner developer. I just want to know how Substratum manages this whole theming. I mean if I normally create a overlay package and push it it is working fine after a reboot on my Samsung Oreo device. But the problem is that I cannot remove the app as its not showing in the Settings. I had to uninstall is via adb each time.

But Substratum overlays have an option to uninstall themselves. Are they using the cmd overlay via adb?

It would be be a great pleasure to know how to management works in Substratum.
[prjkt.io] GAURAV THAKKAR:
You can always head over to the substratum thread

They have everything there
[prjkt.io] kdb13_dev:
Isn't this thread for Q & A.
[prjkt.io] djdarkknight96:
You look at both 8.1 and 9.0 apps and the files and colors you have in the theme and see if they changed or been removed. You can use a program called diffmerge to compare code files as well.

Best way to explain:

Substratum uses a system called OMS to overlay files to be used with the stock files. It builds and installs the overlays within the app. Then once done it adds the overlay info to a database xml called overlays.xml so the system will use it to overlay the packages over the normal apps.

Adb is a way to disable overlays on the overlays.xml or just uninstall the overlays.

Substratum uses package installer or root or other methods depending on device to enable overlays. Hope that explains it a bit.

DJ
[prjkt.io] kdb13_dev:
Where is that overlays.xml file?
[prjkt.io] ZeuBug:
it's a very interesting subject thanks for the explanations. But the last update of the application that I took as an example, from end of 2017, so there is no version 9.0. That's why I do not understand where the problem comes from. It's really a basic application ... (Pulse metronome)
[prjkt.io] djdarkknight96:
I haven't had to look for it, not sure.

Oh I thought you are theming a system app that updated to pie 9.0 my bad. What errors are you seeing building?
[prjkt.io] ZeuBug:
It is not a system app, it is app from play store: https://play.google.com/store/apps/details?id=com.trycrescendo.pulse&hl=fr

And It's just an example, my problem is on the half of all my apps.

On 8.1 Roms: no problem in building then launch apps.

On 9.0 Roms: no problem in buildings but apps crash.

I could send you my theme! I did it with android studio, I never had problem before Pie. The strange thing is I have no problem with a lot of apps, and problems with a lot of tohers :confused::crying:
[prjkt.io] djdarkknight96:
If they aren't system apps nothing should be different. What are the exact errors you are seeing? Get logs of crash as well to see why.
[prjkt.io] ZeuBug:
There is no crash log because I've no error when building.

The only difference between 8.1 roms and 9.0 is some apps crash when launching, force close until I disable layer in substratum manager for these apps. No problem whith 8.1 roms at all.
[prjkt.io] Spannaa:
Grab a Logcat app from the playstore and see if that tells you anything about the crash.

If it doesn't, post your theme (or just a zip containing the overlays for the pulse app).
[prjkt.io] ZeuBug:
https://drive.google.com/file/d/1iMO5Ppm6iCBRk80c9DggXvi2bILEsPAI/view?usp=sharing

https://drive.google.com/open?id=1mPBuYrqiQmQxwdCR0NazgMA2X9s739mH

https://drive.google.com/open?id=1oRB6uoJ_blobkLwcWsvQpnZXC7pPUUkI

Here are the links: first for my theme, and others for 2 free apks I use and have problems with (among others, force close), only with Pie 9.0 Roms. I will be not at home this week end so I could not send a logcat, because I could not change my rom 8.1, too dangerous to go to Pie 9.0 without my PC :D

If someone could test if have a 9.0 Pie rom installed ;)

Thanks again XDA Guys! ;)
[prjkt.io] djdarkknight96:
Yeah getting a logcat would shed light on why. Oreo resources are still in pie so not sure why that would matter. I'm using same packages for both with 3rd party apps just system apps need to be different. But I'll test on my pixel XL.

Edit: ok this is an odd one. You only have png and colors.xml. Try removing colors.xml and try it and if not working put it back and try removing png's and see what is causing it. Log isn't saying why I looked.
[prjkt.io] ZeuBug:
I will try next monday. But it's very strange because my theme is light. Maybe an update of substratum will solve this big problem... Because without my theme I will stay on oreo for next 100 years if I live so far ?

If someone else wants to try my theme, you are welcome!

Thanks all for help.
[prjkt.io] djdarkknight96:
This isn't a problem with Substratum bro you have to find a fix.

---------- Post added at 10:40 PM ---------- Previous post was at 10:39 PM ----------

1. Don't spam same question in many threads

2. Go to telegram community and ask
[prjkt.io] ZeuBug:
Something has changed with subtratum between Rom 8.1 and 9.0. I have no problem with my theme and rom 8.1. So find a fix ok, but if I don't know what has changed it can be very complicated without help, and that's why I'm asking here! thanks anyway!
[prjkt.io] djdarkknight96:
Nothing in Substratum would cause this bro, you have to figure out why. I have Oreo and Pie fully themed without issue.
[prjkt.io] eurochild:
Guys some help please

In android pie systemui i managed to make the corners square for the qs panel but i cant find the same for the notifications

any help ?
[prjkt.io] djdarkknight96:
They are in android "framework" dimens

<dimen name="config_dialogCornerRadius">10.0dip</dimen>

<dimen name="control_corner_material">10.0dip</dimen>

<dimen name="dialog_corner_radius">10.0dip</dimen>
[prjkt.io] swat4samp:
Can you please let me know once you're done theming? :D
[prjkt.io] eurochild:
sure why not, there's one thing left for my liking to do, get rid of the space between the quick tiles and the notifications

maybe [MENTION=2126467]djdarkknight96[/MENTION] can give a hand on this too, thanks in advance master!
[prjkt.io] swat4samp:
Thank you, this looks perfect. The gap doesn't bother me much, but i'd still like to see how it looks without it.
[prjkt.io] djdarkknight96:
<dimen name="z_distance_between_notifications">0.0dip</dimen>

Like so in systemui
[prjkt.io] eurochild:
that does not seem to work
[prjkt.io] djdarkknight96:
Try using 300dip I was advised by another theme dev to try that.
[prjkt.io] eurochild:
still not
[prjkt.io] djdarkknight96:
Wait you never said the os you are using. Pie? That won't work. Only Oreo my bad
[prjkt.io] eurochild:
lol no prob, just thought that you knew i was talking about pie from the qs style in my screenshots
[prjkt.io] djdarkknight96:
Yeah my bad and this was for between notifications not them and qs tiles. Not sure you can close that gap. I'll ask in the pro themer chat and see if anyone else found it.
[prjkt.io] RMarques:
Gents, can anyone pinpoint which overlay to choose just to change notifications background color?
[prjkt.io] djdarkknight96:
Systemui
[prjkt.io] opariffazman:
Greetings Gents, I came across an idea to change Substratum Profiles based on condition using Tasker. However, I need a little bit more information on how Substratum uses the "Restore Profile" function as what I understand backing up the profile would create an 'overlaystate.xml' file. If the process is as simple as swapping the old 'overlaystate.xml' to the new user selected one, I believe this can be done with Tasker (with root of course). Appreciate any help I can get. Thanks. :)
[prjkt.io] fjsferreira:
Hi everyone,

anyone managed to make rounded corners in OOS pie for the op5? Curve theme (with it's dimen.xml) properties doesn't work. I tried finding which dimension is responsible for rounded screen but nothing seems to work. Any ideas?
[prjkt.io] djdarkknight96:
They are in framework dimens. corner_size

---------- Post added at 10:48 PM ---------- Previous post was at 10:46 PM ----------

This isn't the place for this, this thread is for theme devs not users. Go to substratum community in telegram and discuss this. I'm sure someone will help as I've seen them do this using tasker with root.
[prjkt.io] fjsferreira:
That property isn't there in framework-res.apk. To be more specific, I'm talking about rounded screen, meaning the four corners of the screen.

Attached is dimens.xml of SystemUI and Framework-res.

The "rounded_corner_radius" (same property that curve substratum theme uses in SystemUI) doesn't do anything) Can you take a look at the filee?

Thank you.
[prjkt.io] djdarkknight96:
Doh my bad yes I was going from memory to give a clue to dialog and notifications corners not the screen corners as they aren't native to the system in pie anymore. Think they hid them in java for window corners. I've never themed them but they moved app corners to be logically drawn in java using rounded_corner_raduis and the config one as well.

Not saying it's impossible just might need to dig for it or trick the system by using a window background image with black corners. That would works also but not sure about dpi differences. Could try vector.
[prjkt.io] NinjaByte77:
Does Substratum themes and Andromeda work on Android Go phones?

I have a Nokia 1 which doesn't properly adapts to dark theme
[prjkt.io] fjsferreira:
Thanks man. That's way out of my league :)
[prjkt.io] drakulaboy:
hello to all, i have a question, i've cloned the template from github to android studio, done all by tutorial, changed some colors, tested all is fine, now the question, i have some elements that aren't changing by the colors.xml, how do i color them? if i decompile apk and find that element by id in a xml file, and put after it android:background="#desired_color" and compile apk it's chanigng, can i change/add with Substratum that color to element?
[prjkt.io] djdarkknight96:
That's the fun part, finding elements. You can try color pickers and search layouts for the id that might show the color or style related. Sometimes yes we have to add a background or text color. But we cannot create resources. You have to hijack them from the stock app.
[prjkt.io] drakulaboy:
i find elements very easy with UIAutomatorViewer, if i want to see if element is taking color from colors.xml i'm replacing all colors from colors.xml to one and see if the element has the color from colors.xml :)
[prjkt.io] poly.mathic:
Can anybody explain to me why Facebook Messenger can no longer be themed? I remember there was a whole thing about this about a year ago when it updated to ver 147 but the technical reason is beyond me.

thank you.
[prjkt.io] djdarkknight96:
Depending on how much you themed it would depend on why. Updates make changes, apps can update in background thru server and break themes. Google does this all the time.
[prjkt.io] Artnig:
Fixed
[prjkt.io] djdarkknight96:
Please don't post in multiple threads and this one isn't for users, only theme devs.
[prjkt.io] Artnig:
K sorry to annoy you Mr. Blue.

Btw you might wanna get op to edit the title a bit, since I had a question about theming an app and it told me to ask here
[prjkt.io] djdarkknight96:
I guess reading the OP was out the question?
[prjkt.io] Artnig:
In fact I did read the op, re-read it yourself and go look at the very first sentence if that's not clear enough for you.
[prjkt.io] djdarkknight96:
I actually just now get what you mean, I had to read it like 5 times but yes now I understand. Theming is too GENERAL. I will pass on your suggesting.

"Had to use my user brain lol"
[prjkt.io] Spannaa:
First post:

Don't see any themers helping out here apart from yourself [MENTION=2126467]djdarkknight96[/MENTION]
[prjkt.io] djdarkknight96:
You lol
[prjkt.io] Spannaa:
Not so much anymore - I only use subs to theme system apps & non-google apps so I'm pretty much out of the loop.

It'd be great to see other themers helping out here but I don't see it happening
[prjkt.io] djdarkknight96:
Well I'm gratefully to see you here helping.
[prjkt.io] osuki9x:
I try to change some text color in a layout.xml of Samsung Theme Store, but after reference all dimens, color, id, string and layout to its package (com.samsung.android.themestore), it break the layout. I have even changed anything yet. Anything wrong?

Here is the layout.xml after reference to package

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
android:layout_width="fill_parent"
android:layout_height="@*com.samsung.android.themestore:dimen/detail_sound_item_height"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/com.samsung.android.themestore">
<TextView
android:textAppearance="@*com.samsung.android.themestore:style/font_style_roboto_regular"
android:textSize="15.0dip"
android:textColor="@*com.samsung.android.themestore:color/common_text_color"
android:ellipsize="end"
android:id="@*com.samsung.android.themestore:id/tvSoundTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@*com.samsung.android.themestore:id/ivEqualizer"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@*com.samsung.android.themestore:id/ivEqualizer"
android:visibility="gone"
android:layout_width="22.0dip"
android:layout_height="16.0dip"
android:src="@*com.samsung.android.themestore:drawable/anim_sound_equalizer"
android:tint="@*com.samsung.android.themestore:color/primary_color"
android:layout_marginStart="10.0dip"
android:layout_marginEnd="10.0dip"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@*com.samsung.android.themestore:id/btnPlay"
app:layout_constraintStart_toEndOf="@*com.samsung.android.themestore:id/tvSoundTitle"
app:layout_constraintTop_toTopOf="parent" />
<ImageButton
android:id="@*com.samsung.android.themestore:id/btnPlay"
android:background="@null"
android:focusable="true"
android:layout_width="26.0dip"
android:layout_height="26.0dip"
android:src="@*com.samsung.android.themestore:drawable/selector_bg_btn_play"
android:scaleType="fitXY"
android:minWidth="0.0dip"
android:minHeight="0.0dip"
android:soundEffectsEnabled="false"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="1.0"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
[prjkt.io] djdarkknight96:
Have you included attrs.xml in values? The attributes might need that to build. What errors so you get building?
[prjkt.io] osuki9x:
I have got no error, I though change auto-res to package name will reference all attr
[prjkt.io] djdarkknight96:
Only if you replace res-auto with package name and no crash. If no errors what's the issue how's it break?
[prjkt.io] osuki9x:
the overlay can still apply but the layout of the element that I theme change (break) , although I just only reference attr to the layout, haven't change anything else
[prjkt.io] osuki9x:
It does not work. I did add the attrs.xml file but the layout still broken. What should I do. This is the original layout.xml file.

Is it because of constraint layout?

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout android:layout_width="fill_parent" android:layout_height="@dimen/detail_sound_item_height"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView android:textAppearance="@style/font_style_roboto_regular" android:textSize="15.0dip" android:textColor="@color/common_text_color" android:ellipsize="end" android:id="@id/tvSoundTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/ivEqualizer" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" />
<ImageView android:id="@id/ivEqualizer" android:visibility="gone" android:layout_width="22.0dip" android:layout_height="16.0dip" android:src="@drawable/anim_sound_equalizer" android:tint="@color/primary_color" android:layout_marginStart="10.0dip" android:layout_marginEnd="10.0dip" app:layout_constrainedWidth="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/btnPlay" app:layout_constraintStart_toEndOf="@id/tvSoundTitle" app:layout_constraintTop_toTopOf="parent" />
<ImageButton android:id="@id/btnPlay" android:background="@null" android:focusable="true" android:layout_width="26.0dip" android:layout_height="26.0dip" android:src="@drawable/selector_bg_btn_play" android:scaleType="fitXY" android:minWidth="0.0dip" android:minHeight="0.0dip" android:soundEffectsEnabled="false" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
[prjkt.io] Moixo:
In the CM 13 theme engine you could change the application icons (of any) if one selected the icon pack. These installed icons could be seen in the list of applications (in configuration) and in "recent" this feature can put it in substratum?
[prjkt.io] boswelja:
This has been a work in progress for a while now
[prjkt.io] djdarkknight96:
Did you find it? I themed it but it changed once I inverted it in styles so I'm assuming it's tied to the parent going to [MENTION=5711379]ANDROID[/MENTION]:styles/
[prjkt.io] vykintazo:
Yes, i finally found it. It was SecondaryColor (for icon) and textColor (for text) atributes. They were missing so I added them in styles under calculator theme.
[prjkt.io] djdarkknight96:
Awesome sorry I was so late.
[prjkt.io] Shrey14:
Does this theming work with Samsung?

I have Samsung s6 edge g925I
[prjkt.io] Char_G:
This is not the correct thread for that question, and the answer is no. You would need a custom OMS ROM.
[prjkt.io] Shrey14:
I wasn't aware of that.

Thank you. :)
[prjkt.io] Char_G:
You're very welcome :)
[prjkt.io] RobotPhone:
In the overlay selection, what are the differences between: enable, build and enable, build and update?
[prjkt.io] Badger50:
Enable will execute an overlay you already have installed.

Build and enable will construct the designated overlay, and then apply it.

Build and update will update/rebuild an already existing, or new overlay, but not apply it. :good:
[prjkt.io] RobotPhone:
Do I have this right?

- A downloaded theme overlay contains instructions on how to take a specific app apk and 'build' it as another apk that's themed.

- 'Enable' requires that an overlay is already built (as opposed to installed)

- 'Build and enable' will inherently 'update' the previous overlay build

I should rebuild/update the overlay when:

- a green 'update' banner appears under the overlay I'm interested in

- after modifying overlay options ie. colors

- when the overlay isn't acting right

Thanks,

Robot
[prjkt.io] Kuganeswaraan:
You can use substratum to theme only apps! Better than nothing at all:)

The System UI can be themed with Samsung Themes. So it isn't that bad.
[prjkt.io] Primokorn:
What do you mean? Substratum also works on system components (as long as your ROM fully supports OMS).
[prjkt.io] Kuganeswaraan:
We were talking about Touchwiz:mad:
[prjkt.io] fndpena:
Guys, I'm running DP3 and magisk on my nexus 6p.

Does substratum overlays trigger safetynet?
[prjkt.io] djdarkknight96:
No it shouldn't
[prjkt.io] Xxk1ll3rxX:
Is it possible to change the status bar icon colours with substratum (on S8)
[prjkt.io] nathanchance:
Are you asking as a themer or user? If as a user, please go to the Samsung thread: https://xdaforums.com/apps/substratum/7-0-substratum-sex-tw-beta-t3620796
[prjkt.io] Xxk1ll3rxX:
Yeah I mean a theme in substratum to change the status bar icon colours
[prjkt.io] GAURAV THAKKAR:
It's hardcoded Java the thing all of us here are tired of
[prjkt.io] osuki9x:
I know hard code, but how hard code break the layout. I didn't change anything in the layout or color, it is original layout with reference to the attr :confused:
[prjkt.io] djdarkknight96:
Now I see what you mean. Nah there are some limitations on layout attributes not being used correctly. It's an aapt issue nothing we can do about it.
[prjkt.io] SXUsr:
Hi all, quick question. Why doesn't substratum find certain resources despite the fact they are clearly there? For example...

The unmodified line in my xml is...

android:background="@color/conversation_list_prompt_background_color"

...which I assume works fine within the stock apk, but when I change it to...

android:background="@*com.google.android.apps.messaging:color/conversation_list_prompt_background_color"

...I'm getting the "no resource found that matches the given name" error. I've added the colour to the colors.xml but still get the same error. Any help or a point in the right direction much appreciated.
[prjkt.io] djdarkknight96:
Can't add resources, has to be in original app. They might have removed it. I'm not seeing in Google messages if that's what you are theming.
[prjkt.io] SXUsr:
FFS! Sometimes you just cant see the wood for the trees. I was using the decompiled apk extracted from my rom and not the updated apk. Thanks!
[prjkt.io] creeve4:
I am trying to create a simple substratum theme for my personal use. I would like to theme ic_sysbar_home_quick_step.xml, but I cannot figure out how to properly reference the color:

android:fillColor="?singleToneColor"

Can I get some help with this please?
[prjkt.io] djdarkknight96:
Oh you had to pick the one with the issues lol. Use ?colorControlNormal instead and add it to the style that's using singleToneColor so OMS will use it. Some reason the tone attributes are broken.
[prjkt.io] creeve4:
This works for the navbar icons, but now my statusbar icons (signal, wifi, and battery) are invisible.
[prjkt.io] djdarkknight96:
You have those in your theme?