yashsingh1/xdaforums huggingface dataset:
[prjkt.io] fhem:
OMS/ROM Dev Help/Direction

[MENTION=3605033]nicholaschum[/MENTION] If my post is too far OT I will gladly take down and start a new thread.

I have been trying to test oms/subtratum with my ROM. I made all the substratum resource commits and also pulled in masquerade to my build dir.

First try ---> The rom builds fine but when flashed it bootloops --- finishes optimizing apps --> tries to start ---> reboots and starts all over.

Second try -->Took masquerade out of the picture --> Same result

I have read thru the G+ Layers Development and BitSykoDevelopment posts and also browsed many devs' repos on GitHub --- but I am stuck.

I know I am missing something but my 70 year old brain can't figure it out!!!! :confused::(

It sounds like I may be missing some layer 4 commits but not sure???

Is there a collection of layer commits/patches that are required in addition to the substratum resource commits? From this post, SykoPompos states, "Substratum builds on top of layers foundation so make sure you have your layers commits up to date before applying the rest." , which sounds like more is needed. I have been trying to follow the evolution of layer commits from the beginning but I am lost at this point. LOL

Here is my oms test manifest.

I am only looking for guidance/direction. This is my one of the retirement hobbies that I truly enjoy.

Thanks in advance for the help.
[prjkt.io] nicholaschum:
Layers4 commits are basically just ensuring that the system has all the commits necessary for exposing colors and stuff. Without these, your device should still boot up.

Substratum commits mainly from the GitHub linked (TeamSubstratumResources) are to merge the OMS system into the ROM. Ensure you have ALL commits with OMS at the start of their name, e.g. here:

https://github.com/TeamSubstratumRe...eworks_base/commits/marshmallow-dr1.6-release

Without several of these OMS commits, your device should still boot up, and I haven't heard recently about any device failing to boot up even without the OMS commits completely added into builds. It could be something completely different
[prjkt.io] nicholaschum:
v135 (edit:140) release pushed!

Changelog:

HomeFragment: Fix incorrect path checking for legacy
InformationActivity: Properly fix the missing overlays tab
Revert "InformationActivity: Do not always add an overlays list"
InformationActivity: Do not always add an overlays list
QuickApply: Apply SystemUI filter to quick apply
OverlaysList: Move SystemUI filter to an earlier stage
OverlaysList: Permit duplicate package names when buffering list
OverlaysList: Fix updating enabled overlays not updating
Themes: Expose BootAnimation tab background
LegacyMode: Precedence listing for Legacy folder was not applied
Update FAQ @nathanchance
OverlaysList: Split out SystemUI StatusBar to be overlayable
Expose priorities drag handle color
MainActivity: Handle configuration changes while rotating device
SettingsFragment: Hide SystemUI recreate unless ROM supports it (ro.substratum.recreate = true)
References: Move default config method to Reference class
SettingsFragment: Fix app icon switch logic
LegacyMode: Change to Hard Reboot + Add filter for IA
InformationTabsAdapter: Reorganize the tab sorting filters
OverlaysAdapter: Restore functionality for custom types on legacy
SoundPackager: Remove proper directory when clearing
InformationTabsAdapter: Add checks for package to return tabs
SubstratumBuilder: Fix clause for detection of overlays_legacy
SubstratumBuilder: Check if overlays_legacy exists, have fallback
SubstratumUI: Consolidate a few functions + update documents
References: Move grabAppIcon to Reference class
SubstratumUI: Do a bit more clean up + remove RestoreActivity
References: Move isPackageInstalled to Reference class
References: Update ProjectWideClasses to a more universal name
SubstratumUI: Do some clean up and exposing of static variables
OverlaysList: Reinforce integrity of directory dividers
SoundsHandler: Expose String Array of allowed Sounds
SoundsHandler: Remove warning dialog if theme has no ringtone
SoundsHandler: Enforce permissions on folder /data/system/theme
SettingsFragment: Invert toast for hiding app
LegacyMode: Finalize features
LegacyMode: Allow trigger to reset substratum folder
TroubleshootingFragment: Update from @nathanchance
LegacyMode: Revive Layers functionality based on API v24
SoundsHandler: Properly fix Sounds reset card
ReadOverlays: Shift root commands to util class
Legacy: Initial commit for Substratum Legacy (Non Functional)
[prjkt.io] nicholaschum:
I'm now seeing to working with Theme Ready peeps to see if we can integrate this fix as well.

