Android Oreo Introduces Command Line Interface for Themes Alcatel U5 HD...

 
 
 
Android Oreo Introduces Command Line Interface for Themes Alcatel U5 HD...

 
xda-developers
Aug 24, 2017 12:28 AM • by Adam Conway
Android Oreo Introduces Command Line Interface for Themes

With the launch of Android Oreo comes a lot of time spent searching for hidden goodies within the source code. In the past, the Android engineering team has talked about enabling theming in Android O. We reported in May that the second Developer Preview of Android O may have been a hint of Google supporting the Overlay Manager Service (OMS) and Runtime Resource Overlay (RRO), but now we know for certain it was. Android Oreo now, technically, supports OMS/RRO theming and even provides an interface for enabling or disabling themes, provided you can stomach using the command line.


What are RRO and OMS?

RRO was developed internally by Sony for theme functionality on the Sony Xperia line. Developers who recognized its significance worked to extend its support to other ROMs, and with it came RRO theming across a multitude of devices- not just Sony devices. It ingeniously replaced resources at the app runtime, an ease of use unseen from other theming options at the time. This has evolved into OMS, which also was developed in-house by Sony. The famous Layers Manager used RRO theming originally, but OMS was later adapted into what is now known as Substratum and is the theming framework most familiar to users on our forums now. ROMs on our forums with OMS commits mean they support the standard theming engine of Substratum. "Legacy mode" within Substratum is using RRO theming.


Android Oreo Introduces Theme Commands

It seems Google now wishes to fully support this theme type in AOSP, possibly moving towards a full, system-supported theme manager. On the Android Gerrit, Google has made a number of changes in recent months (and with Android Oreo) which suggest moves to enable the theming engine system-wide. The changes are below, with links to their respective commits.

All of these changes signify a move by Google towards some form of system theming application to be included in future. The permission listed above requires system privileges, and thus means that only a system application (or an application with root access) can invoke this permission. It's interesting nonetheless, as it shows Google is finally working towards something.

So why only technically does Android Oreo support theming? Well, the simple answer is that while you can invoke the system method of installing themes, to do so would prove rather pointless. This is because, even though you can use the new command line interface to manage installed themes, you cannot actually install new themes without root access because the themes need to go into a directory that is restricted from user space. With root access you can simply enable a Substratum theme anyway, so there is no need to do it the new way. Google has not included a system application to theme the device, so until then there is no benefit whatsoever to trying to do it the newly included way.

The Command Line Theming Interface

We at XDA tested the command on a Google Pixel running the Android Oreo release. We decided to test some of the commands and firstly used

cmd overlays list

to view all pre-installed overlays. We noticed the existence of a "com.google.android.theme.pixel", disabling it and instead enabling "android.auto_generated_rro__" by running the following commands.

As can be seen here, the standard overlay is disabled and the auto-generated one is disabled. Running our command to view our installed overlays again, we see the following output.

This results in a newly themed Android System settings application on our Google Pixel. Note that the above overlay list also includes themes installed using Substratum, and we were able to enable/disable these just as easily.

auto_generated_rro Theme

We also found another command when digging through the source. The command is as follows

cmd overlay dump --user 0

gives us the following output.

Output

Settings
android.auto_generated_rro__:0 {
mPackageName…….: android.auto_generated_rro__
mUserId…………: 0
mTargetPackageName.: android
mBaseCodePath……: /vendor/overlay/framework-res__auto_generated_rro.apk
mState………….: STATE_ENABLED
mIsEnabled………: true
mIsStatic……….: true
}
com.google.android.theme.pixel:0 {
mPackageName…….: com.google.android.theme.pixel
mUserId…………: 0
mTargetPackageName.: android
mBaseCodePath……: /vendor/overlay/Pixel/PixelThemeOverlay.apk
mState………….: STATE_DISABLED
mIsEnabled………: false
mIsStatic……….: false
}
Default overlays: com.google.android.theme.pixel
PackageInfo cache
2 package(s)

So as can be seen, Google has put a lot of work into the development of the theming engine and integrating it into AOSP source. It looks like if it were to be added system-wide, themes would be enabled within the System UI tuner. Google have also provided information for OEMs, so it's possible that additional OEMs could enable theming support based on the AOSP version in the future on Android Oreo.

Overall, this is a very exciting development. Theming is one of the many parts that defines Android as a fully customizable operating system on your phone, even if it currently requires root for system wide themes. In the future if it were enabled to work without root access, it would be a major step in the direction of user freedom. Of course, it might be locked away in System UI tuner for quite some time (as broken themes can break apps) but allowing the user to even take advantage of native theme support in the first place is a huge addition to the mobile operating system.




Android Advices
Aug 23, 2017 7:57 PM • by Karunakar Donthamshetti
Alcatel U5 HD Smartphone with 5″ HD Display & 2,200mAh Battery Announced

We have been hearing Alcatel will be launching upcoming three phone at IFA 2017. Now, one of the smartphones has been listed on their official website named as Alcatel U5 HD which is the successor the previous model that is Alcatel U5 which was launched first in MWC 2017. As of now, there is no word on pricing & availability of the device, and it would be expected to be revealed at the IFA 2017.

This phone comes with a polycarbonate body which has a textured panel at the rear side and will be available in Black and White color variants. It sports a 5.0-inch IPS HD display and is offering a pixel density of 294ppi. The main highlight of the device is it would be packed with an Android 7.0 Nougat operating system with pre-installed applications. The U5 HD phone has three capacitive touch buttons beneath the screen for recent, home and back.

At the right side, there are a power button and volume rocker buttons. It is a dual SIM phone supporting a 4G LTE connectivity and is equipped with a 64-bit MediaTek MT6737 quad-core processor clocked at 1.2GHz along with Mali T720 graphics and 1GB of RAM. There is an 8GB of internal memory which also supports an external memory card up to 128GB via microSD card. For the battery, this phone is powered by a 2,200mAh capacity battery.

It delivers 4 hours of talk time and lasts around 200 hours of standby time. Regarding the camera, it bears an 8MP (Interpolated to 13MP) rear autofocus camera with LED flash, and there is a 5MP (interpolated to 8MP) front-facing camera with LED flash for capturing selfies and making video calls even in the dark environments. Connectivity options include Bluetooth, GPS navigation support, 3.5mm audio jack, FM Radio, Wi-Fi 802.11 b/g/n, and MicroUSB 2.0 port.




 
 

This email has been sent by Froze ONE (isnanmm0@gmail.com). It is the potion result of 'Tech: Topic watch' from the dashboard 'Personal Dashboard', tab 'Tech > Android'. Turn off or edit this potion

 

© Netvibes 2005-2017 | Terms of service | Privacy Policy

 
 

Subscribe to receive free email updates:

0 Response to "Android Oreo Introduces Command Line Interface for Themes Alcatel U5 HD..."

Post a Comment