yashsingh1/xdaforums huggingface dataset:
[prjkt.io] Pkt_Lnt:
adb will do backups

type adb -h in a terminal and you will get the full help, here is the backup / restore section

adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>.
If no -f option is supplied then the data is written
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-obb|-noobb enable/disable backup of any installed apk expansion
(aka .obb) files associated with each application; the default
is noobb.)
(-shared|-noshared enable/disable backup of the device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)

adb restore <file> - restore device contents from the <file> backup archive
[prjkt.io] neok44:
I only have ADB for about 10 seconds before the phone force reboots and I know that's not enough time to backup. Another reply said that fastboot can't do backups so okay.

Is there anyway for me to flash the substratumrescue.zip from ADB, that's already on the device and I could get that command sent most likely in the few seconds I have and if not phone is already screwed so I doubt it would cause anymore damage.
[prjkt.io] Pkt_Lnt:
Typing adb -h in a terminal shows no flash functions
[prjkt.io] neok44:
Last question before I wipe my phone and never even consider using this application again.

Is there anyway to flash the substratumrescue.zip through fastboot or ADB?

Again, stock Pixel recovery, stock oreo, locked bootloader. Can't use TWRP, can't use safe mode. All I have is fastboot and 10 seconds of ADB access in safe mode before it reboots. Is there anyway I can flash the substratumrescue.zip through fastboot or ADB.

*edit*

And wow, I finally just wiped it since nothing here was any help and evidently substratum broke my phone so badly that Google can't even properly restore my backup. That's awesome. Great job here guys, oh it's stable and works fine on stock oreo but then if there is any problem you need custom recovery. Whole point of this was to not have that and not have to risk wrecking your phone and now my actual google backup is corrupted as well. Great job.
[prjkt.io] pkelly517:
Did you try adb from recovery?
[prjkt.io] amir7798:
I'm new to substratum and I keep getting this error when I want enable overlays

Can somebody help me?

Build version: eight hundred fifty four

Current date: 2017-10-20 12:20:36

Device: Sony E6633

Stack trace:

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

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

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

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

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

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

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

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

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

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

at projekt.substratum.tabs.OverlayFunctions$Phase4_finishEnableFunction.doInBackground(OverlayFunctions.java:884)

at projekt.substratum.tabs.OverlayFunctions$Phase4_finishEnableFunction.doInBackground(OverlayFunctions.java:851)

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

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

... 4 more

User actions:

2017-10-20 12:20:27: LauncherActivity created

2017-10-20 12:20:27: SplashScreenActivity created

2017-10-20 12:20:27: SplashScreenActivity resumed

2017-10-20 12:20:27: LauncherActivity destroyed

2017-10-20 12:20:28: SplashScreenActivity paused

2017-10-20 12:20:28: MainActivity created

2017-10-20 12:20:28: MainActivity resumed

2017-10-20 12:20:29: SplashScreenActivity destroyed

2017-10-20 12:20:30: MainActivity paused

2017-10-20 12:20:30: ThemeLaunchActivity created

2017-10-20 12:20:30: ThemeLaunchActivity resumed

2017-10-20 12:20:30: ThemeLaunchActivity paused

2017-10-20 12:20:30: ThemeLaunchActivity resumed

2017-10-20 12:20:30: ThemeLaunchActivity paused

2017-10-20 12:20:30: ThemeLaunchActivity resumed

2017-10-20 12:20:30: ThemeLaunchActivity paused

2017-10-20 12:20:30: InformationActivity created

2017-10-20 12:20:30: InformationActivity resumed

2017-10-20 12:20:30: ThemeLaunchActivity destroyed
[prjkt.io] Shadyville01:
Same issue i experienced on S8, however, this was post appss update. I uninstalled all overlays and nothing helped. I read an article that stated the only way to fix it is to wait for the themer to update the actual app which will include newer stable app versions. the downside to this is that you will have FC's on apps until themer updates :(

---------- Post added at 12:55 PM ---------- Previous post was at 12:54 PM ----------

Link to article: https://www.xda-developers.com/why-app-updates-sometimes-break-substratum-themes/
[prjkt.io] CMKdaGreat:
Can someone make a 50x50 or 100x100 pixel size png picture of each of the stock navbar buttons?help would be much appreciated and it's very much needed.

