yashsingh1/xdaforums huggingface dataset:
[prjkt.io] shadowdevil:
Well what i am looking to theme is that,attached is the stock incoming call UI for pixel dialer and want to theme like in modified_pixel dialer..have to change the "swipe up to answer" and "swipe down to reject" with custom image..will it be possible ?
[prjkt.io] djdarkknight96:
It's possible yes, but you'll have to find the Drawable it's using and make it use stroke instead and make the fill transparent. Look in Drawable folder for the floating action button xml. Should be one with a mask inside. Use stroke in that could do the trick. I'm just going my memory though I'd have to actually try it to know for sure.
[prjkt.io] shadowdevil:
like below?

?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<selector>
<item android:state_checked="true" android:drawable="@drawable/incall_button_background_checked" />
<item android:drawable="@drawable/incall_button_background_unchecked" />
</selector>
</item>
<item>
<ripple android:color="@color/incall_button_ripple">
<item android:gravity="center" android:id="@android:id/mask">
<shape android:shape="oval">
<solid android:color="@android:color/white" />
</shape>
</item>
</ripple>
</item>
<item>
<bitmap android:gravity="end" android:src="@drawable/quantum_ic_arrow_drop_down_white_18" />
</item>
</layer-list>
[prjkt.io] djdarkknight96:
No those are the select buttons like speaker phone, mute etc. Floating action button xml I think is the name
[prjkt.io] shadowdevil:
In older versions floating_action_button.xml file is there in the drawable folder but in newer versions its not there..:rolleyes:
[prjkt.io] djdarkknight96:
Ah hmm. Look in styles to see what's being used. Search floating
[prjkt.io] shadowdevil:
In res/values/styles.xml?
[prjkt.io] powerasp:
Can anyone tell me what i am doing wrong as the system background is getting themed. I am using flux substratum theme, its updated but dunno why i am getting this problem. Can anyone help
[prjkt.io] djdarkknight96:
Email the developer, this thread isn't for that. It's for themers to get help not users.
[prjkt.io] powerasp:
Oh sorry, i am new in the substratum forum so didnt know much about these things
[prjkt.io] djdarkknight96:
All good, there's a few links in the side menu of subs to get community support as well. Telegram is very active with helping. Try those...good luck!

DJ
[prjkt.io] SXUsr:
What should...

android:textAppearance="?textAppearanceLarge"

...look like? I've tried adding @*android: in place of ? but it gives errors and removing the line reduces the size of the text.

EDIT: Sussed it, ?android:.
[prjkt.io] djdarkknight96:
Those are variable attributes needs to stay variable like you found out. Colors can be changed but be careful in framework. Many apps use framework for their resources.
[prjkt.io] SXUsr:
Having been through every page of this thread I know you can't add resources but I can't seem to figure this out and OREO code has kind of presented a new problem.

Using apktool before I was able to make this edit, add my semc_bg_dark.png to drawable-xhdpi and that image would be my default background within system apks...

<style name="Theme.DeviceDefault" parent="@style/Theme.Material">
<item name="windowBackground">@drawable/semc_bg_dark</item>
</style>

...but in OREO (in my Sony ROM) Theme.DeviceDefault has gone and I can't figure out 1, what colour is ?colorBackground referring to as there is no clear reference for it, and 2, what method would you suggest I could use to get my semc_bg_dark.png in use?...

<style name="Theme.Material" parent="@style/Theme">
<item name="windowBackground">?colorBackground</item>
</style>

Thanks.
[prjkt.io] djdarkknight96:
Use @*android:drawable/semc_bg_dark on windowBackground

And

@*android:style/
[prjkt.io] SXUsr:
I just keep getting "no resource found that matches the given name" errors, tried all sorts to no avail, I can't seem to make the link.
[prjkt.io] djdarkknight96:
Upload the edited xml and the stock xml from the app so I can see please
[prjkt.io] SXUsr:
Undone the edits now but will have another go later, but this is the issue. Adding the windowBackground line changes the background in my package installer from the generic light grey to the dark colour I've added to my framework colors.xml...

<style name="Settings" parent="@*android:style/Theme.DeviceDefaultBase">
<item name="android:windowBackground">@*android:color/material_blue_grey_950</item>
<item name="android:textColorPrimaryInverse">@android:color/white</item>

But if I add the following to my framework-res styles.xml, and add my semc_bg_dark to my drawable-xhdpi-v4 folder I get the no resource error...

