HomeOperating SystemAndroidAndroid Oreo Will Receive...

Android Oreo Will Receive Rootless, System-Wide Theme Support Within 1 Week

With every new release of Google’s Android OS, there are fewer reasons for most users to root their devices. However, among the remaining users who still choose to root their devices, one of the most commonly cited reasons is to enable system-wide theme support. Typically, this is managed via the Substratum theme framework ever since the unfortunate demise of the CyanogenMod Theme Engine. Over time, the team behind Substratum worked hard to include support for more devices by incorporating Substratum support at the ROM level so it could run without root access. And now, the team has taken the project beyond what any of us could have imagined by bringing full system-wide theme support without root for any Android Oreo device.

Screenshots showing Sai’s Android Oreo Black Theme running on an unrooted Google Pixel on Android Oreo 8.0.0

To give you an idea of just how incredible of a development this is, consider that the following will now be possible without root:

  • Theming of the Android Framework and Android System UI, as well as any other system applications. (A lot of you are going to lovehaving a dark theme available, finally!)
  • Theming of any third-party application
  • Custom fonts for third-party applications
  • Many other modifications such as a status bar center-clock mod

The list goes on! Substratum has an extensive list of available themes that support the framework (all of which are supported in this upcoming new version of Substratum for Android 8.0), an active community on Google+ and our own forums, and given this development the support is only bound to grow!

Android Oreo and the Overlay Manager Service

Substratum Theme Support

A sample of some Substratum Themes.

Ever since Google incorporated native support for Sony’s Runtime Resource Overlay (RRO) theme engine in Android 6.0 Marshmallow, we’ve been waiting for Google to provide a built-in interface as well as public APIs that developers can use to theme both system framework application as well as third-party applications. Alas, the Android Nougat release brought little new to the table ever since Sony’s RRO was added to the Android Open Source Project (AOSP).

But thanks to the diligent work by the engineers over at Sony Mobile, the RRO theme engine eventually evolved into what’s known as Overlay Manager Service (OMS), which is what Substratum is based on. Sony was the pioneer in regards to an open source theming solution, but since their OMS theme engine was accepted into AOSP around the time of the final Android 7.1 release, the only way for users of non-Sony devices to take advantage of the theme engine is through a custom ROM.

That changed in Android 8.0. When Substratum was initially released for the first few Android O Developer Previews, the developers of Substratum realized that full supportfor Sony’s OMS was available. This means that a user could install an existing Substratum-supported theme and it would be fully functioning on Android Oreo devices without requiring any ROM patches. There was only one problem though: the process of enabling an installed Substratum theme required root access, or so they thought.

Rootless, System-Wide Substratum Theme Support for Android Oreo

While the developers quietly put their work on the issue of getting Android Oreo users a fully rootless theme solution on the back burner, we were independently digging into every Android O Developer Preview and finding evidence of the theme engine at play, though we misidentified it as being based on the older RRO rather than Sony’s newer OMS. Google even teased the community about theme support in a developer-centric AMA over on Reddit, stating that there were still some hurdles to be overcome before a full theming solution could be built in to Android.

Not satisfied with that answer, we wanted to see just how far Google had gone in getting theme support for Android Oreo. To do that, I dug into the source code of Android 8.0 once the final release dropped, and discovered the existence of ADB shell commands that could enable or disable overlays, which XDA Writer Adam Conway covered yesterday.

Substratum Theme Support Android Oreo CMD Overlay

Disabling the default overlay

Initially, I wasn’t too impressed with the finding, since to my knowledge at the time it was functionally useless as myself and my colleagues were under the impression that installing a theme still required root access as the theme files would need to be moved to a folder that is inaccessible to the user space (in /system/vendor/overlay, which is how RRO functioned). Nicholas Chum himself, one of the lead developers behind Substratum, commented on our post that he was aware of the existence of these commands for quite some time and has been using it for Android O builds already.

One person, though, saw an opportunity arise after we published our article yesterday. XDA’s very own Jeff Corcoran, the developer behind our in-house XDA Labs application, realized that there was a potential workaround to get Android Oreo’s native command line interface for OMS to work without root. It involved a method that was utilized by Helium, the popular non-root backup solution, and more recently by the open-source Greenify alternative known as Brevent.

Elevated Privileges Through a Script