Thanks in advance!!
[prjkt.io] demonoidmaster:
So i assume you don't have root on it nor do you use the paid dedicated app for Oreo that's meant to make Substratum work on it

---------- Post added at 06:55 PM ---------- Previous post was at 06:54 PM ----------

This isn't a request section

---------- Post added at 07:02 PM ---------- Previous post was at 06:55 PM ----------

This is what happens when you don't do research and assume substratum will work without oms/root/or in your case being on Oreo, thinking it'll work without using a separate app that is what's needed to properly theme your phone via adb and a pc

You basically bricked your phone, you should've unlocked your bootloader the first time you got your phone, now you have no choice but to do the single option of wiping your phone. Because you can't use adb as you said, you can't even flash twrp because of no adb nor unlocked bootloader, you can't backup your stuff..Because no adb after 10 seconds

You're basically screwed. Sad but true. Don't come here waving your finger talking **** about something that isn't the issue, the app isn't the issue, your phone isn't the issue, what the issue is is you and your lack of knowledge about how Substratum works on Android 8.0 Oreo.
[prjkt.io] CMKdaGreat:
Where should I request for it dear sir/ma'am?
[prjkt.io] zeekaran:
I'm having a user issue. I'm confused on what I'm supposed to do when my apps update and it gets out of sync with my theme. Sometimes the overlay list includes several outdated versions, and not the version I need. Sometimes it looks like I've updated it properly but then the app continues to crash. Is there a user guide somewhere?
[prjkt.io] xxDominatorxx2:
Hi

I have an s8+ running on renovate ice note 8 port rom and for some reason substratum doesn't work for me.

The app itself is laggy and after I finish applying the overlays the app asks me to reboot. After I do that nothing changes at all

This has been haunting me for the past weeks. Please help me
[prjkt.io] demonoidmaster:
1. What navbar icons? Those are all part of Android (and some roms have different looking ones) not Substratum

2. I wouldn't know where you should request that unless you explain exactly what you want

---------- Post added at 01:08 AM ---------- Previous post was at 01:07 AM ----------

When an app gets updated, rebuild the overlay and activate it
[prjkt.io] CMKdaGreat:
A pic of each of the circle triangle and square of the navigation bar of stock android/lineage os. The hollow ones, not pixel. I wanted 50x50 pixel images of them.
[prjkt.io] Kevinisyoung:
Axon 7 resurrection remix with magisk. When I try to build and enable the overlays it does it really fast and fails, and I realized it didn't have root access granted. I've uninstalled and gotten old apks to try and get one version to request for root access but I can't get any of them to request root access. How can I force it to request for root?
[prjkt.io] demonoidmaster:
Umm, RR supports OMS so that's why you're not getting it to ask for root, if it fails to make an overlay though maybe it's the theme that just isn't updated

---------- Post added at 04:19 PM ---------- Previous post was at 04:16 PM ----------

Then ask in whatever forum thread your rom you have is
[prjkt.io] CMKdaGreat:
Someone there asked me to ask here.
[prjkt.io] Spannaa:
Then they shouldn't have - this thread is just for issues with the Substratum app.

It's not for theming issues or random requests for pngs or renders of xmls which could easily be extracted from your/a rom.
[prjkt.io] Ranching:
I just experienced the same problem here, though I didn't have to manually uninstall all of the created apps. They were all gone once I removed Substratum. I am using Android Oreo and this is the stack trace:

Build version: eight hundred fifty four
Current date: 2017-10-24 03:03:33
Device: Xiaomi Redmi Note 3

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.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at android.preference.PreferenceManager.getDefaultSharedPreferencesName(PreferenceManager.java:537)
at android.preference.PreferenceManager.getDefaultSharedPreferences(PreferenceManager.java:526)
at projekt.substratum.common.platform.ThemeManager.optInFromUIRestart(ThemeManager.java:643)
at projekt.substratum.common.platform.ThemeManager.enableOverlay(ThemeManager.java:140)
at projekt.substratum.tabs.OverlayFunctions$Phase4_finishUpdateFunction.doInBackground(OverlayFunctions.java:1225)
at projekt.substratum.tabs.OverlayFunctions$Phase4_finishUpdateFunction.doInBackground(OverlayFunctions.java:1121)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 4 more