https://plus.google.com/u/0/+NicholasChumCDT/posts/NmGnYVPyCSQ
[prjkt.io] nicholaschum:
Let's push for open source!

https://github.com/TeamSubstratum/substratum

SubstratumUI: Handle crashes when activities not found
Revert "Revert "SubstratumUI: AAPT -> AOPT (TESTING)""
OverlaysList: When null selected, disable is_active on toast prompt
ZTZip: Revert precompiled binary due to force closes
MaterialSheetFab: Precompiled causes too many issues, revert!
SettingsFragment: Subs/Masq option can now open GitHub
Let's keep the libraries all organized in one centralized folder!
218 update
Refactor and optimize after cherry-pick
AdvanceManager: Add progress bar
ManageFragment: Remove pointer key after removal
Gradle plugin update
Substratum: Pre-compile 80% of all dependencies for NDK
Speed up all fragments by reducing duplicate code
FirebaseNotifications: Get ready for open source
Refactor and optimize after cherry pick
SoundsAdapter: Don't include file extensions
Change my picture :P
SoundPackager: Fix weird behavior of sounds preview
AntiPiracy: Hide behind your mask, milady!
AntiPiracy: Officially divorce AYS and ITAM filters
TroubleshootingFragment: Cards should have proper margins
TeamFragment: Initialize @RajaMu and @iskandar1023
Refactor and optimize cherry pick
Remove bootanimation, fonts and sounds after uninstall theme
[prjkt.io] igloohed73:
Ran into a problem recently that I managed to iron myself. If this has been mentioned I apologize as I could have missed it although i do try to follow along & I did search.

Anyway I recently updated my PN ROM & could not get any themes to compile. After some aggravation & poking around I realized that masquerade had lost its permissions & was not asking to allow. Due to the 6.0.... bug that won't let the user toggle their permissions I booted into "safe mode" toggled the permission then rebooted & all was well.

Maybe this will help someone else with the same issue.
[prjkt.io] Pkt_Lnt:
The "bug" you mention is a security feature that prevents tapjacking from rogue apps. Turn off any everlays like Lux and it works fine.
[prjkt.io] igloohed73:
I don't have lux or any other overlays. Trust me I've been down that road & nearly went insane. The easiest way for me & quite a few other people to toggle our permissions is to boot into safe mode.
[prjkt.io] XmechaniX:
Hi, I'm unable to get substratum to work on Exodus ROM. I dont know if this is a ROM or substratum issue. But when I try to activate a layer theme it hangs at "Processing overlay for "Android System" forever. Any fix for this? Thank you
[prjkt.io] sleakerz:
Hello, i'm on the Oneplus 2 ( Exodus 6.0.1 + root + xposed)

I had Layers Manager before, until he gets deprecated,so i wanted to install Substratrum.

But : after the tips of the application, i have a black screen then the application is not responding, i don't know why.

I tried to uninstall/install, i tried to clear cache too.

I don't know what to do...

Any ideas ?

Thanks
[prjkt.io] JaylanPHNX:
From my Tab Pro 8.4
[prjkt.io] sleakerz:
How can i get the logs ?
[prjkt.io] dragos281993:
Download "Syslog" from the Play Store. It lets you take what type of log you want. It even has a "live logcat" option to track everything in real time.

PS: "Main log" means logcat.
[prjkt.io] sleakerz:
I tried to clear dalvik cache, and it worked, from the recovery :) I also reinstalled supersu (lastest version) and xposed !
[prjkt.io] JaylanPHNX:
I have an idea for a feature, though I don't know how easy/hard it would be to implement. It would be cool to get the same sort of notification prompt you get when a theme updates for when you install a new app that is supported by one of your installed themes. For example, if Spectrum themes Google Opinion Rewards, but you didn't have that installed when you set up your theme, when you later install that app, Substratum notifies you that "Spectrum supports your new app, would you like to theme it?"

From my Tab Pro 8.4
[prjkt.io] harpin14789:
I don't know if this was asked before but will substratum work on stock Nougat with root, if not that, will layers? Just got the OTA, just want to know before I update.
[prjkt.io] skiely666:
I have experienced waiting a long long time for the superSU dialogue box to appear after a fresh install or data clear of the substratum app, sometimes 2to3 mins getting two close/wait boxes & waiting until superSU pops up. Give it a few minutes see if superSU pops up? I hope it works for you..

