Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5dea9e81 authored by Adnan Begovic's avatar Adnan Begovic
Browse files

SystemUI: Squash custom tile commits

Add custom tile permissions.

Change-Id: I66ba62b525c937bf920fed0145ca1f789495e6ef

SystemUi: Surface Custom Tiles published by 3rd parties.

Change-Id: Id5046c1bd2c3530eb243f6d7b8cc4e8aa10685ed

SystemUI: Allow for creation of external package drawables.

Change-Id: Iefacf23ee178369242b9f240dec7ab585084745b

SystemUi: Create CustomTile detail pane with remove options.

Change-Id: I32612166d9256ee1ec03448d65533caf6ad1eb18

SystemUI: Surface provided settings intent by custom tiles.

Change-Id: I877c7548220102bc61d835ee114535de4799afaf

SystemUi: Collapse panels when onClick pending intent is fired.

Change-Id: I4bd9a9a223a1cd35f25d702c274dc26a4ad90b7e

SystemUI: Clean up custom tile ui and behavior.

Change-Id: Ibb65ceffd179529953a976d604739086bea3123b

SystemUI: Collapse panel prior to removing a custom tile.

  Saves from needing to invalidate the qs panel to
  properly remeasure.

Change-Id: I524740ae0c72e12e8df6373d7758398384038e99
parent 7062ece9
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -3052,6 +3052,20 @@
         confirmation UI for full backup/restore -->
    <uses-permission android:name="android.permission.CONFIRM_FULL_BACKUP"/>

    <!-- Must be required by an, to ensure that only the system can bind to it.
     @hide -->
    <permission android:name="android.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE"
                android:label="@string/permlab_bindCustomTileListenerService"
                android:description="@string/permdesc_bindCustomTileListenerService"
                android:protectionLevel="signature" />

    <!-- Allows a 3rd party application to publish or unpublish a quick settings tile
         @hide-->
    <permission android:name="android.permission.PUBLISH_CUSTOM_TILE"
                android:label="@string/permlab_publishCustomTile"
                android:description="@string/permdesc_publishCustomTile"
                android:protectionLevel="normal" />

    <application android:process="system"
                 android:persistent="true"
                 android:hasCode="false"
+9 −0
Original line number Diff line number Diff line
@@ -343,4 +343,13 @@
    <!-- Storage description for the SD card on the dock -->
    <string name="storage_sd_dock_card">Dock SD card</string>

    <string name="permlab_publishCustomTile">create a custom tile within qs tiles</string>
    <string name="permdesc_publishCustomTile">Allows an app to publish a quick settings tile</string>

    <string name="permlab_bindCustomTileListenerService">bind to a custom tile listener service</string>
    <string name="permdesc_bindCustomTileListenerService">Allows the holder to bind to the top-level interface of a custom tile listener service.</string>

    <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
    <string name="custom_tile_listener_binding_label">Custom tile listener</string>

</resources>
+1 −0
Original line number Diff line number Diff line
@@ -339,4 +339,5 @@
    <java-symbol type="string" name="config_defaultQuickSettingsTiles" />
 
    <java-symbol type="array" name="config_externalCMServices" />
    <java-symbol type="string" name="custom_tile_listener_binding_label" />
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -9,7 +9,8 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) \
LOCAL_STATIC_JAVA_LIBRARIES := Keyguard \
    android-support-v7-palette \
    android-support-v4 \
    android-visualizer
    android-visualizer \
    org.cyanogenmod.platform.sdk

LOCAL_JAVA_LIBRARIES := telephony-common

+3 −0
Original line number Diff line number Diff line
@@ -130,6 +130,9 @@
    <!-- Action target -->
    <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES" />

    <!-- Quick Settings Tile Listener -->
    <uses-permission android:name="android.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE"/>

    <application
        android:name=".SystemUIApplication"
        android:persistent="true"
Loading