User actions:
2017-10-24 02:39:47: RescueActivity created
2017-10-24 02:39:47: RescueActivity destroyed
2017-10-24 03:01:04: LauncherActivity created
2017-10-24 03:01:04: SplashScreenActivity created
2017-10-24 03:01:04: SplashScreenActivity resumed
2017-10-24 03:01:05: LauncherActivity destroyed
2017-10-24 03:01:05: SplashScreenActivity paused
2017-10-24 03:01:05: MainActivity created
2017-10-24 03:01:05: MainActivity resumed
2017-10-24 03:01:06: SplashScreenActivity destroyed
2017-10-24 03:01:56: MainActivity paused
2017-10-24 03:01:56: ThemeLaunchActivity created
2017-10-24 03:01:56: ThemeLaunchActivity resumed
2017-10-24 03:01:56: ThemeLaunchActivity paused
2017-10-24 03:01:58: InformationActivity created
2017-10-24 03:01:58: InformationActivity resumed
2017-10-24 03:02:08: ThemeLaunchActivity destroyed
2017-10-24 03:03:07: InformationActivity paused
2017-10-24 03:03:07: MainActivity resumed
2017-10-24 03:03:07: InformationActivity destroyed

I hope to see this bug fixed.
[prjkt.io] CMKdaGreat:
How to extract it?

PM if u want to keep the thread clean
[prjkt.io] Spannaa:
Use Extractor ;)
[prjkt.io] vishuvishu1497:
Can substratum OMS support XOS custom rom infinix note 4...?
[prjkt.io] Spannaa:
Looking at the list of supported roms, I suspect not.

You could always take a nandroid and try it though ;)
[prjkt.io] elandroido:
I am using unofficial CM Oreo for the OP2.

This ROM ist using substratum in non-root mode.

It installs a new application in app list for each themed app.

Anyhow my overlay list is always empty.

Themes work fine, but it is quite hard to uninstall things with empty overlay list. Also rescue zip does not uninstall anything.

Any ideas how to fix this or how to force substratum into old root mode?
[prjkt.io] demonoidmaster:
CM as in Cyanogenmod (now known as LineageOS)? CM/LOS doesn't have OMS so that's your problem
[prjkt.io] JuniorCaesar:
it supports :) (has native 8.0 support)

also, you can try wipe data of substratum and setup again. it asks for root mode on first boot
[prjkt.io] elandroido:
Yeah right, LOS. Been using CM so long, my fault.

Anyhow I deinstalled substratum, reinstalled it and it still does not ask for root.

Maybe I have to uninstall all "overlay apps", too, which is a hassle.

Anyhow I can confirm substratum works perfectly alright with Oreo LOS except the overlay list.

Should it display the theme apps in non-root mode? Since they are not real overlays I guess.
[prjkt.io] konstantinos86:
Hello. I'm using substratum latest version. I have a Samsung galaxy s8+ stock rom. I use theme swift black. I try to uninstall it but without success. There's a message saying press ok to reboot, I press it and it does nothing. Any help?
[prjkt.io] SXUsr:
Having an issue with the new template, getting an instant force close when I select it in Substratum.

Device - XPERIA XZ1 Compact

ROM - Stock

Substratum version - Latest

Logcat - See attached.

10-26 23:17:20.130 12384-12384/? E/zygote64: No implementation found for boolean sxusr.darkres.theme.SubstratumLauncher.allowThirdPartySubstratumBuilds() (tried Java_sxusr_darkres_theme_SubstratumLauncher_allowThirdPartySubstratumBuilds and Java_sxusr_darkres_theme_SubstratumLauncher_allowThirdPartySubstratumBuilds__)
10-26 23:17:20.130 12384-12384/? D/AndroidRuntime: Shutting down VM
10-26 23:17:20.130 12384-12384/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: sxusr.darkres.theme, PID: 12384
java.lang.UnsatisfiedLinkError: No implementation found for boolean sxusr.darkres.theme.SubstratumLauncher.allowThirdPartySubstratumBuilds() (tried Java_sxusr_darkres_theme_SubstratumLauncher_allowThirdPartySubstratumBuilds and Java_sxusr_darkres_theme_SubstratumLauncher_allowThirdPartySubstratumBuilds__)
at sxusr.darkres.theme.SubstratumLauncher.allowThirdPartySubstratumBuilds(Native Method)
at sxusr.darkres.theme.SubstratumLauncher.onCreate(Unknown Source:21)
at android.app.Activity.performCreate(Activity.java:6975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2775)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2897)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1598)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:251)
at android.app.ActivityThread.main(ActivityThread.java:6563)
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)
10-26 23:17:20.132 1576-1587/? D/ActivityManager: New dropbox entry: sxusr.darkres.theme, data_app_crash, df0503a9-324a-4bab-a0a0-26de101a83e6
10-26 23:17:20.132 1576-1587/? W/ActivityManager: Force finishing activity sxusr.darkres.theme/.SubstratumLauncher
[prjkt.io] Spannaa:
Have you refactored \app\src\main\jni\LoadingProcess.c correctly?