---------- Post added at 04:43 PM ---------- Previous post was at 04:32 PM ----------

Working here on Nougat..
[prjkt.io] harpin14789:
That's good news to hear. :svetius:
[prjkt.io] zdrouse:
I'm getting "compiled but with errors" issue on substratum themes causing them not to apply. I'm using the latest Chroma ROM for Nexus 6 which claims to have substratum support. What is interesting is that yesterday I updated to this latest one but the version of Chroma that I was using before had been working just fine with substratum themes and was built by zephiK back in May.
[prjkt.io] sykopompos:
It would be harder to implement then it sounds though it would be a neat feature if possible to implement

Of course it does just like layers worked on mm stock.

Legacy just like layers is based on rro which is part of aosp.
[prjkt.io] tb110188:
Is possible to use themes for Layers on Substratum???

I want to know iif it is possible and what i need to do...
[prjkt.io] nathanchance:
No, a theme for Layers must be updated for Substratum to use it.
[prjkt.io] JaylanPHNX:
I thought as much. Keeping track of every app/package supported by every installed theme, then checking that against every installed app seems a bit daunting.

From my Tab Pro 8.4
[prjkt.io] Pariah24:
Now it isn't doing it anymore...all I know is they were wiped out the first time I rebooted after installing the theme, and I wasn't tinkering with anything else as far as I recall.
[prjkt.io] shaggyskunk:
Well you may want to get in the practice of backing up your calls and sms - I use SMS & Call Backup and send it to my Google Drive account ??
[prjkt.io] Pariah24:
Regardless of having a backup or not it's disturbing behavior... I don't even get how it's possible considering the theme just overlays the SMS app while the texts themselves are stored in a database in a completely different location.
[prjkt.io] shaggyskunk:
Yeah I can't see how it's theme related - And I've never heard of it happening to anyone else... It could have been a system glitch and it was just a coincidence that you applied a theme & rebooted? ?
[prjkt.io] Max Frost:
QS Headers

Hi , this is not an issue but just a couple of questions . I love substratum and really appreciate the developers for their hard work in bringing it to us .

Question 1 ) I've been searching for a way to enable QS Headers . There are several qs header packs on the play store but they never seem to show up in substratum when I install a pack . Is this a feature that has died and went away or is there a special commit that needs to be applied to the rom ?

Question 2 ) I've searched hi and low for a way to have double columns in settings like Validus MM had . In fact both my questions are related to the header and double columns in Validus MM . I really like both of those features and wonder if it's possible to get either or both of these features applied in Nougat . Thanks
[prjkt.io] Badger50:
If I'm not mistaken, your system has to support headers, which on stock isn't going to happen. Your probably going to have to use a custom rom that has that feature :cool:
[prjkt.io] Max Frost:
Thanks , I do run custom roms presently . Validus . I've tried several custom roms without success .

Same info above if anyone can shed some light on how to get headers to show up . Thanks
[prjkt.io] Badger50:
There should be a section in the Validus section under quick tile settings where you should be able to enable them. Should look something like this.....
[prjkt.io] AT49ers:
Hi there,

I recently purchase your app andromeda to use with substratum but I am unable to use it. I have enabled the USB debugging mode but when I run the desktop java client it tells me " please connect a device to continue". The connection status on my phone is "disconnected" My device is connected and I have made sure that my USB drivers from Samsung are correctly updated. On Samsung Galaxy s8 running android 8.0

Please advise me on how to proceed with this issue.
[prjkt.io] thewaywardgeek013:
Nokia 6 TA-1021

Android 8.0.0

Stock Rom

Build Number

00WW_5_22A_SP01

Substratum v953 using Andromeda Client

Logcat to follow

Just to report, having an issue with Theme Manger not showing overlays if I just did a Build and Update, even after restart, once I do a Build and Enable, then they show up on Theme Manager. This is done one a newly installed Substratum App, Andromeda Client, AopsUI Dark Theme, and //subtweaks//.
[prjkt.io] djdarkknight96:
I had same issue but it was my USB cable was from other device. Used data cable and it works flawless with my S8. You can double check connection with right click empty space holding shift in the Andromeda folder and select open cmd here. Then type ....adb devices... Should show device. If not something else is wrong.
[prjkt.io] theHURRICANE:
Just updated to oreo and purchased andromeda. Says it's connected but I get the following screen. Verizon S8+ stock.
[prjkt.io] AT49ers:
So I tried opening the PowerShell in the platform-tools folder and typing adb devices but I get this error instead:

