yashsingh1/xdaforums huggingface dataset:
[prjkt.io] johnholley123:
I'm using the aospui black theme and applying it to any app after the latest update causes substratum to crash. Anything I can do it is it the fault of the theme? I will paste the stacktrace below.

Build version: nine hundred fifty

Device: ONEPLUS A3000 (OnePlus3T) [OnePlus/OnePlus3/OnePlus3T:8.0.0/OPR6.170623.013/10250816:user/release-keys]

ROM: 8.1.0 - Dirty Unicorns

Theme system: OMS (root)

Stack trace:

java.lang.RuntimeException: An error occurred while executing doInBackground()

at android.os.AsyncTask$3.done(AsyncTask.java:353)

at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)

at java.util.concurrent.FutureTask.setException(FutureTask.java:252)

at java.util.concurrent.FutureTask.run(FutureTask.java:271)

at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)

at java.lang.Thread.run(Thread.java:764)

Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

at java.util.ArrayList.get(ArrayList.java:437)

at projekt.substratum.common.platform.ThemeManager.disableOverlay(ThemeManager.java:235)

at projekt.substratum.tabs.OverlaysManager$finishUpdateFunction.doInBackground(OverlaysManager.java:1310)

at projekt.substratum.tabs.OverlaysManager$finishUpdateFunction.doInBackground(OverlaysManager.java:1204)

at android.os.AsyncTask$2.call(AsyncTask.java:333)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

... 4 more

User actions:

2018-01-23 09:45:09: LauncherActivity created

2018-01-23 09:45:09: SplashScreenActivity created

2018-01-23 09:45:09: SplashScreenActivity resumed

2018-01-23 09:45:09: LauncherActivity destroyed

2018-01-23 09:45:09: SplashScreenActivity paused

2018-01-23 09:45:09: MainActivity created

2018-01-23 09:45:10: MainActivity resumed

2018-01-23 09:45:10: MainActivity paused

2018-01-23 09:45:10: SplashScreenActivity destroyed

2018-01-23 09:45:12: MainActivity resumed

2018-01-23 09:45:13: MainActivity paused

2018-01-23 09:45:13: ThemeLaunchActivity created

2018-01-23 09:45:13: ThemeLaunchActivity resumed

2018-01-23 09:45:13: ThemeLaunchActivity paused

2018-01-23 09:45:14: InformationActivity created

2018-01-23 09:45:15: InformationActivity resumed
[prjkt.io] Pkt_Lnt:
Since a logcat is likely the only way to solve this, here is how to get one while rebooting.

[Tutorial] How to Logcat
[prjkt.io] Spannaa:
I doubt it's the theme - I'm using aospui dark on DU 12/8.1.0 on my 6P with no issues
[prjkt.io] johnholley123:
Idk what the issue was, but I just solved it by uninstalling substratum and the theme and then reinstalling them and then it applied with no issue.
[prjkt.io] djdarkknight96:
There are no themes that support Nokia is why.
[prjkt.io] nathanchance:
This conversation ends now. It's been explained that they are working on it and your opinion has been noted by all. Either contribute via code or take your comments elsewhere, as you are clogging the thread.
[prjkt.io] sykopompos:
Actually the move to oms had nothing to do with anti-piracy at all and the function of it actually has nothing to do with oms at all.

The move to oms was about staying ahead of the curve with the way rro works being deprecated in the future with the new way that is note efficient, less resource intensive, less weight and real time.

The move to compile on device was so we could handle some of the updating system side when themes get abandoned along with a host of other features still to be implemented.

As far as the white flash, it is complicated to solve because it is the way that a service is bound to a application (the overlays are never truely part of the app), how bound services works, how change configuration and update configuration works and is tied tightly into the core of how android works so fixing it is a very very complex problem that requires patching in several places to not cause bugs, security issues or instability.

Now you can complain all day long about it and how much you like layers but I personally deprecated layers and it isn't coming back or being supported anymore since we moved on to development of substratum which is still early active development and everything will be fixed in due time.

When you start signing paychecks for the development time for everyone involved or contribute to development be happy that our "huge fail" is not something you paid for, we develop it for absolutely no monetary gain and do it because we want to because the time I have sank into the project along with others could have been used on something else.
[prjkt.io] Char_G:
Well said [MENTION=1050103]sykopompos[/MENTION]
[prjkt.io] darthvishous:
Hi. So I tried a few themes and all of them compiled but couldn't enable any of them. I'm using Tesla rom with masquerade ver. 14. Any thoughts on how can I enable the themes? Thanks.
[prjkt.io] ursupplyer:
Is this compatible with DP5? Can't get domination theme to work on my n6p.
[prjkt.io] Ja_som:
Substratum works on my N5X with DP5...
[prjkt.io] indian84:
It should work. You need to reboot after applying the theme. Go through Nathan's guide on 1st page. Also check Substratum G+ Community for more info..
[prjkt.io] ursupplyer:
I reboot but everything shows up the way it was.