<style name="Theme.Material" parent="@*android:style/Theme">
<item name="android:windowBackground">@*android:drawable/semc_bg_dark</item>
</style>

...I've tried to create an xml too named semc_bg_dark which I place in the drawable folder...

<?xml version="1.0" encoding="utf-8"?>
<bitmap android:src="@*android:drawable/semc_bg_dark"
xmlns:android="http://schemas.android.com/apk/res/android" />

...I've tried changing bitmap to image too.
[prjkt.io] djdarkknight96:
You can't add resources I think your semc Drawable needs to be renamed. You'll need to use something in framework like background_holo_dark.png and place it in drawable folder in place of the xml and use it's name in the style for window background.
[prjkt.io] SXUsr:
Finally!! That's the little nugget I was looking for, thanks!!
[prjkt.io] SXUsr:
EDIT: Fixed my 0 supported devices on Google Play, but any help with this would be appreciated, where/how am I supposed to fill in "internal val APK_SIGNATURE_PRODUCTION = """ in the ThemerConstants.kt when Substratum hasn't produced one?
[prjkt.io] djdarkknight96:
Look at the template instructions on those
[prjkt.io] SXUsr:
I had already but couldn't get it to work, just seen the instructions/guide has been updated so will give it another go. In regards to the updated template am I best to essentially start from scratch and copy my assets over or can it be applied to an existing project?
[prjkt.io] djdarkknight96:
This is where I lack knowledge of AS I used Eclipse for years. I merge the changes myself but I haven't updated to new template because my pc didn't like Canary builds. I'm still on 7.06 template. There's a way to github sync but I haven't researched how yet.
[prjkt.io] xob0t:
Hello everyone.

I read through this thread and saw a couple mentions of "inversion". Can somebody explain what this is or how to use it?

Btw huge thanks for everyobe who keep answering to all those questions here! :good:
[prjkt.io] djdarkknight96:
Inversion? Not sure I understand either. Quote the past you seen.
[prjkt.io] xob0t:
Haha, it actually was your message.:laugh:

So i guess you just meant manually changing hex codes...

Thanks for the reply:D
[prjkt.io] Bubba:
By inverted he means that he (if it was white) changed it (to black). It's kinda his thing. :p
[prjkt.io] djdarkknight96:
Well yes and no inverting is a process not just a few hex. Many many many things needs to change depending on the apps. Styles, colors, Images, layouts, arrays......many things can be needed to invert an app.
[prjkt.io] SXUsr:
Can I assume "000" refers to both "[1]" so both need to be changed to the correct number?

* Insert your base 64 license key obtained from Play Store in the quotations below!
* ATTENTION: On line 23, do you see the "000"? You MUST count the amount of characters of your key
* and input the proper number! This is so that you get your own specialized set of variables!
*/
JNIEXPORT jstring JNICALL
Java_substratum_theme_template_SubstratumLauncher_getBase64Key(JNIEnv *env) {
// TODO: This must be done!
char BASE_64_LICENSE_KEY[1] = "";
return (*env)->NewStringUTF(env, BASE_64_LICENSE_KEY);
}

