Search code examples
androidroot

How to add an item to Quick Settings in Android


I was thinking if there is a way to add an item in Quick Settings Panel in android ? I have an app called Mirror by Koushik Dutta that does the same. It adds an item in Quick Settings panel. I decompiled the app and saw that he's moving the apk to /system/priv-app . That's it. Nothing's related to adding an item in Quick Settings Toggle. I know it'll require root access (just a college project). Please if anyone has any idea how it can be done, it would be really helpful.


Solution

  • Koushik Dutta didn't add a new quick settings tile. The "Cast Screen"-Tile is implemented by the android system and appears sometimes. It's a shortcut to the "cast screen"-menu in system settings. Koush added new options for this menu (i don't know if there's an open api or if he needs the root permission for that) and now, the tile is always displayed because there's always content.

    To answer your question: No, without system modifications with root, you can't add tiles to the android quick settings. (Edit: I haven't read that you'd also use root. So, you can't add tiles easily and the mirror application by Koushik Dutta doesn't do that, too.)

    PS: It isn't because of CyanogenMod, because I use stock android and the app works, too.

    Update 2019-08-08: With Android N, there's an official API to add custom quick setting tiles (see Sam's answer).