Adding a custom quick settings tile was possible on Lollipop (Android 5) with the power of root. On Marshmallow (Android 6) the same procedure still works but there's now even a way to achieve it without root:
- enable the System UI Tuner: http://www.androidpolice.com/2015/10/05 ... tivate-it/
- open system settings->System UI Tuner->Quick Settings
- click Add tile at the bottom of the screen
- select Broadcast Tile
- set a unique name to identify this tile like MyTile1 (note that it seems not to like underscores in the name). Note the the tile will be invisible initially.
- open Automagic
- create a new flow to show and customize the tile
- add an action Init Variable Image File to load a small image into variable image_data. (Optionally use action Modify Image to scale down the image)
- add an action Send Broadcast, set field Action to MyTile1 and add following Extras:
The onClickUri-Extra is used to define what broadcast intent should be sent when the tile is clicked.
Code: Select all
putBoolean("visible", true); putString("label", "Automagic"); putString("contentDescription", "This is my own tile.");//optional putString("onClickUri", "intent:#Intent;action=automagic.MyTile1;end"); putString("onLongClickUri", "intent:#Intent;action=automagic.MyTile1Longclick;end"); putByteArray("iconBitmap", image_data);
- create a new flow to execute a flow when the tile is clicked
- add a trigger General Broadcast, set field Action to automagic.MyTile1 (this one has to match the value defined in the onClickUri above)
- add whatever actions/conditions you would like to execute when the tile is clicked
Martin