---------- Post added at 07:58 AM ---------- Previous post was at 07:46 AM ----------

Can you tell me what you did besides installing theme manager, theme, compiling, rebooting...? Thanks in advance
[prjkt.io] Ja_som:
Nothing more, installed substratum, theme, applied theme and reboot...
[prjkt.io] czecx:
Sorry for the stupid question...but anybody can help me? How I can add the masquerade/oms support into stock rom? I use the stock rom 6.0.1 on my Nexus 5X.
[prjkt.io] Ritchiejoe:
I'm having issues with the gapps provided in the pure nexus thread, I'm constantly getting the error that I do not have theme ready gapps. Would anybody have a link to them?
[prjkt.io] oldman_58:
I believe root is required for this to work.
[prjkt.io] czecx:
I have root.
[prjkt.io] oldman_58:
You need a ROM with masquerade built in.

http://xdaforums.com/nexus-5x/development/rom-pure-nexus-layers-fi-wifi-calling-t3244601
[prjkt.io] czecx:
I dont like the custom Roms.. I need get support for the stock rom. Is that possible?
[prjkt.io] oldman_58:
Go and read the 1st Post.
[prjkt.io] aamadorj:
AFAIK, legacy mode is the only way you can use Substratum in a stock Nexus MM ROM. Substratum overlays behave like Layers overlays in this mode.

Read the OP, as recommended at the previous post, and follow these links for official information about Substratum Legacy and Substratum:

https://plus.google.com/+SykoPompos/posts/9MTuCdVafna

https://plus.google.com/u/0/+CharG/posts/NATVxZEHfge
[prjkt.io] sykopompos:
It is impossible to add oms to a stock ROM, it is massive massive changes in the core of how android works well beyond the reach of anything like magisk or xposed
[prjkt.io] Pkt_Lnt:
XDA labs search got it easily.

http://xdaforums.com/android/apps-games/apps-themeable-hangouts-layers-cmte-t3113192/page168
[prjkt.io] Ritchiejoe:
Yeah I found it then ran into more issues, apologies I should have amended my post
[prjkt.io] djdarkknight96:
Nope works in my theme just fine, you'll need a theme that adds YouTube.

Cough "SPRITE" Cough lol
[prjkt.io] djdarkknight96:
7.1.1 is not supported. Needs at least 7.1.2 to work with root.

---------- Post added at 06:10 PM ---------- Previous post was at 06:08 PM ----------

Yes, uninstalling subs overlay then rebuild should fix in the future. Happens when a lot changes.
[prjkt.io] johnholley123:
I had already tried that and it didn't work. The thing that worked was when I uninstalled the substratum app as well.
[prjkt.io] Cardim21:
I'm having an issue where in settings it says I'm not certified & also when opening a theme it shows a yellow screen. I tried uninstalling substratum & downloading it again.
[prjkt.io] Pkt_Lnt:
Do you have that warez app that triggers the yellow anti-pirating mode?
[prjkt.io] Badger50:
Uh..oh! I feel a flame session is imminent! ??
[prjkt.io] djdarkknight96:
Good to know, thx

---------- Post added at 09:28 PM ---------- Previous post was at 09:26 PM ----------
[prjkt.io] deloj:
Hi Djdarkknight,

Appreciate the follow up. I use the 'J Dark Ice' theme. It themes my apps except whatsapp and youtube. But its supposed to. And I've treid many themes but it wont theme youtube and whatsapp. Do you think I should run an error log? If so how would I proceed and which log app do you suggest i run?
[prjkt.io] djdarkknight96:
If you see the log char button pop-up then hit it then hit send so devs knows what to fix. Some devs don't use all the apps so hard to keep up. Emails are gold to us. Those logchar are the bible to updating. Lol
[prjkt.io] kChis25:
Hey! I am currently using the ozone theme for. My oneplus 5. Checked all then build and enable however I noticed that my battery bar is missing. Can anyone help me on this.
[prjkt.io] djdarkknight96:
Email theme dev, get best results.
[prjkt.io] piotrenx:
Anyone help?
[prjkt.io] malakriss:
For the past few weeks, I have been unable to apply any themes. It always results in the same error:

Theme Name:

Swift Black

Device:

Pixel XL (marlin) [google/marlin/marlin:8.1.0/OPM1.171019.012/4470837:user/release-keys] {, 2131757579 ()}