i.e. replaced every instance of

Java_substratum_theme_template_SubstratumLauncher

with

Java_sxusr_darkres_theme_SubstratumLauncher
[prjkt.io] SXUsr:
I haven't no, I assumed I just needed to do the three folders like before.
[prjkt.io] Spannaa:
Refactoring/renaming doesn't change the entries in LoadingProcess.c so you need to do it manually ;)
[prjkt.io] SXUsr:
It's funny, now having looked looked at the file it's so obvious. Thanks.
[prjkt.io] Spannaa:
It wasn't obvious to me - I did the usual refactor/rename and got the same FC as you did ;)

It took me a while to realise what the issue was!
[prjkt.io] ahmed_ais:
Hey guys,

I'm having a weird behaviour. I'm using Substratum to create icon pack theme (via assets). All went fine but upon restarting the phone some icons are reverted to stock ones and I have to reapply the theme for these icons again.

My thought is that some of the small apps created by substratum (to provide the extra assets to the apps) does not load on time (delayed somehow) and therefore does not affect the UI (I might be totally wrong though).

Any ideas?

Thanks.

Samsung Galaxy S6 (SM-G920F)

Enes Rom v7.5 (link)

Substratum v854
[prjkt.io] mdio:
Hello all.

Sorry for the newbie question but, what to do when Icons stay stock after applying a theme that should change them?
[prjkt.io] ahmed_ais:
Restart launcher. Here on Samsung device I restart Touchwiz.
[prjkt.io] mdio:
Now that you mention, I've installed other launcher and with that one icons change, with default Launcher (Trebuchet) icons stay stock...
[prjkt.io] ahmed_ais:
Stock launchers are harder to customize. So did you try to restart that stock launcher?

Here, I restart Touchwiz by killing its process like this (in terminal emulator for example):

su
busybox pkill com.sec.android.app.launcher

Where com.sec.android.app.launcher is the package name of Touchwiz launcher. I even coded an app to do it automatically for Touchwiz.

Find the package name of Trebuchet launcher and try killing it and see.
[prjkt.io] mdio:
Thank you for your answer.

Should it work if I stop the app in "Applications"?
[prjkt.io] Ghisy:
Hi guys,

I just bought the MagPie theme and applied it. Now everything in my settings is black, even the text! So I can't see anything anymore and I cannot access the substratum app. What should I delete to go back to stock?

Thanks.
[prjkt.io] kevtrysmoddin:
Root/system/overlay delete the files in there and you'll be back to normal
[prjkt.io] Ghisy:
[MENTION=4176778]kevtrysmoddin[/MENTION], thanks. I just managed by blind luck (litterally!) to open the substratum app and disable the overlays, phew! I also enabled the app icon in my drawer now. But thanks anyway.

There really should be a FAQ about what overlay is theming what because this is not that easy to figure it out by testing stuff...
[prjkt.io] Pkt_Lnt:
see post #4

check the troubleshooting guide in the substratum menu
[prjkt.io] Ghisy:
[MENTION=4403217]Pkt_Lnt[/MENTION], I did read post #4, it doesn't give any details on what's theming what within a theme. Like with MagPie, I get pink accents and I didn't select anything pink when compiling. It's not very accessible... (and I'm no noob when it comes to Android or I.T. in general, it's my job).
[prjkt.io] Pkt_Lnt:
In the Play Store description of the Magpie theme is very complete with a guide.

https://play.google.com/store/apps/details?id=com.setiawanjimmy.TheMagpie&hl=en

