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

Commit 68c51080 authored by Jorge Ruesga's avatar Jorge Ruesga Committed by Adnan Begovic
Browse files

base: dynamic tiles

Add support for dynamic tiles

Video: https://cloud.ruesga.com/f/71a12e4801/


Required: topic:customtiles_respkg
          topic:readd_customtiles
JIRA: CML-22

Change-Id: Ie17ebf09ee88bc0c53561decc27430e174814543
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent 699d3450
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -91,8 +91,18 @@
    <!-- ADB notification message-->
    <string name="adb_active_generic_notification_message">Touch to disable debugging.</string>

    <!-- ADB custom tile -->
    <string name="adb_active_custom_tile">ADB - <xliff:g id="adb_type" example="Usb">%1$s</xliff:g></string>
    <string name="adb_active_custom_tile_both">Both</string>
    <string name="adb_active_custom_tile_usb">USB</string>
    <string name="adb_active_custom_tile_net">Network</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_accessThemeService">access theme service</string>

    <!-- Title of an application permission, listed so the user can choose whether they want the application to do this. -->
    <string name="permlab_interceptPackageLaunch">intercept app launch</string>

    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permdesc_accessThemeService">Allows an app to access the theme service. Should never be needed for normal apps.</string>

+6 −0
Original line number Diff line number Diff line
@@ -39,6 +39,12 @@
    <java-symbol type="array" name="notification_light_package_mapping" />
    <java-symbol type="array" name="config_notificationNoAlertsVibePattern" />

    <!-- ADB custom tile -->
    <java-symbol type="string" name="adb_active_custom_tile" />
    <java-symbol type="string" name="adb_active_custom_tile_both" />
    <java-symbol type="string" name="adb_active_custom_tile_usb" />
    <java-symbol type="string" name="adb_active_custom_tile_net" />

    <!-- Package Manager -->
    <java-symbol type="array" name="config_disabledComponents" />
    <java-symbol type="array" name="config_forceEnabledComponents" />
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src) \
    src/com/android/systemui/EventLogTags.logtags

LOCAL_STATIC_JAVA_LIBRARIES := Keyguard \
    org.cyanogenmod.platform.sdk \
    org.cyanogenmod.platform.internal \
    android-support-v7-palette \
    android-support-v4
+3 −0
Original line number Diff line number Diff line
@@ -32,6 +32,9 @@
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />

    <!-- Publish dynamic tiles -->
    <uses-permission android:name="cyanogenmod.permission.PUBLISH_CUSTOM_TILE" />

    <application>
        <provider android:name=".cm.SpamMessageProvider"
                  android:permission="android.permission.INTERACT_ACROSS_USERS_FULL"
+58 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The CyanogenMod Project

   Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="48dp"
    android:height="48dp"
    android:viewportWidth="48"
    android:viewportHeight="48">

    <path
        android:fillColor="#FFFFFF"
        android:pathData="M 37.727707,9.975208 L 40.285946,3.7258741 C 40.541238,3.1009409
40.243401,2.3882503 39.618464,2.1329586 38.993529,1.8776669 38.28084,2.1755027
38.025548,2.8004407 L 35.374234,9.275815 C 32.449014,8.605674 28.718028,8.350381
24.258396,8.350381 l 0,0.01596 0,0 0,-0.01862 c -0.582384,0 -1.148814,0.0053
-1.707266,0.01596 l -0.0027,0 c -3.712371,0.06116 -6.863631,0.329751
-9.405913,0.912136 L 10.491243,2.8004407 C 10.235951,2.1755075
9.5232609,1.8776669 8.8983273,2.1329586 8.2733938,2.3882503 7.9755532,3.1009409
8.2308452,3.7258741 L 10.789084,9.975208 c -3.3959157,1.284439
-5.1989153,3.45708 -5.1989153,6.94607 l 0,7.31837 0,1.898735 0,2.084884 c
0,6.411552 6.0738233,8.379428 16.9583033,8.557599 l 0,0.01064 0.67546,0 c
0.340389,0.0027 0.686097,0.0053 1.034464,0.0053 l 0,-0.0053 0,0 0,0.0053 c
0.348368,0 0.694075,-0.0027 1.034465,-0.0053 l 0.04786,0 c 11.280713,-0.11169
17.585893,-2.031699 17.585893,-8.565578 l 0,-2.087543 0,-1.898735 0,-7.31837 C
42.929314,13.429631 41.123615,11.259649 37.7277,9.975211 Z M 14.661013,27.973293
c -3.084777,0 -5.5845131,-2.499733 -5.5845131,-5.584512 0,-3.084778
2.4997361,-5.584511 5.5845131,-5.584511 3.084778,0 5.584512,2.499733
5.584512,5.584511 0,3.084779 -2.499734,5.584512 -5.584512,5.584512 z m
10.185086,4.050102 -1.178065,0 c -0.86693,0 -1.571642,-0.702054
-1.571642,-1.571642 0,-0.03192 0.008,-0.06382 0.01064,-0.09573 l 4.300073,0 c
0.0027,0.03192 0.01064,0.06116 0.01064,0.09573 0,0.869588 -0.704712,1.571642
-1.571641,1.571642 z m 9.00968,-4.050102 c -3.084778,0 -5.584512,-2.499733
-5.584512,-5.584512 0,-3.084778 2.499734,-5.584511 5.584512,-5.584511 3.084777,0
5.584512,2.499733 5.584512,5.584511 -0.0027,3.084779 -2.502394,5.584512
-5.584512,5.584512 z" />
    <path
        android:fillColor="#FFFFFF"
        android:strokeWidth="16"
        android:strokeLineJoin="round"
        android:strokeLineCap="round"
        android:pathData="M 23.2448199 33.152538 L 24.8907709 33.152538 Q 25.9999988 33.152538
25.9999988 34.2617659 L 25.9999988 44.6534791 Q 25.9999988 45.762707 24.8907709 45.762707
L 23.2448199 45.762707 Q 22.135592 45.762707 22.135592 44.6534791 L 22.135592 34.2617659
Q 22.135592 33.152538 23.2448199 33.152538 Z" />
</vector>
 No newline at end of file
Loading