/*
* APK Signature Production
*
* Insert your release APK's signature in the quotations below!
* All release production signature prefixes have the length of 28!
*/
JNIEXPORT jstring JNICALL
Java_substratum_theme_template_SubstratumLauncher_getAPKSignatureProduction(JNIEnv *env) {
char APK_SIGNATURE_PRODUCTION[1] = "";
return (*env)->NewStringUTF(env, APK_SIGNATURE_PRODUCTION);
[prjkt.io] punshkin:
Hi,

I'm trying to create a simple theme, changing some colors from an xml to black.

The theme installs, complies and applies just fine but the app crashes when i try to open it.

from the logcat:

i fixed this by just adding that missing file to the overlay (no idea why that error happened since the file is present in the resources, i just recreated the folder in the overlay, copied it there and it worked)

again, it installs, complies and applies just fine but the app crashes again when i try to open it.

from the logcat:

which is where I am stuck right now.

does anybody have an idea why these errors occur or how i can fix this one?

I am using a Samsung Galaxy S7 with the sassing add-on installed in case that makes a difference
[prjkt.io] SXUsr:
Where is the location of this log? Running a live log and launching the app gives me... 10-31 06:25:26.315 13325-13325/? D/SubstratumThemeReport: 'projekt.substratum.THEME' has been authorized to launch this theme. but users downloading from Google Play get licensing issues.
[prjkt.io] djdarkknight96:
Search that 0x7f public value in public.xml to see what it is.

---------- Post added at 09:32 AM ---------- Previous post was at 09:30 AM ----------

Android studio has a log system. Get it there or install matlog app from playstore
[prjkt.io] SXUsr:
I had done that and do have a key but just wanted to double check, but still getting licensing issues when enabling anti-piracy and just can't figure out why.

char APK_SIGNATURE_PRODUCTION[] = "[B]this where I put the 28 character key from the log[/B]"; // Signature string value from release key
char BASE_64_LICENSE_KEY[] = "[B]this where I put the 392 character key from the Play Console[/B]"; // Base64 license key from Google Play Console

Assuming those are the right places then I'm stumped as to why people downloading it from Google Play have licensing issues. I've played with different values etc but can't seem to fix it.
[prjkt.io] djdarkknight96:
Which template did you use? It was just updated so you might need to as well. I just barely updated from 7.0.6 so I'm not sure about that problem but I know it's an issue for some. Try the Themer Help telegram chat. There's a few subs devs in there to help with template issues.
[prjkt.io] SXUsr:
The last one and the newest, it's beyond frustrating now.
[prjkt.io] djdarkknight96:
Oh you're telling me, I have to upgrade my ram for AS 3.0 because it needs more to build now. So I have to remove 30 overlays to test apps and crap until my ram arrives. #ThemerLife lol
[prjkt.io] SXUsr:
Ouch, and yeah. One last question if I may, this line in SubstratumLauncher.kt...

@Suppress("ConstantConditionIf") // [B]This needs to be defined by the themer, so suppress![/B]
class SubstratumLauncher : Activity() {

private var substratumIntentData = "projekt.substratum.THEME"
private var getKeysIntent = "projekt.substratum.GET_KEYS"
private var receiveKeysIntent = "projekt.substratum.RECEIVE_KEYS"
private var themeReadyScript = "/system/addon.d/80-ThemeReady.sh"
private var tag = "SubstratumThemeReport"
[B]private var piracyChecker: PiracyChecker? = null[/B]

private fun calibrateSystem(certified: Boolean, modeLaunch: String?) {
if (getAPStatus() && !BuildConfig.DEBUG) {
startAntiPiracyCheck(certified, modeLaunch)
} else {
quitSelf(certified, modeLaunch)
}
}

private fun startAntiPiracyCheck(certified: Boolean, modeLaunch: String?) {
if (piracyChecker != null) {
piracyChecker!!.start()

...should I be defining something in the code here?
[prjkt.io] djdarkknight96:
Just replace the template package name with yours. Nothing else I can see.
[prjkt.io] htcthd1:
Hi!

I'm trying to build my first substratum theme (in the past I've created few CMTE for my personal use) and I would like to ask how and if it is possible to use "common" directory as in CMTE?

I've tried and unfortunately "common" is detected as "LG framework layer" and not as the location for theme global values/resources.

Any help or clarification would be very helpful so thanks in advance!
[prjkt.io] Spannaa:
No, you can't use a common folder in substratum themes. You can't add new resources either.

Luckily, there are loads of unused resources in framework-res which can be edited and used instead.
[prjkt.io] djdarkknight96:
Well technically you can now. They just added type3-common so type3 can share resources.
[prjkt.io] Spannaa:
Don't you need to be using type3 for each app overlay to use this?

I thought the type3-common was just a base that other type3 variants used instead of the res folder.

Subs seems to get more complicated with every template update - I bet the playstore comments are fun to read ;)
[prjkt.io] djdarkknight96:
Yes exactly, I just started using it to support Oreo and it works great.
[prjkt.io] MarkTejo:
There is no ADM in latest Studio [MENTION=3605033]nicholaschum[/MENTION] [MENTION=6842057]nathanchance[/MENTION]
[prjkt.io] djdarkknight96:
It's in the sdk under tools
[prjkt.io] Luca0612:
I have a question about theming with Andromeda on my fully Stock and Bootloader locked OnePlus 3:

If I apply a Theme and it completely Crashes my Phone (SystemUI force Close and maybe Bootloops?!), is there any way to remove the Theme except factory reset? Can I Flash the rescue ZIP in Stock Oneplus Recovery without unlocking bootloader?

Sorry for my (Bad? :D) english, im from germany
[prjkt.io] djdarkknight96:
Go to the support channel in telegram, this thread is for Themers questions my friend.
[prjkt.io] CAE_:
Some themes like MultiUI (com.ngocgiap.substratum.multios) won't show in substratum menu but still can be opened and compiled by clicking notifications. Is that an unspported version?
[prjkt.io] djdarkknight96:
Please go to the support channel of telegram. This is for themers to get help not users.
[prjkt.io] GokuSSJgod:
What other than just theming can be accomplished?

I have a Verizon Pixel 2 XL (which is locked down more than Fort Knox). I just found with a mod called clock-tweaks-for-o-v5 I'm able to move the clock to the center on my status bar! Anything else I can achieve since I won't be about to flash ROMs or root?

I appreciate you making this thread!
[prjkt.io] djdarkknight96:
Please read comment right above yours and welcome to subs!
[prjkt.io] connojmatthews:
Samsung s8 oreo

How do you get substratum working on a samsung s8 running the oreo beta

The app itself refers me to andromeda?
[prjkt.io] GokuSSJgod:
Downloaded Andromeda on your pc
[prjkt.io] djdarkknight96:
Go to Substratum support on telegram. Links in side menu of Substratum app.
[prjkt.io] peoplesindian:
delete
[prjkt.io] htcthd1:
I'm encountering an issue with official substratum template and I would be really grateful if some could help me resolve problem described below:

After every "fresh" start (not modified in any way) with a copy of the template, Android Studio (version 3.0.1 - current stable, fully updated) is able to properly synchronize project with Gradle, but after just opening (still without any modification - not even package name changed) LoadingProcess.c an "Failed to get the compiler information for file (...)/template-kt-n/app/src/main/jni/LoadingProcess.c" error appears. After that every attempt to sync is failed, despite the cache invalidation and restarts. Also build process is failed every time.

I've tried to modify Android Studio config for SDK/NDK/Plugins with no success.

All system (Win7 32bit) variables are set correctly via path etc.

Once again - thanks for any help in advance!
[prjkt.io] DiamondJohn:
YouTube Theming?

Is there a reason why no-one appears to be theming YouTube?
[prjkt.io] Spannaa:
They are, but every time YouTube is updated something is changed which breaks it's overlay.
[prjkt.io] DiamondJohn:
Thats what I was thinking, but what made me question that thought was that my theming of the Play store has worked over a few updates to play. If anything, I would of thought that play would of been more sensitive, but obviously not. Thanks for confirming, and saving me the time of creating my own theme that fails on the next update ;).
[prjkt.io] htcthd1:
Answering to my own question (maybe someone will find it useful);

32bit systems are no longer fully supported by CMake as well as Android Studio, therefore glitches are impossible to sort out.

To be honest I'm asking myself how could I thought that so ancient hardware would be compatible with modern software of this kind.
[prjkt.io] djdarkknight96:
Look for better themes lol

Many do and with them adding dark mode soon many will add it.
[prjkt.io] DiamondJohn:
"Better" is objective. I have checked about 5 or 6 "big-name" themes, and none of them have themed YouTube. I also just want a simple dark theme, not anything too unique like in your screen shot. If that was my only choice, I'd probably personally stick with the standard light theme, or simply continue to use other youtube replacements.

What do you mean by "them adding dark mode"? Are there rumors of YouTube adding a "dark-mode"?:fingers-crossed:
[prjkt.io] zelendel:
Yes there are. They have already started rolling it out on the desktop to some testers. It looks great by the way.

Just use themed apks. There are a few floating around. Even one that blocks all ads and enables background playback without paying for red.
[prjkt.io] DiamondJohn:
Yeah baby, just switched to the dark theme for my desktop youtube (clearly gone out further than a few testers by now:)). Didnt find the theme switch in the android app. But I did find this web page https://www.gizbot.com/apps/news/youtube-for-android-to-get-dark-mode-soon-045797.html (which I havnt tried yet, but again appears desktop/web related:().