Also Jimmy has excellent support via Gmail and Hangouts as reported in the Play Store. Maybe you should try those? :good:
[prjkt.io] Ghisy:
Yeah, thanks for that, I just sent him an e-mail. I've figured out a few things but would like to know more about the whole thing! (learning and understanding is always fun and interesting! :good:)
[prjkt.io] Pkt_Lnt:
Here are photos and descriptions of different setups, though many are for his other themes, but still helpful if you search it for Magpie.

https://plus.google.com/+JimmySetiawan84

Ok, done, sorry for the slight off topic. The learning curve for Substratum is a little steeper than it was for Layers.
[prjkt.io] NWNJ:
Chroma has substratum baked in.
[prjkt.io] raptor22:
Nexus 5X, Chroma ROM 6.0.1 with August Patch and Substratum Support, using magisk root, systemless Xposed and Substratum v212.

Able to install the theme, but upon clicking enable it just says activating without doing anything. A reboot still shows now changes. Cleared Substratum app data and cache, deleted /data/resource-cache and tried deleting /data/system/overlays.xml, no effect whatsoever. Rather frustrating considering it was working with v202?
[prjkt.io] Ghisy:
I haven't been able to find out how to uninstall a font from a theme. I tried going to "Fonts" and "clean overlays" but it removed everything... but the font! -_- What's the right procedure? (Edit: nevermind, I found it. It's in "defaults manager" and "Restore system font". Except that a full reboot was needed. All is well now!)

Is anyone experiencing a weird bug with MagPie: I use Swiftkey and whenever I enable the MagPie theme, the slide-up animation doesn't work anymore for Swiftkey. Told Jimmy about it and he doesn't use this keyboard. I'm sure I'm not the only one using this combination, right?!
[prjkt.io] claesr:
im stuck in bootloop on the spectrum theme, cant find the xml in data/system

solved it by letting the z5p cool down and then i had to be quick and go in to advanced manager and remove everything

but i still couldnt find the xml file
[prjkt.io] Trak-X:
Boot Animatio Preview

Hello everyone and thank you for the engine.

Running PN on my 6P and it's great.

The only issue i have is with some themes that cannot preview the boot animations and throw an error as in the attached screenshot.

Anything i can do on the device?

Thank you.
[prjkt.io] swamp2:
Could use some troubleshoot help. Running Chroma ROM, latest build with substratum support (08/02/2016 build) on a Nexus 6. Have substratum and Magpie theme installed. When opening subs. from app drawer or settings in ROM I get a splash screen then full black screen and long delay followed by "substratum isn't responding" then something like wait or force close. Also tried clearing subs. data, which didn't help.

Any tips? A better place to ask for help?
[prjkt.io] nicholaschum:
Are you rooted? Does a root prompt appear at the background?
[prjkt.io] *Tar*:
I have this ****ing overlay problem, what's this Dirt always, I can't switch on?
[prjkt.io] Clark Joseph Kent:
You are going to have to provide more info, and this time, explain it without the profanity....and in detail. After all this is XDA, not some social site.
[prjkt.io] *Tar*:
I will do, excuse my profanum speech...... This is not my mother language, so I'm excuse to all who feels bothered
[prjkt.io] swamp2:
Bingo. Lost SuperSU after latest ROM update. That's not typical. Thanks!

Next problem is I'm stuck at very low percent of complete progress during "creating and signing overlay(s)". Totally stuck, progress bar not moving at all.
[prjkt.io] Ericarthurc:
Hey so I am having some problems adding bootanimations to substraum. I tried following the instructions, but I cant find where to add them. Thanks in advance!
[prjkt.io] ahmed_ais:
Might do, simple to try and see. I created the mentioned app to kill it for convenience so i don't need to digg in menus. But try stopping it first and see.
[prjkt.io] elandroido:
+1 for the root mode switch. Interface mode is a pita.
[prjkt.io] mdio:
Did try both ways, but icons stay stock. :(

I like the stock laucher Trebuchet, it's simple and light...
[prjkt.io] SXUsr:
Hopefully this is the last the last hurdle. My theme builds, installs and works fine on my phone without anti-piracy but still have a couple of issues. The first is a kotlin error message...

EDIT: 'Clean build' resolved the first issue.

As I've said the theme builds and works fine on the phone but the second issue is with the play console showing compatible devices but not allowing those devices to download it from the store when anti-piracy is enabled?