Ordinarily, the “cmd overlay” commands that Google added to the Oreo release can only be run through either a device with root privileges or through a device tethered to a computer invoking the Android Debug Bridge (ADB) shell. A handful of clever developers, such as the Helium and Brevent developers, over the years figured out how to essentially elevate the privileges of an application running on the phone to match that of ADB shell. In doing so, the application can send commands that it usually could not due to restricted permissions. In the case of Substratum, that means the application can install then enable or disable Substratum themes without root.

This realization was a major breakthrough that was only discovered yesterday evening. In the course of a few hours, Nicholas (with the help of Jeff) was able to create a quick alpha version of a rootless Substratum theme manager for Android Oreo devices. And it works – but with a few caveats.

Caveats of Rootless Substratum Support

The process required in order to grant Substratum ADB shell elevated privileges will require the use of a very simple and lightweight desktop application (or just an ADB shell command if you know what you’re doing). Once granted, Substratum will function as you would expect with it being able to handle managing all of your installed Substratum themes. Any themes that you install will remain installed until you choose to uninstall it through Substratum again.

However, the privileges that Substratum is granted are transient, as they are lost when the user performs a full reboot (though luckily soft reboots of the System UI do not lose the privilege). This means that you will have to run the desktop program again if you have rebooted your phone and wish to use Substratum to add, remove, or modify a theme. I want to reiterate again that any themes you install will remain installed even if you reboot, so that means if you would like to just change a few themes only occasionally, this should be perfect for you. You should also be able to switch themes from the Settings menu, as the Developer Preview’s “Theme” option under Display settings then recognizes installed themes, and allows you to switch between them

Finally, the last thing I need to mention is something that seems obvious once you think about it, but in your excitement at hearing news you might have forgotten. Your device is still unrooted. That means you can’t touch or modify any files that absolutely require root access to edit, even if the Substratum theme you installed promised to change something. Sorry, but unfortunately that means you can’t apply a system-wide font change to bring back the blob emojis, though as mentioned in the beginning, it is possible for a Substratum theme to alter the fonts of individual applications.

The Necessity of Substratum

Let’s get an important detail out of the way now. When is this coming? As the title mentions, the first public availability of the rootless Substratum for Android 8.0 devices such as the Google Nexus 5X, Google Nexus 6P, Google Pixel, and Google Pixel XL should be within 1 week. That’s not a guarantee by any means, as things can change in the development process that may require additional time investment, but since OMS is already fully supported in AOSP, all the Substratum team is working on now is the interfacing between the Substratum app and unrooted devices.

Next up: will it be free? No. Substratum for unrooted Android Oreo devices will be a paid application. I cannot tell you how much it will cost as Nicholas has not yet decided on a price, but rest assured the price will be fair given the value of what you will be receiving. Up to this point, Substratum has been freely available for many devices, so consider supporting this kind of development by first supporting Team Substratum. You can either wait for Google to eventually release that dark theme you’ve always wanted (ha, good one), or you can throw a few pennies in to support independent development that many people take for granted.

Still not convinced of its value? You can try installing Substratum themes on your own unrooted 8.0 device. In fact, that’s exactly what we did above. Of course, we had a bit of help by Nicholas in order to do so. If you want to install an existing Substratum theme from the Google Play Store, here are the general steps:

  1. Download and install the APK file onto your device.
  2. Extract the contents and compile each overlay into an individual APK file for each app that you want to be themed
  3. Install each individual overlay APK file that you manually compiled in step #2
  4. For each and every overlay APK that you install, run the following command to enable it: cmd overlay enable <package>
  5. If you want to change the priority of overlays, use: cmd overlay set-priority <package> PARENT|lowest|highest
  6. List all of your installed overlays with: cmd overlay list
  7. Remove any overlays you don’t want with: cmd overlay disable <package>

If you really want to use the command line to manage themes, be our guest! Personally, I was stuck getting past step #2. Substratum is not using some hidden method that you can’t come up with on your own, but it is making it far easier for you to manage. When it’s possible to do something manually but an application can do it for me much more easily, I tend to just let the app do its job. But that’s up to you.

Personally, I am really, really excited to see where this goes. For any devices out there that don’t already support a built-in theme management system (such as Motorola or OnePlus devices), you now have another reason to look forward to in the Android 8.0 update. For those of you lucky enough to already taste that sweet Oreo, you have something to look forward to in 1 week.

source : Xda Developers

- A word from our sponsors -


Most Popular

