[prjkt.io] YoshifanC:
I have rooted my Moto G5 Plus, and I cannot figure out what is happening to substratum. This'll take some explaining:

I didn't really want to change the ROM on my phone because the stock was fine for me and it was already pretty much stock android. So, I kept it, and installed substratum (cannot remember what version because it was so long ago, but I know it was in the 800's). I also got the app "ThemeDIY" from google play, and I created a theme in it. I installed it, then went over to substratum to apply it.

Substratum opened like it did before, and I clicked on my theme, and applied it to all apps. Rebooted, and there was my theme. But then the nightmare began.

Applying the theme to my "Documents" app caused it to fail every time it was opened, so whenever I wanted to attach something to a text message or something of the such, it would say "Documents has stopped working". I tried removing the theme in substratum, but Documents still failed. Eventually, I just restored my backup of /system/ and it started working again. From that point on, I only applied the theme to apps I could launch from the home screen so I didn't mess up system processes.

My theme worked really well, and I liked it, but after a while (and several substratum updates installed automatically), I decided I wanted a different theme. So I updated my theme, and reinstalled it. I went to open substratum, but was greeted with a crash message ("I'm so sorry for the crash"). I tried clicking rescue, but the app closed, said "Rescuing your system", then nothing else ever happened.

This was about three months ago, and I can't remember what I did to fix it. I think I deleted something in the file browser in TWRP and reset the substratum config files after uninstalling it, but I don't remember how I did it. Anyway, I did something along those lines and it worked perfectly again. At this time it was in the 800's version.

Now, I wanted to apply yet another different theme, so I opened substratum, and got the same message. Of course, google play had been updating it, but now, I can't find a site that tells me where the overlay file and substratum config files are.

Where are these files, and if I delete them, would it fix the problem? If not, how could I fix the problem without deleting all my data?

Here's the log:

Build version: nine hundred fourteen
Device: Moto G (5) Plus (potter) [motorola/potter_retail/potter:7.0/NPN25.137-33/35:user/release-keys]
ROM: 7.0 - Unknown
Theme system: RRO (Legacy)

Stack trace:
java.lang.RuntimeException: Unable to start activity ComponentInfo{projekt.substratum/projekt.substratum.MainActivity}: android.view.InflateException: Binary XML file line #25: Binary XML file line #25: Error inflating class TextView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
Caused by: android.view.InflateException: Binary XML file line #25: Binary XML file line #25: Error inflating class TextView
Caused by: android.view.InflateException: Binary XML file line #25: Error inflating class TextView
Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 6: TypedValue{t=0x2/d=0x101009b a=1}
at android.content.res.TypedArray.getColorStateList(TypedArray.java:528)
at android.widget.TextView.<init>(TextView.java:783)
at android.widget.TextView.<init>(TextView.java:704)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:74)
at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:70)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1016)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1073)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at com.android.internal.policy.DecorView.onResourcesLoaded(DecorView.java:1776)
at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2613)
at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2686)
at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2049)
at android.support.v7.app.AppCompatDelegateImplV9.createSubDecor(AppCompatDelegateImplV9.java:374)
at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:323)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at projekt.substratum.MainActivity.onCreate(MainActivity.java:324)
at android.app.Activity.performCreate(Activity.java:6672)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1140)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2612)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)

User actions:
2017-12-05 10:22:45: SplashScreenActivity created
2017-12-05 10:22:45: SplashScreenActivity resumed
2017-12-05 10:22:45: SplashScreenActivity paused
2017-12-05 10:22:45: MainActivity created

So far, I've uninstalled the theme in settings (though it's still applied to my system) and I've deleted all folders ending in the name of my theme in /data/data. The theme is still applied, and substratum refuses to open. I've been looking for an overlay file and for substratum's configuration folder.

I will say I've noticed that when substratum tries to launch, I don't see an indicator of it receiving root permissions, though SuperSU is set to grant it permissions. Could it be a problem with receiving root?