ROM:

8.1.0 - Unknown

Substratum Version:

953

Theme Version:

14.5-o

Target Package(s):

android (8.1.0)

com.google.android.gm (7.12.17.180932182.release)

com.android.vending (8.7.10-all [0] [PR] 181799446)

com.google.android.keep (4.1.011.06.40)

com.android.settings (8.1.0)

com.android.systemui (8.1.0)

com.google.android.youtube (13.01.53)

projekt.substratum (nine hundred fifty three)

Report:

» [android]: Zipalign has failed!

» [android]: Zipalign of "android" has failed.

» [com.google.android.gm]: Zipalign has failed!

» [com.google.android.gm]: Zipalign of "com.google.android.gm" has failed.

» [com.android.vending]: Zipalign has failed!

» [com.android.vending]: Zipalign of "com.android.vending" has failed.

» [com.google.android.keep]: Zipalign has failed!

» [com.google.android.keep]: Zipalign of "com.google.android.keep" has failed.

» [com.android.settings]: Zipalign has failed!

» [com.android.settings]: Zipalign of "com.android.settings" has failed.

» [com.android.systemui]: Zipalign has failed!

» [com.android.systemui]: Zipalign of "com.android.systemui" has failed.

» [com.google.android.youtube]: Zipalign has failed!

» [com.google.android.youtube]: Zipalign of "com.google.android.youtube" has failed.

» [projekt.substratum]: Zipalign has failed!

» [projekt.substratum]: Zipalign of "projekt.substratum" has failed.
[prjkt.io] Badger50:
Are you running substratum in root mode, or Andromeda??
[prjkt.io] malakriss:
It is currently running in root mode.
[prjkt.io] Badger50:
What if you try to only build 2-3 overlays at a time? Then, if they compile, just enable them in the manager.
[prjkt.io] malakriss:
I do not see an option to only build. However, selecting either "Build & Enable" or "Build & Update" results in the same zipalign error even with a single overlay selected.
[prjkt.io] Badger50:
Hmmmm. Well, if it were me, I'd clear the substratum app data, uninstall it, reboot, then install substratum again. Your using magisk 15.3 I assume as well?
[prjkt.io] malakriss:
Yes, I am using Magisk 15.3.

I cleared the app data and cache, uninstalled it, rebooted, and reinstalled as suggested. I am now able to successfully build and enable overlays again. Thanks so much for your help!
[prjkt.io] Badger50:
VICTORY!! Well done ??
[prjkt.io] Klen2:
Hi creators! Do you think it would be possible to somehow change layout of theme-properties choosing screen? As the pull-down menus open when you swipe over them, it is sometimes really hard to scroll in that screen. Please see video to get what I mean:

https://app.box.com/s/lmykojz91m0jjfbehmjpwkwdh3epkvdq
[prjkt.io] djdarkknight96:
Have you selected OS your using in the theme options at the top?

---------- Post added at 11:30 PM ---------- Previous post was at 11:26 PM ----------

Hmm yeah I seen this in my low dpi device, try the scroll bar in the right. The reason I think is because space on the element is too small on that dpi. If you scroll touching the app name it shouldn't pick up the spinner.
[prjkt.io] piotrenx:
Ok, my mistake
[prjkt.io] DiamondJohn:
I have 3 devices, all on ResurrectionRemix 7.1.2. An XT907, Nexus 5 and a Galaxy S4 gt-i9506, all running substratum (latest from Play), and all with the same single theme "Aosp Dark Material" (also from play store, free version)

On the first two devices it all works fine, on the last device (the S4), it mostly works, but fails on attempting to theme the play store, with the following errors.

https://www.hastebin.com/arovoceboz.sql

I have tried another theme, which also themes the play store, and it failed in a similar manner :( on the S4.

One of the big things I liked about this theme was that it themed the play store, but It would appear not to work on the S4 :crying:, different to the other two :confused:

Any ideas of what is going on? and how to resolve / fix?

The ROMs for this device (and the XT907 where it works) are my personal builds, so, if its something to be explicitly changed in the ROM, it may be a possibility
[prjkt.io] thgm21:
I see. So its Nokia who have to get a workaround, rather than substratum coming with a fix?
[prjkt.io] djdarkknight96:
Really depends, themes might need to add Nokia packages. I haven't looked so don't know if that's all that's needed.
[prjkt.io] andyschoe:
For me, solely clearing the app's data solved the zipalign related problems. :good:
[prjkt.io] mantavyask:
Using dotOS on Lenovo P2, rom supports OMS

Tried a lot of roms.. but can't apply on system UI...

Settings apps too can't get themed.

Please help what to do!

Don't know how to give logcat!
[prjkt.io] Pkt_Lnt:
XDA Deelopers Forums has you covered!

[Tutorial] How to Logcat
[prjkt.io] mantavyask:
System UI keeps stopping when qs tiles edit button pressed.. can't theme settings and system UI etc any normal bug solution?

I'm on dotOS on Lenovo P2. Tried so many themes all have this problem existed.
[prjkt.io] Pkt_Lnt:
https://xdaforums.com/showpost.php?p=75352070&postcount=3818
[prjkt.io] ReliantFever735:
Keeps crashing and can't rescue

I've been using substratum themes for like a month now but now i cant open the Substratum app.

(Also i cant open a conversation in the android messages app. not sure if its because a substratum them)

Device: Nexus 6P (not-rooted)

Please give me a fix without factory resetting or rooting my device :)