I already use Newpipe. Its probably more of a habit thing that I have left the YouTube Icon more readily clickable in my launcher. Anyway, getting a little off topic now :o so thats the last of my comments on this, in this thread. Thanks to all.
[prjkt.io] zelendel:
Glad it went out to more people. I don't keep up with youtube as I only really use it maybe once or twice a month.
[prjkt.io] djdarkknight96:
Why I have options. My theme has black bg's and stock icons options. Make it yours...Lol

Yes the Android app has the code to support dark mode switch. I got to remove files because of it. I'm very happy it's coming to mobile.
[prjkt.io] Phone_Guru:
Has anyone here had success in theming Gmail? Anything other than colors.xml makes the app crash for me, even images. All of my other overlays work great.
[prjkt.io] djdarkknight96:
Yep no issues here with theming witch subs, but apk might be another story bud.
[prjkt.io] Phone_Guru:
I can theme the apk easily, though there is an issue with the latest builds where overflow menu and top navigation bar crash the app. My issue is with subs. I want to theme a few xmls in drawable, drawable-anydpi-v21, a few things in styles and some images.
[prjkt.io] djdarkknight96:
Hmm well not sure look at my screenshot. You mean that? If not show me plz.

Installed Gmail version: 7.11.5.177402951.release
[prjkt.io] Phone_Guru:
Yes
[prjkt.io] djdarkknight96:
Same version, just looked at log. I haven't done much but add new stuff. Compose styles and crap for OREO.