adb : The term 'adb' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the

spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:1

+ adb devices

+ ~~~

+ CategoryInfo : ObjectNotFound: (adb:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

Suggestion [3,General]: The command adb was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\adb". See "get-help about_Command_Precedence" for more details.

So like you said something else must be wrong. Any idea what it could be? As you mentioned I'm not using the stock wire but the popular USB type C Anker cable on Amazon (I can't post direct links yet :( )

I thought that would be good enough for data. I don't have the original cable anymore so do I have to seek one out?

Thanks for your help so far.
[prjkt.io] djdarkknight96:
I'm thinning you have pc issues. Adb devices would just say nothing if not connected.

---------- Post added at 07:58 PM ---------- Previous post was at 07:55 PM ----------

If you click check status is it green?
[prjkt.io] theHURRICANE:
Yes status was green. I got problem solved, Just needed to update subs.
[prjkt.io] AT49ers:
Ughh. Could I have potentially installed the adb files incorrectly? If any of the devs are in here I'd appreciate the help.
[prjkt.io] KpChuck:
I'd say try .\adb devices
[prjkt.io] KpChuck:
You could try .\adb devices

Or run it in command prompt, I don't think it needs the whole .\ at the start then
[prjkt.io] djdarkknight96:
Samsung drivers are usually pretty easy. They actually care about their users using adb for their sync so you should be able to connect to see sdcard and confirm cable works. Also try in the andromeda folder to do the commands, just in case you might get a different result with adb devices.
[prjkt.io] AT49ers:
I ran it and got this:

PS E:\adb\platform-tools> .\adb devices

List of devices attached

adb server version (31) doesn't match this client (39); killing...

* daemon started successfully

9887fc354f4d51444d device

I have no idea what that means but the Andromeda java client is still not detecting anything.

---------- Post added at 08:27 PM ---------- Previous post was at 08:23 PM ----------

How do I do this? EDIT: If you mean that I can see my sdcard from my computer that is correct. I can find my sdcard in file explore by going to my phones files and it is right there.

Also, I think the cable works because I can send pictures and music from my computer to phone and vice versa.

And running the adb devices command in the Andromeda folder gives me the same error as from the top of the page.
[prjkt.io] djdarkknight96:
Good news, you have adb connected too but you say andromeda still not working? Can you post the error you get in andromeda?
[prjkt.io] AT49ers:
Good to hear at least the adb works. On the Andromeda client, I just get an error when I open it that says "Please connect a device before continuing!!" with a blank box to the right and a button that say retry. I'm going to reinstall the client and see if that helps.

EDIT: Reinstall leads to the same error.

Should I ditch the client and download the windows scripts?
[prjkt.io] KpChuck:
You need to download the scripts and run them to make Andromeda work
[prjkt.io] AT49ers:
haha I thought I had already done that but it seemed to fix the issue. I'm building the theme right now. Major thanks to the both of you for your help!!!!! Seriously couldn't have done it without you guys!! I'll probably come back and have issues in an hour when i mess something up again tho :p
[prjkt.io] chicato83:
Can I use sutratum on Doogee Mix Android 7.0?
[prjkt.io] Skull97:
Nope, unless you can find a custom ROM with OMS commits, though I doubt you can with a Chinese phone.
[prjkt.io] thewaywardgeek013:
Questions finally answered for Issues with Oreo and March Security Update! Not from me, but from a somewhat reliable place:

Since Google has prevented installation of unauthorized overlays in the March Security patch, you need to follow the following procedure to apply a theme:

>Build and enable all the overlays you need (this won't actually apply your overlays

>Reboot your device

>Go into Manager and select all the overlays you want to enable and from the FAB, select "Enable selected"

And you're done!

If you're using a custom ROM, contact your ROM devs and ask them to revert these commits so that Subs can revert to its original state:

> https://android.googlesource.com/platform/frameworks/base/+/7a722dcae9ac38887e4ae9d43ed22aea68ab828c

> https://android.googlesource.com/pl...gs/+/aeea544e07ca92fedb99e4600ed1dbdef4ffc445
[prjkt.io] rickysidhu_:
Hey, I apologize if this has already been asked and answered in the thread, but a quick keyword search didn't come up with an answer I'm looking for.

Basically, I backup my apps + their data with titanium backup, and I always clear cache and uninstall all overlays before doing so. I'm thinking maybe installed overlays on an app may cause issues upon restore.

Just curious if this assumption of mine is correct, or if what I'm doing prior to backing up is completely unnecessary?

Thanks in advance!
[prjkt.io] Badger50:
Your mostly good on your backups. No real need to clear cache. And yes, definitely uninstall or disable all substratum overlays before making a backup. I would also add that it's not a bad idea to disable screen lock security before making your backup. With all the quirks with twrp, a little prevention goes a long way :cool::good:
[prjkt.io] eisuness:
hello new android user here.

i rooted my new pixel 2 a week ago and i wanted to use substratum. i downloaded a couple of themes i liked but when i open substratum i just get a loading circle that spins forever. i am aware the march update breaks some parts of substratum but from what i know people are still able to access their themes. did i do something wrong?
[prjkt.io] djdarkknight96:
Make sure you have granted subs root permissions. If it's not granted uninstall subs reboot install then open. It should ask for permissions then
[prjkt.io] Badger50:
Couple things to try. Clear substratum app cache/data. If that doesn't help, then uninstall/reinstall substratum. Substratum isn't being hidden from magisk is it?
[prjkt.io] eisuness:
thanks guys i knew that something was wrong when it never asked me to grant root permissions.

i uninstalled magisk after using it thinking i didnt need it anymore. newbie mistake!
[prjkt.io] LuciferIII:
I want to report the same issue.

Exactly the same issues
[prjkt.io] axorazor:
I can not connect the phone to the PC. on the mobile andromeda it always says disconnected.

I have enabled debug mode. I have a mate 10 pro. what am I doing wrong?
[prjkt.io] djdarkknight96:
Using data cable? I had that issue, was charge only cable not data
[prjkt.io] ReZzA_No.1:
Substratum not working at all!

After compiling overlays they don't get installed.

And before I uninstall previous overlays if i would try to disable them , change any priority or apply other overlays even other things like soundpack and . . . it would crash with a report saying system reloded substratums recourses...

I had the v.953 (the same one which was fine a while ago) and I updated to 960 but didn't fix the issue.

I'm on RR rom

Android 7.1.2

Samsung device
[prjkt.io] ReZzA_No.1:
Didn't see that log size was exeeding the limit.
[prjkt.io] m7md1995:
Hello i have xperia xz device with oreo not rooted and iam facing a problem when i try to open adromeda it doesnot open or give me any thing dont know what is the problem i hope you help me and thanks in advance these are some pics of me
[prjkt.io] rahulroy.e1004:
No idea why my substratum got a yellow background..

Plz help
[prjkt.io] Skull97:
Either you are a pirate or you restored it from titanium backup. If it's the former, then uninstall "that" warez
[prjkt.io] shaggyskunk:
You should STOP trying to get paid apps for FREE! Stealing from Developers (and anyone else) is Wrong! ?
[prjkt.io] attitude12:
Custom colors

Hello, i don't know where else to ask and i searched google for over 1 hour, came out empty..

Everytime i declare a custom made color in a colors.xml in a random app then i use it on a color already declared, after i apply the theme, the app always crashes.

Now, i'm a noob when it comes to Substratum, played alot with CMTE back in the days, but this has got my head spinning.

I tried several apps (dialer,settings,file manager), always the same result.

My colors.xml looks like this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="dialer_theme_color"> [MENTION=403934]Color[/MENTION]/mycolors</color>
<color name="mycolors">#ffff0000</color>
</resources>

(Sorry about the code, this MENTION thing really ****s it up, got no idea how to get around it, the code is fine in the actual xml)

It only crashes if i set [MENTION=403934]Color[/MENTION]/mycolors. If i just change the original color, it's working fine.

Why can't i put my own colors in apps?

What am i doing wrong? (This worked fine in CMTE)

RR 5.8.5 Rom, Substratum version 953, Xioami Redmi 5 Plus (vince).
[prjkt.io] Spannaa:
Substratum isn't like CMTE - you can't add new resources, you have to work with what's already there.
[prjkt.io] attitude12:
Pff.. bummer. thanks for the reply.
[prjkt.io] djdarkknight96:
It's a plug-in app, open Substratum.