Stack trace:

Build version: nine hundred fifty three
Device: Nexus 6P (angler) [google/angler/angler:8.0.0/OPR5.170623.011/4397986:user/release-keys]
ROM: 8.0.0 - Unknown
Theme system: OMS (andromeda)

Stack trace:
java.lang.RuntimeException: Unable to start activity ComponentInfo{projekt.substratum/projekt.substratum.activities.launch.AppIntroActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
at android.support.v7.app.AppCompatDelegateImplV9.createSubDecor(AppCompatDelegateImplV9.java:354)
at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:323)
at android.support.v7.app.AppCompatDelegateImplV9.onPostCreate(AppCompatDelegateImplV9.java:170)
at android.support.v7.app.AppCompatActivity.onPostCreate(AppCompatActivity.java:97)
at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1284)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2799)
... 9 more

User actions:
2018-01-27 23:09:53: LauncherActivity created
2018-01-27 23:09:53: SplashScreenActivity created
2018-01-27 23:09:53: SplashScreenActivity resumed
2018-01-27 23:09:54: LauncherActivity destroyed
2018-01-27 23:10:09: SplashScreenActivity paused
2018-01-27 23:10:09: AppIntroActivity created

**EDIT: I Used ADB to disable

. But NOW when i go into substratum it says

.

BUT Andromeda says "connected"

*******EDIT 2: Okay fixed this issue. (i dont know how to delete posts :P)
[prjkt.io] levone1:
How did you fix? I have same issue, and it's strange because it was working fine for a time, then all of a sudden just crashing. I don't know what I did... I've already tried uninstalling substratum and all themes, and 'rescu me', and wiping cache and reinstalling, but now it will never open.

Edit - got it to work by running 'rescue me' after uninstalling everything.

Anyone have ideas about why this happens?
[prjkt.io] ReliantFever735:
Actually I updated both Andromeda and substratum and hat fixed the issue
[prjkt.io] androwide:
after installing substratum and andromeda, it worked fine on my Mi A1 device, running on OReo, but today it asked SuperSU permission (as i was using substratum without rooting my phone) and i clicked on deny, and after that it's behaving like hell,my phone app misbehaving , setting is not getting open, and many more bugs are coming in my way, can anyone help me out here...please......
[prjkt.io] Ja_som:
Do not quote the whole OP.

Try to flash substratum rescue zip.
[prjkt.io] androwide:
I have not installed twrp, then how can run rescue.zip?
[prjkt.io] Pkt_Lnt:
fastboot boot twrp.img

That will temporarily run TWRP so you can flash rescue zip, but it will NOT remove stock recovery.
[prjkt.io] jcmm11:
If I'm running stock, rooted, Oreo 8.1 on a Nexus 5x what do I need for Substratum? Will adding the theme interfacer to system/priv-app (copy taken from 7.1.2 ROM) be enough?
[prjkt.io] KpChuck:
You shouldn't need to do anything more, try it as is
[prjkt.io] jcmm11:
You saying I won't need the theme interfacer? (I'm still running a 7.1.2 ROM at the moment, just getting ready to upgrade.)

Thanks
[prjkt.io] KpChuck:
Yeah, Oreo had oms commits built in
[prjkt.io] djdarkknight96:
Just root and recovery. Super easy. I'm running stock 8.1 nexus 6p and it's working great.
[prjkt.io] levone1:
After latest update, my phone is now detected as legacy, (wasn't before - Xperia Xc 5321, stock 7.1.1). That's fine with me, but seems buggier, (certain overlays that worked before not working now, plus it's kind of annoying to have to reboot after everything I do, [didn't have to before]). Is there any way to force oms, or am I not missing anything by rolling back?
[prjkt.io] Ja_som:
Most 7.1 are legacy, unless they are custom with OMS implemented.
[prjkt.io] kjaved373:
Running into the exact same issue on latest Oreo Beta on S8. In addition to that, if I build an overlay, I have to reboot, build/enable/disable any overlay and then it will show up in the "Manager" tab. Otherwise the overlay built before reboot would just be missing from the tab.