See if you have changed to the new parents in styles. I remember some changed. Might be why
[prjkt.io] funek1:
Hello, will themes that says they work on Oreo, gonna work for 8.1?

I would like to theme only dialer, because stock one is so ugly
[prjkt.io] djdarkknight96:
I wouldn't count on it but you could direct these questions to the issue thread. This is for Themer to get help not users. But afaik 8.1 is different so if you might have issues might wanna wait till Themer supports as I know many things changed.
[prjkt.io] djdarkknight96:
Very simple just add the full attrs.xml so the attribute ?primaryColor is detected as internal.
[prjkt.io] rahulk096:
Why I can't change status bar icon on any theme?? I m using cardinal ROM OREO 8.0 on my redmi note 4 and also can't change font from substratum theme engine..:crying:
[prjkt.io] djdarkknight96:
You posted in correct place in other thread. Please don't post here user questions, this is for Themers.
[prjkt.io] adarshm4you:
Recommend me some $.99 or below dark themes for substratum.I am using rr5.8.3 os with 7.1.2 rom.Tried some.But failed to get overlay on effect.It is only applying successfully,no effect on phone.May be the themes are unsupported.:confused:
[prjkt.io] DiamondJohn:
Read the post directly before yours!

https://xdaforums.com/apps/substratum/projekt-substratum-t3423623
[prjkt.io] LeeTG3:
Greyce theme
[prjkt.io] rohan_asthana:
Can we replace a color with a gradient in theming non system apps in Substratum? I would really love to see the gradient background in Instagram:angel::angel:
[prjkt.io] djdarkknight96:
Normally yes but Instagram I'm not sure as I didn't theme it because of so much hard code but normally yes gradients on window background is possible
[prjkt.io] rohan_asthana:
How? Changing colors.xml can only change colors I guess? I tried to replace a color with gradient in drawable but an error popped up
[prjkt.io] djdarkknight96:
Color folder for gradient colors xml's
[prjkt.io] rohan_asthana:
Can u please tell me the exact name of that folder and xml
[prjkt.io] Spannaa:
Use an existing colour for the xml file name and put it in the /res/color folder

For example, you could replace

<color name="background_holo_dark">#ff000000</color> in res/values/colors.xml

with a new xml

res/color/background_holo_dark.xml
[prjkt.io] djdarkknight96:
This!
[prjkt.io] f.costello:
Great job devs and themers!! Merry Christmas and happy new year!! Can't wait for the next clear themes to roll out!!
[prjkt.io] Chickenbone20:
Scheduled Overlays?

Is it possible to schedule a task that enables/disables a overlay at a certain time. For example I have a dark overlay for snapchat, I want to set it around 8 PM and turn off around 7 AM. Thanks in advance.
[prjkt.io] orage222:
Hello,

Is substratum / andromeda / cyanogenmod supported on EMUI 5.0 / EMUI 6.0 (Oreo) on a rooted Huawei P10?

Also, are all substratum themes compatible or do I need to find specific EMUI compatible theme?

Thanks!
[prjkt.io] djdarkknight96:
Guys this thread is for new themers to ask questions please go here https://xdaforums.com/apps/substratum/projekt-substratum-t3423623/page364 or theme devs with theme questions.

Thanks guys

DJ
[prjkt.io] luetkmeyer:
Hi everyone.

Im new in substratum. New in Adroid 7.1 too.

I would to know if exist a method to make the statusbar always black color. Any ideia?
[prjkt.io] djdarkknight96:
You're making a theme?
[prjkt.io] luetkmeyer:
No.

Thank for the answer. Im looking for a way to disable colored bar (or translucent bar). Need only black (status bar only).
[prjkt.io] djdarkknight96:
Well this thread is for themers to ask questions you can go to the telegram support channel for non themer questions.