How to enable Android 10’s Rules feature on any Pixel smartphone

How to enable Android 10’s Rules feature on any Pixel smartphone

A new Android version is released every year, and Google takes the stage at I/O to highlight some of the most prominent changes to the OS. But there are always many features that are not covered on stage due to paucity of time, and these end up being discovered later on. “Rules” is one such feature of Android 10 that was not highlighted by Google either at Android Q’s keynote event at Google I/O 2019, nor at the Google Pixel 4 launch. Rules was first spotted as Settings Routine, allowing users to automate a few common actions on the device based on certain conditions. Curiously. the feature was missing from the surface in the stable Android 10 release, nor was it available on the Pixel 4. The feature then suddenly showed up for some Pixel owners, but there was no way to enable it across the board. Now, if you are willing to root your device, you can enable Rules on any Pixel device with the latest Android 10 release.


On Android 10, Rules allows eligible Pixel device owners to set up conditions, which when met, enable either Do Not Disturb, or set the phone to silent, vibrate, or ringer modes. These conditions range from being connected to certain Wi-Fi networks, or when you are in the vicinity of a chosen location. Of course, Rules does not match dedicated automation apps such as Tasker and Automate by a long shot in terms of functionality, but it offers useful basic functionality.

If you have root but are daunted by the more complex automation tools, you can follow the steps below to enable the function:

    1. Use a file explorer with root access and go to /data/data/
    2. Open SettingsGoogleIntelligenceSharedPrefFile.xml
    3. Change all boolean values with “RoutinesPrototype” in their name to “true
    4. Force close Settings and Settings Suggestion.
    5. Run the following command on your phone through a terminal emulator:
      su[[!!]]pm enable
    6. Now, you should be able to find “Rules” under “System” in Settings

Rules is admittedly basic in its functionality. If you have the experience rooting devices and carrying out the above instructions, you should also be able to create the same tasks (or even better) with Tasker. But Android is all about choices, so it is good to have some more.

Story Via: /r/Android

About author

Aamir Siddiqui
Aamir Siddiqui

A journalist at XDA-Developers and the current Editor in Chief, I have been writing for XDA since 2015, despite being a qualified business-litigation lawyer. A low-end smartphone purchase in 2011 brought me to the forums, and it's been a journey filled with custom ROMs ever since. When not fully dipped in smartphone news and tutorials, I love traveling to places just to capture pictures of the sun setting. You can reach out to me at [email protected] And my Twitter is @aamirsidd94.

We are reader supported. External links may earn us a commission.