Also, Substratum is showing the overlays as enabled (in green) but they are not actually themed after losing the applied overlays after reboot
[prjkt.io] levone1:
2 screenshots: Same rom, same android version, nothing changed except updating Substratum. Using V.931, overlays update on the fly without reboot and rarely fail. Using V.952, treated as legacy, and reboot required, and many fail. I also found that all overlays I apply (with V.952) end up stuck in /data/app, even if I uninstall, and nothing shows up in installed theme list. I ended up in a bootloop last time that couldn't be escaped. Substratum rescue had no affect, and deleting every file in recovery and wiping caches didn't fix. I had to restore backup... Anyway, like I said, it's fine with me to just roll back. Thanks
[prjkt.io] icke:
This issue is related to themes from samsung theme store.

Substratum overlays will stick even after rebooting my device as long as i do not enable any themes or wallpapers from samsung theme store. Try and u'll see. ;)
[prjkt.io] kjaved373:
Ahh great point! I wasn't using Samsung themes until recently. I really like the Material Dark theme for theming OS/Samsung elements and Substratum themes for user apps. Guess I'll have to find some substratum theme(s) for system apps/OS.
[prjkt.io] icke:
Swift minimal....just saying ;)
[prjkt.io] kjaved373:
I'll guess I'll jump for it. I got the other two themes from before but looks like it's not supporting Samsung anymore. Oh well, I'm fine with supporting the dev for a few bucks :)
[prjkt.io] FanboyStudios:
I'm running an official nougat build for my Samsung Galaxy S5 Sport (not the active or regular S5, rom development on this phone sucks and we could use more help), and I have the lastest substratum installed but running only in Legacy mode. When I theme the "Android System"; the power button when long pressed immediately reboots without prompting. Is there a way I can fix this while keeping the "Android System" themed? I've found this https://labs.xda-developers.com/store/app/com.kpchuck.subslegacy.softbootfix but I don't have any money nor do I know if it works.
[prjkt.io] Sokudoningyou:
» [org.mozilla.firefox]: ERROR: resource directory '/data/user/0/projekt.substratum/cache/SubstratumBuilder//res/' does not exist

» [org.mozilla.firefox]: Installation of "org.mozilla.firefox" has failed.

This is what I'm getting. I tend to uninstall then reinstall when updates come through on my theme. This time, even after I uninstalled the old overlay, I had issues; it would compile fine, but I literally could not "accept" to install. So I finally uninstalled Substratum entirely and reinstalled, and even did stop with the Samsung plugin, and now I'm getting this error even though I accepted the app being able to write to my memory when I reinstalled it. Not rooted yet, but how do I get it to work right again?
[prjkt.io] MSF Jarvis:
Select android version on the top before applying your theme.
[prjkt.io] Sokudoningyou:
.... I'm an idiot. Thank you.

But now I have the original problem: it compiles just fine, but when it tells me to install, I can't select "Install," only "cancel" and everything else on the screen.
[prjkt.io] Badger50:
After you compile the overlays, you don't see this option in the manager to enable them?
[prjkt.io] Sokudoningyou:
No. Because I can't install them. When I first install them, they compile, right? And then the Android install screen pops up, telling me what the overlay is, what it uses, and then the usual "cancel" or "install" options. Only I can't select "install." It won't do anything. I CAN select anything else I want, including whatever access each overlay will use. But it won't let me select install.

This is what my installer looks like.

https://drive.google.com/file/d/1qLUg1FilM1Kxx5woPVXbl3zD6irJ0W4I/view?usp=drivesdk
[prjkt.io] Badger50:
I see your using Andromeda, don't know if it'll work, but I'd try clearing all app data and cache on substratum, uninstall it, reboot, and install it again. I had to do that a couple of times before I rooted my P2XL. Worth a shot anyway ?
[prjkt.io] Sokudoningyou:
Okay, I'll ask a dumb question: what do you mean by Andromeda? Because I'm not rooted?
[prjkt.io] Badger50:
It's my understanding that non rooted devices require Andromeda (app in play store) to create an interface with your pc so you can theme your phone. However, there may be some compatibility issues with your device. BTW, what device do you have?? I should have asked that first. My bad ?
[prjkt.io] Sokudoningyou:
I don't use my PC at all. I just use the app, and the Samsung add-on so it'll work with Samsung devices. I have a Note 8.