Leave a reply

Please enter your comment!
Please enter your name here

More from Author

500 million WhatsApp Numbers have been Hacked from 84 nations

A shocking allegation claims that the phone numbers of nearly 500...

Freddy Film Review

Kartik Aryan alias Freddy Ginwala is a successful dentist. When it...

Putin Plans to Replace SWIFT With Blockchain Payment System

Russian President Vladimir Putin criticized monopolies in global financial payment systems...

Bitget Crypto Exchange Flips Layoff Trend, Expands to Africa

The cryptocurrency winter has been colder for some than others. While...

- A word from our sponsors -


Read Now

500 million WhatsApp Numbers have been Hacked from 84 nations

A shocking allegation claims that the phone numbers of nearly 500 million WhatsApp users have been hacked and listed for sale online. The issue around a data breach has already included Meta or one of its services. 487 million WhatsApp users' phone numbers have reportedly been compromised and are...

Freddy Film Review

Kartik Aryan alias Freddy Ginwala is a successful dentist. When it comes to his personal life, he is not successful as since last 5 years he is desperately looking for his soulmate. One day he gets his love but that love changes his life completely. Analysis of the...

Putin Plans to Replace SWIFT With Blockchain Payment System

Russian President Vladimir Putin criticized monopolies in global financial payment systems and called for an independent and blockchain-based settlement network, speaking at the International AI Travel conference in Moscow on 24 November. Russia’s Rostec Group, a government organization, has developed a blockchain platform to launch a digital system for...

Bitget Crypto Exchange Flips Layoff Trend, Expands to Africa

The cryptocurrency winter has been colder for some than others. While some cryptocurrency exchanges are forced to conduct massive employee layoffs to weather the bear market, others like Bitget Crypto Exchange continue to make massive hires to improve their services, Bitget crypto exchange flips the layoff trend. On...

New iPhone15 Leaks Reveals Stunning Design and No Sim Card

The first iPhone 15 leaks have already promised a combination of eye-catching and controversial design changes. And excitement is only likely to grow further now a new exclusive has revealed another stunning design decision. In a move that would see Apple step back in time, a new leak from anonymous...

Get iPhone 14 Under 60000 on Flipkart – Limited Time

The original price of the iPhone 14 is Rs 79,900. However, you can get the device at a discount of Rs 5000 if you have an HDFC bank card how the deal works The original price of the iPhone 14 is Rs 79,900. However, you can get the device...

Download Unofficial TWRP for Samsung A135 Exynos

​ DISCLAIMER: I WAS NEVER, HAVE NEVER BEEN, AND WILL NEVER BE RESPONSIBLE FOR ANY DAMAGES AGAINST YOUR DEVICES. We are not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about the...

Android 13 and One UI 5 for Samsung Galaxy A52

Samsung was widely panned for its slow and non-existent software support during the TouchWiz era. Over the years, though, it has made considerable improvements in this area, and with One UI 5, the Korean giant has raised the bar to a new level altogether. The Galaxy S22 was...

Presearch Coin | Earn Crypto While You Search | 25 Pre Coin for Signup

Presearch offers PRE tokens as a reward for those who search through the platform. These tokens have intrinsic value because they are the access tokens purchased by advertisers to target searchers entering certain keywords. The amount currently provided to searchers is 0.25 PRE if they search through the...

Nodle Joins First Polkadot Parachain Auction

Nodle, one of the world’s largest ecosystems of connected devices, today announced their entrance into Polkadot’s inaugural parachain slot auction and crowdloan. Nodle provides infrastructure, software, and data access to the Internet of Things (IoTs) using Bluetooth Low Energy (BLE) on existing smartphones. Polkadot is a blockchain...

How to Mine Nodle Cash IoT Network

Introduction Nodle – built on a Bluetooth Low Energy (BLE) network – is a connectivity provider for the Internet of Things (IoT). The network helps companies and cities collect data from their devices, sensors, and tags. The Nodle Network can help manufactures/operators of electronic devices collect valuable data and also help...

Ethereum Whales on Move – Relocate Over $500,000,000 Matter of Hours

A massive amount of Ethereum (ETH) worth half a billion dollars is on the move, as crypto whales relocate their ETH troves. This Friday, blockchain tracker Whale Alert spotted a series of transactions in which large Ethereum holders moved 237,419 ETH, worth $557,777,068, in just over 10 hours. In...