aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-01-23 21:08:58 +0200
committerMichael Bestas <mkbestas@lineageos.org>2018-01-24 02:43:12 +0200
commit99fba21024ae72c27b3b5fa3a4f1903e16b8c716 (patch)
tree40034bc82cc41e49d0333b1ed4da1a6731f5cf27
parent498b79bb3a2778b26e01be4af037c222fd0dec9f (diff)
downloadlineage-sdk-99fba21024ae72c27b3b5fa3a4f1903e16b8c716.tar.gz
lineage-sdk-99fba21024ae72c27b3b5fa3a4f1903e16b8c716.tar.bz2
lineage-sdk-99fba21024ae72c27b3b5fa3a4f1903e16b8c716.zip
lineage-sdk: Remove lineage status bar service
* Used for CM tiles API which is long dead Change-Id: I66e8b57c035584aff5a4f5123388a4881e853a8f
-rw-r--r--api/lineage_current.txt136
-rw-r--r--lineage/lib/main/java/org/lineageos/platform/internal/LineageStatusBarManagerService.java692
-rw-r--r--lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java139
-rw-r--r--lineage/res/AndroidManifest.xml14
-rw-r--r--lineage/res/res/values-af/strings.xml6
-rw-r--r--lineage/res/res/values-am/strings.xml1
-rw-r--r--lineage/res/res/values-ar/strings.xml6
-rw-r--r--lineage/res/res/values-as-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-ast-rES/strings.xml5
-rw-r--r--lineage/res/res/values-az-rAZ/strings.xml6
-rw-r--r--lineage/res/res/values-be-rBY/strings.xml6
-rw-r--r--lineage/res/res/values-bg/strings.xml6
-rw-r--r--lineage/res/res/values-bn-rBD/strings.xml1
-rw-r--r--lineage/res/res/values-br-rFR/strings.xml1
-rw-r--r--lineage/res/res/values-bs-rBA/strings.xml1
-rw-r--r--lineage/res/res/values-ca/strings.xml6
-rw-r--r--lineage/res/res/values-cs/strings.xml6
-rw-r--r--lineage/res/res/values-csb-rPL/strings.xml1
-rw-r--r--lineage/res/res/values-cy/strings.xml1
-rw-r--r--lineage/res/res/values-da/strings.xml6
-rw-r--r--lineage/res/res/values-de/strings.xml6
-rw-r--r--lineage/res/res/values-el/strings.xml6
-rw-r--r--lineage/res/res/values-en-rAU/strings.xml6
-rw-r--r--lineage/res/res/values-en-rGB/strings.xml6
-rw-r--r--lineage/res/res/values-en-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-en-rPT/strings.xml1
-rw-r--r--lineage/res/res/values-eo/strings.xml1
-rw-r--r--lineage/res/res/values-es-rCO/strings.xml1
-rw-r--r--lineage/res/res/values-es-rMX/strings.xml1
-rw-r--r--lineage/res/res/values-es-rUS/strings.xml6
-rw-r--r--lineage/res/res/values-es/strings.xml6
-rw-r--r--lineage/res/res/values-et-rEE/strings.xml6
-rw-r--r--lineage/res/res/values-eu-rES/strings.xml6
-rw-r--r--lineage/res/res/values-fa/strings.xml6
-rw-r--r--lineage/res/res/values-fi/strings.xml6
-rw-r--r--lineage/res/res/values-fil-rPH/strings.xml1
-rw-r--r--lineage/res/res/values-fr-rCA/strings.xml1
-rw-r--r--lineage/res/res/values-fr/strings.xml6
-rw-r--r--lineage/res/res/values-frp-rIT/strings.xml1
-rw-r--r--lineage/res/res/values-fy-rNL/strings.xml1
-rw-r--r--lineage/res/res/values-ga-rIE/strings.xml1
-rw-r--r--lineage/res/res/values-gd-rGB/strings.xml1
-rw-r--r--lineage/res/res/values-gl-rES/strings.xml6
-rw-r--r--lineage/res/res/values-gu-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-hi/strings.xml1
-rw-r--r--lineage/res/res/values-hr/strings.xml6
-rw-r--r--lineage/res/res/values-hu/strings.xml6
-rw-r--r--lineage/res/res/values-hy-rAM/strings.xml1
-rw-r--r--lineage/res/res/values-in/strings.xml6
-rw-r--r--lineage/res/res/values-is-rIS/strings.xml1
-rw-r--r--lineage/res/res/values-it/strings.xml6
-rw-r--r--lineage/res/res/values-iw/strings.xml6
-rw-r--r--lineage/res/res/values-ja/strings.xml6
-rw-r--r--lineage/res/res/values-ka-rGE/strings.xml1
-rw-r--r--lineage/res/res/values-kk-rKZ/strings.xml1
-rw-r--r--lineage/res/res/values-km-rKH/strings.xml1
-rw-r--r--lineage/res/res/values-kn-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-ko/strings.xml6
-rw-r--r--lineage/res/res/values-ku/strings.xml3
-rw-r--r--lineage/res/res/values-ky-rKG/strings.xml1
-rw-r--r--lineage/res/res/values-lb/strings.xml6
-rw-r--r--lineage/res/res/values-lo-rLA/strings.xml1
-rw-r--r--lineage/res/res/values-lt/strings.xml6
-rw-r--r--lineage/res/res/values-lv/strings.xml1
-rw-r--r--lineage/res/res/values-mk-rMK/strings.xml1
-rw-r--r--lineage/res/res/values-ml-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-mn-rMN/strings.xml1
-rw-r--r--lineage/res/res/values-mr-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-ms-rMY/strings.xml1
-rw-r--r--lineage/res/res/values-my-rMM/strings.xml1
-rw-r--r--lineage/res/res/values-nb/strings.xml6
-rw-r--r--lineage/res/res/values-ne-rNP/strings.xml1
-rw-r--r--lineage/res/res/values-nl/strings.xml6
-rw-r--r--lineage/res/res/values-oc-rFR/strings.xml1
-rw-r--r--lineage/res/res/values-or-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-pa-rIN/strings.xml1
-rw-r--r--lineage/res/res/values-pl/strings.xml6
-rw-r--r--lineage/res/res/values-pt-rBR/strings.xml6
-rw-r--r--lineage/res/res/values-pt-rPT/strings.xml6
-rw-r--r--lineage/res/res/values-rm/strings.xml1
-rw-r--r--lineage/res/res/values-ro/strings.xml6
-rw-r--r--lineage/res/res/values-ru/strings.xml6
-rw-r--r--lineage/res/res/values-si-rLK/strings.xml1
-rw-r--r--lineage/res/res/values-sk/strings.xml6
-rw-r--r--lineage/res/res/values-sl/strings.xml6
-rw-r--r--lineage/res/res/values-sq-rAL/strings.xml3
-rw-r--r--lineage/res/res/values-sr-rCS/strings.xml1
-rw-r--r--lineage/res/res/values-sr/strings.xml6
-rw-r--r--lineage/res/res/values-sv/strings.xml6
-rw-r--r--lineage/res/res/values-sw/strings.xml1
-rw-r--r--lineage/res/res/values-ta-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-te-rIN/strings.xml6
-rw-r--r--lineage/res/res/values-th/strings.xml6
-rw-r--r--lineage/res/res/values-tr/strings.xml6
-rw-r--r--lineage/res/res/values-ug/strings.xml6
-rw-r--r--lineage/res/res/values-uk/strings.xml6
-rw-r--r--lineage/res/res/values-ur-rPK/strings.xml1
-rw-r--r--lineage/res/res/values-uz-rUZ/strings.xml1
-rw-r--r--lineage/res/res/values-vi/strings.xml6
-rw-r--r--lineage/res/res/values-zh-rCN/strings.xml6
-rw-r--r--lineage/res/res/values-zh-rHK/strings.xml2
-rw-r--r--lineage/res/res/values-zh-rTW/strings.xml6
-rw-r--r--lineage/res/res/values-zu/strings.xml1
-rw-r--r--lineage/res/res/values/config.xml4
-rw-r--r--lineage/res/res/values/strings.xml6
-rw-r--r--lineage/res/res/values/symbols.xml5
-rw-r--r--packages/LineageSettingsProvider/res/values/defaults.xml11
-rw-r--r--packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java7
-rw-r--r--packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java38
-rw-r--r--samples/customtiles/Android.mk11
-rw-r--r--samples/customtiles/AndroidManifest.xml23
-rw-r--r--samples/customtiles/res/drawable-hdpi/ic_launcher.pngbin3418 -> 0 bytes
-rw-r--r--samples/customtiles/res/drawable-mdpi/ic_launcher.pngbin2206 -> 0 bytes
-rw-r--r--samples/customtiles/res/drawable-xhdpi/ic_launcher.pngbin4842 -> 0 bytes
-rw-r--r--samples/customtiles/res/layout/main.xml26
-rw-r--r--samples/customtiles/res/values/strings.xml7
-rw-r--r--samples/customtiles/src/org/lineageos/samples/customtiles/MainActivity.java141
-rw-r--r--samples/customtiles/src/org/lineageos/samples/customtiles/States.java25
-rw-r--r--samples/customtiles/src/org/lineageos/samples/customtiles/TileReceiver.java76
-rw-r--r--sdk/src/java/lineageos/app/CustomTile.aidl19
-rw-r--r--sdk/src/java/lineageos/app/CustomTile.java1106
-rw-r--r--sdk/src/java/lineageos/app/CustomTileListenerService.java231
-rw-r--r--sdk/src/java/lineageos/app/ICustomTileListener.aidl28
-rw-r--r--sdk/src/java/lineageos/app/ILineageStatusBarManager.aidl38
-rw-r--r--sdk/src/java/lineageos/app/IStatusBarCustomTileHolder.aidl25
-rw-r--r--sdk/src/java/lineageos/app/LineageContextConstants.java18
-rw-r--r--sdk/src/java/lineageos/app/LineageStatusBarManager.java247
-rw-r--r--sdk/src/java/lineageos/app/StatusBarPanelCustomTile.aidl20
-rw-r--r--sdk/src/java/lineageos/app/StatusBarPanelCustomTile.java261
-rw-r--r--sdk/src/java/lineageos/providers/LineageSettings.java15
-rw-r--r--sdk/src/java/org/lineageos/internal/statusbar/ExternalQuickSettingsRecord.java53
-rw-r--r--sdk/src/java/org/lineageos/internal/util/QSConstants.java111
-rw-r--r--sdk/src/java/org/lineageos/internal/util/QSUtils.java304
-rw-r--r--tests/src/org/lineageos/tests/customtiles/DummySettings.java30
-rw-r--r--tests/src/org/lineageos/tests/customtiles/LineageStatusBarTest.java363
-rw-r--r--tests/src/org/lineageos/tests/customtiles/unit/CustomTileBuilderTest.java258
-rw-r--r--tests/src/org/lineageos/tests/customtiles/unit/CustomTileTest.java360
-rw-r--r--tests/src/org/lineageos/tests/customtiles/unit/LineageStatusBarManagerTest.java225
-rw-r--r--tests/src/org/lineageos/tests/customtiles/unit/StatusBarPanelCustomTileTest.java137
139 files changed, 0 insertions, 5598 deletions
diff --git a/api/lineage_current.txt b/api/lineage_current.txt
index f66351f0..f8723f9a 100644
--- a/api/lineage_current.txt
+++ b/api/lineage_current.txt
@@ -66,123 +66,6 @@ package lineageos.alarmclock {
package lineageos.app {
- public class CustomTile implements android.os.Parcelable {
- ctor public CustomTile(android.os.Parcel);
- ctor public CustomTile();
- method public lineageos.app.CustomTile clone();
- method public int describeContents();
- method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator<lineageos.app.CustomTile> CREATOR;
- field public static final int PSEUDO_GRID_ITEM_MAX_COUNT = 9; // 0x9
- field public boolean collapsePanel;
- field public java.lang.String contentDescription;
- field public android.app.PendingIntent deleteIntent;
- field public lineageos.app.CustomTile.ExpandedStyle expandedStyle;
- field public int icon;
- field public java.lang.String label;
- field public android.app.PendingIntent onClick;
- field public android.net.Uri onClickUri;
- field public android.app.PendingIntent onLongClick;
- field public android.content.Intent onSettingsClick;
- field public android.graphics.Bitmap remoteIcon;
- field public boolean sensitiveData;
- }
-
- public static class CustomTile.Builder {
- ctor public CustomTile.Builder(android.content.Context);
- method public lineageos.app.CustomTile build();
- method public lineageos.app.CustomTile.Builder hasSensitiveData(boolean);
- method public lineageos.app.CustomTile.Builder setContentDescription(java.lang.String);
- method public lineageos.app.CustomTile.Builder setContentDescription(int);
- method public lineageos.app.CustomTile.Builder setDeleteIntent(android.app.PendingIntent);
- method public lineageos.app.CustomTile.Builder setExpandedStyle(lineageos.app.CustomTile.ExpandedStyle);
- method public lineageos.app.CustomTile.Builder setIcon(int);
- method public lineageos.app.CustomTile.Builder setIcon(android.graphics.Bitmap);
- method public lineageos.app.CustomTile.Builder setLabel(java.lang.String);
- method public lineageos.app.CustomTile.Builder setLabel(int);
- method public lineageos.app.CustomTile.Builder setOnClickIntent(android.app.PendingIntent);
- method public lineageos.app.CustomTile.Builder setOnClickUri(android.net.Uri);
- method public lineageos.app.CustomTile.Builder setOnLongClickIntent(android.app.PendingIntent);
- method public lineageos.app.CustomTile.Builder setOnSettingsClickIntent(android.content.Intent);
- method public lineageos.app.CustomTile.Builder shouldCollapsePanel(boolean);
- }
-
- public static class CustomTile.ExpandedGridItem extends lineageos.app.CustomTile.ExpandedItem {
- ctor public CustomTile.ExpandedGridItem();
- method public void setExpandedGridItemBitmap(android.graphics.Bitmap);
- method public void setExpandedGridItemDrawable(int);
- method public void setExpandedGridItemOnClickIntent(android.app.PendingIntent);
- method public void setExpandedGridItemTitle(java.lang.String);
- }
-
- public static class CustomTile.ExpandedItem implements android.os.Parcelable {
- ctor protected CustomTile.ExpandedItem(android.os.Parcel);
- method public int describeContents();
- method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator<lineageos.app.CustomTile.ExpandedItem> CREATOR;
- field public android.graphics.Bitmap itemBitmapResource;
- field public int itemDrawableResourceId;
- field public java.lang.String itemSummary;
- field public java.lang.String itemTitle;
- field public android.app.PendingIntent onClickPendingIntent;
- }
-
- public static class CustomTile.ExpandedListItem extends lineageos.app.CustomTile.ExpandedItem {
- ctor public CustomTile.ExpandedListItem();
- method public void setExpandedListItemBitmap(android.graphics.Bitmap);
- method public void setExpandedListItemDrawable(int);
- method public void setExpandedListItemOnClickIntent(android.app.PendingIntent);
- method public void setExpandedListItemSummary(java.lang.String);
- method public void setExpandedListItemTitle(java.lang.String);
- }
-
- public static class CustomTile.ExpandedStyle implements android.os.Parcelable {
- method public int describeContents();
- method public android.widget.RemoteViews getContentViews();
- method public lineageos.app.CustomTile.ExpandedItem[] getExpandedItems();
- method public int getStyle();
- method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator<lineageos.app.CustomTile.ExpandedStyle> CREATOR;
- field public static final int GRID_STYLE = 0; // 0x0
- field public static final int LIST_STYLE = 1; // 0x1
- field public static final int REMOTE_STYLE = 2; // 0x2
- }
-
- public static class CustomTile.GridExpandedStyle extends lineageos.app.CustomTile.ExpandedStyle {
- ctor public CustomTile.GridExpandedStyle();
- method public void setGridItems(java.util.ArrayList<lineageos.app.CustomTile.ExpandedGridItem>);
- }
-
- public static class CustomTile.ListExpandedStyle extends lineageos.app.CustomTile.ExpandedStyle {
- ctor public CustomTile.ListExpandedStyle();
- method public void setListItems(java.util.ArrayList<lineageos.app.CustomTile.ExpandedListItem>);
- }
-
- public static class CustomTile.RemoteExpandedStyle extends lineageos.app.CustomTile.ExpandedStyle {
- ctor public CustomTile.RemoteExpandedStyle();
- method public void setRemoteViews(android.widget.RemoteViews);
- }
-
- public class CustomTileListenerService extends android.app.Service {
- ctor public CustomTileListenerService();
- method public android.os.IBinder onBind(android.content.Intent);
- method public void onCustomTilePosted(lineageos.app.StatusBarPanelCustomTile);
- method public void onCustomTileRemoved(lineageos.app.StatusBarPanelCustomTile);
- method public void onListenerConnected();
- method public final void removeCustomTile(java.lang.String, java.lang.String, int);
- field public static final java.lang.String SERVICE_INTERFACE = "lineageos.app.CustomTileListenerService";
- }
-
- public class LineageStatusBarManager {
- method public static lineageos.app.LineageStatusBarManager getInstance(android.content.Context);
- method public void publishTile(int, lineageos.app.CustomTile);
- method public void publishTile(java.lang.String, int, lineageos.app.CustomTile);
- method public void publishTileAsUser(java.lang.String, int, lineageos.app.CustomTile, android.os.UserHandle);
- method public void removeTile(int);
- method public void removeTile(java.lang.String, int);
- method public void removeTileAsUser(java.lang.String, int, android.os.UserHandle);
- }
-
public class LineageTelephonyManager {
method public static lineageos.app.LineageTelephonyManager getInstance(android.content.Context);
method public java.util.List<android.telephony.SubscriptionInfo> getSubInformation();
@@ -330,24 +213,6 @@ package lineageos.app {
field public static final int PROFILES_STATE_ENABLED = 1; // 0x1
}
- public class StatusBarPanelCustomTile implements android.os.Parcelable {
- ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, lineageos.app.CustomTile, android.os.UserHandle);
- ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, lineageos.app.CustomTile, android.os.UserHandle, long);
- ctor public StatusBarPanelCustomTile(android.os.Parcel);
- method public lineageos.app.StatusBarPanelCustomTile clone();
- method public int describeContents();
- method public lineageos.app.CustomTile getCustomTile();
- method public int getId();
- method public java.lang.String getKey();
- method public java.lang.String getPackage();
- method public long getPostTime();
- method public java.lang.String getTag();
- method public android.os.UserHandle getUser();
- method public int getUserId();
- method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator<lineageos.app.StatusBarPanelCustomTile> CREATOR;
- }
-
}
package lineageos.content {
@@ -598,7 +463,6 @@ package lineageos.platform {
field public static final java.lang.String MODIFY_SOUND_SETTINGS = "lineageos.permission.MODIFY_SOUND_SETTINGS";
field public static final java.lang.String PERFORMANCE_ACCESS = "lineageos.permission.PERFORMANCE_ACCESS";
field public static final java.lang.String PROTECTED_APP = "lineageos.permission.PROTECTED_APP";
- field public static final java.lang.String PUBLISH_CUSTOM_TILE = "lineageos.permission.PUBLISH_CUSTOM_TILE";
field public static final java.lang.String READ_ALARMS = "lineageos.permission.READ_ALARMS";
field public static final java.lang.String READ_DATAUSAGE = "lineageos.permission.READ_DATAUSAGE";
field public static final java.lang.String READ_MSIM_PHONE_STATE = "lineageos.permission.READ_MSIM_PHONE_STATE";
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/LineageStatusBarManagerService.java b/lineage/lib/main/java/org/lineageos/platform/internal/LineageStatusBarManagerService.java
deleted file mode 100644
index 4ed76dce..00000000
--- a/lineage/lib/main/java/org/lineageos/platform/internal/LineageStatusBarManagerService.java
+++ /dev/null
@@ -1,692 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.platform.internal;
-
-import android.app.ActivityManager;
-import android.app.AppGlobals;
-import android.app.PendingIntent;
-import android.content.BroadcastReceiver;
-import android.content.ComponentName;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.content.pm.ApplicationInfo;
-import android.content.pm.IPackageManager;
-import android.content.pm.PackageManager;
-import android.net.Uri;
-import android.os.Binder;
-import android.os.Handler;
-import android.os.IBinder;
-import android.os.IInterface;
-import android.os.RemoteException;
-import android.os.UserHandle;
-import android.text.TextUtils;
-import android.util.ArrayMap;
-import android.util.Log;
-import android.util.Slog;
-
-import com.android.server.SystemService;
-
-import lineageos.app.LineageContextConstants;
-import lineageos.app.CustomTile;
-import lineageos.app.CustomTileListenerService;
-import lineageos.app.StatusBarPanelCustomTile;
-import lineageos.app.ICustomTileListener;
-import lineageos.app.ILineageStatusBarManager;
-import lineageos.app.IStatusBarCustomTileHolder;
-
-import org.lineageos.internal.statusbar.ExternalQuickSettingsRecord;
-
-import java.util.ArrayList;
-
-import org.lineageos.platform.internal.R;
-
-/**
- * Internal service which manages interactions with system ui elements
- * @hide
- */
-public class LineageStatusBarManagerService extends LineageSystemService {
- private static final String TAG = "LineageStatusBarManagerService";
-
- private Context mContext;
- private Handler mHandler = new Handler();
- private CustomTileListeners mCustomTileListeners;
-
- static final int MAX_PACKAGE_TILES = 4;
-
- private static final int REASON_PACKAGE_CHANGED = 1;
-
- private final ManagedServices.UserProfiles mUserProfiles = new ManagedServices.UserProfiles();
-
- final ArrayList<ExternalQuickSettingsRecord> mQSTileList =
- new ArrayList<ExternalQuickSettingsRecord>();
- final ArrayMap<String, ExternalQuickSettingsRecord> mCustomTileByKey =
- new ArrayMap<String, ExternalQuickSettingsRecord>();
-
- public LineageStatusBarManagerService(Context context) {
- super(context);
- mContext = context;
- }
-
- @Override
- public String getFeatureDeclaration() {
- return LineageContextConstants.Features.STATUSBAR;
- }
-
- @Override
- public void onStart() {
- Log.d(TAG, "registerLineageStatusBar lineagestatusbar: " + this);
- mCustomTileListeners = new CustomTileListeners();
- publishBinderService(LineageContextConstants.LINEAGE_STATUS_BAR_SERVICE, mService);
-
- IntentFilter pkgFilter = new IntentFilter();
- pkgFilter.addAction(Intent.ACTION_PACKAGE_ADDED);
- pkgFilter.addAction(Intent.ACTION_PACKAGE_REMOVED);
- pkgFilter.addAction(Intent.ACTION_PACKAGE_CHANGED);
- pkgFilter.addAction(Intent.ACTION_PACKAGE_RESTARTED);
- pkgFilter.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART);
- pkgFilter.addDataScheme("package");
- getContext().registerReceiverAsUser(mPackageIntentReceiver, UserHandle.ALL, pkgFilter, null,
- null);
-
- IntentFilter sdFilter = new IntentFilter(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE);
- getContext().registerReceiverAsUser(mPackageIntentReceiver, UserHandle.ALL, sdFilter, null,
- null);
- }
-
- private final BroadcastReceiver mPackageIntentReceiver = new BroadcastReceiver() {
- @Override
- public void onReceive(Context context, Intent intent) {
- String action = intent.getAction();
- if (action == null) {
- return;
- }
-
- boolean queryRestart = false;
- boolean queryRemove = false;
- boolean packageChanged = false;
- boolean removeTiles = true;
-
- if (action.equals(Intent.ACTION_PACKAGE_ADDED)
- || (queryRemove=action.equals(Intent.ACTION_PACKAGE_REMOVED))
- || action.equals(Intent.ACTION_PACKAGE_RESTARTED)
- || (packageChanged=action.equals(Intent.ACTION_PACKAGE_CHANGED))
- || (queryRestart=action.equals(Intent.ACTION_QUERY_PACKAGE_RESTART))
- || action.equals(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE)) {
- int changeUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE,
- UserHandle.USER_ALL);
- String pkgList[] = null;
- boolean queryReplace = queryRemove &&
- intent.getBooleanExtra(Intent.EXTRA_REPLACING, false);
- if (action.equals(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE)) {
- pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
- } else if (queryRestart) {
- pkgList = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES);
- } else {
- Uri uri = intent.getData();
- if (uri == null) {
- return;
- }
- String pkgName = uri.getSchemeSpecificPart();
- if (pkgName == null) {
- return;
- }
- if (packageChanged) {
- // We remove tiles for packages which have just been disabled
- try {
- final IPackageManager pm = AppGlobals.getPackageManager();
- final int enabled = pm.getApplicationEnabledSetting(pkgName,
- changeUserId != UserHandle.USER_ALL ? changeUserId :
- UserHandle.USER_OWNER);
- if (enabled == PackageManager.COMPONENT_ENABLED_STATE_ENABLED
- || enabled == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT) {
- removeTiles = false;
- }
- } catch (IllegalArgumentException e) {
- // Package doesn't exist; probably racing with uninstall.
- // removeTiles is already true, so nothing to do here.
- Slog.i(TAG, "Exception trying to look up app enabled setting", e);
- } catch (RemoteException e) {
- // Failed to talk to PackageManagerService Should never happen!
- }
- }
- pkgList = new String[]{pkgName};
- }
-
- if (pkgList != null && (pkgList.length > 0)) {
- for (String pkgName : pkgList) {
- if (removeTiles) {
- removeAllCustomTilesInt(pkgName, !queryRestart,
- changeUserId, REASON_PACKAGE_CHANGED, null);
- }
- }
- }
- mCustomTileListeners.onPackagesChanged(queryReplace, pkgList);
- }
- }
- };
-
- private final IBinder mService = new ILineageStatusBarManager.Stub() {
- /**
- * @hide
- */
- @Override
- public void createCustomTileWithTag(String pkg, String opPkg, String tag, int id,
- CustomTile customTile, int[] idOut, int userId) throws RemoteException {
- enforceCustomTilePublish();
- createCustomTileWithTagInternal(pkg, opPkg, Binder.getCallingUid(),
- Binder.getCallingPid(), tag, id, customTile, idOut, userId);
- }
-
- /**
- * @hide
- */
- @Override
- public void removeCustomTileWithTag(String pkg, String tag, int id, int userId) {
- checkCallerIsSystemOrSameApp(pkg);
- userId = ActivityManager.handleIncomingUser(Binder.getCallingPid(),
- Binder.getCallingUid(), userId, true, false, "cancelCustomTileWithTag", pkg);
- removeCustomTileWithTagInternal(Binder.getCallingUid(),
- Binder.getCallingPid(), pkg, tag, id, userId, null);
- }
-
- /**
- * Register a listener binder directly with the status bar manager.
- *
- * Only works with system callers. Apps should extend
- * {@link lineageos.app.CustomTileListenerService}.
- * @hide
- */
- @Override
- public void registerListener(final ICustomTileListener listener,
- final ComponentName component, final int userid) {
- enforceBindCustomTileListener();
- mCustomTileListeners.registerService(listener, component, userid);
-
- // Notify registered tiles
- try {
- for (ExternalQuickSettingsRecord qsTile : mQSTileList) {
- if (userid == UserHandle.USER_ALL || qsTile.getUserId() == userid) {
- listener.onCustomTilePosted(new StatusBarCustomTileHolder(qsTile.sbTile));
- }
- }
- } catch (RemoteException re) {
- // Ignore
- }
- }
-
- /**
- * Remove a listener binder directly
- * @hide
- */
- @Override
- public void unregisterListener(ICustomTileListener listener, int userid) {
- enforceBindCustomTileListener();
- mCustomTileListeners.unregisterService(listener, userid);
- }
-
- /**
- * Allow an ICustomTileListener to simulate clearing (dismissing) a single customTile.
- *
- * @param token The binder for the listener, to check that the caller is allowed
- */
- @Override
- public void removeCustomTileFromListener(ICustomTileListener token, String pkg,
- String tag, int id) {
- final int callingUid = Binder.getCallingUid();
- final int callingPid = Binder.getCallingPid();
- long identity = Binder.clearCallingIdentity();
- try {
- synchronized (mQSTileList) {
- final ManagedServices.ManagedServiceInfo info
- = mCustomTileListeners.checkServiceTokenLocked(token);
- removeCustomTileFromListenerLocked(info, callingUid, callingPid,
- pkg, tag, id, info.userid);
- }
- } finally {
- Binder.restoreCallingIdentity(identity);
- }
- }
- };
-
- void createCustomTileWithTagInternal(final String pkg, final String opPkg, final int callingUid,
- final int callingPid, final String tag, final int id, final CustomTile customTile,
- final int[] idOut, final int incomingUserId) {
-
- if (pkg == null || customTile == null) {
- throw new IllegalArgumentException("null not allowed: pkg=" + pkg
- + " id=" + id + " customTile=" + customTile);
- }
-
- final int userId = ActivityManager.handleIncomingUser(callingPid,
- callingUid, incomingUserId, true, false, "createCustomTileWithTag", pkg);
- final UserHandle user = new UserHandle(userId);
-
- // remove custom tile call ends up in not removing the custom tile.
- mHandler.post(new Runnable() {
- @Override
- public void run() {
- // Obtain the resources package name
- String resPkg = customTile.getResourcesPackageName();
- if (TextUtils.isEmpty(resPkg)) {
- resPkg = pkg;
- }
-
- final StatusBarPanelCustomTile sbc = new StatusBarPanelCustomTile(
- pkg, resPkg, opPkg, id, tag, callingUid, callingPid, customTile, user);
- ExternalQuickSettingsRecord r = new ExternalQuickSettingsRecord(sbc);
- ExternalQuickSettingsRecord old = mCustomTileByKey.get(sbc.getKey());
-
- int index = indexOfQsTileLocked(sbc.getKey());
- if (index < 0) {
- // If this tile unknown to us, check DOS protection
- if (checkDosProtection(pkg, callingUid, userId)) return;
- mQSTileList.add(r);
- } else {
- old = mQSTileList.get(index);
- mQSTileList.set(index, r);
- r.isUpdate = true;
- }
-
- mCustomTileByKey.put(sbc.getKey(), r);
-
- if (customTile.icon != 0 || customTile.remoteIcon != null) {
- StatusBarPanelCustomTile oldSbn = (old != null) ? old.sbTile : null;
- mCustomTileListeners.notifyPostedLocked(sbc, oldSbn);
- } else {
- Slog.e(TAG, "Not posting custom tile with no icon set: " + customTile);
- if (old != null && !old.isCanceled) {
- mCustomTileListeners.notifyRemovedLocked(sbc);
- }
- }
- }
- });
- idOut[0] = id;
- }
-
- private boolean checkDosProtection(String pkg, int callingUid, int userId) {
- final boolean isSystemTile = isUidSystem(callingUid) || ("android".equals(pkg));
- // Limit the number of Custom tiles that any given package except the android
- // package or a registered listener can enqueue. Prevents DOS attacks and deals with leaks.
- if (!isSystemTile) {
- synchronized (mQSTileList) {
- int count = 0;
- final int N = mQSTileList.size();
-
- for (int i = 0; i < N; i++) {
- final ExternalQuickSettingsRecord r = mQSTileList.get(i);
- if (r.sbTile.getPackage().equals(pkg) && r.sbTile.getUserId() == userId) {
- count++;
- if (count >= MAX_PACKAGE_TILES) {
- Slog.e(TAG, "Package has already posted " + count
- + " custom tiles. Not showing more. package=" + pkg);
- return true;
- }
- }
- }
- }
- }
- return false;
- }
-
- // lock on mQSTileList
- int indexOfQsTileLocked(String key) {
- final int N = mQSTileList.size();
- for (int i = 0; i < N; i++) {
- if (key.equals(mQSTileList.get(i).getKey())) {
- return i;
- }
- }
- return -1;
- }
-
- // lock on mQSTileList
- int indexOfQsTileLocked(String pkg, String tag, int id, int userId) {
- ArrayList<ExternalQuickSettingsRecord> list = mQSTileList;
- final int len = list.size();
- for (int i = 0; i < len; i++) {
- ExternalQuickSettingsRecord r = list.get(i);
- if (!customTileMatchesUserId(r, userId) || r.sbTile.getId() != id) {
- continue;
- }
- if (tag == null) {
- if (r.sbTile.getTag() != null) {
- continue;
- }
- } else {
- if (!tag.equals(r.sbTile.getTag())) {
- continue;
- }
- }
- if (r.sbTile.getPackage().equals(pkg)) {
- return i;
- }
- }
- return -1;
- }
-
- private static void checkCallerIsSystemOrSameApp(String pkg) {
- if (isCallerSystem()) {
- return;
- }
- final int uid = Binder.getCallingUid();
- try {
- ApplicationInfo ai = AppGlobals.getPackageManager().getApplicationInfo(
- pkg, 0, UserHandle.getCallingUserId());
- if (ai == null) {
- throw new SecurityException("Unknown package " + pkg);
- }
- if (!UserHandle.isSameApp(ai.uid, uid)) {
- throw new SecurityException("Calling uid " + uid + " gave package"
- + pkg + " which is owned by uid " + ai.uid);
- }
- } catch (RemoteException re) {
- throw new SecurityException("Unknown package " + pkg + "\n" + re);
- }
- }
-
- private static boolean isUidSystem(int uid) {
- final int appid = UserHandle.getAppId(uid);
- return (appid == android.os.Process.SYSTEM_UID
- || appid == android.os.Process.PHONE_UID || uid == 0);
- }
-
- private static boolean isCallerSystem() {
- return isUidSystem(Binder.getCallingUid());
- }
-
- /**
- * Determine whether the userId applies to the custom tile in question, either because
- * they match exactly, or one of them is USER_ALL (which is treated as a wildcard).
- */
- private boolean customTileMatchesUserId(ExternalQuickSettingsRecord r, int userId) {
- return
- // looking for USER_ALL custom tile? match everything
- userId == UserHandle.USER_ALL
- // a custom tile sent to USER_ALL matches any query
- || r.getUserId() == UserHandle.USER_ALL
- // an exact user match
- || r.getUserId() == userId;
- }
-
- private void removeCustomTileFromListenerLocked(ManagedServices.ManagedServiceInfo info,
- int callingUid, int callingPid, String pkg, String tag, int id, int userId) {
- removeCustomTileWithTagInternal(callingUid, callingPid, pkg, tag, id, userId, info);
- }
-
- void removeCustomTileWithTagInternal(final int callingUid, final int callingPid,
- final String pkg, final String tag, final int id, final int userId,
- final ManagedServices.ManagedServiceInfo listener) {
- mHandler.post(new Runnable() {
- @Override
- public void run() {
- synchronized (mQSTileList) {
- int index = indexOfQsTileLocked(pkg, tag, id, userId);
- if (index >= 0) {
- ExternalQuickSettingsRecord r = mQSTileList.get(index);
- mQSTileList.remove(index);
- // status bar
- r.isCanceled = true;
- mCustomTileListeners.notifyRemovedLocked(r.sbTile);
- mCustomTileByKey.remove(r.sbTile.getKey());
- if (r.getCustomTile().deleteIntent != null) {
- try {
- r.getCustomTile().deleteIntent.send();
- } catch (PendingIntent.CanceledException ex) {
- // do nothing - there's no relevant way to recover, and
- // no reason to let this propagate
- Slog.w(TAG, "canceled PendingIntent for "
- + r.sbTile.getPackage(), ex);
- }
- }
- }
- }
- }
- });
- }
-
- /**
- * Removes all custom tiles from a given package that have all of the
- * {@code mustHaveFlags}.
- */
- boolean removeAllCustomTilesInt(String pkg, boolean doit, int userId, int reason,
- ManagedServices.ManagedServiceInfo listener) {
- synchronized (mQSTileList) {
- final int N = mQSTileList.size();
- ArrayList<ExternalQuickSettingsRecord> removedTiles = null;
- for (int i = N-1; i >= 0; --i) {
- ExternalQuickSettingsRecord r = mQSTileList.get(i);
- if (!customTileMatchesUserId(r, userId)) {
- continue;
- }
- // Don't remove custom tiles to all, if there's no package name specified
- if (r.getUserId() == UserHandle.USER_ALL && pkg == null) {
- continue;
- }
- if (pkg != null && !r.sbTile.getPackage().equals(pkg)) {
- continue;
- }
- if (removedTiles == null) {
- removedTiles = new ArrayList<>();
- }
- removedTiles.add(r);
- if (!doit) {
- return true;
- }
- mQSTileList.remove(i);
- removeCustomTileLocked(r, false, reason);
- }
- return removedTiles != null;
- }
- }
-
- private void removeCustomTileLocked(ExternalQuickSettingsRecord r,
- boolean sendDelete, int reason) {
- // tell the app
- if (sendDelete) {
- if (r.getCustomTile().deleteIntent != null) {
- try {
- r.getCustomTile().deleteIntent.send();
- } catch (PendingIntent.CanceledException ex) {
- // do nothing - there's no relevant way to recover, and
- // no reason to let this propagate
- Slog.w(TAG, "canceled PendingIntent for " + r.sbTile.getPackage(), ex);
- }
- }
- }
-
- // status bar
- if (r.getCustomTile().icon != 0 || r.getCustomTile().remoteIcon != null) {
- r.isCanceled = true;
- mCustomTileListeners.notifyRemovedLocked(r.sbTile);
- }
-
- mCustomTileByKey.remove(r.sbTile.getKey());
- }
-
- private void enforceSystemOrSystemUI(String message) {
- if (isCallerSystem()) return;
- mContext.enforceCallingPermission(android.Manifest.permission.STATUS_BAR_SERVICE,
- message);
- }
-
- private void enforceCustomTilePublish() {
- mContext.enforceCallingOrSelfPermission(
- lineageos.platform.Manifest.permission.PUBLISH_CUSTOM_TILE,
- "StatusBarManagerService");
- }
-
- private void enforceBindCustomTileListener() {
- mContext.enforceCallingOrSelfPermission(
- lineageos.platform.Manifest.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE,
- "StatusBarManagerService");
- }
-
- private boolean isVisibleToListener(StatusBarPanelCustomTile sbc,
- ManagedServices.ManagedServiceInfo listener) {
- return listener.enabledAndUserMatches(sbc.getUserId());
- }
-
- public class CustomTileListeners extends ManagedServices {
-
- public CustomTileListeners() {
- super(LineageStatusBarManagerService.this.mContext, mHandler, mQSTileList, mUserProfiles);
- }
-
- @Override
- protected Config getConfig() {
- Config c = new Config();
- c.caption = "custom tile listener";
- c.serviceInterface = CustomTileListenerService.SERVICE_INTERFACE;
- //TODO: Implement this in the future
- //c.secureSettingName = Settings.Secure.ENABLED_CUSTOM_TILE_LISTENERS;
- c.bindPermission =
- lineageos.platform.Manifest.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE;
- //TODO: Implement this in the future
- //c.settingsAction = Settings.ACTION_CUSTOM_TILE_LISTENER_SETTINGS;
- c.clientLabel = R.string.custom_tile_listener_binding_label;
- return c;
- }
-
- @Override
- protected IInterface asInterface(IBinder binder) {
- return ICustomTileListener.Stub.asInterface(binder);
- }
-
- @Override
- public void onServiceAdded(ManagedServiceInfo info) {
- final ICustomTileListener listener = (ICustomTileListener) info.service;
- try {
- listener.onListenerConnected();
- } catch (RemoteException e) {
- // we tried
- }
- }
-
- @Override
- protected void onServiceRemovedLocked(ManagedServiceInfo removed) {
- }
-
-
- /**
- * asynchronously notify all listeners about a new custom tile
- *
- * <p>
- * Also takes care of removing a custom tile that has been visible to a listener before,
- * but isn't anymore.
- */
- public void notifyPostedLocked(StatusBarPanelCustomTile sbc,
- StatusBarPanelCustomTile oldSbc) {
- // Lazily initialized snapshots of the custom tile.
- StatusBarPanelCustomTile sbcClone = null;
-
- for (final ManagedServiceInfo info : mServices) {
- boolean sbnVisible = isVisibleToListener(sbc, info);
- boolean oldSbnVisible = oldSbc != null ? isVisibleToListener(oldSbc, info) : false;
- // This custom tile hasn't been and still isn't visible -> ignore.
- if (!oldSbnVisible && !sbnVisible) {
- continue;
- }
-
- // This custom tile became invisible -> remove the old one.
- if (oldSbnVisible && !sbnVisible) {
- final StatusBarPanelCustomTile oldSbcClone = oldSbc.clone();
- mHandler.post(new Runnable() {
- @Override
- public void run() {
- notifyRemoved(info, oldSbcClone);
- }
- });
- continue;
- }
- sbcClone = sbc.clone();
-
- final StatusBarPanelCustomTile sbcToPost = sbcClone;
- mHandler.post(new Runnable() {
- @Override
- public void run() {
- notifyPosted(info, sbcToPost);
- }
- });
- }
- }
-
- /**
- * asynchronously notify all listeners about a removed custom tile
- */
- public void notifyRemovedLocked(StatusBarPanelCustomTile sbc) {
- // make a copy in case changes are made to the underlying CustomTile object
- final StatusBarPanelCustomTile sbcClone = sbc.clone();
- for (final ManagedServiceInfo info : mServices) {
- if (!isVisibleToListener(sbcClone, info)) {
- continue;
- }
- mHandler.post(new Runnable() {
- @Override
- public void run() {
- notifyRemoved(info, sbcClone);
- }
- });
- }
- }
-
- private void notifyPosted(final ManagedServiceInfo info,
- final StatusBarPanelCustomTile sbc) {
- final ICustomTileListener listener = (ICustomTileListener)info.service;
- StatusBarCustomTileHolder sbcHolder = new StatusBarCustomTileHolder(sbc);
- try {
- listener.onCustomTilePosted(sbcHolder);
- } catch (RemoteException ex) {
- Log.e(TAG, "unable to notify listener (posted): " + listener, ex);
- }
- }
-
- private void notifyRemoved(ManagedServiceInfo info, StatusBarPanelCustomTile sbc) {
- if (!info.enabledAndUserMatches(sbc.getUserId())) {
- return;
- }
- final ICustomTileListener listener = (ICustomTileListener) info.service;
- StatusBarCustomTileHolder sbcHolder = new StatusBarCustomTileHolder(sbc);
- try {
- listener.onCustomTileRemoved(sbcHolder);
- } catch (RemoteException ex) {
- Log.e(TAG, "unable to notify listener (removed): " + listener, ex);
- }
- }
- }
-
- /**
- * Wrapper for a StatusBarPanelCustomTile object that allows transfer across a oneway
- * binder without sending large amounts of data over a oneway transaction.
- */
- private static final class StatusBarCustomTileHolder
- extends IStatusBarCustomTileHolder.Stub {
- private StatusBarPanelCustomTile mValue;
-
- public StatusBarCustomTileHolder(StatusBarPanelCustomTile value) {
- mValue = value;
- }
-
- /** Get the held value and clear it. This function should only be called once per holder */
- @Override
- public StatusBarPanelCustomTile get() {
- StatusBarPanelCustomTile value = mValue;
- mValue = null;
- return value;
- }
- }
-}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java
index 8492ec03..52816a73 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java
@@ -18,16 +18,12 @@ package org.lineageos.platform.internal.display;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
-import android.content.BroadcastReceiver;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
-import android.content.IntentFilter;
import android.content.res.Resources;
-import android.content.res.TypedArray;
import android.hardware.display.DisplayManager;
import android.net.Uri;
-import android.os.Binder;
import android.os.Handler;
import android.os.IBinder;
import android.os.PowerManagerInternal;
@@ -36,15 +32,11 @@ import android.os.Process;
import android.os.UserHandle;
import android.view.Display;
-import com.android.internal.util.ArrayUtils;
import com.android.server.LocalServices;
import com.android.server.ServiceThread;
import com.android.server.power.BatterySaverPolicy.ServiceType;
-import org.lineageos.internal.util.QSConstants;
-import org.lineageos.internal.util.QSUtils;
import org.lineageos.platform.internal.LineageSystemService;
-import org.lineageos.platform.internal.R;
import org.lineageos.platform.internal.common.UserContentObserver;
import org.lineageos.platform.internal.display.TwilightTracker.TwilightListener;
import org.lineageos.platform.internal.display.TwilightTracker.TwilightState;
@@ -58,8 +50,6 @@ import java.util.List;
import java.util.Locale;
import lineageos.app.LineageContextConstants;
-import lineageos.app.LineageStatusBarManager;
-import lineageos.app.CustomTile;
import lineageos.hardware.HSIC;
import lineageos.hardware.ILiveDisplayService;
import lineageos.hardware.LiveDisplayConfig;
@@ -105,15 +95,6 @@ public class LiveDisplayService extends LineageSystemService {
private LiveDisplayConfig mConfig;
- // QS tile
- private String[] mTileEntries;
- private String[] mTileDescriptionEntries;
- private String[] mTileAnnouncementEntries;
- private String[] mTileValues;
- private int[] mTileEntryIconRes;
-
- private static String ACTION_NEXT_MODE = "lineageos.hardware.NEXT_LIVEDISPLAY_MODE";
-
static int MODE_CHANGED = 1;
static int DISPLAY_CHANGED = 2;
static int TWILIGHT_CHANGED = 4;
@@ -151,8 +132,6 @@ public class LiveDisplayService extends LineageSystemService {
mHandler = new Handler(mHandlerThread.getLooper());
mTwilightTracker = new TwilightTracker(context);
-
- updateCustomTileEntries();
}
@Override
@@ -229,9 +208,6 @@ public class LiveDisplayService extends LineageSystemService {
if (mConfig.hasModeSupport()) {
mModeObserver = new ModeObserver(mHandler);
mState.mMode = mModeObserver.getMode();
- mContext.registerReceiver(mNextModeReceiver,
- new IntentFilter(ACTION_NEXT_MODE));
- publishCustomTile();
}
// start and update all features
@@ -254,120 +230,6 @@ public class LiveDisplayService extends LineageSystemService {
});
}
- private void updateCustomTileEntries() {
- Resources res = mContext.getResources();
- mTileEntries = res.getStringArray(R.array.live_display_entries);
- mTileDescriptionEntries = res.getStringArray(R.array.live_display_description);
- mTileAnnouncementEntries = res.getStringArray(R.array.live_display_announcement);
- mTileValues = res.getStringArray(R.array.live_display_values);
- TypedArray typedArray = res.obtainTypedArray(R.array.live_display_drawables);
- mTileEntryIconRes = new int[typedArray.length()];
- for (int i = 0; i < mTileEntryIconRes.length; i++) {
- mTileEntryIconRes[i] = typedArray.getResourceId(i, 0);
- }
- typedArray.recycle();
- }
-
- private int getCurrentModeIndex() {
- return ArrayUtils.indexOf(mTileValues, String.valueOf(mModeObserver.getMode()));
- }
-
- private int getNextModeIndex() {
- int next = getCurrentModeIndex() + 1;
-
- if (next >= mTileValues.length) {
- next = 0;
- }
-
- int nextMode;
-
- while (true) {
- nextMode = Integer.valueOf(mTileValues[next]);
- if (nextMode == MODE_OUTDOOR) {
- // Only accept outdoor mode if it's supported by the hardware
- if (mConfig.hasFeature(MODE_OUTDOOR)
- && !mConfig.hasFeature(FEATURE_MANAGED_OUTDOOR_MODE)) {
- break;
- }
- } else if (nextMode == MODE_DAY) {
- // Skip the day setting if it's the same as the off setting
- if (mCTC.getDayColorTemperature() != mConfig.getDefaultDayTemperature()) {
- break;
- }
- } else {
- // every other mode doesn't have any preconstraints
- break;
- }
-
- // If we come here, we decided to skip the mode
- next++;
- if (next >= mTileValues.length) {
- next = 0;
- }
- }
-
- return nextMode;
- }
-
- private void publishCustomTile() {
- // This action should be performed as system
- final int userId = UserHandle.myUserId();
- long token = Binder.clearCallingIdentity();
- try {
- int idx = getCurrentModeIndex();
- final UserHandle user = new UserHandle(userId);
- final Context resourceContext = QSUtils.getQSTileContext(mContext, userId);
-
- LineageStatusBarManager statusBarManager = LineageStatusBarManager.getInstance(mContext);
- CustomTile tile = new CustomTile.Builder(resourceContext)
- .setLabel(mTileEntries[idx])
- .setContentDescription(mTileDescriptionEntries[idx])
- .setIcon(mTileEntryIconRes[idx])
- .setOnLongClickIntent(getCustomTileLongClickPendingIntent())
- .setOnClickIntent(getCustomTileNextModePendingIntent())
- .shouldCollapsePanel(false)
- .build();
- statusBarManager.publishTileAsUser(QSConstants.DYNAMIC_TILE_LIVE_DISPLAY,
- LiveDisplayService.class.hashCode(), tile, user);
- } finally {
- Binder.restoreCallingIdentity(token);
- }
- }
-
- private void unpublishCustomTile() {
- // This action should be performed as system
- final int userId = UserHandle.myUserId();
- long token = Binder.clearCallingIdentity();
- try {
- LineageStatusBarManager statusBarManager = LineageStatusBarManager.getInstance(mContext);
- statusBarManager.removeTileAsUser(QSConstants.DYNAMIC_TILE_LIVE_DISPLAY,
- LiveDisplayService.class.hashCode(), new UserHandle(userId));
- } finally {
- Binder.restoreCallingIdentity(token);
- }
- }
-
- private PendingIntent getCustomTileNextModePendingIntent() {
- Intent i = new Intent(ACTION_NEXT_MODE);
- return PendingIntent.getBroadcastAsUser(mContext, 0, i,
- PendingIntent.FLAG_UPDATE_CURRENT, UserHandle.CURRENT);
- }
-
- private PendingIntent getCustomTileLongClickPendingIntent() {
- Intent i = new Intent(LineageSettings.ACTION_LIVEDISPLAY_SETTINGS);
- i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- return PendingIntent.getActivityAsUser(mContext, 0, i,
- PendingIntent.FLAG_UPDATE_CURRENT, null, UserHandle.CURRENT);
- }
-
- private final BroadcastReceiver mNextModeReceiver = new BroadcastReceiver() {
-
- @Override
- public void onReceive(Context context, Intent intent) {
- mModeObserver.setMode(getNextModeIndex());
- }
- };
-
private final IBinder mBinder = new ILiveDisplayService.Stub() {
@Override
@@ -574,7 +436,6 @@ public class LiveDisplayService extends LineageSystemService {
mState.mMode = mode;
updateFeatures(MODE_CHANGED);
- publishCustomTile();
}
}
diff --git a/lineage/res/AndroidManifest.xml b/lineage/res/AndroidManifest.xml
index 3f617f58..960ec112 100644
--- a/lineage/res/AndroidManifest.xml
+++ b/lineage/res/AndroidManifest.xml
@@ -36,20 +36,6 @@
<protected-broadcast android:name="lineageos.platform.intent.action.UPDATE_TWILIGHT_STATE" />
- <!-- Must be required by an, to ensure that only the system can bind to it.
- @hide -->
- <permission android:name="lineageos.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 -->
- <permission android:name="lineageos.permission.PUBLISH_CUSTOM_TILE"
- android:label="@string/permlab_publishCustomTile"
- android:description="@string/permdesc_publishCustomTile"
- android:icon="@drawable/ic_launcher_lineageos"
- android:protectionLevel="normal" />
-
<!-- Allows an app to make changes to the airplane mode and mobile data network settings -->
<permission android:name="lineageos.permission.MODIFY_NETWORK_SETTINGS"
android:label="@string/permlab_modifyNetworkSettings"
diff --git a/lineage/res/res/values-af/strings.xml b/lineage/res/res/values-af/strings.xml
index a6dc8f25..29049586 100644
--- a/lineage/res/res/values-af/strings.xml
+++ b/lineage/res/res/values-af/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS Stelsel</string>
- <string name="permlab_publishCustomTile">Skep \'n persoonlike teël binne die vinnige instellings paneel</string>
- <string name="permdesc_publishCustomTile">Laat \'n program toe om \'n vinnige instellings teël te publiseer.</string>
<string name="permlab_modifyNetworkSettings">verander stelsel se netwerk instellings</string>
<string name="permdesc_modifyNetworkSettings">Laat \'n toep toe om veranderinge te maak aan vliegtuigmodus en mobiele netwerk instellings.</string>
<string name="permlab_modifySoundSettings">verander stelsel klank instellings</string>
<string name="permdesc_modifySoundSettings">Laat \'n toep toe om veranderinge te maak aan die onderbreking modus klank instellings.</string>
- <string name="permlab_bindCustomTileListenerService">Verbind aan a pasgemaakte teël luisteraar diens</string>
- <string name="permdesc_bindCustomTileListenerService">Laat toe die program om te bind aan a top vlak koppelvlak van \'n pasgemaakte teël luister diens.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">kyk na die foon status en data koppeling met ondersteuning na menigvuldige SIMs</string>
<string name="permdesc_readMSPhoneState">Laat \'n toep toe om te kyk na die foon status en data koppeling met ondersteuning van menigvuldige SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">verander Lineage veilige instellings</string>
<string name="permdesc_writeSecureSettings">Laat \'n toep toe om Lineage veilige stelsel instellings te verander. Nie vir gebruik deur normale toeps nie.</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">Pasgemaakte teël luisteraar</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">voegby of verwyder toeps na beskermde toeps</string>
<string name="permdesc_protectedApp">Laat \'n toep toe om ander toeps as beskermde toep te merk en hulle toe te sluit.</string>
diff --git a/lineage/res/res/values-am/strings.xml b/lineage/res/res/values-am/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-am/strings.xml
+++ b/lineage/res/res/values-am/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-ar/strings.xml b/lineage/res/res/values-ar/strings.xml
index c113d99d..c373eaf3 100644
--- a/lineage/res/res/values-ar/strings.xml
+++ b/lineage/res/res/values-ar/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">نظام LineageOS</string>
- <string name="permlab_publishCustomTile">إنشاء لوحة مخصصة ضمن لوحة الإعدادات السريعة</string>
- <string name="permdesc_publishCustomTile">السماح للتطبيق بنشر لوحة الإعدادت السريعة.</string>
<string name="permlab_modifyNetworkSettings">تغيير إعدادات شبكة النظام</string>
<string name="permdesc_modifyNetworkSettings">يسمح للتطبيق بإجراء تغييرات على وضع الطائرة وإعدادات شبكة بيانات الهاتف المحمول.</string>
<string name="permlab_modifySoundSettings">تغيير إعدادات صوت النظام</string>
<string name="permdesc_modifySoundSettings">السماح للتطبيق بإجراء تغييرات على إعدادات الصوت في وضع الانقطاع.</string>
- <string name="permlab_bindCustomTileListenerService">الارتباط بخدمة مستمع اللوحة المخصصة</string>
- <string name="permdesc_bindCustomTileListenerService">يسمح للتطبيق بالارتباط بالواجهة البرمجية عالية المستوى الخاصة بخدمة المستمع في اللوحة المخصصة.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">عرض حالة الهاتف واتصال البيانات مع دعم SIMs متعددة</string>
<string name="permdesc_readMSPhoneState">يسمح للتطبيق بعرض حالة الهاتف واتصال البيانات مع دعم SIMs متعددة.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">تعديل إعدادات نظام Lineage الآمن</string>
<string name="permdesc_writeSecureSettings">السماح للتطبيق بتعديل إعدادات نظام Lineage الآمن. غير مخصص للاستخدام بواسطة التطبيقات العادية.</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">مستمع لوح مخصص</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">إضافة وإزالة تطبيقات إلى التطبيقات المحمية</string>
<string name="permdesc_protectedApp">يسمح للتطبيق بوضع علامة على تطبيقات أخرى كمحمية مع قفلها.</string>
diff --git a/lineage/res/res/values-as-rIN/strings.xml b/lineage/res/res/values-as-rIN/strings.xml
index 5573f63d..906a6e84 100644
--- a/lineage/res/res/values-as-rIN/strings.xml
+++ b/lineage/res/res/values-as-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS ছিষ্টেম</string>
- <string name="permlab_publishCustomTile">দ্ৰুত ছেটিংছ পেনেল ভিতৰত এটা কাষ্টম টাইল সৃষ্টি কৰা</string>
- <string name="permdesc_publishCustomTile">এটা এপ্প্‌ক দ্ৰুত ছেটিং টাইল প্ৰকাশ কৰিবলৈ অনুমতি দিয়ে।</string>
<string name="permlab_modifyNetworkSettings">ছিষ্টেম নেটৱৰ্ক ছেটিং পৰিৱৰ্তন কৰা</string>
<string name="permdesc_modifyNetworkSettings">এটা এপ্প্‌ক এয়াৰপ্লেন মোড আৰু ম\'বাইল ডাটা নেটৱৰ্ক ছেটিংছ পৰিৱৰ্তন কৰিবলৈ অনুমতি দিয়ে।</string>
<string name="permlab_modifySoundSettings">ছিষ্টেম নেটৱৰ্ক ছেটিং পৰিৱৰ্তন কৰা</string>
<string name="permdesc_modifySoundSettings">এটা এপ্প্‌ক ব্যাঘাত মোড ধ্বনি ছেটিংছ পৰিৱৰ্তন কৰিবলৈ অনুমতি দিয়ে।</string>
- <string name="permlab_bindCustomTileListenerService">কাষ্টম টাইল শ্ৰোতা সেৱাৰ সৈতে বাইণ্ড</string>
- <string name="permdesc_bindCustomTileListenerService">এপ্প্‌টোক কাষ্টম টাইল শ্ৰোতা সেৱাৰ শীৰ্ষ-স্তৰৰ ইণ্টাৰফেচৰ সৈতে বাইণ্ড কৰিবলৈ অনুমতি দিয়ে।</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">একাধিক SIMৰ সমৰ্থনত ফোন অৱস্থা আৰু ডাটা সংযোগ চাওক</string>
<string name="permdesc_readMSPhoneState">এটা এপ্প্‌ক একাধিক SIMৰ সমৰ্থনত ফোন অৱস্থা আৰু ডাটা সংযোগ চাবলৈ অনুমতি দিয়ে।</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage চিকিওৰ ছিষ্টেম ছেটিংচ সংশোধন কৰক</string>
<string name="permdesc_writeSecureSettings">এটা এপ্প্‌ক Lineage চিকিওৰ ছিষ্টেম ছেটিং সংশোধন কৰিবলৈ অনুমতি দিয়ে সাধাৰণ এপ্প্‌সমূহৰ ব্যৱহাৰৰ কাৰণে নহয়৷</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">কাষ্টম টাইল শ্ৰোতা</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">প্ৰতিৰোধী এপ্প্‌ৰ পৰা এপ্প্‌ যোগ কৰক আৰু আঁতৰ কৰক</string>
<string name="permdesc_protectedApp">এটা এপ্প্‌ক অন্যান্য এপ্প্‌বোৰ প্ৰতিৰোধী হিচাপে চিহ্নিত কৰিবলৈ আৰু লক কৰিবলৈ অনুমতি দিয়ে।</string>
diff --git a/lineage/res/res/values-ast-rES/strings.xml b/lineage/res/res/values-ast-rES/strings.xml
index 6768ae45..3a818d20 100644
--- a/lineage/res/res/values-ast-rES/strings.xml
+++ b/lineage/res/res/values-ast-rES/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistema LineageOS</string>
- <string name="permlab_publishCustomTile">crear una caxella personalizada dientro\'l panel d\'axustes rápidos</string>
- <string name="permdesc_publishCustomTile">Permite qu\'una aplicación espublize una caxella d\'axustes rápidos.</string>
<string name="permlab_modifyNetworkSettings">camudar los axustes de rede del sistema</string>
<string name="permdesc_modifyNetworkSettings">Permite qu\'una aplicación faiga camudancies al mou avión y a los axustes de la rede de datos móviles.</string>
<string name="permlab_modifySoundSettings">camudar los axustes de soníu del sistema</string>
<string name="permdesc_modifySoundSettings">Permite qu\'una aplicación faiga camudancies a los axustes de soníu del mou d\'interrupción.</string>
- <string name="permlab_bindCustomTileListenerService">arreyar a un serviciu d\'escucha de caxelles personalizaes</string>
- <string name="permdesc_bindCustomTileListenerService">Permite qu\'una aplicación s\'arreye a la interfaz de nivel cimeru d\'un serviciu d\'escucha de caxelles personalizaes.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ver l\'estáu\'l teléfonu y conexón de datos con sofitu pa SIMs múltiples</string>
<string name="permdesc_readMSPhoneState">Permite qu\'una aplicación vea l\'estáu\'l teléfonu y la conexón de datos con sofitu pa SIMs múltiples.</string>
@@ -54,7 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modificar axustes del sistema de seguranza Lineage</string>
<string name="permdesc_writeSecureSettings">Permite qu\'una aplicación modifique los axustes del sistema de seguranza de Lineage. Nun s\'usa pa les aplicaciones normales.</string>
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permdesc_protectedApp">Permite qu\'una aplicación conseñe a otres como protexíes y blóquiales.</string>
<!-- Profiles -->
diff --git a/lineage/res/res/values-az-rAZ/strings.xml b/lineage/res/res/values-az-rAZ/strings.xml
index f2a9e111..cb799416 100644
--- a/lineage/res/res/values-az-rAZ/strings.xml
+++ b/lineage/res/res/values-az-rAZ/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS Sistemi</string>
- <string name="permlab_publishCustomTile">cəld tənzimləmələr panelində özəl bir çərçivə yarat</string>
- <string name="permdesc_publishCustomTile">Tətbiqetməyə cəld tənzimləmələr çərçivəsi yaratmağa icazə verər.</string>
<string name="permlab_modifyNetworkSettings">sistem şəbəkə tənzimləmələrini dəyişdir</string>
<string name="permdesc_modifyNetworkSettings">Tətbiqetməyə uçuş rejimini və mobil verilənlər şəbəkə tənzimləmələrini dəyişdirmə icazəsi verər.</string>
<string name="permlab_modifySoundSettings">sistem səs tənzimləmələrini dəyişdir</string>
<string name="permdesc_modifySoundSettings">Tətbiqetməyə fasilə rejimi səs tənzimləmələrini dəyişdirmə icazəsi verər.</string>
- <string name="permlab_bindCustomTileListenerService">özəl çərçivə dinləyici xidmətinə bağla</string>
- <string name="permdesc_bindCustomTileListenerService">Tətbiqetməyə özəl çərçivə dinləyici xidmətinin üst səviyyə interfeysinə bağlanmasına icazə verər.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">telefon durumu və çoxlu SIM dəstəyi ilə verilənlər bağlantısını göstər</string>
<string name="permdesc_readMSPhoneState">Tətbiqetməyə telefon durumunu və çoxlu SIM dəstəyi ilə verilənlər bağlantısını göstərməyə icazə verər.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage təhlükəsiz sistem tənzimləmələrini dəyişdir</string>
<string name="permdesc_writeSecureSettings">Tətbiqetməyə Lineage təhlükəsiz sistem tənzimləmələrini dəyişmə icazəsi verər. Normal tətbiqetmələr üçün deyil.</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">Özəl çərçivə dinləyicisi</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">qorunan tətbiqetmələrə tətbiq əlavə et və ya çıxart</string>
<string name="permdesc_protectedApp">Tətbiqetməyə digər tətbiqetmələri qorunan tətbiq olaraq işarələmə və kilidləmə icazəsi verər.</string>
diff --git a/lineage/res/res/values-be-rBY/strings.xml b/lineage/res/res/values-be-rBY/strings.xml
index 3d110728..b61a80a8 100644
--- a/lineage/res/res/values-be-rBY/strings.xml
+++ b/lineage/res/res/values-be-rBY/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Сістэма LineageOS</string>
- <string name="permlab_publishCustomTile">Стварэнне самавольных плітак у панэлі хуткіх налад</string>
- <string name="permdesc_publishCustomTile">Дадатак зможа дадаваць пліткі ў панэль хуткіх налад.</string>
<string name="permlab_modifyNetworkSettings">Змена сеціўных налад сістэмы</string>
<string name="permdesc_modifyNetworkSettings">Дадатак дазваляе змяняць рэжымы: лёту і мабільнай перадачы дадзеных.</string>
<string name="permlab_modifySoundSettings">Змена гукавых налад сістэмы</string>
<string name="permdesc_modifySoundSettings">Дазваляе дадатку змяняць рэжым: перапынення гуку.</string>
- <string name="permlab_bindCustomTileListenerService">Прывязка да службы слухача карыстацкіх плітак</string>
- <string name="permdesc_bindCustomTileListenerService">Дазваляе карыстальніку ўсталёўваць прывязку да інтэрфейсу верхняга роўня службы слухача карыстацкіх плітак.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">прагляд стану тэлефона і перадачы дадзеных з падтрымкай некалькіх SIM-карт</string>
<string name="permdesc_readMSPhoneState">Дазволіць дадатку доступ да інфармацыі пра стан тэлефона і перадачы дадзеных з падтрымкай некалькіх SIM-карт.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">змяняць параметры бяспекі сістэмы</string>
<string name="permdesc_writeSecureSettings">Дадатак зможа змяняць абароненыя налады сістэмы. Гэты дазвол не выкарыстоўваецца звычайнымі дадаткамі.</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">Слухач карыстацкіх плітак</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">даданне і выдаленне запісаў пераліку абароненых дадаткаў</string>
<string name="permdesc_protectedApp">Дадатак зможа адзначаць іншыя дадаткі як абароненыя і блакаваць іх.</string>
diff --git a/lineage/res/res/values-bg/strings.xml b/lineage/res/res/values-bg/strings.xml
index 1d649ddd..82011d0f 100644
--- a/lineage/res/res/values-bg/strings.xml
+++ b/lineage/res/res/values-bg/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS Система</string>
- <string name="permlab_publishCustomTile">създаване на потребителска плочка чрез панел за бързи настройки</string>
- <string name="permdesc_publishCustomTile">Позволява на приложение да публикува плочка с бързи настройки.</string>
<string name="permlab_modifyNetworkSettings">промяна на системните мрежови настройки</string>
<string name="permdesc_modifyNetworkSettings">Позволява да направите промени в самолетния режим и мобилните мрежови настройки.</string>
<string name="permlab_modifySoundSettings">промени системните настройки на звука</string>
<string name="permdesc_modifySoundSettings">Позволява на приложението да направи промени в настройките за прекъсване режим звука.</string>
- <string name="permlab_bindCustomTileListenerService">свържи с услугата за регистриране на докосвания по потребителските бутони</string>
- <string name="permdesc_bindCustomTileListenerService">Позволява на приложението връзката с последното ниво на интерфейса на услугата за регистриране на докосвания по потребителските бутони.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">Прегледайте състоянието на вашият телефон и мрежовите данни с поддръжка на множество СИМ карти</string>
<string name="permdesc_readMSPhoneState">Разрешаване за достъп на прилажения до информация за състоянието на телефона с поддръжка на множество СИМ карти.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Модифициране настройките на Lineage сигурността</string>
<string name="permdesc_writeSecureSettings">Разрешава на проложението да променя системните настройки на сигурността. Това разрешение не се използва от нормални приложения.</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">Регистратор на допир за потребителските бутони</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">Прибави/Премахни приложение към/от списъка със защитени приложения</string>
<string name="permdesc_protectedApp">Позволява на приложението да маркира други приложения, като защитени и да ги заключва.</string>
diff --git a/lineage/res/res/values-bn-rBD/strings.xml b/lineage/res/res/values-bn-rBD/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-bn-rBD/strings.xml
+++ b/lineage/res/res/values-bn-rBD/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-br-rFR/strings.xml b/lineage/res/res/values-br-rFR/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-br-rFR/strings.xml
+++ b/lineage/res/res/values-br-rFR/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-bs-rBA/strings.xml b/lineage/res/res/values-bs-rBA/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-bs-rBA/strings.xml
+++ b/lineage/res/res/values-bs-rBA/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-ca/strings.xml b/lineage/res/res/values-ca/strings.xml
index 509f647e..53800609 100644
--- a/lineage/res/res/values-ca/strings.xml
+++ b/lineage/res/res/values-ca/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistema de LineageOS</string>
- <string name="permlab_publishCustomTile">crea una cel·la personalitzada al panell d\'ajustos ràpids</string>
- <string name="permdesc_publishCustomTile">Permet a una aplicació publicar una cel·la d\'ajustos ràpids.</string>
<string name="permlab_modifyNetworkSettings">canvia la configuració de xarxa de sistema</string>
<string name="permdesc_modifyNetworkSettings">Permet a una aplicació fer canvis en el mode avió i a la configuració de la xarxa de dades mòbils.</string>
<string name="permlab_modifySoundSettings">canvia la configuració de so del sistema</string>
<string name="permdesc_modifySoundSettings">Permet a una aplicació realitzar canvis a la configuració de so del mode d\'interrupció.</string>
- <string name="permlab_bindCustomTileListenerService">uneix-te a un servei d\'escolta de cel·les personalitzades</string>
- <string name="permdesc_bindCustomTileListenerService">Permet a l\'aplicació unir-se a una interfície d\'alt nivell d\'un servei d\'escolta de cel·les personalitzades.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">mostra l\'estat del telèfon i la connexió de dades amb suport per múltiples SIMs</string>
<string name="permdesc_readMSPhoneState">Permet una aplicació mostrar l\'estat del telèfon i la connexió de dades amb suport per múltiples SIMs.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modificar la configuració segura del sistema Lineage</string>
<string name="permdesc_writeSecureSettings">Permet a una aplicació modificar la configuració segura del sistema Lineage. No utilitzar en aplicacions normals.</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">Escolta de cel·les personalitzades</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">afegir i eliminar aplicacions a les aplicacions protegides</string>
<string name="permdesc_protectedApp">Permet a una aplicació marcar a altres aplicacions com a protegides i bloquejar-les.</string>
diff --git a/lineage/res/res/values-cs/strings.xml b/lineage/res/res/values-cs/strings.xml
index 725153f2..f03635f5 100644
--- a/lineage/res/res/values-cs/strings.xml
+++ b/lineage/res/res/values-cs/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Systém LineageOS</string>
- <string name="permlab_publishCustomTile">vytvoření vlastní dlaždice do panelu rychlého nastavení</string>
- <string name="permdesc_publishCustomTile">Umožní vytvořit vlastní dlaždici v panelu rychlého nastavení.</string>
<string name="permlab_modifyNetworkSettings">změnit systémové nastavení sítě</string>
<string name="permdesc_modifyNetworkSettings">Umožňuje přepnout zařízení do režimu „V letadle“ a nastavení mobilní datové sítě.</string>
<string name="permlab_modifySoundSettings">změnit systémové nastavení zvuku</string>
<string name="permdesc_modifySoundSettings">Umožňuje změnit nastavení režimu přerušení zvuku.</string>
- <string name="permlab_bindCustomTileListenerService">vázat službu na vlastní dlaždici</string>
- <string name="permdesc_bindCustomTileListenerService">Umožní navázat rozhraní nejvyšší úrovně na službu dlaždice.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">zobrazit stav telefonu a datové připojení s podporou více SIM</string>
<string name="permdesc_readMSPhoneState">Umožňuj prohlížet stav telefonu a datového spojení s podporou více SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">upravit nastavení zabezpečení systému Lineage</string>
<string name="permdesc_writeSecureSettings">Umožní změnit nastavení zabezpečení systému LineageOS. Není určeno pro normální aplikace.</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">Služba vlastní dlaždice</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">přidat nebo odstranit aplikace z chráněných aplikací</string>
<string name="permdesc_protectedApp">Umožňuje označit aplikace jako chráněné a zamknout je.</string>
diff --git a/lineage/res/res/values-csb-rPL/strings.xml b/lineage/res/res/values-csb-rPL/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-csb-rPL/strings.xml
+++ b/lineage/res/res/values-csb-rPL/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-cy/strings.xml b/lineage/res/res/values-cy/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-cy/strings.xml
+++ b/lineage/res/res/values-cy/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-da/strings.xml b/lineage/res/res/values-da/strings.xml
index f654f845..1b27e6a9 100644
--- a/lineage/res/res/values-da/strings.xml
+++ b/lineage/res/res/values-da/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS System</string>
- <string name="permlab_publishCustomTile">opret en brugerdefineret flise i panelet til hurtige indstillinger</string>
- <string name="permdesc_publishCustomTile">Tillader en app at lave en flise med hurtig indstilling.</string>
<string name="permlab_modifyNetworkSettings">ændre indstillinger for system netværk</string>
<string name="permdesc_modifyNetworkSettings">Tillader en app at foretage ændringer i flytilstand og netværksopsætning for mobildata.</string>
<string name="permlab_modifySoundSettings">ændre systemets lydindstillinger</string>
<string name="permdesc_modifySoundSettings">Tillader en app at foretage ændringer i indstillingerne for tilstanden lydafbrydelse.</string>
- <string name="permlab_bindCustomTileListenerService">forbind til en tilpasset fliseservice-lytter</string>
- <string name="permdesc_bindCustomTileListenerService">Tillader en app at oprette forbindelse til brugerfladen på højeste niveau i en tilpasset fliseservice-lytter.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">se status for forbindelse og data med understøttelse af flere SIM-kort</string>
<string name="permdesc_readMSPhoneState">Gør det muligt for en app at se status for forbindelse og data med understøttelse af flere SIM-kort.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">ændre systemindstillinger for Lineage sikkerhed</string>
<string name="permdesc_writeSecureSettings">Tillader en app at ændre systemindstillinger for Lineage sikkerhed. Bør ikke anvendes til normale apps.</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">Tilpasset fliseservice-lytter</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">tilføj og fjern apps til beskyttet apps</string>
<string name="permdesc_protectedApp">Tillader en app at markere andre apps som beskyttet samt låse dem.</string>
diff --git a/lineage/res/res/values-de/strings.xml b/lineage/res/res/values-de/strings.xml
index e5a4148d..92f0ecff 100644
--- a/lineage/res/res/values-de/strings.xml
+++ b/lineage/res/res/values-de/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS-System</string>
- <string name="permlab_publishCustomTile">eine Kachel in den Schnelleinstellungen erstellen</string>
- <string name="permdesc_publishCustomTile">Ermöglicht der App, eine Kachel in den Schnelleinstellungen anzuzeigen.</string>
<string name="permlab_modifyNetworkSettings">System-Netzwerkeinstellungen ändern</string>
<string name="permdesc_modifyNetworkSettings">Ermöglicht der App, Änderungen am Flugmodus und den Einstellungen für mobile Daten vorzunehmen.</string>
<string name="permlab_modifySoundSettings">System-Soundeinstellungen ändern</string>
<string name="permdesc_modifySoundSettings">Ermöglicht der App, Änderungen an den Toneinstellungen des Unterbrechungsmodus vorzunehmen.</string>
- <string name="permlab_bindCustomTileListenerService">Anbindung an einen Listener-Service für benutzerdefinierte Kacheln</string>
- <string name="permdesc_bindCustomTileListenerService">Ermöglicht der App, sich an einen Listener-Service für benutzerdefinierte Kacheln zu binden.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">Systemstatus und Datenverbindung auf Unterstützung von mehreren SIM-Karten überprüfen</string>
<string name="permdesc_readMSPhoneState">Ermöglicht der App, den Systemstatus und die Datenverbindung auf Unterstützung von mehreren SIM-Karten zu überprüfen.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage-Sicherheits-Systemeinstellungen ändern</string>
<string name="permdesc_writeSecureSettings">Ermöglicht der App, Lineage-Sicherheits-Systemeinstellungen zu ändern. Nicht für die Nutzung durch normale Anwendungen bestimmt.</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">Listener für benutzerdefinierte Kacheln</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">geschützten Apps hinzufügen oder entfernen</string>
<string name="permdesc_protectedApp">Ermöglicht der App, andere Apps als geschützt zu markieren und diese zu sperren.</string>
diff --git a/lineage/res/res/values-el/strings.xml b/lineage/res/res/values-el/strings.xml
index 80d7d40c..1348d9af 100644
--- a/lineage/res/res/values-el/strings.xml
+++ b/lineage/res/res/values-el/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Σύστημα LineageOS</string>
- <string name="permlab_publishCustomTile">δημιουργία προσαρμοσμένου πλακιδίου στον Πίνακα Γρήγορων ρυθμίσεων</string>
- <string name="permdesc_publishCustomTile">Επιτρέπει σε μία εφαρμογή τη δημιουργία πλακιδίου στον Πίνακα Γρήγορων ρυθμίσεων.</string>
<string name="permlab_modifyNetworkSettings">αλλαγή ρυθμίσεων δικτύου συστήματος</string>
<string name="permdesc_modifyNetworkSettings">Επιτρέπει σε μια εφαρμογή να κάνει αλλαγές στις ρυθμίσεις λειτουργίας πτήσης και δεδομένων κινητής τηλεφωνίας.</string>
<string name="permlab_modifySoundSettings">αλλαγή ρυθμίσεων ήχου συστήματος</string>
<string name="permdesc_modifySoundSettings">Επιτρέπει σε μια εφαρμογή να κάνει αλλαγές στις ρυθμίσεις ήχου για τις διακοπές.</string>
- <string name="permlab_bindCustomTileListenerService">σύνδεση σε ένα listener υπηρεσίας προσαρμοσμένων πλακιδίων</string>
- <string name="permdesc_bindCustomTileListenerService">Επιτρέπει στην εφαρμογή τη σύνδεση στο ανώτατο επίπεδο διασύνδεσης ενός listener υπηρεσίας προσαρμοσμένων πλακιδίων.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">εμφάνιση κατάστασης του τηλεφώνου και της σύνδεσης δεδομένων με υποστήριξη για πολλαπλές SIM</string>
<string name="permdesc_readMSPhoneState">Επιτρέπει σε μια εφαρμογή να εμφανίζει την κατάσταση του τηλεφώνου και της σύνδεσης δεδομένων με υποστήριξη για πολλαπλές SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">τροποποίηση ασφαλών ρυθμίσεων συστήματος Lineage</string>
<string name="permdesc_writeSecureSettings">Επιτρέπει σε μια εφαρμογή να τροποποιεί τις ασφαλείς ρυθμίσεις συστήματος του Lineage. Δεν χρησιμοποιείται από κανονικές εφαρμογές.</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">Listener προσαρμοσμένων πλακιδίων</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">προσθαφαίρεση εφαρμογών στις προστατευμένες εφαρμογές</string>
<string name="permdesc_protectedApp">Επιτρέπει σε μια εφαρμογή την επισήμανση άλλων εφαρμογών ως προστατευμένων και κλείδωμα τους.</string>
diff --git a/lineage/res/res/values-en-rAU/strings.xml b/lineage/res/res/values-en-rAU/strings.xml
index c6bff440..f5470d62 100644
--- a/lineage/res/res/values-en-rAU/strings.xml
+++ b/lineage/res/res/values-en-rAU/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS System</string>
- <string name="permlab_publishCustomTile">create a custom tile within quick settings panel</string>
- <string name="permdesc_publishCustomTile">Allows an app to publish a quick settings tile.</string>
<string name="permlab_modifyNetworkSettings">change system network settings</string>
<string name="permdesc_modifyNetworkSettings">Allows an app to make changes to the aeroplane mode and mobile data network settings.</string>
<string name="permlab_modifySoundSettings">change system sound settings</string>
<string name="permdesc_modifySoundSettings">Allows an app to make changes to the interruption mode sound settings.</string>
- <string name="permlab_bindCustomTileListenerService">bind to a custom tile listener service</string>
- <string name="permdesc_bindCustomTileListenerService">Allows the app to bind to the top-level interface of a custom tile listener service.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">view the phone state and data connection with support to multiple SIMs</string>
<string name="permdesc_readMSPhoneState">Allows an app to view the phone state and data connection with support to multiple SIMs.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modify Lineage secure system settings</string>
<string name="permdesc_writeSecureSettings">Allows an app to modify Lineage secure system settings. Not for use by normal apps.</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>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">add and remove apps to protected apps</string>
<string name="permdesc_protectedApp">Allows an app to mark other apps as protected and lock them.</string>
diff --git a/lineage/res/res/values-en-rGB/strings.xml b/lineage/res/res/values-en-rGB/strings.xml
index 4078fa14..bc7e93e0 100644
--- a/lineage/res/res/values-en-rGB/strings.xml
+++ b/lineage/res/res/values-en-rGB/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS System</string>
- <string name="permlab_publishCustomTile">create a custom tile within quick settings panel</string>
- <string name="permdesc_publishCustomTile">Allows an app to publish a quick settings tile.</string>
<string name="permlab_modifyNetworkSettings">change system network settings</string>
<string name="permdesc_modifyNetworkSettings">Allows an app to make changes to the aeroplane mode and mobile data network settings.</string>
<string name="permlab_modifySoundSettings">change system sound settings</string>
<string name="permdesc_modifySoundSettings">Allows an app to make changes to the interruption mode sound settings.</string>
- <string name="permlab_bindCustomTileListenerService">bind to a custom tile listener service</string>
- <string name="permdesc_bindCustomTileListenerService">Allows the app to bind to the top-level interface of a custom tile listener service.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">view the phone state and data connection with support to multiple SIMs</string>
<string name="permdesc_readMSPhoneState">Allows an app to view the phone state and data connection with support to multiple SIMs.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modify Lineage secure system settings</string>
<string name="permdesc_writeSecureSettings">Allows an app to modify Lineage secure system settings. Not for use by normal apps.</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>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">add and remove apps to protected apps</string>
<string name="permdesc_protectedApp">Allows an app to mark other apps as protected and lock them.</string>
diff --git a/lineage/res/res/values-en-rIN/strings.xml b/lineage/res/res/values-en-rIN/strings.xml
index e237caa5..4d6b6e75 100644
--- a/lineage/res/res/values-en-rIN/strings.xml
+++ b/lineage/res/res/values-en-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS System</string>
- <string name="permlab_publishCustomTile">create a custom tile within quick settings panel</string>
- <string name="permdesc_publishCustomTile">Allows an app to publish a quick settings tile.</string>
<string name="permlab_modifyNetworkSettings">change system network settings</string>
<string name="permdesc_modifyNetworkSettings">Allows an app to make changes to the aeroplane mode and mobile data network settings.</string>
<string name="permlab_modifySoundSettings">change system sound settings</string>
<string name="permdesc_modifySoundSettings">Allows an app to make changes to the interruption mode sound settings.</string>
- <string name="permlab_bindCustomTileListenerService">bind to a custom tile listener service</string>
- <string name="permdesc_bindCustomTileListenerService">Allows the app to bind to the top-level interface of a custom tile listener service.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">view the phone state and data connection with support to multiple SIMs</string>
<string name="permdesc_readMSPhoneState">Allows an app to view the phone state and data connection with support to multiple SIMs.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modify Lineage secure system settings</string>
<string name="permdesc_writeSecureSettings">Allows an app to modify Lineage secure system settings. Not for use by normal apps.</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>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">add and remove apps to protected apps</string>
<string name="permdesc_protectedApp">Allows an app to mark other apps as protected and lock them.</string>
diff --git a/lineage/res/res/values-en-rPT/strings.xml b/lineage/res/res/values-en-rPT/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-en-rPT/strings.xml
+++ b/lineage/res/res/values-en-rPT/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-eo/strings.xml b/lineage/res/res/values-eo/strings.xml
index 36aba81f..2604039a 100644
--- a/lineage/res/res/values-eo/strings.xml
+++ b/lineage/res/res/values-eo/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-es-rCO/strings.xml b/lineage/res/res/values-es-rCO/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-es-rCO/strings.xml
+++ b/lineage/res/res/values-es-rCO/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-es-rMX/strings.xml b/lineage/res/res/values-es-rMX/strings.xml
index a72dd5de..92108e10 100644
--- a/lineage/res/res/values-es-rMX/strings.xml
+++ b/lineage/res/res/values-es-rMX/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">añadir y quitar aplicaciones a aplicaciones protegidas</string>
<string name="permdesc_protectedApp">Permite que una aplicación marque a otras aplicaciones como protegidas y las bloquee.</string>
diff --git a/lineage/res/res/values-es-rUS/strings.xml b/lineage/res/res/values-es-rUS/strings.xml
index f4cb15fc..8ca846d9 100644
--- a/lineage/res/res/values-es-rUS/strings.xml
+++ b/lineage/res/res/values-es-rUS/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistema de LineageOS</string>
- <string name="permlab_publishCustomTile">crea un control personalizado en el panel de ajustes rápidos</string>
- <string name="permdesc_publishCustomTile">Permite que la aplicación pueda publicar un control de ajustes rápidos.</string>
<string name="permlab_modifyNetworkSettings">cambiar ajustes de red del sistema</string>
<string name="permdesc_modifyNetworkSettings">Permite a una aplicación realizar cambios en el modo avión y sobre los ajustes de red de los datos móviles.</string>
<string name="permlab_modifySoundSettings">cambiar ajustes de sonido del sistema</string>
<string name="permdesc_modifySoundSettings">Permite a una aplicación realizar cambios a los ajustes de sonido del modo de interrupción.</string>
- <string name="permlab_bindCustomTileListenerService">unirse a un servicio para escuchar controles personalizados</string>
- <string name="permdesc_bindCustomTileListenerService">Permitir que la aplicación pueda unirse a una interfaz de alto nivel de un servicio para escuchar controles personalizados.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ver el estado del teléfono y la conexión de datos con soporte SIM múltiple</string>
<string name="permdesc_readMSPhoneState">Permite a una aplicación ver el estado del teléfono y la conexión de datos con soporte SIM múltiple.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modificar los ajustes del sistema seguro de Lineage</string>
<string name="permdesc_writeSecureSettings">Permite que una aplicación modifique los ajustes del sistema seguro de Lineage. No es para el uso de aplicaciones normales.</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">Escucha de control personalizado</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">añadir y quitar aplicaciones a aplicaciones protegidas</string>
<string name="permdesc_protectedApp">Permite que una aplicación marque a otras aplicaciones como protegidas y las bloquee.</string>
diff --git a/lineage/res/res/values-es/strings.xml b/lineage/res/res/values-es/strings.xml
index e8336bdf..05a359e2 100644
--- a/lineage/res/res/values-es/strings.xml
+++ b/lineage/res/res/values-es/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistema de LineageOS</string>
- <string name="permlab_publishCustomTile">crea un control personalizado en el panel de ajustes rápidos</string>
- <string name="permdesc_publishCustomTile">Permite que la aplicación pueda publicar un control de ajustes rápidos.</string>
<string name="permlab_modifyNetworkSettings">cambiar ajustes de red del sistema</string>
<string name="permdesc_modifyNetworkSettings">Permite a una aplicación realizar cambios en el modo avión y sobre la configuración de la red de datos móviles.</string>
<string name="permlab_modifySoundSettings">cambiar ajustes de sonido del sistema</string>
<string name="permdesc_modifySoundSettings">Permite a una aplicación realizar cambios a los ajustes de sonido del modo de interrupción.</string>
- <string name="permlab_bindCustomTileListenerService">unirse a un servicio para escuchar controles personalizados</string>
- <string name="permdesc_bindCustomTileListenerService">Permitir que la aplicación pueda unirse a una interfaz de alto nivel de un servicio para escuchar controles personalizados.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ver el estado del teléfono y la conexión de datos con soporte multi SIM</string>
<string name="permdesc_readMSPhoneState">Permite a una aplicación ver el estado del teléfono y la conexión de datos con soporte multi SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modificar la configuración de sistema seguro de Lineage</string>
<string name="permdesc_writeSecureSettings">Permite que una aplicación modifique la configuración del sistema seguro de Lineage. No es para el uso de aplicaciones normales.</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">Escucha de control personalizado</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">añadir y quitar aplicaciones a aplicaciones protegidas</string>
<string name="permdesc_protectedApp">Permite que una aplicación marque a otras aplicaciones cómo protegidas y las bloquee.</string>
diff --git a/lineage/res/res/values-et-rEE/strings.xml b/lineage/res/res/values-et-rEE/strings.xml
index 880d2d97..72b3a2eb 100644
--- a/lineage/res/res/values-et-rEE/strings.xml
+++ b/lineage/res/res/values-et-rEE/strings.xml
@@ -19,12 +19,8 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS Süsteem</string>
- <string name="permlab_publishCustomTile">loo kohandatud tahvel kiirseadete paneelil</string>
- <string name="permdesc_publishCustomTile">Lubab rakendusel avaldada kiirseadete tahvli.</string>
<string name="permlab_modifyNetworkSettings">süsteemi võrgusätete muutmine</string>
<string name="permlab_modifySoundSettings">süsteemi helisätete muutmine</string>
- <string name="permlab_bindCustomTileListenerService">Seo kohandatud tahvel kuulaja teenusega</string>
- <string name="permdesc_bindCustomTileListenerService">Võimaldab siduda kõrgema taseme kasutajaliidese kohandatud tahvli kuulaja teenusega.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">telefoni oleku ja andmeühenduse vaatamine, toetades mitmeid SIMe</string>
<string name="permdesc_readMSPhoneState">Võimaldab rakendusel vaadata telefoni olekut ja andmeühendust, toetades mitmeid SIMe.</string>
@@ -40,8 +36,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- 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">Kohandatud tahvli kuulaja</string>
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-eu-rES/strings.xml b/lineage/res/res/values-eu-rES/strings.xml
index 5f72b420..3917f232 100644
--- a/lineage/res/res/values-eu-rES/strings.xml
+++ b/lineage/res/res/values-eu-rES/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS sistema</string>
- <string name="permlab_publishCustomTile">sortu lauza pertsonalizatu bat ezarpen azkarren panelean</string>
- <string name="permdesc_publishCustomTile">Ezarpen azkarretako lauza bat argitaratzea ahalbidetzen dio aplikazioari.</string>
<string name="permlab_modifyNetworkSettings">aldatu sistemaren sare ezarpenak</string>
<string name="permdesc_modifyNetworkSettings">Hegaldi moduan eta datu mugikorren ezarpenetan aldaketak egitea ahalbidetzen dio aplikazioari.</string>
<string name="permlab_modifySoundSettings">aldatu sistemaren soinu ezarpenak</string>
<string name="permdesc_modifySoundSettings">Etenaldi moduaren soinu ezarpenetan aldaketak egitea ahalbidetzen dio aplikazioari.</string>
- <string name="permlab_bindCustomTileListenerService">lotu lauza entzuteko zerbitzu pertsonalizatu batetara</string>
- <string name="permdesc_bindCustomTileListenerService">Lauza entzuketa zerbitzu pertsonalizatu baten goi mailako interfazera lotzea ahalbidetzen dio aplikazioari.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ikusi telefonoaren egoera eta datu konexioa hainbat SIM txartelentzako euskarriarekin</string>
<string name="permdesc_readMSPhoneState">Telefonoaren egoera eta datu konexioa hainbat SIM txartelentzako euskarriarekin ikustea ahalbidetzen dio aplikazioari.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">aldatu Lineage sistemaren ezarpen seguruak</string>
<string name="permdesc_writeSecureSettings">Lineage sistemaren ezarpen seguruak aldatzea ahalbidetzen dio aplikazioari. Aplikazio arruntek ez dute behar.</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">Lauza pertsonalizatuaren entzulea</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">gehitu edo kendu aplikazioak babestutako aplikazioen zerrendan</string>
<string name="permdesc_protectedApp">Beste aplikazio batzuk babestuta gisa markatzea eta blokeatzea ahalbidetzen dio aplikazioari.</string>
diff --git a/lineage/res/res/values-fa/strings.xml b/lineage/res/res/values-fa/strings.xml
index 5878e61b..e59d8132 100644
--- a/lineage/res/res/values-fa/strings.xml
+++ b/lineage/res/res/values-fa/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">سیستم سایانوژن‌مود</string>
- <string name="permlab_publishCustomTile">ایجاد کاشی سفارشی در پنل تنظیمات سریع</string>
- <string name="permdesc_publishCustomTile">به برنامه اجازه می‌دهد یک کاشی در تنظیمات سریع ایجاد کند.</string>
<string name="permlab_modifyNetworkSettings">تغییر تنظیمات شبکه‌ی سیستم</string>
<string name="permdesc_modifyNetworkSettings">به برنامه اجازه می‌دهد تا در تنظیمات شبکه داده همراه و حالت هواپیما ایجاد تغییرات کند.</string>
<string name="permlab_modifySoundSettings">تغییر تنظیمات صدای سیستم</string>
<string name="permdesc_modifySoundSettings">به برنامه اجازه می‌دهد تا در تنظیمات صدا در حالت وقفه ایجاد تغییرات کند.</string>
- <string name="permlab_bindCustomTileListenerService">پیوستن به یک سرویس پیرو کاشی شخصی</string>
- <string name="permdesc_bindCustomTileListenerService">به برنامه اجازه می‌دهد تا به رابط سطح بالای یک سرویس پیرو کاشی شخصی بپیوندد.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">مشاهده وضعیت تلفن و اتصال داده با پشتیبانی از چندین سیم کارت</string>
<string name="permdesc_readMSPhoneState">به برنامه اجازه مشاهده وضعیت تلفن و اتصال داده را با پشتیبانی از چندین سیم کارت می‌دهد.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">تغییر تنظیمات امنیت سیستم Lineage</string>
<string name="permdesc_writeSecureSettings">به برنامه اجازه می‌دهد تا تنظیمات امنیت سیستم Lineage را تغییر دهد. برای استفاده برنامه‌های عادی پیشنهاد نمی‌شود.</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">پیرو کاشی شخصی</string>
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-fi/strings.xml b/lineage/res/res/values-fi/strings.xml
index 1d90ddef..8db55e85 100644
--- a/lineage/res/res/values-fi/strings.xml
+++ b/lineage/res/res/values-fi/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS Järjestelmä</string>
- <string name="permlab_publishCustomTile">luo mukautettu tiili pika-asetuspaneeliin</string>
- <string name="permdesc_publishCustomTile">Sallii sovelluksen julkaista pika-asetustiiliä.</string>
<string name="permlab_modifyNetworkSettings">muuta järjestelmän verkkoasetuksia</string>
<string name="permdesc_modifyNetworkSettings">Sallii sovelluksen tehdä muutoksia lentokonetilan ja mobiiliverkon asetuksiin.</string>
<string name="permlab_modifySoundSettings">muuta järjestelmän ääniasetuksia</string>
<string name="permdesc_modifySoundSettings">Sallii sovelluksen tehdä muutoksia keskeytystilan ääniasetuksiin.</string>
- <string name="permlab_bindCustomTileListenerService">kiinnitä mukautettu tiili kuuntelupalveluun</string>
- <string name="permdesc_bindCustomTileListenerService">Sallii haltijan kiinnittää mukautetun tiilen kuuntelupalvelun käyttöliittymään.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">tarkastele puhelimen tilaa ja datayhteyttä useamman SIM-kortin tuella</string>
<string name="permdesc_readMSPhoneState">Sallii sovelluksen tarkastella puhelimen tilaa ja datayhteyden tietoja usean SIM-kortin tuella.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">muokkaa Lineage-järjestelmän turvallisuusasetuksia</string>
<string name="permdesc_writeSecureSettings">Sallii sovelluksen muokata Lineage-järjestelmän turvallisuusasetuksia. Ei normaalin sovelluksen käytettäväksi.</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">Mukautetun tiilen kuuntelija</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">lisätä ja poistaa suojattuja sovelluksia</string>
<string name="permdesc_protectedApp">Antaa sovelluksen merkitä muita sovelluksia suojatuiksi ja lukita ne.</string>
diff --git a/lineage/res/res/values-fil-rPH/strings.xml b/lineage/res/res/values-fil-rPH/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-fil-rPH/strings.xml
+++ b/lineage/res/res/values-fil-rPH/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-fr-rCA/strings.xml b/lineage/res/res/values-fr-rCA/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-fr-rCA/strings.xml
+++ b/lineage/res/res/values-fr-rCA/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-fr/strings.xml b/lineage/res/res/values-fr/strings.xml
index 3361989f..fda9558e 100644
--- a/lineage/res/res/values-fr/strings.xml
+++ b/lineage/res/res/values-fr/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Système LineageOS</string>
- <string name="permlab_publishCustomTile">créer un raccourci personnalisé dans la fenêtre de configuration rapide</string>
- <string name="permdesc_publishCustomTile">Autorise une application à insérer un raccourci de configuration rapide.</string>
<string name="permlab_modifyNetworkSettings">modifier les paramètres réseau du système</string>
<string name="permdesc_modifyNetworkSettings">Autorise une application à modifier le mode avion et les paramètres de réseau de données mobiles.</string>
<string name="permlab_modifySoundSettings">modifier les paramètres système de son</string>
<string name="permdesc_modifySoundSettings">Autorise une application à modifier les réglages du son en mode interruption.</string>
- <string name="permlab_bindCustomTileListenerService">lié au service d\'écoute d\'un raccourci personnalisé</string>
- <string name="permdesc_bindCustomTileListenerService">Autorise l’application de se lier à l\'interface de haut niveau du service d\'écoute d\'un raccourci personnalisé.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">voir l\'état du téléphone et de la connexion de données en gérant le multi-SIM</string>
<string name="permdesc_readMSPhoneState">Autorise une application à voir l\'état du téléphone et la connexion de données en gérant le multi-SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modifier les paramètres système sécurisés de Lineage</string>
<string name="permdesc_writeSecureSettings">Autorise une application à modifier des paramètres système sécurisés de Lineage. Ne pas utiliser pour des applications normales.</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">Service d\'écoute d\'un raccourci personnalisé</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">ajouter et supprimer des applications pour les applications protégées</string>
<string name="permdesc_protectedApp">Permet à une application de marquer d\'autres applications comme protégées et de les verrouiller.</string>
diff --git a/lineage/res/res/values-frp-rIT/strings.xml b/lineage/res/res/values-frp-rIT/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-frp-rIT/strings.xml
+++ b/lineage/res/res/values-frp-rIT/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-fy-rNL/strings.xml b/lineage/res/res/values-fy-rNL/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-fy-rNL/strings.xml
+++ b/lineage/res/res/values-fy-rNL/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-ga-rIE/strings.xml b/lineage/res/res/values-ga-rIE/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-ga-rIE/strings.xml
+++ b/lineage/res/res/values-ga-rIE/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-gd-rGB/strings.xml b/lineage/res/res/values-gd-rGB/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-gd-rGB/strings.xml
+++ b/lineage/res/res/values-gd-rGB/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-gl-rES/strings.xml b/lineage/res/res/values-gl-rES/strings.xml
index edb6279f..b1986973 100644
--- a/lineage/res/res/values-gl-rES/strings.xml
+++ b/lineage/res/res/values-gl-rES/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistema LineageOS</string>
- <string name="permlab_publishCustomTile">crear un botón personalizado no panel de axustes rápidos</string>
- <string name="permdesc_publishCustomTile">Permite a unha aplicación publicar un botón de axustes rápidos.</string>
<string name="permlab_modifyNetworkSettings">cambiar a configuración de rede do sistema</string>
<string name="permdesc_modifyNetworkSettings">Permite que unha aplicación cambie ao modo avión e a configuración da rede de datos móbil.</string>
<string name="permlab_modifySoundSettings">cambiar axustes de sonido</string>
<string name="permdesc_modifySoundSettings">Permítelle a unha aplicación mudar os axustes de son no modo sen interrupcións.</string>
- <string name="permlab_bindCustomTileListenerService">vincular a un servizo de escoita personalizado</string>
- <string name="permdesc_bindCustomTileListenerService">Permítelle á aplicación vincularse á interface superior dun servizo de escoita personalizado.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ver o estado do teléfono e a conexión de datos con capacidade para varias tarxetas SIM</string>
<string name="permdesc_readMSPhoneState">Permítelle a unha aplicación ver o estado do teléfono e conexión de datos con capacidade para varias tarxetas SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modificar a configuración de seguridade do sistema Lineage</string>
<string name="permdesc_writeSecureSettings">Permítelle a unha aplicación modificar a configuración de seguridade do sistema Lineage. As aplicacións normais non deberían utilizar este permiso.</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">Botón de escoita personalizado</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">engadir e eliminar apps das aplicacións protexidas</string>
<string name="permdesc_protectedApp">Permitirlle a unha aplicación marcar outras como protexidas e bloquealas.</string>
diff --git a/lineage/res/res/values-gu-rIN/strings.xml b/lineage/res/res/values-gu-rIN/strings.xml
index 45ac82d6..18688266 100644
--- a/lineage/res/res/values-gu-rIN/strings.xml
+++ b/lineage/res/res/values-gu-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS સિસ્ટમ</string>
- <string name="permlab_publishCustomTile">ક્વિક સેટિંગ્સ પૅનલની અંદર કસ્ટમ ટાઇલ સર્જો</string>
- <string name="permdesc_publishCustomTile">ઍપને ક્વિક સેટિંગ્સ ટાઇલ પ્રકાશિત કરવાની પરવાનગી આપે છે.</string>
<string name="permlab_modifyNetworkSettings">સિસ્ટમ નેટવર્ક સેટિંગ્સ પરિવર્તન કરો</string>
<string name="permdesc_modifyNetworkSettings">ઍપને એરપ્લેન મોડ અને મોબાઇલ ડેટા નેટવર્ક સેટિંગ્સમાં પરિવર્તનો કરવાની પરવાનગી આપે છે.</string>
<string name="permlab_modifySoundSettings">સિસ્ટમ સાઉન્ડ સેટિંગ્સ પરિવર્તન કરો</string>
<string name="permdesc_modifySoundSettings">ઍપને વિક્ષેપ મોડ સાઉન્ડ સેટિંગ્સમાં પરિવર્તનો કરવાની પરવાનગી આપે છે.</string>
- <string name="permlab_bindCustomTileListenerService">કસ્ટમ ટાઇલ લિસ્નર સેવા સાથે બાંધો</string>
- <string name="permdesc_bindCustomTileListenerService">ઍપને કસ્ટમ ટાઇલ લિસ્નર સેવાના ટોચ-સ્તરના ઇન્ટરફેસ સાથે બંધાવાની પરવાનગી આપે છે.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">બહુવિધ SIMsના સ‌મર્થન સહ ફોન સ્થિતિ અને ડેટા જોડાણ જુઓ</string>
<string name="permdesc_readMSPhoneState">ઍપને બહુવિધ SIMsના સ‌મર્થન સહ ફોન સ્થિતિ અને ડેટા જોડાણ જોવાની પરવાનગી કરી આપે છે.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage સુ‌રક્ષિત સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરો</string>
<string name="permdesc_writeSecureSettings">ઍપને Lineage સુ‌રક્ષિત સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરવાની પરવાનગી આપે છે. સામાન્ય એપ્સ દ્વારા ઉપયોગ માટે નથી.</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">કસ્ટમ ટાઇલ લિસ્નર</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">ઍડ અને કાઢી નાંખો એપ્લિકેશન્સ રક્ષણ કરો</string>
<string name="permdesc_protectedApp">ઍપને અન્ય એપ્લિકેશન્સ પર સુરક્ષિત તરીકે અંકિત કરી તે લૉક કરવાની છૂટ આપે છે.</string>
diff --git a/lineage/res/res/values-hi/strings.xml b/lineage/res/res/values-hi/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-hi/strings.xml
+++ b/lineage/res/res/values-hi/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-hr/strings.xml b/lineage/res/res/values-hr/strings.xml
index abcd3495..0c537e43 100644
--- a/lineage/res/res/values-hr/strings.xml
+++ b/lineage/res/res/values-hr/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS sustav</string>
- <string name="permlab_publishCustomTile">stvori prilagođenu pločicu u brzim postavkama</string>
- <string name="permdesc_publishCustomTile">Dopušta aplikaciji da stvori pločicu u brzim postavkama.</string>
<string name="permlab_modifyNetworkSettings">promijeni sistemske postavke mreže</string>
<string name="permdesc_modifyNetworkSettings">Dopušta aplikaciji mijenjanje postavki za zrakoplovni način i mobilne podatke.</string>
<string name="permlab_modifySoundSettings">promijeni postavke zvukova sustava</string>
<string name="permdesc_modifySoundSettings">Dopušta aplikaciji promijeniti postavke za mod prekidanja zvuka.</string>
- <string name="permlab_bindCustomTileListenerService">vezuje za zadanu pločicu usluga nadgledanja</string>
- <string name="permdesc_bindCustomTileListenerService">Omogućuje aplikaciji da se veže za sučelje najviše razine prilagođene pločice usluga nadgledanja.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">prikaz stanja telefona i veze uz podršku za više SIM-ova</string>
<string name="permdesc_readMSPhoneState">Dopušta aplikaciji prikaz stanja telefona i veze uz podršku za više SIM-ova.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">promijeni Lineage postavke sigurnosti sustava</string>
<string name="permdesc_writeSecureSettings">Dopušta aplikaciji da promjeni Lineage postavke sigurnosti sustava. Nije za korištenje kod normalnih aplikacija.</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">Prilagođena pločica nadgledanja</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">dodavanje ili uklanjanje aplikacije za zaštićene aplikacije</string>
<string name="permdesc_protectedApp">Omogućuje aplikaciji da označi druge aplikacije kao zaštićene i zaključa ih.</string>
diff --git a/lineage/res/res/values-hu/strings.xml b/lineage/res/res/values-hu/strings.xml
index 132aaf0e..0dca2421 100644
--- a/lineage/res/res/values-hu/strings.xml
+++ b/lineage/res/res/values-hu/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS rendszer</string>
- <string name="permlab_publishCustomTile">egy egyedi csempe létrehozása a gyors beállítások panelen</string>
- <string name="permdesc_publishCustomTile">Lehetővé teszi az alkalmazás számára, hogy gyors beállítások csempét hozzon létre.</string>
<string name="permlab_modifyNetworkSettings">rendszer hálózati beállításainak módosítása</string>
<string name="permdesc_modifyNetworkSettings">Lehetővé teszi az alkalmazás számára, hogy módosítsa a repülőgép üzemmódot és a mobil adathálózat beállításokat.</string>
<string name="permlab_modifySoundSettings">rendszer hangbeállításainak módosítása</string>
<string name="permdesc_modifySoundSettings">Lehetővé teszi az alkalmazás számára, hogy módosítsa a zavaró mód hangbeállításait.</string>
- <string name="permlab_bindCustomTileListenerService">egyéni csempe figyelőszolgáltatáshoz kötés</string>
- <string name="permdesc_bindCustomTileListenerService">Lehetővé teszi az alkalmazás számára, hogy a legfelső szintű illesztőjéhez kösse az egyéni csempe figyelőszolgáltatást.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">telefon állapotának és adatkapcsolatának megtekintése több SIM támogatásával</string>
<string name="permdesc_readMSPhoneState">Lehetővé teszi az alkalmazás számára, hogy megtekintse a telefon állapotát és az adatkapcsolatot több SIM támogatásával.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage biztonsági rendszer beállításainak módosítása</string>
<string name="permdesc_writeSecureSettings">Lehetővé teszi egy alkalmazás számára a Lineage biztonsági rendszer beállításainak módosítását. Szokásos alkalmazások számára nem használható.</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">Egyéni csempe figyelőszolgáltatás</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">alkalmazások hozzáadása vagy eltávolítása a védett alkalmazásokból</string>
<string name="permdesc_protectedApp">Lehetővé teszi az alkalmazás számára más alkalmazások védetté nyilvánítását és azok zárolását.</string>
diff --git a/lineage/res/res/values-hy-rAM/strings.xml b/lineage/res/res/values-hy-rAM/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-hy-rAM/strings.xml
+++ b/lineage/res/res/values-hy-rAM/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-in/strings.xml b/lineage/res/res/values-in/strings.xml
index ade43fa9..2c4401ce 100644
--- a/lineage/res/res/values-in/strings.xml
+++ b/lineage/res/res/values-in/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistem LineageOS</string>
- <string name="permlab_publishCustomTile">membuat ikon kustom dalam panel setelan cepat</string>
- <string name="permdesc_publishCustomTile">Izinkan aplikasi untuk mempublikasikan ikon pengaturan cepat.</string>
<string name="permlab_modifyNetworkSettings">ubah pengaturan jaringan sistem</string>
<string name="permdesc_modifyNetworkSettings">Mengizinkan sebuah aplikasi untuk membuat perubahan ke modus pesawat dan pengaturan jaringan data seluler.</string>
<string name="permlab_modifySoundSettings">ubah pengaturan suara sistem</string>
<string name="permdesc_modifySoundSettings">Mengizinkan sebuah aplikasi untuk membuat perubahan pada pengaturan suara modus gangguan.</string>
- <string name="permlab_bindCustomTileListenerService">menautkan ke layanan pendengar ikon khusus</string>
- <string name="permdesc_bindCustomTileListenerService">Mengizinkan aplikasi untuk menautkan pada antarmuka level atas dari layanan pendengar ikon khusus.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">lihat status ponsel dan koneksi data dengan dukungan untuk beberapa SIM</string>
<string name="permdesc_readMSPhoneState">Mengizinkan aplikasi untuk melihat status ponsel dan koneksi data dengan dukungan untuk beberapa SIM.</string>
@@ -53,8 +49,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">mengubah pengaturan sistem aman Lineage</string>
<string name="permdesc_writeSecureSettings">Memungkinkan aplikasi untuk memodifikasi pengaturan sistem aman Lineage. Tidak untuk digunakan oleh aplikasi normal.</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">Daftar ikon kustom</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">tambahkan dan hapus aplikasi untuk aplikasi yang dilindungi</string>
<string name="permdesc_protectedApp">Mengizinkan aplikasi untuk menandai aplikasi lain sebagai aplikasi yang dilindungi dan menguncinya.</string>
diff --git a/lineage/res/res/values-is-rIS/strings.xml b/lineage/res/res/values-is-rIS/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-is-rIS/strings.xml
+++ b/lineage/res/res/values-is-rIS/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-it/strings.xml b/lineage/res/res/values-it/strings.xml
index d8f8e043..c8f10d13 100644
--- a/lineage/res/res/values-it/strings.xml
+++ b/lineage/res/res/values-it/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistema LineageOS</string>
- <string name="permlab_publishCustomTile">creare un tile personalizzato all\'interno del pannello Impostazioni rapide</string>
- <string name="permdesc_publishCustomTile">Consenti ad un\'app di pubblicare un tile personalizzato.</string>
<string name="permlab_modifyNetworkSettings">modifica le impostazioni di rete di sistema</string>
<string name="permdesc_modifyNetworkSettings">Consente ad un\'app di apportare modifiche alla modalità aereo e alle impostazioni di rete dati mobile.</string>
<string name="permlab_modifySoundSettings">cambia impostazioni suoni di sistema</string>
<string name="permdesc_modifySoundSettings">Consente ad un\'app di apportare modifiche alle impostazioni di modalità interruzione audio.</string>
- <string name="permlab_bindCustomTileListenerService">associare ad un servizio listener di tile personalizzato</string>
- <string name="permdesc_bindCustomTileListenerService">Consente ad un\'app di collegarsi ad un interfaccia di un servizio listener di tile personalizzato.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">vedi stato del dispositivo e connessione con supporto a più SIM</string>
<string name="permdesc_readMSPhoneState">Consenti ad un\'app di vedere lo stato del telefono e della connessione con supporto per SIM multiple.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modifica le impostazioni di sistema sicure Lineage</string>
<string name="permdesc_writeSecureSettings">Consenti ad un\'app di modificare le impostazioni di sistema sicure Lineage. Non per l\'uso di normali applicazioni.</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">Listener tile personalizzato</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">aggiungi o rimuovi app dalle app protette</string>
<string name="permdesc_protectedApp">Consenti ad un\'app di segnalare altre app come protette e bloccarle.</string>
diff --git a/lineage/res/res/values-iw/strings.xml b/lineage/res/res/values-iw/strings.xml
index d3d60901..56b9c0ce 100644
--- a/lineage/res/res/values-iw/strings.xml
+++ b/lineage/res/res/values-iw/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">מערכת LineageOS</string>
- <string name="permlab_publishCustomTile">צור אריח מותאם אישית בתוך לוח ההגדרות המהירות</string>
- <string name="permdesc_publishCustomTile">מאפשר ליישום לפרסם אריח הגדרות מותאם אישית.</string>
<string name="permlab_modifyNetworkSettings">שנה את הגדרות הרשת של המערכת</string>
<string name="permdesc_modifyNetworkSettings">מאפשר ליישום לבצע שינויים בהגדרות מצב הטיסה ורשת הנתונים הניידים.</string>
<string name="permlab_modifySoundSettings">שנה את הגדרות השמע של המערכת</string>
<string name="permdesc_modifySoundSettings">מאפשר ליישום לבצע שינויים בהגדרות השמע של מצב ההפרעה.</string>
- <string name="permlab_bindCustomTileListenerService">קשור לשירות המאזין לאריחים מותאמים אישית</string>
- <string name="permdesc_bindCustomTileListenerService">מאפשר ליישום להיקשר לממשק רמה עליונה של שירות המאזין לאריחים מותאמים אישית.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">הצג את מצב המכשיר ואת חיבור הנתונים עם תמיכה בכרטיסי SIM מרובים</string>
<string name="permdesc_readMSPhoneState">מאפשר ליישום להציג את מצב המכשיר ואת חיבור הנתונים עם תמיכה בכרטיסי SIM מרובים.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">שנה הגדרות מאובטחות של מערכת Lineage</string>
<string name="permdesc_writeSecureSettings">מאפשר ליישום לשנות את ההגדרות המאובטחות של מערכת Lineage. לא לשימוש ביישומים רגילים.</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">מאזין אריחים מותאמים אישית</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">הוספה והסרה של יישומים מהיישומים המוגנים</string>
<string name="permdesc_protectedApp">מאפשר ליישום לסמן יישומים אחרים כמוגנים ולנעול אותם.</string>
diff --git a/lineage/res/res/values-ja/strings.xml b/lineage/res/res/values-ja/strings.xml
index 4c143dde..d44dc87c 100644
--- a/lineage/res/res/values-ja/strings.xml
+++ b/lineage/res/res/values-ja/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS システム</string>
- <string name="permlab_publishCustomTile">クイック設定パネルでのカスタムタイルの作成</string>
- <string name="permdesc_publishCustomTile">クイック設定タイルの作成をアプリに許可します</string>
<string name="permlab_modifyNetworkSettings">システムのネットワークの設定の変更</string>
<string name="permdesc_modifyNetworkSettings">機内モードとモバイルデータネットワークの設定を変更することをアプリに許可します。</string>
<string name="permlab_modifySoundSettings">システムの音の設定</string>
<string name="permdesc_modifySoundSettings">サイレントモードの音の設定を変更することをアプリに許可します。</string>
- <string name="permlab_bindCustomTileListenerService">カスタムタイルリスナーサービスのバインド</string>
- <string name="permdesc_bindCustomTileListenerService">カスタムタイルリスナーサービスのトップレベルインターフェースへのバインドをアプリに許可します</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">マルチSIMをサポートする端末の状態とデータ接続の表示</string>
<string name="permdesc_readMSPhoneState">マルチSIMをサポートする端末の状態とデータ接続の表示をアプリに許可します。</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">LineageOS セキュアシステム設定の変更</string>
<string name="permdesc_writeSecureSettings">LineageOS セキュアシステム設定の変更をアプリに許可します。通常のアプリ用ではありません。</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">カスタムタイルリスナー</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">アプリの保護へのアプリの追加と削除</string>
<string name="permdesc_protectedApp">他のアプリを保護に設定してロックすることをアプリに許可します。</string>
diff --git a/lineage/res/res/values-ka-rGE/strings.xml b/lineage/res/res/values-ka-rGE/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-ka-rGE/strings.xml
+++ b/lineage/res/res/values-ka-rGE/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-kk-rKZ/strings.xml b/lineage/res/res/values-kk-rKZ/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-kk-rKZ/strings.xml
+++ b/lineage/res/res/values-kk-rKZ/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-km-rKH/strings.xml b/lineage/res/res/values-km-rKH/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-km-rKH/strings.xml
+++ b/lineage/res/res/values-km-rKH/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-kn-rIN/strings.xml b/lineage/res/res/values-kn-rIN/strings.xml
index c081f39b..321f4f68 100644
--- a/lineage/res/res/values-kn-rIN/strings.xml
+++ b/lineage/res/res/values-kn-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS ಸಿಸ್ಟಂ</string>
- <string name="permlab_publishCustomTile">ತ್ವರಿತ ಸೆಟ್ಟಿಂಗ್ಸ್ ಪ್ಯಾನೆಲ್ ಒಳಗೆಯೇ ಒಂದು ಕಸ್ಟಮ್ ಟೈಲ್ ರಚಿಸಿ</string>
- <string name="permdesc_publishCustomTile">ಒಂದು ಆಪ್‍ಗೆ ತ್ವರಿತ ಸೆಟ್ಟಿಂಗ್ಸ್ ಟೈಲನ್ನು ಮುದ್ರಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.</string>
<string name="permlab_modifyNetworkSettings">ಸಿಸ್ಟಂ ನೆಟ್‍ವರ್ಕ್ ಸೆಟ್ಟಿಂಗ್ಸ್ ಬದಲಿಸು</string>
<string name="permdesc_modifyNetworkSettings">ಒಂದು ಆಪ್‍ಗೆ ಏರೋಪ್ಲೇನ್ ಮೋಡ್ ಮತ್ತು ಮೊಬೈಲ್ ಡೇಟಾ ನೆಟ್‍ವರ್ಕ್ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಬದಲಾಯಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.</string>
<string name="permlab_modifySoundSettings">ಸಿಸ್ಟಂ ಶಬ್ಧ ಸೆಟ್ಟಿಂಗ್ಸ್ ಬದಲಾಯಿಸು</string>
<string name="permdesc_modifySoundSettings">ಒಂದು ಆಪ್‍ಗೆ ಅಡಚಣೆ ಮೋಡ್ ಶಬ್ಧ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಬದಲಾಯಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.</string>
- <string name="permlab_bindCustomTileListenerService">ಕಸ್ಟಮ್ ಟೈಲ್ ಲಿಸ್ನರ್ ಸೇವೆಗೆ ಬೈಂಡ್ ಮಾಡು</string>
- <string name="permdesc_bindCustomTileListenerService">ಆಪ್‍ಗೆ ಕಸ್ಟಮ್ ಟೈಲ್ ಲಿಸ್ನರ್‍ ಸೇವೆಯ ಮೇಲ್ದರ್ಜೆಯ ಇಂಟರ್ಫೇಸ್‍ಗೆ ಬೈಂಡ್ ಮಾಡಲು ಅನುಮತಿಸುತ್ತದೆ.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ಬಹು ಸಿಮ್‍ಗಳ ಬೆಂಬಲದ ಜೊತೆ ಫೋನ್ ಸ್ಥಿತಿ ಮತ್ತು ಡೇಟಾ ಸಂಪರ್ಕವನ್ನು ವೀಕ್ಷಿಸುವಿಕೆ</string>
<string name="permdesc_readMSPhoneState">ಒಂದು ಆಪ್‍ಗೆ ಬಹು ಸಿಮ್‍ಗಳ ಬೆಂಬಲದ ಜೊತೆ ಫೋನ್ ಸ್ಥಿತಿ ಮತ್ತು ಡೇಟಾ ಸಂಪರ್ಕವನ್ನು ವೀಕ್ಷಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage ಸುರಕ್ಷಿತ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸು</string>
<string name="permdesc_writeSecureSettings">ಒಂದು ಆಪ್‍ಗೆ Lineage ಸುರಕ್ಷಿತ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸಲು ಅನುಮತಿಸುತ್ತದೆ. ಸಾಮಾನ್ಯ ಆಪ್‍ಗಳ ಬಳಕೆಗಲ್ಲ.</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">ಕಸ್ಟಮ್ ಟೈಲ್ ಲಿಸ್ನರ್</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">ಸಂರಕ್ಷಿತ ಅಪ್ಲಿಕೇಶನ್‌ಗಳಿಗೆ ಅಪ್ಲಿಕೇಶನ್‌ಗಳನ್ನು ಸೇರಿಸಿ ಮತ್ತು ತೆಗೆಯಿರಿ</string>
<string name="permdesc_protectedApp">ಇತರ ಅಪ್ಲಿಗಳನ್ನು ಸಂರಕ್ಷಿತಗೊಳಿಸಲು ಮತ್ತು ಅವುಗಳನ್ನು ಲಾಕ್‌ ಮಾಡಲು ಒಂದು ಅಪ್ಲಿಕೇಶನ್‌ ಅನುವು ಮಾಡಿ</string>
diff --git a/lineage/res/res/values-ko/strings.xml b/lineage/res/res/values-ko/strings.xml
index 7718cf31..6a8bd32f 100644
--- a/lineage/res/res/values-ko/strings.xml
+++ b/lineage/res/res/values-ko/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS 시스템</string>
- <string name="permlab_publishCustomTile">빠른 설정 패널에 사용자 정의 타일 생성</string>
- <string name="permdesc_publishCustomTile">앱이 빠른 설정 타일을 만들 수 있도록 허용합니다.</string>
<string name="permlab_modifyNetworkSettings">시스템 네트워크 설정 변경</string>
<string name="permdesc_modifyNetworkSettings">앱이 비행기 모드와 모바일 데이터 네트워크 설정을 변경할 수 있도록 허용합니다.</string>
<string name="permlab_modifySoundSettings">시스템 소리 설정 변경</string>
<string name="permdesc_modifySoundSettings">앱이 알림 차단 모드의 소리 설정을 변경할 수 있도록 허용합니다.</string>
- <string name="permlab_bindCustomTileListenerService">사용자 정의 타일 확인 서비스에 연결</string>
- <string name="permdesc_bindCustomTileListenerService">앱이 사용자 정의 타일 확인 서비스의 최상위 인터페이스에 연결하도록 허용합니다.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">여러 개의 SIM 카드를 지원하면서 휴대전화의 상태와 데이터 연결 상태를 확인</string>
<string name="permdesc_readMSPhoneState">앱이 여러 개의 SIM 카드를 지원하면서 휴대전화의 상태와 데이터 연결 상태를 확인하도록 허용합니다.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage 보안 시스템 설정 수정</string>
<string name="permdesc_writeSecureSettings">앱이 Lineage 보안 시스템 설정을 수정할 수 있도록 허용합니다. 일반 앱을 위한 것이 아닙니다.</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">사용자 정의 타일 확인</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">보호된 앱 추가/제거</string>
<string name="permdesc_protectedApp">앱이 다른 앱을 보호됨으로 표시하고 잠글 수 있도록 허용합니다.</string>
diff --git a/lineage/res/res/values-ku/strings.xml b/lineage/res/res/values-ku/strings.xml
index 594343c0..a4eae18f 100644
--- a/lineage/res/res/values-ku/strings.xml
+++ b/lineage/res/res/values-ku/strings.xml
@@ -19,7 +19,6 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">سیستەمی ساینەجنمۆد</string>
- <string name="permlab_bindCustomTileListenerService">گرێدانی دروستکراو لە خزمەتگوزاری گوێگر</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<!-- Labels for the MODIFY_MSIM_PHONE_STATE permission. -->
<!-- Labels for the MODIFY_PROFILES permission. -->
@@ -29,8 +28,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- 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">کاشی دروستکراوی گوێگر</string>
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-ky-rKG/strings.xml b/lineage/res/res/values-ky-rKG/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-ky-rKG/strings.xml
+++ b/lineage/res/res/values-ky-rKG/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-lb/strings.xml b/lineage/res/res/values-lb/strings.xml
index 30404ebe..e9033e7f 100644
--- a/lineage/res/res/values-lb/strings.xml
+++ b/lineage/res/res/values-lb/strings.xml
@@ -19,12 +19,8 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS-System</string>
- <string name="permlab_publishCustomTile">eng Kachel an de séieren Astellungen uweisen</string>
- <string name="permdesc_publishCustomTile">Erlaabt der App, eng Kachel an de séieren Astellungen uweisen.</string>
<string name="permlab_modifyNetworkSettings">Netzwierkastellunge vum System änneren</string>
<string name="permlab_modifySoundSettings">Tounastellunge vum System änneren</string>
- <string name="permlab_bindCustomTileListenerService">en eegenene Kachel-Lauschter-Service ubannen</string>
- <string name="permdesc_bindCustomTileListenerService">Erlaabt der App, sech op dem ieweschtem Niveau un d\'Schnëttstell vun engem Kachel-Lauschter-Service unzebannen.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">Systemstatus an Dateconnectioun op Ënnerstëtzung vu méi SIM-Kaarten iwwerpréiwen</string>
<string name="permdesc_readMSPhoneState">Erlaabt der App, de Systemstatus an d\'Dateconnectioun op Ënnerstëtzung vu méi SIM-Kaarten z\'iwwerpréiwen.</string>
@@ -40,8 +36,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- 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">Eegene Kachel-Lauschter-Service</string>
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-lo-rLA/strings.xml b/lineage/res/res/values-lo-rLA/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-lo-rLA/strings.xml
+++ b/lineage/res/res/values-lo-rLA/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-lt/strings.xml b/lineage/res/res/values-lt/strings.xml
index 2bf41489..63a3cb68 100644
--- a/lineage/res/res/values-lt/strings.xml
+++ b/lineage/res/res/values-lt/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">„LineageOS“ sistema</string>
- <string name="permlab_publishCustomTile">sukurti tinkintą plytelę per greitųjų nustatymų skydelį</string>
- <string name="permdesc_publishCustomTile">Leidžia programai paskelbti greitųjų nustatymų plytelę.</string>
<string name="permlab_modifyNetworkSettings">keisti sistemos tinklo nustatymus</string>
<string name="permdesc_modifyNetworkSettings">Leidžia programai keisti skrydžio režimą ir mobiliųjų duomenų tinklo nustatymus.</string>
<string name="permlab_modifySoundSettings">keisti sistemos garso nustatymus</string>
<string name="permdesc_modifySoundSettings">Leidžia programai keisti pertraukčių rėžimo garso nustatymus.</string>
- <string name="permlab_bindCustomTileListenerService">susieti su tinkintos plytelės klausančia paslauga</string>
- <string name="permdesc_bindCustomTileListenerService">Leidžia programai susieti aukščiausio lygio sąsają su tinkintos plytelės klausančia paslauga.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">pažiūrėti telefono būseną ir duomenų ryšį su kelių SIM palaikymu</string>
<string name="permdesc_readMSPhoneState">Leidžia programai pažiūrėti telefono būseną ir duomenų ryšį su kelių SIM palaikymu.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">keisti Lineage sistemos saugos nustatymus</string>
<string name="permdesc_writeSecureSettings">Leidžia programai keisti Lineage sistemos saugos nustatymus. Neskirta naudoti įprastoms programoms.</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">Tinkintos plytelės klausytojas</string>
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-lv/strings.xml b/lineage/res/res/values-lv/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-lv/strings.xml
+++ b/lineage/res/res/values-lv/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-mk-rMK/strings.xml b/lineage/res/res/values-mk-rMK/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-mk-rMK/strings.xml
+++ b/lineage/res/res/values-mk-rMK/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-ml-rIN/strings.xml b/lineage/res/res/values-ml-rIN/strings.xml
index 90e0c446..5985b167 100644
--- a/lineage/res/res/values-ml-rIN/strings.xml
+++ b/lineage/res/res/values-ml-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS സിസ്റ്റം</string>
- <string name="permlab_publishCustomTile">ദ്രുത ക്രമീകരണ പാനലിൽ ഒരു ഇഷ്ടാനുസൃത ടൈൽ സൃഷ്ടിക്കുക</string>
- <string name="permdesc_publishCustomTile">ദ്രുത ക്രമീകരണ ടൈൽ പ്രസിദ്ധീകരിക്കാൻ ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.</string>
<string name="permlab_modifyNetworkSettings">സിസ്റ്റം നെറ്റ്‌വർക്ക് ക്രമീകരണങ്ങൾ മാറ്റുക</string>
<string name="permdesc_modifyNetworkSettings">എയർപ്ലെയിൻ മോഡ്, മൊബൈൽ ഡാറ്റ നെറ്റ്‌വർക്ക് ക്രമീകരണങ്ങളില്‍ മാറ്റങ്ങൾ വരുത്താൻ ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.</string>
<string name="permlab_modifySoundSettings">സിസ്റ്റം ശബ്ദ ക്രമീകരണങ്ങള്‍ മാറ്റുക</string>
<string name="permdesc_modifySoundSettings">തടസപ്പെടുത്തല്‍ ശബ്ദ ക്രമീകരണങ്ങളില്‍ മാറ്റങ്ങൾ വരുത്താൻ ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.</string>
- <string name="permlab_bindCustomTileListenerService">ഒരു ഇഷ്ടാനുസൃത ടൈൽ ലിസണർ സേവനവുമായി ബൈന്‍ഡ് ചെയ്യുക</string>
- <string name="permdesc_bindCustomTileListenerService">ഒരു ഇഷ്ടാനുസൃത ടൈൽ ലിസണർ സേവനത്തിന്റെ ടോപ്‌-ലെവല്‍ ഇന്റർഫേസിലേക്ക് ബൈന്‍ഡ് ചെയ്യാന്‍ ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ഒന്നിലധികം SIM കളുടെ പിന്തുണയോടെ ഫോൺ സ്ഥിതിയും ഡാറ്റ കണക്ഷനും കാണുക</string>
<string name="permdesc_readMSPhoneState">ഒന്നിലധികം SIM കളുടെ പിന്തുണയോടെ ഫോൺ സ്ഥിതിയും ഡാറ്റ കണക്ഷനും കാണുവാന്‍ ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage സുരക്ഷാ സംവിധാന ക്രമീകരണങ്ങൾ പരിഷ്‌ക്കരിക്കുക</string>
<string name="permdesc_writeSecureSettings">Lineage സുരക്ഷിത സിസ്റ്റം ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുവാന്‍ ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു. സാധാരണ ആപ്ലിക്കേഷനുകൾക്ക് ഉപയോഗിക്കാനുള്ളതല്ല.</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">കസ്റ്റം ടൈൽ ലിസണർ</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">പരിരക്ഷിത ആപ്ലിക്കേഷനുകളില്‍ ചേര്‍ക്കുകയും നീക്കം ചെയ്യുകയും ചെയ്യുക</string>
<string name="permdesc_protectedApp">മറ്റ് ആപ്ലിക്കേഷനുകളെ പരിരക്ഷിതമായി അടയാളപ്പെടുത്തുന്നതിനും അവയെ ലോക്ക് ചെയ്യുന്നതിനും ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.</string>
diff --git a/lineage/res/res/values-mn-rMN/strings.xml b/lineage/res/res/values-mn-rMN/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-mn-rMN/strings.xml
+++ b/lineage/res/res/values-mn-rMN/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-mr-rIN/strings.xml b/lineage/res/res/values-mr-rIN/strings.xml
index 5457d3f3..83a08001 100644
--- a/lineage/res/res/values-mr-rIN/strings.xml
+++ b/lineage/res/res/values-mr-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS सिस्टिम</string>
- <string name="permlab_publishCustomTile">जलद सेटिंग्ज पॅनेलमध्ये एक सानुकूल टाईल तयार करा</string>
- <string name="permdesc_publishCustomTile">अॅपला एक जलद सेटिंग्ज टाईल प्रकाशित करण्याची परवानगी देते.</string>
<string name="permlab_modifyNetworkSettings">सिस्टिम नेटवर्क सेटिंग्ज बदला</string>
<string name="permdesc_modifyNetworkSettings">अॅपला विमान मोड आणि मोबाईल डेटा नेटवर्क सेटिंग्जमध्ये बदल करण्याची परवानगी देते.</string>
<string name="permlab_modifySoundSettings">सिस्टिम ध्वनी सेटिंग्ज बदला</string>
<string name="permdesc_modifySoundSettings">अॅपला व्यत्यय मोड ध्वनी सेटिंग्जमध्ये बदल करण्याची परवानगी देते.</string>
- <string name="permlab_bindCustomTileListenerService">सानुकूल टाईल श्रोता सेवेस बांधा</string>
- <string name="permdesc_bindCustomTileListenerService">अॅपला सानुकूल टाईल श्रोता सेवेच्या सर्वोच्च-पातळी इंटरफेसला बांधू देते.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">फोन स्थिती आणि डेटा कनेक्शन अनेक सिम च्या सहयोगाने पाहा</string>
<string name="permdesc_readMSPhoneState">अॅपला फोन स्थिती आणि डेटा कनेक्शन अनेक सिम च्या सहयोगाने पाहू देते.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage सुरक्षित सिस्टिम सेटिंग्ज सुधारित करा</string>
<string name="permdesc_writeSecureSettings">अॅपला Lineage सुरक्षित सिस्टिम सेटिंग्ज सुधारित करण्याची परवानगी देते. सामान्य अॅपद्वारे वापरासाठी नाही.</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">टाईल श्रोता सानुकूल करा</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">संरक्षित अनुप्रयोगांना अनुप्रयोग जोडा आणि काढा</string>
<string name="permdesc_protectedApp">अनुप्रयोगाला इतर अनुप्रयोगांना संरक्षित म्हणून खूण करू देते आणि त्यांना लॉक करते.</string>
diff --git a/lineage/res/res/values-ms-rMY/strings.xml b/lineage/res/res/values-ms-rMY/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-ms-rMY/strings.xml
+++ b/lineage/res/res/values-ms-rMY/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-my-rMM/strings.xml b/lineage/res/res/values-my-rMM/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-my-rMM/strings.xml
+++ b/lineage/res/res/values-my-rMM/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-nb/strings.xml b/lineage/res/res/values-nb/strings.xml
index d2a4cdea..e516a070 100644
--- a/lineage/res/res/values-nb/strings.xml
+++ b/lineage/res/res/values-nb/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS System</string>
- <string name="permlab_publishCustomTile">opprett en egendefinert flis i hurtiginnstillingspanelet</string>
- <string name="permdesc_publishCustomTile">Tillater en app å publisere en hurtiginnstillingsflis.</string>
<string name="permlab_modifyNetworkSettings">endre innstillingene for nettverk</string>
<string name="permdesc_modifyNetworkSettings">Tillat en app å gjøre endringer i flymodus og mobildatainnstillinger.</string>
<string name="permlab_modifySoundSettings">endre systemets lydinnstillinger</string>
<string name="permdesc_modifySoundSettings">Gir en app tilgang til å gjøre endringer i avbrudd-modus lydinnstillingene.</string>
- <string name="permlab_bindCustomTileListenerService">binde til en egendefinert flis-lyttertjeneste</string>
- <string name="permdesc_bindCustomTileListenerService">Tillater at en app kan bindes til det øverste nivået i grensesnittet til en tilpasset flis-lyttertjeneste.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">vis telefonens status og forbindelse med støtte til flere SIM-kort</string>
<string name="permdesc_readMSPhoneState">Gir en app tilgang til å se telefonens status og forbindelse med støtte til flere SIM-kort.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">endre Lineage sikker systeminnstillinger</string>
<string name="permdesc_writeSecureSettings">Gir en app tilgang til å endre Lineage sikkerhets-systeminnstillinger. Tilgangen bør ikke gis til normale apper.</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">Egendefinerte flis lytter</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">gjør apper beskyttet/ubeskyttet</string>
<string name="permdesc_protectedApp">Tillat en app å merke andre apper som beskyttet og låse dem.</string>
diff --git a/lineage/res/res/values-ne-rNP/strings.xml b/lineage/res/res/values-ne-rNP/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-ne-rNP/strings.xml
+++ b/lineage/res/res/values-ne-rNP/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-nl/strings.xml b/lineage/res/res/values-nl/strings.xml
index 7f27c7cc..05d4c382 100644
--- a/lineage/res/res/values-nl/strings.xml
+++ b/lineage/res/res/values-nl/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS-systeem</string>
- <string name="permlab_publishCustomTile">een aangepaste tegel aanmaken in het snelle instellingenpaneel</string>
- <string name="permdesc_publishCustomTile">Hiermee kan een app een tegel toevoegen aan snelle instellingen.</string>
<string name="permlab_modifyNetworkSettings">systeemnetwerkinstellingen wijzigen</string>
<string name="permdesc_modifyNetworkSettings">Hiermee kan de app wijzigingen aanbrengen in de vliegtuigmodus en de mobiele netwerkinstellingen.</string>
<string name="permlab_modifySoundSettings">systeemgeluidinstellingen wijzigen</string>
<string name="permdesc_modifySoundSettings">Hiermee kan de app wijzigingen aanbrengen in de onderbrekingsinstellingen van meldingen.</string>
- <string name="permlab_bindCustomTileListenerService">koppelen aan aangepaste tegel-service</string>
- <string name="permdesc_bindCustomTileListenerService">Hiermee kan de app koppelen aan de systeeminterface voor het aanmaken van tegels.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">telefoonstatus en gegevensverbinding bekijken met ondersteuning voor multi-SIM</string>
<string name="permdesc_readMSPhoneState">Hiermee kan de app de status van de telefoon en de gegevensverbinding weergeven met ondersteuning voor meerdere simkaarten.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">beveiligde Lineage-systeeminstellingen wijzigen</string>
<string name="permdesc_writeSecureSettings">Hiermee kan de app de beveiligde systeeminstellingen van Lineage wijzigen. Niet voor gebruik door normale apps.</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">Aangepaste tegel-service</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">toevoegen en verwijderen van apps aan beschermde apps</string>
<string name="permdesc_protectedApp">Hiermee kan de app andere apps als beschermd aanmerken en vergrendelen.</string>
diff --git a/lineage/res/res/values-oc-rFR/strings.xml b/lineage/res/res/values-oc-rFR/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-oc-rFR/strings.xml
+++ b/lineage/res/res/values-oc-rFR/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-or-rIN/strings.xml b/lineage/res/res/values-or-rIN/strings.xml
index 81253457..9832d800 100644
--- a/lineage/res/res/values-or-rIN/strings.xml
+++ b/lineage/res/res/values-or-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">ସିଆନୋଜେନ୍‍ମୋଡ୍‍ ସିଷ୍ଟମ୍‍</string>
- <string name="permlab_publishCustomTile">ଦ୍ରୁତ ସେଟିଂସମୂହ ପ୍ୟାନେଲ୍‍ ମଧ୍ୟରେ ଏକ କଷ୍ଟମ୍‍ ଟାଇଲ୍‍ ସୃଷ୍ଟି କରନ୍ତୁ</string>
- <string name="permdesc_publishCustomTile">ଏକ ଦ୍ରୁତ ସେଟିଂସମୂହ ଟାଇଲ୍‍ ପ୍ରକାଶନ କରିବା ପାଇଁ ଆପ୍ଲିକେସନ୍‍କୁ ଅନୁମତି ଦେଇଥାଏ</string>
<string name="permlab_modifyNetworkSettings">ସିଷ୍ଟମ୍‍ ନେଟ୍‍ୱାର୍କ ସେଟିଂସମୂହ ପରିବର୍ତ୍ତନ କରନ୍ତୁ</string>
<string name="permdesc_modifyNetworkSettings">ଏକ ଆପ୍ଲିକେସନ୍‍କୁ ବିମାନ ମୋଡ୍‍ରେ ଓ ମୋବାଇଲ୍‍ ଡାଟା ନେଟ୍‍ୱାର୍କ ସେଟିଂସମୂହ‍ରେ ପରିବର୍ତ୍ତନ କରାଇବାକୁ ଅନୁମତି ଦେଇଥାଏ।</string>
<string name="permlab_modifySoundSettings">ସିଷ୍ଟମ୍‍ ସାଉଣ୍ଡ ସେଟିଂସମୂହ‍ରେ ପରିବର୍ତ୍ତନ କରନ୍ତୁ।</string>
<string name="permdesc_modifySoundSettings">ଏକ ଆପ୍ଲିକେସନ୍‍କୁ ଇଣ୍ଟରପ୍ସନ୍‍ ମୋଡ୍‍ ସାଉଣ୍ଡ ସେଟିଂସମୂହ‍ରେ ପରିବର୍ତ୍ତନ କରାଇବାକୁ ଅନୁମତି ଦେଇଥାଏ।</string>
- <string name="permlab_bindCustomTileListenerService">ଏକ କଷ୍ଟମ୍‍ ଟାଇଲ୍‍ ଲିସ୍‍ନର୍‍ ସେବା ସହ ଯୋଡନ୍ତୁ</string>
- <string name="permdesc_bindCustomTileListenerService">ଏକ କଷ୍ଟମ୍‍ ଟାଇଲ୍‍ ଲିସ୍‍ନର୍‍ ସେବାର ଇଣ୍ଟରଫେସ୍‍ ସହିତ ଆପ୍ଲିକେସନ୍‍କୁ ଯୋଡିବାକୁ ଅନୁମତି ଦିଏ।</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ଏକାଧିକ SIMର ସମଥନ ସହିତ ଫୋନ୍‍ ଥିତି ଓ ଡାଟା ସଂଯୋଗ ଦେଖନ୍ତୁ</string>
<string name="permdesc_readMSPhoneState">ଏକାଧିକ SIMର ସମଥନ ସହିତ ଫୋନ୍‍ ସ୍ଥିତି ଓ ଡାଟା ସଂଯୋଗ ଦେଖିବାକୁ ଆପ୍ଲିକେସନ୍‍କୁ ଅନୁମତି ଦିଏ।</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage ସୁରଷିତ ସିଷ୍ଟମ୍‍ ସେଟିଂସମୂହ ସମ୍ପାଦନା</string>
<string name="permdesc_writeSecureSettings">Lineage ସୁରଷିତ ସିଷ୍ଟମ୍‍ ସେଟିଂସମୂହ‍ ସମ୍ପାଦନା କରିବାକୁ ଆପ୍ଲିକେସନ୍‍କୁ ଅନୁମତି ଦିଏ। ସାଧାରଣ ଆପ୍ଲିକେସନଗୁଡିକ ଦ୍ଵାରା ବ୍ୟବହାରରେ ନାହିଁ।</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">ଟାଇଲ୍‍ ଲିସ୍‍ନର୍‍ କଷ୍ଟମ୍‍ କରନ୍ତୁ</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">ସୁରଷିତ ଆପ୍ଲିକେସନ୍‍ଗୁଡିକରୁ ଆପ୍ଲିକେସନ୍‍କୁ ଯୋଗ ବା ଅପସାରଣ କରନ୍ତୁ</string>
<string name="permdesc_protectedApp">ଅନ୍ୟ ଆପ୍ଲିକେସନ୍‍ଗୁଡିକ ସୁରଷିତ ଭାବେ ଚିହ୍ନିତ କରିବାକୁ ଓ ସେଗୁଡିକୁ ଲକ୍‍ କରିବା ପାଇଁ ଆପ୍ଲିକେସନ୍‍କୁ ଅନୁମତି ଦିଏ।</string>
diff --git a/lineage/res/res/values-pa-rIN/strings.xml b/lineage/res/res/values-pa-rIN/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-pa-rIN/strings.xml
+++ b/lineage/res/res/values-pa-rIN/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-pl/strings.xml b/lineage/res/res/values-pl/strings.xml
index 54243059..4576a35c 100644
--- a/lineage/res/res/values-pl/strings.xml
+++ b/lineage/res/res/values-pl/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">System LineageOS</string>
- <string name="permlab_publishCustomTile">utwórz niestandardowy przełącznik w panelu szybkich ustawień</string>
- <string name="permdesc_publishCustomTile">Umożliwia aplikacji stworzenie kafelka szybkich ustawień.</string>
<string name="permlab_modifyNetworkSettings">zmień ustawienia sieciowe systemu</string>
<string name="permdesc_modifyNetworkSettings">Umożliwia aplikacji zmianę ustawień trybu samolotowego i sieci komórkowej.</string>
<string name="permlab_modifySoundSettings">zmień ustawienia dźwiękowe systemu</string>
<string name="permdesc_modifySoundSettings">Umożliwia aplikacji zmianę trybu przerwań ustawień dźwięku.</string>
- <string name="permlab_bindCustomTileListenerService">powiąż z niestandardowymi usługami odbiornika</string>
- <string name="permdesc_bindCustomTileListenerService">Pozwala aplikacji na powiązanie z interfejsem najwyższego poziomu niestandardowej usługi odbiornika.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">pokaż stanu telefonu i połączenia danych z wsparciem dla wielu kart SIM</string>
<string name="permdesc_readMSPhoneState">Pozwala aplikacji na wyświetlenie stanu telefonu i połączenia danych z wsparciem dla wielu kart SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modyfikuje zabezpieczone ustawienia systemowe Lineage</string>
<string name="permdesc_writeSecureSettings">Pozwala aplikacji na modyfikacje zabezpieczonych ustawień systemowych Lineage. Nie do użytku przez zwykłe aplikacje.</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">Niestandardowy odbiornik</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">dodawanie i usuwanie elementów do chronionych aplikacji</string>
<string name="permdesc_protectedApp">Pozwala na oznaczenie aplikacji jako chroniona i zablokowanie jej.</string>
diff --git a/lineage/res/res/values-pt-rBR/strings.xml b/lineage/res/res/values-pt-rBR/strings.xml
index 2fe50931..e4cea328 100644
--- a/lineage/res/res/values-pt-rBR/strings.xml
+++ b/lineage/res/res/values-pt-rBR/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistema LineageOS</string>
- <string name="permlab_publishCustomTile">criar um botão personalizado no painel de configurações rápidas</string>
- <string name="permdesc_publishCustomTile">Permite que um aplicativo insira um botão nas configurações rápidas.</string>
<string name="permlab_modifyNetworkSettings">alterar as configurações de rede do sistema</string>
<string name="permdesc_modifyNetworkSettings">Permite que um aplicativo altere para o modo avião e configurações de rede de dados móvel.</string>
<string name="permlab_modifySoundSettings">alterar as configurações de som do sistema</string>
<string name="permdesc_modifySoundSettings">Permite que um aplicativo fazer alterações no modo de interrupção nas configurações de som.</string>
- <string name="permlab_bindCustomTileListenerService">vincular a um serviço de escuta de botão personalizado</string>
- <string name="permdesc_bindCustomTileListenerService">Permite que o aplicativo vincule à interface de nível superior de um serviço de monitoramento de botão personalizado.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">veja a conexão de dados e o estado do telefone com suporte para vários SIMs</string>
<string name="permdesc_readMSPhoneState">Permite que um aplicativo exiba a conexão de dados e o estado do telefone com suporte para vários SIMs.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modificar as configurações de segurança do sistema da Lineage</string>
<string name="permdesc_writeSecureSettings">Permite que um aplicativo modifique as configurações de segurança do sistema Lineage. Não deve ser usado por aplicativos normais.</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">Monitoramento de botão personalizado</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">adicionar e remover aplicativos aos protegidos</string>
<string name="permdesc_protectedApp">Permite que um aplicativo marque outros aplicativos como protegidos e os bloqueie.</string>
diff --git a/lineage/res/res/values-pt-rPT/strings.xml b/lineage/res/res/values-pt-rPT/strings.xml
index 2519efc6..c9a8a6d6 100644
--- a/lineage/res/res/values-pt-rPT/strings.xml
+++ b/lineage/res/res/values-pt-rPT/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistema LineageOS</string>
- <string name="permlab_publishCustomTile">criar um mosaico personalizado no painel de definições rápidas</string>
- <string name="permdesc_publishCustomTile">Permite que uma aplicação publique um mosaico de definições rápidas.</string>
<string name="permlab_modifyNetworkSettings">alterar as definições de rede do sistema</string>
<string name="permdesc_modifyNetworkSettings">Permite que uma aplicação altere o estado do modo de avião e as definições dos dados móveis.</string>
<string name="permlab_modifySoundSettings">alterar as definições de som do sistema</string>
<string name="permdesc_modifySoundSettings">Permite que uma aplicação faça alterações às definições do modo de interrupção do som.</string>
- <string name="permlab_bindCustomTileListenerService">vincular a um serviço de escuta de mosaicos personalizados</string>
- <string name="permdesc_bindCustomTileListenerService">Permite que a aplicação se vincule a uma interface de nível superior de um serviço de escuta de mosaico personalizado.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ver o estado do telefone e a ligação de dados com suporte para vários cartões SIM</string>
<string name="permdesc_readMSPhoneState">Permite que uma aplicação veja o estado do telefone e a ligação de dados com suporte para vários cartões SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modificar as definições de sistema seguro Lineage</string>
<string name="permdesc_writeSecureSettings">Permite que uma aplicação modifique as definições de sistema seguro Lineage. Nunca deverá ser necessário para aplicações normais.</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">Escuta de mosaicos personalizados</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">adicionar ou remover aplicações às aplicações protegidas</string>
<string name="permdesc_protectedApp">Permite que uma aplicação marque outras aplicações como protegidas e as bloqueie.</string>
diff --git a/lineage/res/res/values-rm/strings.xml b/lineage/res/res/values-rm/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-rm/strings.xml
+++ b/lineage/res/res/values-rm/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-ro/strings.xml b/lineage/res/res/values-ro/strings.xml
index 5c29c8ab..6228f4e7 100644
--- a/lineage/res/res/values-ro/strings.xml
+++ b/lineage/res/res/values-ro/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistem LineageOS</string>
- <string name="permlab_publishCustomTile">creează un chenar personalizat în panoul de setări rapide</string>
- <string name="permdesc_publishCustomTile">Permite unei aplicații să publice un chenar de setări rapide.</string>
<string name="permlab_modifyNetworkSettings">modifică setările de rețea ale sistemului</string>
<string name="permdesc_modifyNetworkSettings">Permite unei aplicații să modifice modul avion și setările de date mobile.</string>
<string name="permlab_modifySoundSettings">modifică setările de sunet ale sistemului</string>
<string name="permdesc_modifySoundSettings">Permite unei aplicații să facă modificări în setările modului de întrerupere al sunetului.</string>
- <string name="permlab_bindCustomTileListenerService">leagă de un chenar personalizat al serviciului de ascultare</string>
- <string name="permdesc_bindCustomTileListenerService">Permite unei aplicații să se lege de interfața de nivel superior a unui chenar personalizat al serviciului de ascultare.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">citește starea telefonului și a conexiunii de date cu suport pentru SIM-uri multiple</string>
<string name="permdesc_readMSPhoneState">Permite unei aplicații să citească starea telefonului și a conexiunii de date cu suport pentru SIM-uri multiple.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">modifică setările de siguranță sistem Lineage</string>
<string name="permdesc_writeSecureSettings">Permite unei aplicații să modifice setările de sistem Lineage sigure. Nu este utilizabilă de către aplicațiile normale.</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">Urmăritor de chenar personalizat</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">adăugați sau eliminați aplicații din aplicațiile protejate</string>
<string name="permdesc_protectedApp">Permite unei aplicații să marcheze alte aplicații ca protejate și să le blocheze.</string>
diff --git a/lineage/res/res/values-ru/strings.xml b/lineage/res/res/values-ru/strings.xml
index 8f991f8e..2c494b26 100644
--- a/lineage/res/res/values-ru/strings.xml
+++ b/lineage/res/res/values-ru/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Система LineageOS</string>
- <string name="permlab_publishCustomTile">Создание пользовательских плиток на панели быстрых настроек</string>
- <string name="permdesc_publishCustomTile">Приложение сможет добавлять плитки на панель быстрых настроек.</string>
<string name="permlab_modifyNetworkSettings">Изменение сетевых параметров системы</string>
<string name="permdesc_modifyNetworkSettings">Приложение сможет изменять настройки режима полёта и мобильной сети передачи данных.</string>
<string name="permlab_modifySoundSettings">Изменение звуковых параметров системы</string>
<string name="permdesc_modifySoundSettings">Приложение сможет изменять звуковые настройки режима уведомлений.</string>
- <string name="permlab_bindCustomTileListenerService">Привязка к службе слушателя пользовательских плиток</string>
- <string name="permdesc_bindCustomTileListenerService">Приложение сможет устанавливать привязку к интерфейсу верхнего уровня службы слушателя пользовательских плиток.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">Просмотр состояния телефона и передачи данных с поддержкой нескольких SIM-карт</string>
<string name="permdesc_readMSPhoneState">Приложение сможет получить доступ к информации о состоянии телефона и передаче данных с поддержкой нескольких SIM-карт.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Изменение параметров безопасности системы Lineage</string>
<string name="permdesc_writeSecureSettings">Приложение сможет изменять параметры безопасности системы. Это разрешение не используется обычными приложениями.</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">Слушатель пользовательских плиток</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">добавление и удаление записей перечня защищенных приложений</string>
<string name="permdesc_protectedApp">Приложение сможет помечать другие приложения как защищённые и блокировать их.</string>
diff --git a/lineage/res/res/values-si-rLK/strings.xml b/lineage/res/res/values-si-rLK/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-si-rLK/strings.xml
+++ b/lineage/res/res/values-si-rLK/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-sk/strings.xml b/lineage/res/res/values-sk/strings.xml
index 71b1ed18..b5e32a2d 100644
--- a/lineage/res/res/values-sk/strings.xml
+++ b/lineage/res/res/values-sk/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Systém LineageOS</string>
- <string name="permlab_publishCustomTile">vytvoriť vlastnú dlaždicu v paneli rýchlych nastavení</string>
- <string name="permdesc_publishCustomTile">Umožňuje aplikácii vytvoriť dlaždicu v rýchlych nastaveniach.</string>
<string name="permlab_modifyNetworkSettings">zmeniť systémové nastavenia siete</string>
<string name="permdesc_modifyNetworkSettings">Umožňuje aplikácii vykonávať zmeny nastavení režimu v lietadle a mobilného dátového pripojenia.</string>
<string name="permlab_modifySoundSettings">zmeniť systémové nastavenia zvuku</string>
<string name="permdesc_modifySoundSettings">Umožňuje aplikácii vykonávať zmeny nastavení zvuku pre režim prerušenia.</string>
- <string name="permlab_bindCustomTileListenerService">viazať službu na vlastnú dlaždicu</string>
- <string name="permdesc_bindCustomTileListenerService">Umožňuje aplikácii nadviazať rozhranie najvyššej úrovne na službu dlaždice.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">zobraziť stav telefónu a dátového pripojenia s podporou viacerých SIM</string>
<string name="permdesc_readMSPhoneState">Umožňuje aplikácii zobraziť stav telefónu a dátového pripojenia s podporou viacerých SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">upraviť zabezpečené systémové nastavenia Lineage</string>
<string name="permdesc_writeSecureSettings">Umožňuje aplikácii zmeniť zabezpečené systémové nastavenia Lineage. Nie je určené pre normálne aplikácie.</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">Zoznam vlastných dlaždíc</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">pridať a odobrať aplikácie z chránených aplikácií</string>
<string name="permdesc_protectedApp">Umožní aplikácii označiť iné aplikácie ako chránené a zamknúť ich.</string>
diff --git a/lineage/res/res/values-sl/strings.xml b/lineage/res/res/values-sl/strings.xml
index 36c55b33..afd34421 100644
--- a/lineage/res/res/values-sl/strings.xml
+++ b/lineage/res/res/values-sl/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistem LineageOS</string>
- <string name="permlab_publishCustomTile">ustvarjanje ploščice po meri na plošči za Hitre nastavitve</string>
- <string name="permdesc_publishCustomTile">Dovoli aplikaciji, da objavi ploščico za Hitre nastavitve.</string>
<string name="permlab_modifyNetworkSettings">spreminjanje sistemskih nastavitev omrežja</string>
<string name="permdesc_modifyNetworkSettings">Dovoli aplikaciji, da naredi spremembe v načinu za letalo in nastavitvah omrežja mobilnih podatkov.</string>
<string name="permlab_modifySoundSettings">spreminjanje sistemskih nastavitev zvoka</string>
<string name="permdesc_modifySoundSettings">Dovoli aplikaciji, da naredi spremembe v zvočnih nastavitvah načina prekinitve.</string>
- <string name="permlab_bindCustomTileListenerService">veži na storitev poslušalnika ploščic po meri</string>
- <string name="permdesc_bindCustomTileListenerService">Dovoli aplikaciji, da se veže na vrhnji vmesnik storitve poslušalnika ploščic po meri.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ogled stanja telefona in podatkovnih povezav s podporo za več kartic SIM</string>
<string name="permdesc_readMSPhoneState">Dovoli aplikaciji ogled stanja telefona in podatkovnih povezav s podporo za več kartic SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">spreminjanje varnih sistemskih nastavitev Lineage</string>
<string name="permdesc_writeSecureSettings">Dovoli aplikaciji spreminjanje varnih sistemskih nastavitev Lineage. Običajne aplikacije tega ne uporabljajo.</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">Poslušalnik ploščic po meri</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">dodajanje in odstranjevanje aplikacij k/iz zaščitenih aplikacij</string>
<string name="permdesc_protectedApp">Dovoli aplikaciji, da označi druge aplikacije kot zaščitene in jih zaklene.</string>
diff --git a/lineage/res/res/values-sq-rAL/strings.xml b/lineage/res/res/values-sq-rAL/strings.xml
index 75080912..71373d86 100644
--- a/lineage/res/res/values-sq-rAL/strings.xml
+++ b/lineage/res/res/values-sq-rAL/strings.xml
@@ -19,8 +19,6 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Sistemi LineageOS</string>
- <string name="permlab_publishCustomTile">krijo një tjegull të personalizuar brenda panelit të parametrave të shpejtë</string>
- <string name="permdesc_publishCustomTile">Lejo një aplikacion që të publikojë një tjegull të parametrave të shpejtë.</string>
<string name="permlab_modifyNetworkSettings">ndrysho parametrat e rrjetit të sistemit</string>
<string name="permdesc_modifyNetworkSettings">Lejon një aplikacion që bëjë ndryshime në parametrat e profilit Avion dhe në ato të rrjetit të internetit të celularit.</string>
<string name="permlab_modifySoundSettings">ndrysho parametrat e tingujve të sistemit</string>
@@ -40,7 +38,6 @@
<string name="permlab_writeSettings">modifiko parametrat e sistemit Lineage</string>
<string name="permdesc_writeSettings">Lejon një aplikacion që të modifikojë parametrat e sistemit Lineage.</string>
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permdesc_protectedApp">Lejon një aplikacion që t\'i etiketojë aplikacionet e tjera si të mbrojtura dhe t\'i bllokojë ato.</string>
<!-- Profiles -->
diff --git a/lineage/res/res/values-sr-rCS/strings.xml b/lineage/res/res/values-sr-rCS/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-sr-rCS/strings.xml
+++ b/lineage/res/res/values-sr-rCS/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-sr/strings.xml b/lineage/res/res/values-sr/strings.xml
index cd0449c8..4092e278 100644
--- a/lineage/res/res/values-sr/strings.xml
+++ b/lineage/res/res/values-sr/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Систем LineageOS</string>
- <string name="permlab_publishCustomTile">прављење прилагођених плочица на панелу са брзим подешавањима</string>
- <string name="permdesc_publishCustomTile">Апликација може да додаје плочице на панел са брзим подешавањима.</string>
<string name="permlab_modifyNetworkSettings">промена мрежних подешавања система</string>
<string name="permdesc_modifyNetworkSettings">Апликација може да мења подешавања режима рада у авиону и мобилне мреже за пренос података.</string>
<string name="permlab_modifySoundSettings">промена подешавања звука система</string>
<string name="permdesc_modifySoundSettings">Апликација може да мења подешавања звука за режим обавештења.</string>
- <string name="permlab_bindCustomTileListenerService">повезивање са услугом за надгледање прилагођених плочица</string>
- <string name="permdesc_bindCustomTileListenerService">Апликација може да успостави везу са интерфејсом највишег нивоа за услугу надгледања прилагођених плочица.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">преглед стања телефона и преноса података са подршком за више SIM картица</string>
<string name="permdesc_readMSPhoneState">Апликација може да приступа информацијама о стању телефона и преносу података са подршком за више SIM картица.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">мењање подешавања безбедности система</string>
<string name="permdesc_writeSecureSettings">Апликација може да мења подешавања безбедности система. Ова дозвола није потребна нормалним апликацијама.</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">Надгледање прилагођених плочица</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">додавање и уклањање апликација са списка заштићених</string>
<string name="permdesc_protectedApp">Апликација може да означава друге апликације као заштићене и закључа их.</string>
diff --git a/lineage/res/res/values-sv/strings.xml b/lineage/res/res/values-sv/strings.xml
index 15461186..e2059774 100644
--- a/lineage/res/res/values-sv/strings.xml
+++ b/lineage/res/res/values-sv/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS System</string>
- <string name="permlab_publishCustomTile">skapa en anpassad bricka inom snabbinställningspanelen</string>
- <string name="permdesc_publishCustomTile">Ger en app tillåtelse att publicera en snabbinställningsbricka.</string>
<string name="permlab_modifyNetworkSettings">ändra systeminställningar för nätverk</string>
<string name="permdesc_modifyNetworkSettings">Tillåter att en app gör ändringar för flygplansläge och nätverksinställningar för mobildata.</string>
<string name="permlab_modifySoundSettings">Ändra systemets ljudinställningar</string>
<string name="permdesc_modifySoundSettings">Tillåter att en app ändrar på ljudinställningarnas avbrottsläge.</string>
- <string name="permlab_bindCustomTileListenerService">bind till en anpassad tjänst som lyssnar efter brickor</string>
- <string name="permdesc_bindCustomTileListenerService">Låter appen binda sig till ett högnivågränssnitt för en anpassad lyssnartjänst för brickor.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">visa telefonens status och dataförbindelsestöd med flera SIM-kort</string>
<string name="permdesc_readMSPhoneState">Tillåter att en app visar telefonens status och dataförbindelsestöd med flera SIM-kort.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">ändra Lineage säkra systeminställningar</string>
<string name="permdesc_writeSecureSettings">Tillåt att en app ändrar Lineage säkra systeminställningar. Inte för användning av normala appar.</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">Anpassad tjänst som lyssnar efter brickor</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">lägg till och ta bort appar som skyddade appar</string>
<string name="permdesc_protectedApp">Ger en app tillstånd att markera andra appar som skyddade och låsa dem.</string>
diff --git a/lineage/res/res/values-sw/strings.xml b/lineage/res/res/values-sw/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-sw/strings.xml
+++ b/lineage/res/res/values-sw/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-ta-rIN/strings.xml b/lineage/res/res/values-ta-rIN/strings.xml
index 0bd3295d..7521ebd3 100644
--- a/lineage/res/res/values-ta-rIN/strings.xml
+++ b/lineage/res/res/values-ta-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS அமைப்பு</string>
- <string name="permlab_publishCustomTile">விரைவு அமைப்புகள் பேனல் உள்ளே ஒரு தனிப்பயன் டைலை உருவாக்கு</string>
- <string name="permdesc_publishCustomTile">ஒரு பயன்பாடானது ஒரு விரைவு அமைப்புகள் டைலை பிரசுரிக்க அனுமதிக்கிறது.</string>
<string name="permlab_modifyNetworkSettings">அமைப்பின் நெட்வொர்க் அமைப்புகளை மாற்றுதல்</string>
<string name="permdesc_modifyNetworkSettings">ஒரு பயன்பாடானது விமான பயன்முறைக்கும் மொபைல் தரவு பிணைய அமைப்புகளுக்கும் மாற்றத்தை ஏற்படுத்த அனுமதிக்கிறது.</string>
<string name="permlab_modifySoundSettings">கணினி ஒலி அமைப்புகளை மாற்றவும்</string>
<string name="permdesc_modifySoundSettings">ஒரு பயன்பாடானது இடையூறு பயன்முறை அமைப்புகளுக்கு மாற்றத்தை ஏற்படுத்த அனுமதிக்கிறது.</string>
- <string name="permlab_bindCustomTileListenerService">தனிப்பயனாக்க டைல் கவனிப்பவர் சேவையுடன் கட்டவும்</string>
- <string name="permdesc_bindCustomTileListenerService">பயன்பாடானது தனிப்பயனாக்க டைல் கவனிப்பவர் சேவையின் முதல்-நிலை இடைமுகத்தோடு கட்ட அனுமதிக்கிறது.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">தொலைப்பேசி நிலை மற்றும் தரவு இணைப்பை பல SIMகளுக்கான ஆதரவுடன் காண்க</string>
<string name="permdesc_readMSPhoneState">பயன்பாடானது தொலைப்பேசி நிலை மற்றும் தரவு இணைப்பை பல SIMகளுக்கான ஆதரவுடன் காண அனுமதிக்கிறது.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage பாதுகாப்பான கணினி அமைப்புகளை மாற்றியமை</string>
<string name="permdesc_writeSecureSettings">ஒரு பயன்பாடானது Lineage பாதுகாப்பான கணினி அமைப்புகளை மாற்றியமைக்க அனுமதிக்கிறது. இயல்பான பயன்பாடுகளின் பயன்பாட்டிற்காக அல்ல</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">தனிப்பயனாக்க டைல் கவனிப்பவர்</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">பயன்பாடுகளை பாதுகாக்க பயன்பாடுகளை சேர்க்கவும் மற்றும் அகற்றவும்</string>
<string name="permdesc_protectedApp">மற்ற பயன்பாடுகள் பாதுகாக்கப்பட்டவை என்று குறிப்பிட்டு அவற்றை பூட்டுவதற்கு ஒரு பயன்பாட்டை அனுமதிக்கிறது.</string>
diff --git a/lineage/res/res/values-te-rIN/strings.xml b/lineage/res/res/values-te-rIN/strings.xml
index a1d2aff2..f3f03038 100644
--- a/lineage/res/res/values-te-rIN/strings.xml
+++ b/lineage/res/res/values-te-rIN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">సయనోజెన్ మోడ్ సిస్టమ్</string>
- <string name="permlab_publishCustomTile">త్వరిత సెట్టింగుల ప్యానలులో అనుకూలిత టైలును సృష్టించుము</string>
- <string name="permdesc_publishCustomTile">త్వరిత సెట్టింగుల టైలును ప్రచురించేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.</string>
<string name="permlab_modifyNetworkSettings">సిస్టమ్ నెట్వర్క్ సెట్టింగులను మార్చుము</string>
<string name="permdesc_modifyNetworkSettings">విమాన మోడ్ మరియు మొబైల్ డేటా నెట్వర్క్ సెట్టింగులలో మార్పులు చేసేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.</string>
<string name="permlab_modifySoundSettings">సిస్టమ్ ధ్వని సెట్టింగులను మార్చుము</string>
<string name="permdesc_modifySoundSettings">అంతరాయ మోడ్ ధ్వని సెట్టింగులకు మార్పులు చేయడానికి ప్రోగ్రాంకి అనుమతినిస్తుంది.</string>
- <string name="permlab_bindCustomTileListenerService">అనుకూలిత టైల్ శ్రోత సేవకు అనుసంధానించుము</string>
- <string name="permdesc_bindCustomTileListenerService">అనుకూలిత టైల్ శ్రోత సేవ యొక్క పై-స్థాయి ఇంటర్‌ఫేసుకు జోడింపబడేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">బహుళ SIMలకు మద్దతు అందిస్తూ ఫోన్ స్థితి మరియు డేటా అనుసంధానాన్ని వీక్షించుము</string>
<string name="permdesc_readMSPhoneState">బహుళ SIMలకు మద్దతు అందిస్తూ ఫోన్ స్థితి మరియు డేటా అనుసంధానాన్ని వీక్షించేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage సురక్షిత సిస్టమ్ సెట్టింగులను సవరించుము</string>
<string name="permdesc_writeSecureSettings">Lineage సురక్షిత సిస్టమ్ సెట్టింగులను సవరించడానికి ప్రోగ్రాంకి అనుమతినిస్తుంది. సాధారణ ప్రోగ్రాంలచే ఉపయోగించబడటానికి కాదు.</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">అనుకూలిత టైల్ శ్రోత</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">సంరక్షిత ప్రోగ్రాంలకు జోడించు మరియు తొలగించు ప్రోగ్రాంలు</string>
<string name="permdesc_protectedApp">ఇతర ప్రోగ్రాంలను సంరక్షించబడినవి అని గుర్తించుటకు మరియు వాటిని లాక్ చేయుటకు ఒక ప్రోగ్రాంను అనుమతిస్తుంది</string>
diff --git a/lineage/res/res/values-th/strings.xml b/lineage/res/res/values-th/strings.xml
index ccfe45a1..bb07a54e 100644
--- a/lineage/res/res/values-th/strings.xml
+++ b/lineage/res/res/values-th/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">ระบบ LineageOS</string>
- <string name="permlab_publishCustomTile">สร้างไทล์ที่กำหนดเองในแผงการตั้งค่าแบบรวดเร็ว</string>
- <string name="permdesc_publishCustomTile">อนุญาตให้แอปแสดงไทล์การตั้งค่าแบบรวดเร็ว</string>
<string name="permlab_modifyNetworkSettings">เปลี่ยนการตั้งค่าเครือข่ายระบบ</string>
<string name="permdesc_modifyNetworkSettings">อนุญาตให้แอปทำการเปลี่ยนแปลงโหมดเครื่องบินและการตั้งค่าเครือข่ายข้อมูลมือถือ</string>
<string name="permlab_modifySoundSettings">เปลี่ยนการตั้งค่าเสียงของระบบ</string>
<string name="permdesc_modifySoundSettings">อนุญาตให้แอปทำการเปลี่ยนแปลงการตั้งค่าเสียงโหมดการหยุดชะงัก</string>
- <string name="permlab_bindCustomTileListenerService">ผูกมัดไว้กับบริการผู้ฟังของไทล์ที่กำหนดเอง</string>
- <string name="permdesc_bindCustomTileListenerService">อนุญาตให้แอปผูกตัวเองไว้กับอินเตอร์เฟซระดับบนของบริการสำหรับไทล์ที่กำหนดเอง</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">ดูสถานะและการเชื่อมต่อข้อมูลของโทรศัพท์ด้วยการให้ความช่วยเหลือกับ SIM หลายอัน</string>
<string name="permdesc_readMSPhoneState">อนุญาตให้แอปดูสถานะและการเชื่อมต่อข้อมูลของโทรศัพท์ด้วยการให้ความช่วยเหลือกับ SIM หลายอัน</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">ปรับแต่งการตั้งค่าระบบความปลอดภัยของ Lineage</string>
<string name="permdesc_writeSecureSettings">อนุญาตให้แอปปรับแต่งการตั้งค่าระบบความปลอดภัยของ Lineage ไม่ใช่เพื่อให้แอปปกตินำไปใช้</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">บริการกำหนดเองของไทล์</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">เพิ่มและลบแอปจากแอปที่ได้รับการป้องกัน</string>
<string name="permdesc_protectedApp">อนุญาคให้แอปทำเครื่องหมายว่าแอปอื่นได้รับการป้องกันและล็อคมันไว้</string>
diff --git a/lineage/res/res/values-tr/strings.xml b/lineage/res/res/values-tr/strings.xml
index 76c78fcf..1aa49426 100644
--- a/lineage/res/res/values-tr/strings.xml
+++ b/lineage/res/res/values-tr/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS Sistemi</string>
- <string name="permlab_publishCustomTile">hızlı ayarlar paneli içinde özel bir kare oluştur</string>
- <string name="permdesc_publishCustomTile">Uygulamalara hızlı ayarlar karesi oluşturma izni verir.</string>
<string name="permlab_modifyNetworkSettings">sistem ağ ayarlarını değiştir</string>
<string name="permdesc_modifyNetworkSettings">Uygulamalara uçak modunu ve mobil veri şebeke ayarlarını değiştirme izni verir.</string>
<string name="permlab_modifySoundSettings">sistem ses ayarlarını değiştir</string>
<string name="permdesc_modifySoundSettings">Kesme modu, uygulamaya ses ayarlarını değiştirme izni verir.</string>
- <string name="permlab_bindCustomTileListenerService">özel bir kare takip hizmetine bağla</string>
- <string name="permdesc_bindCustomTileListenerService">Uygulamanın özel bir kare takip hizmetinin üst düzey arayüzüne bağlanmasına izin verir.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">telefon durumunu ve çoklu SIMler ile veri bağlantısı desteğini görüntüle</string>
<string name="permdesc_readMSPhoneState">Uygulamalara telefon durumunu ve çoklu SIMler ile veri bağlantısı desteğini görüntüleme imkanı verir.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">Lineage güvenli sistem ayarlarını değiştir</string>
<string name="permdesc_writeSecureSettings">Uygulamalara Lineage güvenli sistem ayarlarını değiştirme izni verir. Normal uygulamalar için değildir.</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">Özel kare takipçisi</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">korunan uygulamalara uygulama ekle ya da kaldır</string>
<string name="permdesc_protectedApp">Uygulamalara diğer uygulamaları korunan uygulama olarak işaretleme ve kilitleme izni verir.</string>
diff --git a/lineage/res/res/values-ug/strings.xml b/lineage/res/res/values-ug/strings.xml
index 0b4c3503..a0f2b49d 100644
--- a/lineage/res/res/values-ug/strings.xml
+++ b/lineage/res/res/values-ug/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS سىستېمىسى</string>
- <string name="permlab_publishCustomTile">تىز تەكشەك تاختىسىدا خاسلاشتۇرۇلغان خىش قۇرۇش</string>
- <string name="permdesc_publishCustomTile">ئەپنىڭ بىر تىز تەڭشەك خىشى قۇرۇشىغا رۇخسەت قىلىش.</string>
<string name="permlab_modifyNetworkSettings">سىستېمىنىڭ تور تەڭشىنى ئۆزگەرتىش</string>
<string name="permdesc_modifyNetworkSettings">ئەپنىڭ ئۇچۇش ھالىتى ۋە تور ئېقىم تەڭشىكىنى ئۆزگەرتىشىگە يول قويۇش.</string>
<string name="permlab_modifySoundSettings">سىستېما ئاۋاز تەڭشىكىنى ئۆزگەرتىش</string>
<string name="permdesc_modifySoundSettings">ئەپنىڭ ئاۋارە قىلىش ھالىتى تەڭشىكىنى ئۆزگەرتىشىگە يول قويۇش.</string>
- <string name="permlab_bindCustomTileListenerService">خاسلاشتۇرۇلغان خىش ئاڭلىغۇچى مۇلازىمىتېرغا ئۇلاش</string>
- <string name="permdesc_bindCustomTileListenerService">ئەپنىڭ خاسلاشتۇرۇلغان خىش ئاڭلىغۇچى مۇلازىمىتېرنىڭ ئەڭ يوقىرى قاتلام يۈزىگە ئۇلاشقا يول قويۇش.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">كۆپ SIM كارتا قوللايدىغان تېلېفون ھالىتى ۋە تور ئۇلىنىشىنى كۆرۈش</string>
<string name="permdesc_readMSPhoneState">ئەپنىڭ كۆپ SIM كارتا قوللايدىغان تېلېفون ھالىتى ۋە تور ئۇلىنىشىنى كۆرۈشگە يول قويۇش.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">سىستېما Lineageنىڭ بىخەتەرلىك تەڭشىكىنى ئۆزگەرتىش</string>
<string name="permdesc_writeSecureSettings">ئەپنىڭ سىستېما Lineageنىڭ بىخەتەرلىك تەڭشىكىنى ئۆزگەرتىشگە يول قويۇش.</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">خىش تىشىغۇچنى خاسلاشتۇرۇش</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">قوغدالغان ئەپ تىزىمىگە ئەپ قوشۇش ياكى چىقىرۋېتىش</string>
<string name="permdesc_protectedApp">ئەپنىڭ باشقا ئەپلەرنى قوغداش تىزىملىكىگە قوشۇشىغا ياكى تاقاپ قۇيىشىغا رۇخسەت قىلىش.</string>
diff --git a/lineage/res/res/values-uk/strings.xml b/lineage/res/res/values-uk/strings.xml
index f7b72dd4..6174f7a4 100644
--- a/lineage/res/res/values-uk/strings.xml
+++ b/lineage/res/res/values-uk/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Система LineageOS</string>
- <string name="permlab_publishCustomTile">Створити власну плитку для панелі швидких налаштувань</string>
- <string name="permdesc_publishCustomTile">Дозволяє додатку створити плитку швидких налаштувань.</string>
<string name="permlab_modifyNetworkSettings">змінювати налаштування мережі системи</string>
<string name="permdesc_modifyNetworkSettings">Дозволяє додатку вносити зміни в \"Режимі польоту\" і в налаштуваннях мобільної передачі даних.</string>
<string name="permlab_modifySoundSettings">змінювати звукові налаштування системи</string>
<string name="permdesc_modifySoundSettings">Дозволяє додатку вносити зміни налаштувань звуку в режимі сповіщень.</string>
- <string name="permlab_bindCustomTileListenerService">прив’язати до власної служби</string>
- <string name="permdesc_bindCustomTileListenerService">Дозволяє власникові прив\'язувати плитки до інтерфейсу високого рівня служб.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">переглядати стан телефону і з\'єднання даних з підтримкою до декількох SIM</string>
<string name="permdesc_readMSPhoneState">Дозволяє програмі переглядати стану телефону і з\'єднання даних з підтримкою до декількох SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">змінювати налаштування безпеки</string>
<string name="permdesc_writeSecureSettings">Дозволяє додатку змінювати системні налаштування безпеки. Непотрібно звичайним додаткам.</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">Власна служба обробки плиток</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">додавання і видалення записів переліку захищених додатків</string>
<string name="permdesc_protectedApp">Додаток зможе відмічати інші додатки як захищені і блокувати їх.</string>
diff --git a/lineage/res/res/values-ur-rPK/strings.xml b/lineage/res/res/values-ur-rPK/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-ur-rPK/strings.xml
+++ b/lineage/res/res/values-ur-rPK/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-uz-rUZ/strings.xml b/lineage/res/res/values-uz-rUZ/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-uz-rUZ/strings.xml
+++ b/lineage/res/res/values-uz-rUZ/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-vi/strings.xml b/lineage/res/res/values-vi/strings.xml
index 369376e0..f339d5b4 100644
--- a/lineage/res/res/values-vi/strings.xml
+++ b/lineage/res/res/values-vi/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">Hệ thống LineageOS</string>
- <string name="permlab_publishCustomTile">tạo một ô tùy chỉnh trong bảng cài đặt nhanh</string>
- <string name="permdesc_publishCustomTile">Cho phép một ứng dụng taọ ô mới trong cài đặt nhanh.</string>
<string name="permlab_modifyNetworkSettings">thay đổi cài đặt hệ thống mạng</string>
<string name="permdesc_modifyNetworkSettings">Cho phép ứng dụng thay đổi cài đặt chế độ máy bay và mạng dữ liệu di động.</string>
<string name="permlab_modifySoundSettings">thay đổi cài đặt âm thanh hệ thống</string>
<string name="permdesc_modifySoundSettings">Cho phép ứng dụng thay đổi cài đặt âm thanh chế độ gián đoạn.</string>
- <string name="permlab_bindCustomTileListenerService">liên kết với một dịch vụ lắng nghe ô tùy chỉnh</string>
- <string name="permdesc_bindCustomTileListenerService">Cho phép ứng dụng liên kết với giao diện cấp cao nhất của dịch vụ lắng nghe ô tuỳ chỉnh.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">xem tình trạng điện thoại và kết nối dữ liệu với hỗ trợ đa SIM</string>
<string name="permdesc_readMSPhoneState">Cho phép ứng dụng xem tình trạng điện thoại và kết nối dữ liệu với hỗ trợ đa SIM.</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">sửa đổi cài đặt hệ thống an toàn Lineage</string>
<string name="permdesc_writeSecureSettings">Cho phép ứng dụng sửa đổi cài đặt hệ thống an toàn Lineage. Không cho ứng dụng bình thường sử dụng.</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">Lắng nghe ô tuỳ chỉnh</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">thêm và xoá ứng dụng trong danh sách ứng dụng được bảo vệ</string>
<string name="permdesc_protectedApp">Cho phép ứng dụng đánh dấu ứng dụng khác là được bảo vệ và khoá chúng.</string>
diff --git a/lineage/res/res/values-zh-rCN/strings.xml b/lineage/res/res/values-zh-rCN/strings.xml
index 0aae63bc..5ff504e5 100644
--- a/lineage/res/res/values-zh-rCN/strings.xml
+++ b/lineage/res/res/values-zh-rCN/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS 系统</string>
- <string name="permlab_publishCustomTile">在快速设置面板中创建一个自定义瓷块</string>
- <string name="permdesc_publishCustomTile">允许应用发布一个快速设置瓷片。</string>
<string name="permlab_modifyNetworkSettings">更改系统网络设置</string>
<string name="permdesc_modifyNetworkSettings">允许应用修改飞行模式和移动数据网络设置。</string>
<string name="permlab_modifySoundSettings">修改系统声音设置</string>
<string name="permdesc_modifySoundSettings">允许应用修改打扰模式的声音设置。</string>
- <string name="permlab_bindCustomTileListenerService">绑定到自定义瓷片侦听器服务</string>
- <string name="permdesc_bindCustomTileListenerService">允许应用绑定到自定义瓷片侦听器服务的顶层界面。</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">查看支持多 SIM 卡的手机状态和数据连接</string>
<string name="permdesc_readMSPhoneState">允许应用查看基于多 SIM 卡的手机状态和数据连接情况。</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">修改 Lineage 系统安全设置</string>
<string name="permdesc_writeSecureSettings">允许应用修改 Lineage 系统安全设置。不供正常应用使用。</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">自定义瓷块侦听器</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">从受保护的应用中添加或删除应用</string>
<string name="permdesc_protectedApp">允许应用标记受保护的应用并将其锁定。</string>
diff --git a/lineage/res/res/values-zh-rHK/strings.xml b/lineage/res/res/values-zh-rHK/strings.xml
index f60b0d06..c4830dcb 100644
--- a/lineage/res/res/values-zh-rHK/strings.xml
+++ b/lineage/res/res/values-zh-rHK/strings.xml
@@ -18,7 +18,6 @@
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
- <string name="permdesc_bindCustomTileListenerService">允許應用程式綁定到自訂按鈕偵聽器服務的最高級介面。</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<!-- Labels for the MODIFY_MSIM_PHONE_STATE permission. -->
<!-- Labels for the MODIFY_PROFILES permission. -->
@@ -30,7 +29,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values-zh-rTW/strings.xml b/lineage/res/res/values-zh-rTW/strings.xml
index 77451bb6..25e98328 100644
--- a/lineage/res/res/values-zh-rTW/strings.xml
+++ b/lineage/res/res/values-zh-rTW/strings.xml
@@ -19,14 +19,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS 系統</string>
- <string name="permlab_publishCustomTile">於快速設定面板中建立自訂標題</string>
- <string name="permdesc_publishCustomTile">允許應用程式發佈快速設定圖塊</string>
<string name="permlab_modifyNetworkSettings">變更系統網路設定</string>
<string name="permdesc_modifyNetworkSettings">允許應用程式修改飛航模式和行動數據網路設定。</string>
<string name="permlab_modifySoundSettings">變更系統音效設定</string>
<string name="permdesc_modifySoundSettings">允許應用程式變更中斷模式音效設定。</string>
- <string name="permlab_bindCustomTileListenerService">綁定到一個自訂圖塊監聽器服務</string>
- <string name="permdesc_bindCustomTileListenerService">允許應用程式綁定到自訂圖塊監聽器服務的最頂端介面。</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">在支援多張 SIM 卡的裝置上查看電話狀態和數據連線</string>
<string name="permdesc_readMSPhoneState">允許應用程式查看支援多張 SIM 卡的裝置的電話狀態和數據連線</string>
@@ -54,8 +50,6 @@
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
<string name="permlab_writeSecureSettings">修改 Lineage 系統安全設定</string>
<string name="permdesc_writeSecureSettings">允許應用程式修改 Lineage 安全系統設定,非供一般應用程式使用。</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">自訂圖塊監聽器</string>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">新增或移除受保護的應用程式</string>
<string name="permdesc_protectedApp">允許應用程式標示其他應用程式為受保護並將其鎖定。</string>
diff --git a/lineage/res/res/values-zu/strings.xml b/lineage/res/res/values-zu/strings.xml
index da07ac10..84136ba0 100644
--- a/lineage/res/res/values-zu/strings.xml
+++ b/lineage/res/res/values-zu/strings.xml
@@ -27,7 +27,6 @@
<!-- Labels for the READ_ALARMS permission. -->
<!-- Labels for the WRITE_SETTINGS permission -->
<!-- Labels for the WRITE_SECURE_SETTINGS permission -->
- <!-- Label to show for a service that is running because it is observing the user's custom tiles. -->
<!-- Labels for the PROTECTED_APP permission. -->
<!-- Profiles -->
<!-- Names of default profiles. -->
diff --git a/lineage/res/res/values/config.xml b/lineage/res/res/values/config.xml
index 70ef4073..329038f0 100644
--- a/lineage/res/res/values/config.xml
+++ b/lineage/res/res/values/config.xml
@@ -78,9 +78,6 @@
pulsating and RGB control would set this config to 75. -->
<integer name="config_deviceLightCapabilities">8</integer>
- <!-- Default, comma-delimited, quick settings tiles. See QSConstants.java for a list of all available tiles -->
- <string name="config_defaultQuickSettingsTiles">wifi,bt,dnd,cell,airplane,rotation,location,edit,flashlight,cast,hotspot,inversion,live_display</string>
-
<!-- Wifi Service -->
<!-- Whether to make default hotspot security NONE-->
<bool name="config_wifiHotspotSecurityNone">false</bool>
@@ -94,7 +91,6 @@
<!-- Defines external services to be started by the LineageSystemServer at boot. The service itself
should publish as a binder services in its onStart -->
<string-array name="config_externalLineageServices">
- <item>org.lineageos.platform.internal.LineageStatusBarManagerService</item>
<item>org.lineageos.platform.internal.ProfileManagerService</item>
<item>org.lineageos.platform.internal.LineageTelephonyManagerService</item>
<item>org.lineageos.platform.internal.LineageHardwareService</item>
diff --git a/lineage/res/res/values/strings.xml b/lineage/res/res/values/strings.xml
index b610fd25..9bf55d6e 100644
--- a/lineage/res/res/values/strings.xml
+++ b/lineage/res/res/values/strings.xml
@@ -19,8 +19,6 @@
<!-- Label for the LineageOS system components when they are shown to the user. -->
<string name="lineageos_system_label">LineageOS System</string>
- <string name="permlab_publishCustomTile">create a custom tile within quick settings panel</string>
- <string name="permdesc_publishCustomTile">Allows an app to publish a quick settings tile.</string>
<string name="permlab_modifyNetworkSettings">change system network settings</string>
<string name="permdesc_modifyNetworkSettings">Allows an app to make changes to the airplane mode and mobile data network settings.</string>
@@ -28,8 +26,6 @@
<string name="permlab_modifySoundSettings">change system sound settings</string>
<string name="permdesc_modifySoundSettings">Allows an app to make changes to the interruption mode sound settings.</string>
- <string name="permlab_bindCustomTileListenerService">bind to a custom tile listener service</string>
- <string name="permdesc_bindCustomTileListenerService">Allows the app to bind to the top-level interface of a custom tile listener service.</string>
<!-- Labels for the READ_MSIM_PHONE_STATE permission. -->
<string name="permlab_readMSPhoneState">view the phone state and data connection with support to multiple SIMs</string>
@@ -67,8 +63,6 @@
<string name="permlab_writeSecureSettings">modify Lineage secure system settings</string>
<string name="permdesc_writeSecureSettings">Allows an app to modify Lineage secure system settings. Not for use by normal apps.</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>
<!-- Labels for the PROTECTED_APP permission. -->
<string name="permlab_protectedApp">add and remove apps to protected apps</string>
diff --git a/lineage/res/res/values/symbols.xml b/lineage/res/res/values/symbols.xml
index be3c28cf..e92b42e3 100644
--- a/lineage/res/res/values/symbols.xml
+++ b/lineage/res/res/values/symbols.xml
@@ -18,8 +18,6 @@
<resources>
<java-symbol type="drawable" name="ic_launcher_lineageos" />
- <java-symbol type="string" name="custom_tile_listener_binding_label" />
-
<!-- Profiles -->
<java-symbol type="xml" name="profile_default" />
<java-symbol type="string" name="wildcardProfile" />
@@ -90,9 +88,6 @@
<!-- On-device lights (LED) capabilities -->
<java-symbol type="integer" name="config_deviceLightCapabilities" />
- <!-- Quick Settings tile defaults -->
- <java-symbol type="string" name="config_defaultQuickSettingsTiles" />
-
<!-- Wifi Service -->
<java-symbol type="string" name="config_wifiHotSpotSsid" />
<java-symbol type="string" name="config_wifiHotSpotPass" />
diff --git a/packages/LineageSettingsProvider/res/values/defaults.xml b/packages/LineageSettingsProvider/res/values/defaults.xml
index 1ecad4d4..daf6b3f5 100644
--- a/packages/LineageSettingsProvider/res/values/defaults.xml
+++ b/packages/LineageSettingsProvider/res/values/defaults.xml
@@ -34,14 +34,6 @@
<!-- Defaults for LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR -->
<integer name="def_force_show_navbar">0</integer>
- <!-- THESE DEFAULTS COME FROM org.lineageos.platform.internal's config_defaultQuickSettingsTiles
- AND SHOULD BE OVERLAID THERE.
-
- DO NOT USE:
- Default for LineageSettings.Secure.QS_TILES
- Comma-delimited, quick settings tiles. See QSConstants.java for a list of all available tiles
- <string name="def_qs_tiles">wifi,bt,cell,airplane,rotation,flashlight,location,cast,hotspot,live_display</string> -->
-
<!-- Default for LineageSettings.Secure.STATS_COLLECTION -->
<bool name="def_stats_collection">false</bool>
@@ -55,9 +47,6 @@
-->
<integer name="def_battery_style">2</integer>
- <!-- Default for LineageSettings.Secure.QS_USE_MAIN_TILES -->
- <bool name="def_sysui_qs_main_tiles">true</bool>
-
<!-- Default for LineageSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED -->
<bool name="def_lockscreen_visualizer">true</bool>
diff --git a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
index e81f55a8..b4c4fb62 100644
--- a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
+++ b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
@@ -368,13 +368,6 @@ public class LineageDatabaseHelper extends SQLiteOpenHelper{
loadIntegerSetting(stmt, LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
R.integer.def_force_show_navbar);
- loadStringSetting(stmt, LineageSettings.Secure.QS_TILES,
- org.lineageos.platform.internal.
- R.string.config_defaultQuickSettingsTiles);
-
- loadBooleanSetting(stmt, LineageSettings.Secure.QS_USE_MAIN_TILES,
- R.bool.def_sysui_qs_main_tiles);
-
loadBooleanSetting(stmt, LineageSettings.Secure.STATS_COLLECTION,
R.bool.def_stats_collection);
diff --git a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java
index 445a5d15..3d80ee9f 100644
--- a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java
+++ b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java
@@ -45,9 +45,6 @@ import android.text.TextUtils;
import android.util.Log;
import android.util.SparseArray;
-import org.lineageos.internal.util.QSConstants;
-import org.lineageos.internal.util.QSUtils;
-
import lineageos.providers.LineageSettings;
import java.util.ArrayList;
@@ -218,41 +215,6 @@ public class LineageSettingsProvider extends ContentProvider {
// providers; so if it exists in the new database, prefer it.
continue;
}
-
- // insert dnd, edit tiles for upgrade from 12.1 -> 13.0
- if (LineageSettings.Secure.QS_TILES.equals(settingsKey) && (settingsValue != null
- && (!settingsValue.contains(QSConstants.TILE_DND)
- || !settingsValue.contains(QSConstants.TILE_EDIT)))) {
- if (LOCAL_LOGV) {
- Log.d(TAG, "Need to insert DND or Edit tile for upgrade, currentValue: "
- + settingsValue);
- }
-
- final List<String> tiles = delimitedStringToList(
- Settings.Secure.getString(contentResolver, settingsKey), ",");
-
- if (!tiles.contains(QSConstants.TILE_DND)) {
- tiles.add(QSConstants.TILE_DND);
- }
- if (!tiles.contains(QSConstants.TILE_EDIT)) {
- // we need to insert edit tile to the last tile on the first page!
- // ensure edit tile is present
-
- // use value in old database
- boolean nineTilesPerPage = Settings.Secure.getInt(contentResolver,
- LineageSettings.Secure.QS_USE_MAIN_TILES, 0) == 1;
-
- final int TILES_PER_PAGE = nineTilesPerPage ? 9 : 8;
-
- if (tiles.size() > TILES_PER_PAGE) {
- tiles.add((TILES_PER_PAGE - 1), QSConstants.TILE_EDIT);
- } else {
- tiles.add(QSConstants.TILE_EDIT);
- }
- }
-
- settingsValue = TextUtils.join(",", tiles);
- }
}
else if (tableName.equals(LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL)) {
settingsValue = Settings.Global.getStringForUser(contentResolver, settingsKey,
diff --git a/samples/customtiles/Android.mk b/samples/customtiles/Android.mk
deleted file mode 100644
index 75406341..00000000
--- a/samples/customtiles/Android.mk
+++ /dev/null
@@ -1,11 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_STATIC_JAVA_LIBRARIES := \
- org.lineageos.platform.sdk
-
-LOCAL_SRC_FILES := $(call all-subdir-java-files)
-
-LOCAL_PACKAGE_NAME := LineageCustomTiles
-
-include $(BUILD_PACKAGE) \ No newline at end of file
diff --git a/samples/customtiles/AndroidManifest.xml b/samples/customtiles/AndroidManifest.xml
deleted file mode 100644
index 9eaa717f..00000000
--- a/samples/customtiles/AndroidManifest.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.lineageos.samples.customtiles"
- android:versionCode="1"
- android:versionName="1.0">
-
- <uses-permission android:name="lineageos.permission.PUBLISH_CUSTOM_TILE" />
-
- <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
- <activity android:name="MainActivity"
- android:label="@string/app_name">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- <category android:name="android.intent.category.LAUNCHER"/>
- </intent-filter>
- </activity>
- <receiver android:name="TileReceiver" >
- <intent-filter>
- <action android:name="org.lineageos.samples.customtiles.ACTION_TOGGLE_STATE"/>
- </intent-filter>
- </receiver>
- </application>
-</manifest>
diff --git a/samples/customtiles/res/drawable-hdpi/ic_launcher.png b/samples/customtiles/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index cde69bcc..00000000
--- a/samples/customtiles/res/drawable-hdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/samples/customtiles/res/drawable-mdpi/ic_launcher.png b/samples/customtiles/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index c133a0cb..00000000
--- a/samples/customtiles/res/drawable-mdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/samples/customtiles/res/drawable-xhdpi/ic_launcher.png b/samples/customtiles/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index bfa42f0e..00000000
--- a/samples/customtiles/res/drawable-xhdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/samples/customtiles/res/layout/main.xml b/samples/customtiles/res/layout/main.xml
deleted file mode 100644
index 416a6e54..00000000
--- a/samples/customtiles/res/layout/main.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:gravity="center_horizontal"
- >
- <Button
- android:id="@+id/custom_tile_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/custom_tile_publish"/>
-
- <Button
- android:id="@+id/custom_tile_list_expanded_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/custom_tile_list_publish"/>
-
- <Button
- android:id="@+id/custom_tile_grid_expanded_button"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/custom_tile_grid_publish"/>
-</LinearLayout>
-
diff --git a/samples/customtiles/res/values/strings.xml b/samples/customtiles/res/values/strings.xml
deleted file mode 100644
index 5b0cae1d..00000000
--- a/samples/customtiles/res/values/strings.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="app_name">Custom Tile Sample</string>
- <string name="custom_tile_publish">Publish standard tile</string>
- <string name="custom_tile_list_publish">Publish standard tile with listview</string>
- <string name="custom_tile_grid_publish">Publish standard tile with gridview</string>
-</resources>
diff --git a/samples/customtiles/src/org/lineageos/samples/customtiles/MainActivity.java b/samples/customtiles/src/org/lineageos/samples/customtiles/MainActivity.java
deleted file mode 100644
index f6c51a40..00000000
--- a/samples/customtiles/src/org/lineageos/samples/customtiles/MainActivity.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.samples.customtiles;
-
-import android.app.Activity;
-import android.app.PendingIntent;
-import android.content.Intent;
-import android.net.Uri;
-import android.os.Bundle;
-
-
-import android.view.View;
-import android.widget.Button;
-
-import lineageos.app.LineageStatusBarManager;
-import lineageos.app.CustomTile;
-
-import org.lineageos.samples.customtiles.R;
-
-import java.util.ArrayList;
-
-/**
- * Example sample activity to publish a tile with a toggle state
- */
-public class MainActivity extends Activity implements View.OnClickListener {
-
- public static final int REQUEST_CODE = 0;
- public static final int CUSTOM_TILE_ID = 1;
- public static final int CUSTOM_TILE_LIST_ID = 2;
- public static final int CUSTOM_TILE_GRID_ID = 3;
- public static final String ACTION_TOGGLE_STATE =
- "org.lineageos.samples.customtiles.ACTION_TOGGLE_STATE";
- public static final String STATE = "state";
-
- private Button mCustomTileButton;
- private Button mCustomTileButtonExpandedStyleList;
- private Button mCustomTileButtonExpandedStyleGrid;
- private CustomTile mCustomTile;
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
-
- mCustomTileButton = (Button) findViewById(R.id.custom_tile_button);
- mCustomTileButton.setOnClickListener(this);
-
- mCustomTileButtonExpandedStyleList =
- (Button) findViewById(R.id.custom_tile_list_expanded_button);
- mCustomTileButtonExpandedStyleList.setOnClickListener(this);
-
- mCustomTileButtonExpandedStyleGrid =
- (Button) findViewById(R.id.custom_tile_grid_expanded_button);
- mCustomTileButtonExpandedStyleGrid.setOnClickListener(this);
- }
-
- @Override
- public void onClick(View v) {
- Intent intent = new Intent();
- intent.setAction(ACTION_TOGGLE_STATE);
- intent.putExtra(MainActivity.STATE, States.STATE_OFF);
-
- PendingIntent pendingIntent =
- PendingIntent.getBroadcast(this, 0,
- intent , PendingIntent.FLAG_UPDATE_CURRENT);
-
- switch (v.getId()) {
- case R.id.custom_tile_button:
- mCustomTile = new CustomTile.Builder(this)
- .setOnClickIntent(pendingIntent)
- .setContentDescription("Generic content description")
- .setLabel("CustomTile " + States.STATE_OFF)
- .shouldCollapsePanel(false)
- .setIcon(R.drawable.ic_launcher)
- .build();
- LineageStatusBarManager.getInstance(this)
- .publishTile(CUSTOM_TILE_ID, mCustomTile);
- break;
- case R.id.custom_tile_list_expanded_button:
- ArrayList<CustomTile.ExpandedListItem> expandedListItems =
- new ArrayList<CustomTile.ExpandedListItem>();
- for (int i = 0; i < 100; i++) {
- CustomTile.ExpandedListItem expandedListItem = new CustomTile.ExpandedListItem();
- expandedListItem.setExpandedListItemDrawable(R.drawable.ic_launcher);
- expandedListItem.setExpandedListItemTitle("Test: " + i);
- expandedListItem.setExpandedListItemSummary("Test item summary " + i);
- expandedListItem.setExpandedListItemOnClickIntent(pendingIntent);
- expandedListItems.add(expandedListItem);
- }
-
- CustomTile.ListExpandedStyle listExpandedStyle = new CustomTile.ListExpandedStyle();
- listExpandedStyle.setListItems(expandedListItems);
-
- mCustomTile = new CustomTile.Builder(this)
- .setExpandedStyle(listExpandedStyle)
- .setContentDescription("Generic content description")
- .setLabel("CustomTile Expanded List")
- .setIcon(R.drawable.ic_launcher)
- .build();
- LineageStatusBarManager.getInstance(this)
- .publishTile(CUSTOM_TILE_LIST_ID, mCustomTile);
- break;
- case R.id.custom_tile_grid_expanded_button:
- ArrayList<CustomTile.ExpandedGridItem> expandedGridItems =
- new ArrayList<CustomTile.ExpandedGridItem>();
- for (int i = 0; i < 8; i++) {
- CustomTile.ExpandedGridItem expandedGridItem = new CustomTile.ExpandedGridItem();
- expandedGridItem.setExpandedGridItemDrawable(R.drawable.ic_launcher);
- expandedGridItem.setExpandedGridItemTitle("Test: " + i);
- expandedGridItem.setExpandedGridItemOnClickIntent(pendingIntent);
- expandedGridItems.add(expandedGridItem);
- }
-
- CustomTile.GridExpandedStyle gridExpandedStyle = new CustomTile.GridExpandedStyle();
- gridExpandedStyle.setGridItems(expandedGridItems);
- mCustomTile = new CustomTile.Builder(this)
- .setExpandedStyle(gridExpandedStyle)
- .setContentDescription("Generic content description")
- .setLabel("CustomTile Expanded Grid")
- .setIcon(R.drawable.ic_launcher)
- .build();
- LineageStatusBarManager.getInstance(this)
- .publishTile(CUSTOM_TILE_GRID_ID, mCustomTile);
- break;
- }
- }
-}
diff --git a/samples/customtiles/src/org/lineageos/samples/customtiles/States.java b/samples/customtiles/src/org/lineageos/samples/customtiles/States.java
deleted file mode 100644
index 5f9b203f..00000000
--- a/samples/customtiles/src/org/lineageos/samples/customtiles/States.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.samples.customtiles;
-
-/**
- * Created by Adnan on 4/30/15.
- */
-public class States {
- public final static int STATE_OFF = 0;
- public final static int STATE_ON = 1;
-}
diff --git a/samples/customtiles/src/org/lineageos/samples/customtiles/TileReceiver.java b/samples/customtiles/src/org/lineageos/samples/customtiles/TileReceiver.java
deleted file mode 100644
index 49e53d36..00000000
--- a/samples/customtiles/src/org/lineageos/samples/customtiles/TileReceiver.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.samples.customtiles;
-
-import android.app.PendingIntent;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.net.Uri;
-
-import android.text.TextUtils;
-import lineageos.app.LineageStatusBarManager;
-import lineageos.app.CustomTile;
-
-import org.lineageos.samples.customtiles.R;
-
-/**
- * Created by Adnan on 4/30/15.
- */
-public class TileReceiver extends BroadcastReceiver {
-
- @Override
- public void onReceive(Context context, Intent intent) {
-
- if (MainActivity.ACTION_TOGGLE_STATE.equals(intent.getAction())) {
- Intent newIntent = new Intent();
- newIntent.setAction(MainActivity.ACTION_TOGGLE_STATE);
- String label = "CustomTile " + States.STATE_OFF;
-
- int state = getCurrentState(intent);
- switch (state) {
- case States.STATE_OFF:
- newIntent.putExtra(MainActivity.STATE, States.STATE_ON);
- label = "CustomTile " + States.STATE_ON;
- break;
- case States.STATE_ON:
- newIntent.putExtra(MainActivity.STATE, States.STATE_OFF);
- label = "CustomTile " + States.STATE_OFF;
- break;
- }
-
- PendingIntent pendingIntent =
- PendingIntent.getBroadcast(context, 0,
- newIntent , PendingIntent.FLAG_UPDATE_CURRENT);
-
- CustomTile customTile = new CustomTile.Builder(context)
- .setOnClickIntent(pendingIntent)
- .shouldCollapsePanel(false)
- .setContentDescription("Generic content description")
- .setLabel(label)
- .setIcon(R.drawable.ic_launcher)
- .build();
-
- LineageStatusBarManager.getInstance(context)
- .publishTile(MainActivity.CUSTOM_TILE_ID, customTile);
- }
- }
-
- private int getCurrentState(Intent intent) {
- return intent.getIntExtra(MainActivity.STATE, 0);
- }
-}
diff --git a/sdk/src/java/lineageos/app/CustomTile.aidl b/sdk/src/java/lineageos/app/CustomTile.aidl
deleted file mode 100644
index 25b30858..00000000
--- a/sdk/src/java/lineageos/app/CustomTile.aidl
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * 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.
- */
-
-package lineageos.app;
-
-parcelable CustomTile;
diff --git a/sdk/src/java/lineageos/app/CustomTile.java b/sdk/src/java/lineageos/app/CustomTile.java
deleted file mode 100644
index b6b89296..00000000
--- a/sdk/src/java/lineageos/app/CustomTile.java
+++ /dev/null
@@ -1,1106 +0,0 @@
-/**
- * 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.
- */
-
-package lineageos.app;
-
-import android.app.PendingIntent;
-import android.content.Context;
-import android.content.Intent;
-import android.graphics.Bitmap;
-import android.net.Uri;
-import android.os.Parcel;
-import android.os.Parcelable;
-import android.text.TextUtils;
-import android.util.Log;
-import android.widget.RemoteViews;
-import lineageos.os.Build;
-
-import lineageos.os.Concierge;
-import lineageos.os.Concierge.ParcelInfo;
-
-import java.util.ArrayList;
-
-/**
- * A class that represents a quick settings tile
- *
- * <p>The {@link lineageos.app.CustomTile.Builder} has been added to make it
- * easier to construct CustomTiles.</p>
- */
-public class CustomTile implements Parcelable {
-
- /** Max count allowed by PseudoGridView within SystemUi **/
- public static final int PSEUDO_GRID_ITEM_MAX_COUNT = 9;
-
- private String resourcesPackageName = "";
-
- /**
- * An optional intent to execute when the custom tile entry is clicked. If
- * this is an activity, it must include the
- * {@link android.content.Intent#FLAG_ACTIVITY_NEW_TASK} flag, which requires
- * that you take care of task management.
- *
- * This takes priority over the onClickUri.
- **/
- public PendingIntent onClick;
-
- /**
- * An optional intent to execute when the custom tile entry is long clicked. If
- * this is an activity, it must include the
- * {@link android.content.Intent#FLAG_ACTIVITY_NEW_TASK} flag, which requires
- * that you take care of task management. Activities will also automatically trigger
- * the host panel to automatically collapse after executing the pending intent.
- **/
- public PendingIntent onLongClick;
-
- /**
- * An optional settings intent to execute when the custom tile's detail is shown
- * If this is an activity, it must include the
- * {@link android.content.Intent#FLAG_ACTIVITY_NEW_TASK} flag, which requires
- * that you take care of task management
- */
- public Intent onSettingsClick;
-
- /**
- * The intent to execute when the custom tile is explicitly removed by the user.
- *
- * This probably shouldn't be launching an activity since several of those will be sent
- * at the same time.
- */
- public PendingIntent deleteIntent;
-
- /**
- * An optional Uri to be parsed and broadcast on tile click, if an onClick pending intent
- * is specified, it will take priority over the uri to be broadcasted.
- **/
- public Uri onClickUri;
-
- /**
- * A label specific to the quick settings tile to be created
- */
- public String label;
-
- /**
- * A content description for the custom tile state
- */
- public String contentDescription;
-
- /**
- * An icon to represent the custom tile
- */
- public int icon;
-
- /**
- * A remote icon to represent the custom tile
- */
- public Bitmap remoteIcon;
-
- /**
- * An expanded style for when the CustomTile is clicked, can either be
- * a {@link GridExpandedStyle} or a {@link ListExpandedStyle}
- */
- public ExpandedStyle expandedStyle;
-
- /**
- * Boolean that forces the status bar panel to collapse when a user clicks on the
- * {@link CustomTile}
- * By default {@link #collapsePanel} is true
- */
- public boolean collapsePanel = true;
-
- /**
- * Indicates whether this tile has sensitive data that have to be hidden on
- * secure lockscreens.
- * By default {@link #sensitiveData} is false
- */
- public boolean sensitiveData = false;
-
- /**
- * Unflatten the CustomTile from a parcel.
- */
- public CustomTile(Parcel parcel) {
- // Read parcelable version via the Concierge
- ParcelInfo parcelInfo = Concierge.receiveParcel(parcel);
- int parcelableVersion = parcelInfo.getParcelVersion();
-
- // Pattern here is that all new members should be added to the end of
- // the writeToParcel method. Then we step through each version, until the latest
- // API release to help unravel this parcel
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
- if (parcel.readInt() != 0) {
- this.onClick = PendingIntent.CREATOR.createFromParcel(parcel);
- }
- if (parcel.readInt() != 0) {
- this.onSettingsClick = Intent.CREATOR.createFromParcel(parcel);
- }
- if (parcel.readInt() != 0) {
- this.onClickUri = Uri.CREATOR.createFromParcel(parcel);
- }
- if (parcel.readInt() != 0) {
- this.label = parcel.readString();
- }
- if (parcel.readInt() != 0) {
- this.contentDescription = parcel.readString();
- }
- if (parcel.readInt() != 0) {
- this.expandedStyle = ExpandedStyle.CREATOR.createFromParcel(parcel);
- }
- this.icon = parcel.readInt();
- }
-
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
- this.resourcesPackageName = parcel.readString();
- this.collapsePanel = (parcel.readInt() == 1);
- if (parcel.readInt() != 0) {
- this.remoteIcon = Bitmap.CREATOR.createFromParcel(parcel);
- }
- if (parcel.readInt() != 0) {
- this.deleteIntent = PendingIntent.CREATOR.createFromParcel(parcel);
- }
- this.sensitiveData = (parcel.readInt() == 1);
- }
-
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.DRAGON_FRUIT) {
- if (parcel.readInt() != 0) {
- this.onLongClick = PendingIntent.CREATOR.createFromParcel(parcel);
- }
- }
-
- // Complete parcel info for the concierge
- parcelInfo.complete();
- }
-
- /**
- * Constructs a CustomTile object with default values.
- * You might want to consider using {@link lineageos.app.CustomTile.Builder} instead.
- */
- public CustomTile()
- {
- // Empty constructor
- }
-
- /** @hide **/
- public String getResourcesPackageName() {
- return resourcesPackageName;
- }
-
- @Override
- public CustomTile clone() {
- CustomTile that = new CustomTile();
- cloneInto(that);
- return that;
- }
-
- @Override
- public String toString() {
- StringBuilder b = new StringBuilder();
- String NEW_LINE = System.getProperty("line.separator");
- if (onClickUri != null) {
- b.append("onClickUri=" + onClickUri.toString() + NEW_LINE);
- }
- if (onClick != null) {
- b.append("onClick=" + onClick.toString() + NEW_LINE);
- }
- if (onLongClick != null) {
- b.append("onLongClick=" + onLongClick.toString() + NEW_LINE);
- }
- if (onSettingsClick != null) {
- b.append("onSettingsClick=" + onSettingsClick.toString() + NEW_LINE);
- }
- if (!TextUtils.isEmpty(label)) {
- b.append("label=" + label + NEW_LINE);
- }
- if (!TextUtils.isEmpty(contentDescription)) {
- b.append("contentDescription=" + contentDescription + NEW_LINE);
- }
- if (expandedStyle != null) {
- b.append("expandedStyle=" + expandedStyle + NEW_LINE);
- }
-
- b.append("icon=" + icon + NEW_LINE);
- b.append("resourcesPackageName=" + resourcesPackageName + NEW_LINE);
- b.append("collapsePanel=" + collapsePanel + NEW_LINE);
- if (remoteIcon != null) {
- b.append("remoteIcon=" + remoteIcon.getGenerationId() + NEW_LINE);
- }
- if (deleteIntent != null) {
- b.append("deleteIntent=" + deleteIntent.toString() + NEW_LINE);
- }
- b.append("sensitiveData=" + sensitiveData + NEW_LINE);
- return b.toString();
- }
-
- /**
- * Copy all of this into that
- * @hide
- */
- public void cloneInto(CustomTile that) {
- that.resourcesPackageName = this.resourcesPackageName;
- that.onClick = this.onClick;
- that.onLongClick = this.onLongClick;
- that.onSettingsClick = this.onSettingsClick;
- that.onClickUri = this.onClickUri;
- that.label = this.label;
- that.contentDescription = this.contentDescription;
- that.expandedStyle = this.expandedStyle;
- that.icon = this.icon;
- that.collapsePanel = this.collapsePanel;
- that.remoteIcon = this.remoteIcon;
- that.deleteIntent = this.deleteIntent;
- that.sensitiveData = this.sensitiveData;
- }
-
- @Override
- public int describeContents() {
- return 0;
- }
-
- @Override
- public void writeToParcel(Parcel out, int flags) {
- // Tell the concierge to prepare the parcel
- ParcelInfo parcelInfo = Concierge.prepareParcel(out);
-
- // ==== APRICOT =====
- if (onClick != null) {
- out.writeInt(1);
- onClick.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
- if (onSettingsClick != null) {
- out.writeInt(1);
- onSettingsClick.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
- if (onClickUri != null) {
- out.writeInt(1);
- onClickUri.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
- if (label != null) {
- out.writeInt(1);
- out.writeString(label);
- } else {
- out.writeInt(0);
- }
- if (contentDescription != null) {
- out.writeInt(1);
- out.writeString(contentDescription);
- } else {
- out.writeInt(0);
- }
- if (expandedStyle != null) {
- out.writeInt(1);
- expandedStyle.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
- out.writeInt(icon);
-
- // ==== BOYSENBERRY =====
- out.writeString(resourcesPackageName);
- out.writeInt(collapsePanel ? 1 : 0);
- if (remoteIcon != null) {
- out.writeInt(1);
- remoteIcon.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
- if (deleteIntent != null) {
- out.writeInt(1);
- deleteIntent.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
- out.writeInt(sensitiveData ? 1 : 0);
-
- // ==== DRAGONFRUIT ====
- if (onLongClick != null) {
- out.writeInt(1);
- onLongClick.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
-
- // Complete the parcel info for the concierge
- parcelInfo.complete();
- }
-
- /**
- * An object that can apply an expanded view style to a {@link CustomTile.Builder}
- * object.
- */
- public static class ExpandedStyle implements Parcelable {
- /**
- * @hide
- */
- public static final int NO_STYLE = -1;
-
- /**
- * Identifier for a grid style expanded view
- */
- public static final int GRID_STYLE = 0;
-
- /**
- * Identifier for a list style expanded view
- */
- public static final int LIST_STYLE = 1;
-
- /**
- * Identifier for a remote view style expanded view
- */
- public static final int REMOTE_STYLE = 2;
-
- private ExpandedStyle() {
- styleId = NO_STYLE;
- }
-
- private RemoteViews contentViews;
- private ExpandedItem[] expandedItems;
- private int styleId;
-
- private ExpandedStyle(Parcel parcel) {
- // Read parcelable version via the Concierge
- ParcelInfo parcelInfo = Concierge.receiveParcel(parcel);
- int parcelableVersion = parcelInfo.getParcelVersion();
-
- // Pattern here is that all new members should be added to the end of
- // the writeToParcel method. Then we step through each version, until the latest
- // API release to help unravel this parcel
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
- if (parcel.readInt() != 0) {
- expandedItems = parcel.createTypedArray(ExpandedItem.CREATOR);
- }
- styleId = parcel.readInt();
- }
-
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
- if (parcel.readInt() != 0) {
- contentViews = RemoteViews.CREATOR.createFromParcel(parcel);
- }
- }
-
- // Complete parcel info for the concierge
- parcelInfo.complete();
- }
-
- /**
- * @hide
- */
- public void setBuilder(Builder builder) {
- if (builder != null) {
- builder.setExpandedStyle(this);
- }
- }
-
- /**
- * @hide
- */
- protected void internalSetExpandedItems(ArrayList<? extends ExpandedItem> items) {
- if (styleId == GRID_STYLE && items.size() > PSEUDO_GRID_ITEM_MAX_COUNT) {
- Log.w(CustomTile.class.getName(),
- "Attempted to publish greater than max grid item count");
- }
- expandedItems = new ExpandedItem[items.size()];
- items.toArray(expandedItems);
- }
-
- /**
- * @hide
- */
- protected void internalSetRemoteViews(RemoteViews remoteViews) {
- contentViews = remoteViews;
- }
-
- /**
- * @hide
- */
- protected void internalStyleId(int id) {
- styleId = id;
- }
-
- /**
- * Retrieve the {@link ExpandedItem}s that have been set on this expanded style
- * @return array of {@link ExpandedItem}
- */
- public ExpandedItem[] getExpandedItems() {
- return expandedItems;
- }
-
- /**
- * Retrieve the RemoteViews that have been set on this expanded style
- * @return RemoteViews
- */
- public RemoteViews getContentViews() {
- return contentViews;
- }
-
- /**
- * Retrieve the style id associated with the {@link ExpandedStyle}
- * @return id for style
- */
- public int getStyle() {
- return styleId;
- }
-
- @Override
- public int describeContents() {
- return 0;
- }
-
- @Override
- public void writeToParcel(Parcel parcel, int i) {
- // Tell the concierge to prepare the parcel
- ParcelInfo parcelInfo = Concierge.prepareParcel(parcel);
-
- // ==== APRICOT ====
- if (expandedItems != null) {
- parcel.writeInt(1);
- parcel.writeTypedArray(expandedItems, 0);
- } else {
- parcel.writeInt(0);
- }
- parcel.writeInt(styleId);
-
- // ==== BOYSENBERRY ====
- if (contentViews != null) {
- parcel.writeInt(1);
- contentViews.writeToParcel(parcel, 0);
- } else {
- parcel.writeInt(0);
- }
-
- // Complete the parcel info for the concierge
- parcelInfo.complete();
- }
-
- @Override
- public String toString() {
- StringBuilder b = new StringBuilder();
- String NEW_LINE = System.getProperty("line.separator");
- if (expandedItems != null) {
- b.append("expandedItems= "+ NEW_LINE);
- for (ExpandedItem item : expandedItems) {
- b.append(" item=" + item.toString() + NEW_LINE);
- }
- }
- b.append("styleId=" + styleId + NEW_LINE);
- return b.toString();
- }
-
- /**
- * Parcelable.Creator that instantiates ExpandedStyle objects
- */
- public static final Creator<ExpandedStyle> CREATOR =
- new Creator<ExpandedStyle>() {
- public ExpandedStyle createFromParcel(Parcel in) {
- return new ExpandedStyle(in);
- }
-
- @Override
- public ExpandedStyle[] newArray(int size) {
- return new ExpandedStyle[size];
- }
- };
- }
-
- /**
- * An instance of {@link ExpandedStyle} that shows the {@link ExpandedGridItem}s in a
- * non-scrollable grid.
- */
- public static class GridExpandedStyle extends ExpandedStyle {
- /**
- * Constructs a GridExpandedStyle object with default values.
- */
- public GridExpandedStyle() {
- internalStyleId(GRID_STYLE);
- }
-
- /**
- * Sets an {@link ArrayList} of {@link ExpandedGridItem}'s to be utilized by
- * the PseudoGridView for presentation.
- *
- * Since the PseudoGridView is not a Grid with an adapter instance, there's a hard
- * limit specified by {@link #PSEUDO_GRID_ITEM_MAX_COUNT}
- * @param expandedGridItems an array list of {@link ExpandedGridItem}s
- */
- public void setGridItems(ArrayList<ExpandedGridItem> expandedGridItems) {
- internalSetExpandedItems(expandedGridItems);
- }
- }
-
- /**
- * An instance of {@link ExpandedStyle} that shows the {@link ExpandedListItem}'s in a
- * scrollable ListView.
- */
- public static class ListExpandedStyle extends ExpandedStyle {
- /**
- * Constructs a ListExpandedStyle object with default values.
- */
- public ListExpandedStyle() {
- internalStyleId(LIST_STYLE);
- }
-
- /**
- * Sets an {@link ArrayList} of {@link ExpandedListItem}s to be utilized by
- * the ListView for presentation.
- * @param expandedListItems an array list of {@link ExpandedListItem}s
- */
- public void setListItems(ArrayList<ExpandedListItem> expandedListItems) {
- internalSetExpandedItems(expandedListItems);
- }
- }
-
- /**
- * An instance of {@link ExpandedStyle} that shows a remote view in the remote process
- */
- public static class RemoteExpandedStyle extends ExpandedStyle {
- /**
- * Constructs a RemoteExpandedStyle object with default values.
- */
- public RemoteExpandedStyle() {
- internalStyleId(REMOTE_STYLE);
- }
-
- /**
- * Sets the RemoteViews for the {@link RemoteExpandedStyle}
- * @param remoteViews a remote view
- */
- public void setRemoteViews(RemoteViews remoteViews) {
- internalSetRemoteViews(remoteViews);
- }
- }
-
- /**
- * A container object that is utilized by {@link ExpandedStyle} to show specific items in either
- * a PseudoGridView or a ListView via {@link GridExpandedStyle} and {@link ListExpandedStyle}
- */
- public static class ExpandedItem implements Parcelable {
-
- /**
- * A {@link PendingIntent} associated with the item.
- * Triggers a {@link PendingIntent#send()} when the item is clicked.
- */
- public PendingIntent onClickPendingIntent;
-
- /**
- * A drawable resource id associated with the {@link ExpandedItem}
- */
- public int itemDrawableResourceId;
-
- /**
- * A bitmap to be utilized instead of #itemDrawableResourceId
- */
- public Bitmap itemBitmapResource;
-
- /**
- * The title of the item
- */
- public String itemTitle;
-
- /**
- * The summary associated with the item, may be null
- */
- public String itemSummary = null;
-
- private ExpandedItem() {
- // Don't want to have this baseclass be instantiable
- }
-
- /**
- * @hide
- */
- protected void internalSetItemDrawable(int resourceId) {
- itemDrawableResourceId = resourceId;
- }
-
- /**
- * @hide
- */
- protected void internalSetItemBitmap(Bitmap bitmap) {
- itemBitmapResource = bitmap;
- }
-
- /**
- * @hide
- */
- protected void internalSetItemSummary(String resourceId) {
- itemSummary = resourceId;
- }
-
- /**
- * @hide
- */
- protected void internalSetItemTitle(String title) {
- itemTitle = title;
- }
-
- /**
- * @hide
- */
- protected void internalSetOnClickPendingIntent(PendingIntent pendingIntent) {
- onClickPendingIntent = pendingIntent;
- }
-
- /**
- * Unflatten the ExpandedItem from a parcel.
- */
- protected ExpandedItem(Parcel parcel) {
- // Read parcelable version via the Concierge
- ParcelInfo parcelInfo = Concierge.receiveParcel(parcel);
- int parcelableVersion = parcelInfo.getParcelVersion();
-
- // Pattern here is that all new members should be added to the end of
- // the writeToParcel method. Then we step through each version, until the latest
- // API release to help unravel this parcel
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
- if (parcel.readInt() != 0) {
- onClickPendingIntent = PendingIntent.CREATOR.createFromParcel(parcel);
- }
- if (parcel.readInt() != 0) {
- itemTitle = parcel.readString();
- }
- if (parcel.readInt() != 0) {
- itemSummary = parcel.readString();
- }
- itemDrawableResourceId = parcel.readInt();
- }
-
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
- if (parcel.readInt() != 0) {
- itemBitmapResource = Bitmap.CREATOR.createFromParcel(parcel);
- }
- }
-
- // Complete parcel info for the concierge
- parcelInfo.complete();
- }
-
- @Override
- public int describeContents() {
- return 0;
- }
-
- @Override
- public void writeToParcel(Parcel out, int flags) {
- // Tell the concierge to prepare the parcel
- ParcelInfo parcelInfo = Concierge.prepareParcel(out);
-
- // ==== APRICOT ====
- if (onClickPendingIntent != null) {
- out.writeInt(1);
- onClickPendingIntent.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
- if (!TextUtils.isEmpty(itemTitle)) {
- out.writeInt(1);
- out.writeString(itemTitle);
- } else {
- out.writeInt(0);
- }
- if (!TextUtils.isEmpty(itemSummary)) {
- out.writeInt(1);
- out.writeString(itemSummary);
- } else {
- out.writeInt(0);
- }
- out.writeInt(itemDrawableResourceId);
-
- // ==== BOYSENBERRY ====
- if (itemBitmapResource != null) {
- out.writeInt(1);
- itemBitmapResource.writeToParcel(out, 0);
- } else {
- out.writeInt(0);
- }
-
- // Complete the parcel info for the concierge
- parcelInfo.complete();
- }
-
- @Override
- public String toString() {
- StringBuilder b = new StringBuilder();
- String NEW_LINE = System.getProperty("line.separator");
- if (onClickPendingIntent != null) {
- b.append("onClickPendingIntent= " + onClickPendingIntent.toString() + NEW_LINE);
- }
- if (itemTitle != null) {
- b.append("itemTitle= " + itemTitle.toString() + NEW_LINE);
- }
- if (itemSummary != null) {
- b.append("itemSummary= " + itemSummary.toString() + NEW_LINE);
- }
- b.append("itemDrawableResourceId=" + itemDrawableResourceId + NEW_LINE);
- if (itemBitmapResource != null) {
- b.append("itemBitmapResource=" + itemBitmapResource.getGenerationId() + NEW_LINE);
- }
- return b.toString();
- }
-
- public static final Creator<ExpandedItem> CREATOR =
- new Creator<ExpandedItem>() {
- @Override
- public ExpandedItem createFromParcel(Parcel in) {
- return new ExpandedItem(in);
- }
-
- @Override
- public ExpandedItem[] newArray(int size) {
- return new ExpandedItem[size];
- }
- };
- }
-
- /**
- * An instance of {@link ExpandedItem} to be utilized within a {@link GridExpandedStyle}
- */
- public static class ExpandedGridItem extends ExpandedItem {
- /**
- * Constructor for the ExpandedGridItem
- */
- public ExpandedGridItem() {
- }
-
- /**
- * Sets the title for the {@link ExpandedGridItem}
- * @param title a string title
- */
- public void setExpandedGridItemTitle(String title) {
- internalSetItemTitle(title);
- }
-
- /**
- * Sets the {@link PendingIntent} associated with the {@link ExpandedGridItem}
- * @param intent a pending intent to be triggered on click
- */
- public void setExpandedGridItemOnClickIntent(PendingIntent intent) {
- internalSetOnClickPendingIntent(intent);
- }
-
- /**
- * Sets the drawable resource id associated with the {@link ExpandedGridItem}
- * @param resourceId a resource id that maps to a drawable
- */
- public void setExpandedGridItemDrawable(int resourceId) {
- internalSetItemDrawable(resourceId);
- }
-
- /**
- * Sets the bitmap associated with the {@link ExpandedGridItem} to be utilized instead of
- * the {@link ExpandedItem#itemDrawableResourceId}
- *
- * Note, sending many items with bitmaps over IPC may result in a
- * TransactionTooLargeException.
- * @param bitmap
- */
- public void setExpandedGridItemBitmap(Bitmap bitmap) {
- internalSetItemBitmap(bitmap);
- }
- }
-
- /**
- * An instance of {@link ExpandedItem} to be utilized within a {@link ListExpandedStyle}
- */
- public static class ExpandedListItem extends ExpandedItem {
- /**
- * Constructor fot the ExpandedListItem
- */
- public ExpandedListItem() {
- }
-
- /**
- * Sets the title for the {@link ExpandedListItem}
- * @param title a string title
- */
- public void setExpandedListItemTitle(String title) {
- internalSetItemTitle(title);
- }
-
- /**
- * Sets the title for the {@link ExpandedListItem}
- * @param summary a string summary
- */
- public void setExpandedListItemSummary(String summary) {
- internalSetItemSummary(summary);
- }
-
- /**
- * Sets the {@link PendingIntent} associated with the {@link ExpandedListItem}
- * @param intent a pending intent to be triggered on click
- */
- public void setExpandedListItemOnClickIntent(PendingIntent intent) {
- internalSetOnClickPendingIntent(intent);
- }
-
- /**
- * Sets the drawable resource id associated with the {@link ExpandedListItem}
- * @param resourceId a resource id that maps to a drawable
- */
- public void setExpandedListItemDrawable(int resourceId) {
- internalSetItemDrawable(resourceId);
- }
-
- /**
- * Sets the bitmap associated with the {@link ExpandedListItem} to be utilized instead of
- * the {@link ExpandedItem#itemDrawableResourceId}
- *
- * Note, sending many items with bitmaps over IPC may result in a
- * TransactionTooLargeException.
- * @param bitmap
- */
- public void setExpandedListItemBitmap(Bitmap bitmap) {
- internalSetItemBitmap(bitmap);
- }
- }
-
- /**
- * Parcelable.Creator that instantiates CustomTile objects
- */
- public static final Creator<CustomTile> CREATOR =
- new Creator<CustomTile>() {
- public CustomTile createFromParcel(Parcel in) {
- return new CustomTile(in);
- }
-
- @Override
- public CustomTile[] newArray(int size) {
- return new CustomTile[size];
- }
- };
-
- /**
- * Builder class for {@link lineageos.app.CustomTile} objects.
- *
- * Provides a convenient way to set the various fields of a {@link lineageos.app.CustomTile}
- *
- * <p>Example:
- *
- * <pre class="prettyprint">
- * CustomTile customTile = new CustomTile.Builder(mContext)
- * .setLabel("custom label")
- * .setContentDescription("custom description")
- * .setOnClickIntent(pendingIntent)
- * .setOnSettingsClickIntent(intent)
- * .setOnClickUri(Uri.parse("custom uri"))
- * .setIcon(R.drawable.ic_launcher)
- * .build();
- * </pre>
- */
- public static class Builder {
- private PendingIntent mOnClick;
- private PendingIntent mOnLongClick;
- private Intent mOnSettingsClick;
- private Uri mOnClickUri;
- private String mLabel;
- private String mContentDescription;
- private int mIcon;
- private Bitmap mRemoteIcon;
- private Context mContext;
- private ExpandedStyle mExpandedStyle;
- private boolean mCollapsePanel = true;
- private PendingIntent mDeleteIntent;
- private boolean mSensitiveData = false;
-
- /**
- * Constructs a new Builder with the defaults:
- */
- public Builder(Context context) {
- mContext = context;
- }
-
- /**
- * Set the label for the custom tile
- * @param label a string to be used for the custom tile label
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setLabel(String label) {
- mLabel = label;
- return this;
- }
-
- /**
- * Set the label for the custom tile
- * @param id a string resource id to be used for the custom tile label
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setLabel(int id) {
- mLabel = mContext.getString(id);
- return this;
- }
-
- /**
- * Set the content description for the custom tile
- * @param contentDescription a string to explain content
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setContentDescription(String contentDescription) {
- mContentDescription = contentDescription;
- return this;
- }
-
- /**
- * Set the content description for the custom tile
- * @param id a string resource id to explain content
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setContentDescription(int id) {
- mContentDescription = mContext.getString(id);
- return this;
- }
-
- /**
- * Set a {@link android.app.PendingIntent} to be fired on custom tile click
- * @param intent
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setOnClickIntent(PendingIntent intent) {
- mOnClick = intent;
- return this;
- }
-
- /**
- * Set a {@link android.app.PendingIntent} to be fired on custom tile long press.
- * Note: if this is an activity, the host panel will automatically collapse.
- * @param intent
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setOnLongClickIntent(PendingIntent intent) {
- mOnLongClick = intent;
- return this;
- }
-
- /**
- * Set a settings {@link android.content.Intent} to be fired on custom
- * tile detail pane click
- * @param intent
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setOnSettingsClickIntent(Intent intent) {
- mOnSettingsClick = intent;
- return this;
- }
-
- /**
- * Set a {@link android.net.Uri} to be broadcasted in an intent on custom tile click
- * @param uri
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setOnClickUri(Uri uri) {
- mOnClickUri = uri;
- return this;
- }
-
- /**
- * Set an icon for the custom tile to be presented to the user
- *
- * @param drawableId
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setIcon(int drawableId) {
- mIcon = drawableId;
- return this;
- }
-
- /**
- * Set a bitmap icon to the custom tile to be utilized instead of {@link CustomTile#icon}
- *
- * This will unset {@link #setIcon(int)} if utilized together.
- * @see CustomTile#remoteIcon
- * @param remoteIcon
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setIcon(Bitmap remoteIcon) {
- mIcon = 0; // empty
- mRemoteIcon = remoteIcon;
- return this;
- }
-
- /**
- * Set an {@link ExpandedStyle} to to be displayed when a user clicks the custom tile
- * @param expandedStyle
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setExpandedStyle(ExpandedStyle expandedStyle) {
- if (mExpandedStyle != expandedStyle) {
- mExpandedStyle = expandedStyle;
- if (mExpandedStyle != null) {
- expandedStyle.setBuilder(this);
- }
- }
- return this;
- }
-
- /**
- * Set whether or not the Statusbar Panel should be collapsed when an
- * {@link #onClick} or {@link #onClickUri} event is fired.
- * @param bool
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder shouldCollapsePanel(boolean bool) {
- mCollapsePanel = bool;
- return this;
- }
-
- /**
- * Supply a {@link PendingIntent} to send when the custom tile is cleared explicitly
- * by the user.
- *
- * @see CustomTile#deleteIntent
- * @param intent
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder setDeleteIntent(PendingIntent intent) {
- mDeleteIntent = intent;
- return this;
- }
-
- /**
- * Indicates whether this tile has sensitive data that have to be hidden
- * on secure lockscreens.
- * @param bool
- * @return {@link lineageos.app.CustomTile.Builder}
- */
- public Builder hasSensitiveData(boolean bool) {
- mSensitiveData = bool;
- return this;
- }
-
- /**
- * Create a {@link lineageos.app.CustomTile} object
- * @return {@link lineageos.app.CustomTile}
- */
- public CustomTile build() {
- CustomTile tile = new CustomTile();
- tile.resourcesPackageName = mContext.getPackageName();
- tile.onClick = mOnClick;
- tile.onLongClick = mOnLongClick;
- tile.onSettingsClick = mOnSettingsClick;
- tile.onClickUri = mOnClickUri;
- tile.label = mLabel;
- tile.contentDescription = mContentDescription;
- tile.expandedStyle = mExpandedStyle;
- tile.icon = mIcon;
- tile.collapsePanel = mCollapsePanel;
- tile.remoteIcon = mRemoteIcon;
- tile.deleteIntent = mDeleteIntent;
- tile.sensitiveData = mSensitiveData;
- return tile;
- }
- }
-}
diff --git a/sdk/src/java/lineageos/app/CustomTileListenerService.java b/sdk/src/java/lineageos/app/CustomTileListenerService.java
deleted file mode 100644
index 22efde41..00000000
--- a/sdk/src/java/lineageos/app/CustomTileListenerService.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/**
- * 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.
- */
-
-package lineageos.app;
-
-import android.annotation.SdkConstant;
-import android.app.Service;
-import android.content.ComponentName;
-import android.content.Context;
-import android.content.Intent;
-import android.os.IBinder;
-import android.os.RemoteException;
-import android.os.ServiceManager;
-import android.util.Log;
-
-import lineageos.app.ICustomTileListener;
-import lineageos.app.IStatusBarCustomTileHolder;
-import lineageos.app.ILineageStatusBarManager;
-
-/**
- * A service that receives calls from the system when new custom tiles are
- * posted or removed.
- * <p>To extend this class, you must declare the service in your manifest file with
- * the lineageos.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE
- * and include an intent filter with the {@link #SERVICE_INTERFACE} action. For example:</p>
- * <pre>
- * &lt;service android:name=".CustomTileListener"
- * android:label="&#64;string/service_name"
- * android:permission="lineageos.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE">
- * &lt;intent-filter>
- * &lt;action android:name="lineageos.app.CustomTileListenerService" />
- * &lt;/intent-filter>
- * &lt;/service></pre>
- */
-public class CustomTileListenerService extends Service {
- private final String TAG = CustomTileListenerService.class.getSimpleName()
- + "[" + getClass().getSimpleName() + "]";
- /**
- * The {@link android.content.Intent} that must be declared as handled by the service.
- */
- @SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION)
- public static final String SERVICE_INTERFACE
- = "lineageos.app.CustomTileListenerService";
-
- private ICustomTileListenerWrapper mWrapper = null;
- private ILineageStatusBarManager mStatusBarService;
- /** Only valid after a successful call to (@link registerAsService}. */
- private int mCurrentUser;
-
- @Override
- public IBinder onBind(Intent intent) {
- if (mWrapper == null) {
- mWrapper = new ICustomTileListenerWrapper();
- }
- return mWrapper;
- }
-
- private final ILineageStatusBarManager getStatusBarInterface() {
- if (mStatusBarService == null) {
- mStatusBarService = ILineageStatusBarManager.Stub.asInterface(
- ServiceManager.getService(LineageContextConstants.LINEAGE_STATUS_BAR_SERVICE));
- }
- return mStatusBarService;
- }
-
- /**
- * Directly register this service with the StatusBar Manager.
- *
- * <p>Only system services may use this call. It will fail for non-system callers.
- * Apps should ask the user to add their listener in Settings.
- *
- * @param context Context required for accessing resources. Since this service isn't
- * launched as a real Service when using this method, a context has to be passed in.
- * @param componentName the component that will consume the custom tile information
- * @param currentUser the user to use as the stream filter
- * @hide
- */
- public void registerAsSystemService(Context context, ComponentName componentName,
- int currentUser) throws RemoteException {
- if (isBound()) {
- return;
- }
- ILineageStatusBarManager statusBarInterface = mStatusBarService;
- if (mStatusBarService != null) {
- mWrapper = new ICustomTileListenerWrapper();
- statusBarInterface.registerListener(mWrapper, componentName, currentUser);
- mCurrentUser = currentUser;
- }
- }
-
- /**
- * Directly unregister this service from the StatusBar Manager.
- *
- * <P>This method will fail for listeners that were not registered
- * with (@link registerAsService).
- * @hide
- */
- public void unregisterAsSystemService() throws RemoteException {
- if (isBound()) {
- ILineageStatusBarManager statusBarInterface = mStatusBarService;
- statusBarInterface.unregisterListener(mWrapper, mCurrentUser);
- mWrapper = null;
- mStatusBarService = null;
- }
- }
-
-
- private class ICustomTileListenerWrapper extends ICustomTileListener.Stub {
- @Override
- public void onListenerConnected() {
- synchronized (mWrapper) {
- try {
- CustomTileListenerService.this.onListenerConnected();
- } catch (Throwable t) {
- Log.w(TAG, "Error running onListenerConnected", t);
- }
- }
- }
- @Override
- public void onCustomTilePosted(IStatusBarCustomTileHolder sbcHolder) {
- StatusBarPanelCustomTile sbc;
- try {
- sbc = sbcHolder.get();
- } catch (RemoteException e) {
- Log.w(TAG, "onCustomTilePosted: Error receiving StatusBarPanelCustomTile", e);
- return;
- }
- synchronized (mWrapper) {
- try {
- CustomTileListenerService.this.onCustomTilePosted(sbc);
- } catch (Throwable t) {
- Log.w(TAG, "Error running onCustomTilePosted", t);
- }
- }
- }
- @Override
- public void onCustomTileRemoved(IStatusBarCustomTileHolder sbcHolder) {
- StatusBarPanelCustomTile sbc;
- try {
- sbc = sbcHolder.get();
- } catch (RemoteException e) {
- Log.w(TAG, "onCustomTileRemoved: Error receiving StatusBarPanelCustomTile", e);
- return;
- }
- synchronized (mWrapper) {
- try {
- CustomTileListenerService.this.onCustomTileRemoved(sbc);
- } catch (Throwable t) {
- Log.w(TAG, "Error running onCustomTileRemoved", t);
- }
- }
- }
- }
-
- /**
- * Implement this method to learn about new custom tiles as they are posted by apps.
- *
- * @param sbc A data structure encapsulating the original {@link lineageos.app.CustomTile}
- * object as well as its identifying information (tag and id) and source
- * (package name).
- */
- public void onCustomTilePosted(StatusBarPanelCustomTile sbc) {
- // optional
- }
-
- /**
- * Implement this method to learn when custom tiles are removed.
- *
- * @param sbc A data structure encapsulating at least the original information (tag and id)
- * and source (package name) used to post the {@link lineageos.app.CustomTile} that
- * was just removed.
- */
- public void onCustomTileRemoved(StatusBarPanelCustomTile sbc) {
- // optional
- }
-
- /**
- * Implement this method to learn about when the listener is enabled and connected to
- * the status bar manager.
- * at this time.
- */
- public void onListenerConnected() {
- // optional
- }
-
- /**
- * Inform the {@link lineageos.app.LineageStatusBarManager} about dismissal of a single custom tile.
- * <p>
- * Use this if your listener has a user interface that allows the user to dismiss individual
- * custom tiles, similar to the behavior of Android's status bar and notification panel.
- * It should be called after the user dismisses a single custom tile using your UI;
- * upon being informed, the lineagestatusbar manager will actually remove the custom tile
- * and you will get an {@link #onCustomTileRemoved(StatusBarPanelCustomTile)} callback.
- * <P>
- *
- * @param pkg Package of the notifying app.
- * @param tag Tag of the custom tile as specified by the notifying app
- * @param id ID of the custom tile as specified by the notifying app
- * <p>
- */
- public final void removeCustomTile(String pkg, String tag, int id) {
- if (!isBound()) return;
- try {
- mStatusBarService.removeCustomTileFromListener(
- mWrapper, pkg, tag, id);
- } catch (android.os.RemoteException ex) {
- Log.v(TAG, "Unable to contact lineagestatusbar manager", ex);
- }
- }
-
- private boolean isBound() {
- if (getStatusBarInterface() == null || mWrapper == null) {
- Log.w(TAG, "CustomTile listener service not yet bound.");
- return false;
- }
- return true;
- }
-}
diff --git a/sdk/src/java/lineageos/app/ICustomTileListener.aidl b/sdk/src/java/lineageos/app/ICustomTileListener.aidl
deleted file mode 100644
index f45ab116..00000000
--- a/sdk/src/java/lineageos/app/ICustomTileListener.aidl
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * 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.
- */
-
-package lineageos.app;
-
-import lineageos.app.IStatusBarCustomTileHolder;
-import lineageos.app.StatusBarPanelCustomTile;
-
-/** @hide */
-oneway interface ICustomTileListener
-{
- void onListenerConnected();
- void onCustomTilePosted(in IStatusBarCustomTileHolder customTileHolder);
- void onCustomTileRemoved(in IStatusBarCustomTileHolder customTileHolder);
-}
diff --git a/sdk/src/java/lineageos/app/ILineageStatusBarManager.aidl b/sdk/src/java/lineageos/app/ILineageStatusBarManager.aidl
deleted file mode 100644
index f4955e9b..00000000
--- a/sdk/src/java/lineageos/app/ILineageStatusBarManager.aidl
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * 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.
- */
-
-package lineageos.app;
-
-import android.content.ComponentName;
-
-import lineageos.app.CustomTile;
-import lineageos.app.ICustomTileListener;
-
-/** @hide */
-interface ILineageStatusBarManager {
- // --- Methods below are for use by 3rd party applications to publish quick
- // settings tiles to the status bar panel
- // You need the PUBLISH_CUSTOM_TILE permission
- void createCustomTileWithTag(String pkg, String opPkg, String tag, int id,
- in CustomTile tile, inout int[] idReceived, int userId);
- void removeCustomTileWithTag(String pkg, String tag, int id, int userId);
-
- // --- Methods below are for use by 3rd party applications
- // You need the BIND_QUICK_SETTINGS_TILE_LISTENER permission
- void registerListener(in ICustomTileListener listener, in ComponentName component, int userid);
- void unregisterListener(in ICustomTileListener listener, int userid);
- void removeCustomTileFromListener(in ICustomTileListener listener, String pkg, String tag, int id);
-}
diff --git a/sdk/src/java/lineageos/app/IStatusBarCustomTileHolder.aidl b/sdk/src/java/lineageos/app/IStatusBarCustomTileHolder.aidl
deleted file mode 100644
index 0a787f6f..00000000
--- a/sdk/src/java/lineageos/app/IStatusBarCustomTileHolder.aidl
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * 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.
- */
-
-package lineageos.app;
-
-import lineageos.app.StatusBarPanelCustomTile;
-
-/** @hide */
-interface IStatusBarCustomTileHolder {
- /** Fetch the held StatusBarPanelCustomTile. This method should only be called once per Holder */
- StatusBarPanelCustomTile get();
-}
diff --git a/sdk/src/java/lineageos/app/LineageContextConstants.java b/sdk/src/java/lineageos/app/LineageContextConstants.java
index 1a29cee2..21998524 100644
--- a/sdk/src/java/lineageos/app/LineageContextConstants.java
+++ b/sdk/src/java/lineageos/app/LineageContextConstants.java
@@ -33,16 +33,6 @@ public final class LineageContextConstants {
/**
* Use with {@link android.content.Context#getSystemService} to retrieve a
- * {@link lineageos.app.LineageStatusBarManager} for informing the user of
- * background events.
- *
- * @see android.content.Context#getSystemService
- * @see lineageos.app.LineageStatusBarManager
- */
- public static final String LINEAGE_STATUS_BAR_SERVICE = "lineagestatusbar";
-
- /**
- * Use with {@link android.content.Context#getSystemService} to retrieve a
* {@link lineageos.app.ProfileManager} for informing the user of
* background events.
*
@@ -132,14 +122,6 @@ public final class LineageContextConstants {
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the lineage status bar service
- * utilzed by the lineage sdk.
- */
- @SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String STATUSBAR = "org.lineageos.statusbar";
-
- /**
- * Feature for {@link PackageManager#getSystemAvailableFeatures} and
* {@link PackageManager#hasSystemFeature}: The device includes the lineage profiles service
* utilized by the lineage sdk.
*/
diff --git a/sdk/src/java/lineageos/app/LineageStatusBarManager.java b/sdk/src/java/lineageos/app/LineageStatusBarManager.java
deleted file mode 100644
index 4e50455b..00000000
--- a/sdk/src/java/lineageos/app/LineageStatusBarManager.java
+++ /dev/null
@@ -1,247 +0,0 @@
-/**
- * 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.
- */
-
-package lineageos.app;
-
-import android.content.Context;
-import android.os.IBinder;
-import android.os.RemoteException;
-import android.os.ServiceManager;
-import android.os.UserHandle;
-import android.util.Log;
-import android.util.Slog;
-
-import lineageos.app.ILineageStatusBarManager;
-
-/**
- * The LineageStatusBarManager allows you to publish and remove CustomTiles within the
- * Quick Settings Panel.
- *
- * <p>
- * Each of the publish methods takes an int id parameter and optionally a
- * {@link String} tag parameter, which may be {@code null}. These parameters
- * are used to form a pair (tag, id), or ({@code null}, id) if tag is
- * unspecified. This pair identifies this custom tile from your app to the
- * system, so that pair should be unique within your app. If you call one
- * of the publish methods with a (tag, id) pair that is currently active and
- * a new set of custom tile parameters, it will be updated. For example,
- * if you pass a new custom tile icon, the old icon in the panel will
- * be replaced with the new one. This is also the same tag and id you pass
- * to the {@link #removeTile(int)} or {@link #removeTile(String, int)} method to clear
- * this custom tile.
- *
- * <p>
- * To get the instance of this class, utilize LineageStatusBarManager#getInstance(Context context)
- *
- * @see lineageos.app.CustomTile
- */
-public class LineageStatusBarManager {
- private static final String TAG = "LineageStatusBarManager";
- private static boolean localLOGV = false;
-
- private Context mContext;
-
- private static ILineageStatusBarManager sService;
-
- private static LineageStatusBarManager sLineageStatusBarManagerInstance;
- private LineageStatusBarManager(Context context) {
- Context appContext = context.getApplicationContext();
- if (appContext != null) {
- mContext = appContext;
- } else {
- mContext = context;
- }
- sService = getService();
-
- if (context.getPackageManager().hasSystemFeature(
- lineageos.app.LineageContextConstants.Features.STATUSBAR) && sService == null) {
- Log.wtf(TAG, "Unable to get LineageStatusBarService. The service either" +
- " crashed, was not started, or the interface has been called to early in" +
- " SystemServer init");
- }
- }
-
- /**
- * Get or create an instance of the {@link lineageos.app.LineageStatusBarManager}
- * @param context
- * @return {@link lineageos.app.LineageStatusBarManager}
- */
- public static LineageStatusBarManager getInstance(Context context) {
- if (sLineageStatusBarManagerInstance == null) {
- sLineageStatusBarManagerInstance = new LineageStatusBarManager(context);
- }
- return sLineageStatusBarManagerInstance;
- }
-
- /**
- * Post a custom tile to be shown in the status bar panel. If a custom tile with
- * the same id has already been posted by your application and has not yet been removed, it
- * will be replaced by the updated information.
- *
- * You will need the lineageos.permission.PUBLISH_CUSTOM_TILE
- * to utilize this functionality.
- *
- * @param id An identifier for this customTile unique within your
- * application.
- * @param customTile A {@link CustomTile} object describing what to show the user.
- * Must not be null.
- */
- public void publishTile(int id, CustomTile customTile) {
- publishTile(null, id, customTile);
- }
-
- /**
- * Post a custom tile to be shown in the status bar panel. If a custom tile with
- * the same tag and id has already been posted by your application and has not yet been
- * removed, it will be replaced by the updated information.
- *
- * You will need the lineageos.permission.PUBLISH_CUSTOM_TILE
- * to utilize this functionality.
- *
- * @param tag A string identifier for this custom tile. May be {@code null}.
- * @param id An identifier for this custom tile. The pair (tag, id) must be unique
- * within your application.
- * @param customTile A {@link lineageos.app.CustomTile} object describing what to
- * show the user. Must not be null.
- */
- public void publishTile(String tag, int id, CustomTile customTile) {
- if (sService == null) {
- Log.w(TAG, "not connected to LineageStatusBarManagerService");
- return;
- }
-
- int[] idOut = new int[1];
- String pkg = mContext.getPackageName();
- if (localLOGV) Log.v(TAG, pkg + ": create(" + id + ", " + customTile + ")");
- try {
- sService.createCustomTileWithTag(pkg, mContext.getOpPackageName(), tag, id,
- customTile, idOut, UserHandle.myUserId());
- if (id != idOut[0]) {
- Log.w(TAG, "notify: id corrupted: sent " + id + ", got back " + idOut[0]);
- }
- } catch (RemoteException e) {
- Slog.w("LineageStatusBarManager", "warning: no lineage status bar service");
- }
- }
-
- /**
- * Similar to {@link lineageos.app.LineageStatusBarManager#publishTile(int id, lineageos.app.CustomTile)},
- * however lets you specify a {@link android.os.UserHandle}
- *
- * You will need the lineageos.permission.PUBLISH_CUSTOM_TILE
- * to utilize this functionality.
- *
- * @param tag A string identifier for this custom tile. May be {@code null}.
- * @param id An identifier for this custom tile. The pair (tag, id) must be unique
- * within your application.
- * @param customTile A {@link lineageos.app.CustomTile} object describing what to
- * show the user. Must not be null.
- * @param user A user handle to publish the tile as.
- */
- public void publishTileAsUser(String tag, int id, CustomTile customTile, UserHandle user) {
- if (sService == null) {
- Log.w(TAG, "not connected to LineageStatusBarManagerService");
- return;
- }
-
- int[] idOut = new int[1];
- String pkg = mContext.getPackageName();
- if (localLOGV) Log.v(TAG, pkg + ": create(" + id + ", " + customTile + ")");
- try {
- sService.createCustomTileWithTag(pkg, mContext.getOpPackageName(), tag, id,
- customTile, idOut, user.getIdentifier());
- if (id != idOut[0]) {
- Log.w(TAG, "notify: id corrupted: sent " + id + ", got back " + idOut[0]);
- }
- } catch (RemoteException e) {
- Slog.w("LineageStatusBarManager", "warning: no lineage status bar service");
- }
- }
-
- /**
- * Remove a custom tile that's currently published to the StatusBarPanel.
- *
- * You will need the lineageos.permission.PUBLISH_CUSTOM_TILE
- * to utilize this functionality.
- *
- * @param id The identifier for the custom tile to be removed.
- */
- public void removeTile(int id) {
- removeTile(null, id);
- }
-
- /**
- * Remove a custom tile that's currently published to the StatusBarPanel.
- *
- * You will need the lineageos.platform.PUBLISH_CUSTOM_TILE
- * to utilize this functionality.
- *
- * @param tag The string identifier for the custom tile to be removed.
- * @param id The identifier for the custom tile to be removed.
- */
- public void removeTile(String tag, int id) {
- if (sService == null) {
- Log.w(TAG, "not connected to LineageStatusBarManagerService");
- return;
- }
-
- String pkg = mContext.getPackageName();
- if (localLOGV) Log.v(TAG, pkg + ": remove(" + id + ")");
- try {
- sService.removeCustomTileWithTag(pkg, tag, id, UserHandle.myUserId());
- } catch (RemoteException e) {
- Slog.w("LineageStatusBarManager", "warning: no lineage status bar service");
- }
- }
-
- /**
- * Similar to {@link lineageos.app.LineageStatusBarManager#removeTile(String tag, int id)}
- * however lets you specific a {@link android.os.UserHandle}
- *
- * You will need the lineageos.platform.PUBLISH_CUSTOM_TILE
- * to utilize this functionality.
- *
- * @param tag The string identifier for the custom tile to be removed.
- * @param id The identifier for the custom tile to be removed.
- * @param user The user handle to remove the tile from.
- */
- public void removeTileAsUser(String tag, int id, UserHandle user) {
- if (sService == null) {
- Log.w(TAG, "not connected to LineageStatusBarManagerService");
- return;
- }
-
- String pkg = mContext.getPackageName();
- if (localLOGV) Log.v(TAG, pkg + ": remove(" + id + ")");
- try {
- sService.removeCustomTileWithTag(pkg, tag, id, user.getIdentifier());
- } catch (RemoteException e) {
- }
- }
-
- /** @hide */
- public ILineageStatusBarManager getService() {
- if (sService != null) {
- return sService;
- }
- IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_STATUS_BAR_SERVICE);
- if (b != null) {
- sService = ILineageStatusBarManager.Stub.asInterface(b);
- return sService;
- }
- return null;
- }
-}
diff --git a/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.aidl b/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.aidl
deleted file mode 100644
index 49c110d4..00000000
--- a/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.aidl
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * 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.
- */
-
-package lineageos.app;
-
-parcelable StatusBarPanelCustomTile;
-
diff --git a/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.java b/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.java
deleted file mode 100644
index 0e53b3b3..00000000
--- a/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.java
+++ /dev/null
@@ -1,261 +0,0 @@
-/*
- * 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.
- */
-
-package lineageos.app;
-
-import android.os.Parcel;
-import android.os.Parcelable;
-import android.os.UserHandle;
-
-import lineageos.os.Build;
-
-import lineageos.os.Concierge;
-import lineageos.os.Concierge.ParcelInfo;
-
-/**
- * Class encapsulating a Custom Tile. Sent by the StatusBarManagerService to clients including
- * the status bar panel and any {@link lineageos.app.CustomTileListenerService} clients.
- */
-public class StatusBarPanelCustomTile implements Parcelable {
-
- private final String pkg;
- private final int id;
- private final String tag;
- private final String key;
-
- private final int uid;
- private final String resPkg;
- private final String opPkg;
- private final int initialPid;
- private final CustomTile customTile;
- private final UserHandle user;
- private final long postTime;
-
- public StatusBarPanelCustomTile(String pkg, String resPkg, String opPkg, int id, String tag,
- int uid, int initialPid, CustomTile customTile, UserHandle user) {
- this(pkg, resPkg, opPkg, id, tag, uid, initialPid, customTile, user,
- System.currentTimeMillis());
- }
-
- public StatusBarPanelCustomTile(String pkg, String resPkg, String opPkg, int id, String tag,
- int uid, int initialPid, CustomTile customTile, UserHandle user,
- long postTime) {
- if (pkg == null) throw new NullPointerException();
- if (customTile == null) throw new NullPointerException();
-
- this.pkg = pkg;
- this.resPkg = resPkg;
- this.opPkg = opPkg;
- this.id = id;
- this.tag = tag;
- this.uid = uid;
- this.initialPid = initialPid;
- this.customTile = customTile;
- this.user = user;
- this.postTime = postTime;
- this.key = key();
- }
-
-
- public StatusBarPanelCustomTile(Parcel in) {
- // Read parcelable version via the Concierge
- ParcelInfo parcelInfo = Concierge.receiveParcel(in);
- int parcelableVersion = parcelInfo.getParcelVersion();
-
- // tmp variables for final
- String tmpResPkg = null;
- String tmpPkg = null;
- String tmpOpPkg = null;
- int tmpId = -1;
- String tmpTag = null;
- int tmpUid = -1;
- int tmpPid = -1;
- CustomTile tmpCustomTile = null;
- UserHandle tmpUser = null;
- long tmpPostTime = -1;
-
- // Pattern here is that all new members should be added to the end of
- // the writeToParcel method. Then we step through each version, until the latest
- // API release to help unravel this parcel
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
- // default
- tmpPkg = in.readString();
- tmpOpPkg = in.readString();
- tmpId = in.readInt();
- if (in.readInt() != 0) {
- tmpTag = in.readString();
- } else {
- tmpTag = null;
- }
- tmpUid = in.readInt();
- tmpPid = in.readInt();
- tmpCustomTile = new CustomTile(in);
- tmpUser = UserHandle.readFromParcel(in);
- tmpPostTime = in.readLong();
- }
-
- if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
- tmpResPkg = in.readString();
- }
-
- // Assign finals
- this.resPkg = tmpResPkg;
- this.pkg = tmpPkg;
- this.opPkg = tmpOpPkg;
- this.id = tmpId;
- this.tag = tmpTag;
- this.uid = tmpUid;
- this.initialPid = tmpPid;
- this.customTile = tmpCustomTile;
- this.user = tmpUser;
- this.postTime = tmpPostTime;
- this.key = key();
-
- // Complete parcel info for the concierge
- parcelInfo.complete();
- }
-
- private String key() {
- return user.getIdentifier() + "|" + pkg + "|" + id + "|" + tag + "|" + uid;
- }
-
- /** @hide */
- public String persistableKey() {
- return user.getIdentifier() + "|" + pkg + "|" + tag;
- }
-
- public static final Creator<StatusBarPanelCustomTile> CREATOR
- = new Creator<StatusBarPanelCustomTile>()
- {
- public StatusBarPanelCustomTile createFromParcel(Parcel parcel)
- {
- return new StatusBarPanelCustomTile(parcel);
- }
-
- public StatusBarPanelCustomTile[] newArray(int size)
- {
- return new StatusBarPanelCustomTile[size];
- }
- };
-
- /** The {@link lineageos.app.CustomTile} supplied to
- * {@link lineageos.app.LineageStatusBarManager#publishTile(int, lineageos.app.CustomTile)}.
- */
- public CustomTile getCustomTile() {
- return customTile;
- }
-
- @Override
- public int describeContents() {
- return 0;
- }
-
- @Override
- public void writeToParcel(Parcel out, int flags) {
- // Tell the concierge to prepare the parcel
- ParcelInfo parcelInfo = Concierge.prepareParcel(out);
-
- // ==== APRICOT ===
- out.writeString(this.pkg);
- out.writeString(this.opPkg);
- out.writeInt(this.id);
- if (this.tag != null) {
- out.writeInt(1);
- out.writeString(this.tag);
- } else {
- out.writeInt(0);
- }
- out.writeInt(this.uid);
- out.writeInt(this.initialPid);
- this.customTile.writeToParcel(out, flags);
- user.writeToParcel(out, flags);
- out.writeLong(this.postTime);
-
- // ==== BOYSENBERRY =====
- out.writeString(this.resPkg);
-
- // Complete the parcel info for the concierge
- parcelInfo.complete();
- }
-
- @Override
- public StatusBarPanelCustomTile clone() {
- return new StatusBarPanelCustomTile(this.pkg, this.resPkg, this.opPkg,
- this.id, this.tag, this.uid, this.initialPid,
- this.customTile.clone(), this.user, this.postTime);
- }
-
- /**
- * Returns a userHandle for the instance of the app that posted this tile.
- */
- public int getUserId() {
- return this.user.getIdentifier();
- }
-
- /** The package of the app that posted the tile */
- public String getPackage() {
- return pkg;
- }
-
- /** The id supplied to LineageStatusBarManager */
- public int getId() {
- return id;
- }
-
- /** The tag supplied to LineageStatusBarManager or null if no tag was specified. */
- public String getTag() {
- return tag;
- }
-
- /**
- * A unique instance key for this tile record.
- */
- public String getKey() {
- return key;
- }
-
- /** The notifying app's calling uid. @hide */
- public int getUid() {
- return uid;
- }
-
- /** The package used for load resources from. @hide */
- public String getResPkg() {
- return resPkg;
- }
-
- /** The package used for AppOps tracking. @hide */
- public String getOpPkg() {
- return opPkg;
- }
-
- /** @hide */
- public int getInitialPid() {
- return initialPid;
- }
-
- /**
- * The {@link android.os.UserHandle} for whom this CustomTile is intended.
- */
- public UserHandle getUser() {
- return user;
- }
-
- /** The time (in {@link System#currentTimeMillis} time) the CustomTile was published, */
- public long getPostTime() {
- return postTime;
- }
-}
diff --git a/sdk/src/java/lineageos/providers/LineageSettings.java b/sdk/src/java/lineageos/providers/LineageSettings.java
index d2905807..7bfc38c1 100644
--- a/sdk/src/java/lineageos/providers/LineageSettings.java
+++ b/sdk/src/java/lineageos/providers/LineageSettings.java
@@ -2650,19 +2650,6 @@ public final class LineageSettings {
public static final String QS_SHOW_AUTO_BRIGHTNESS = "qs_show_auto_brightness";
/**
- * List of QS tile names
- * @hide
- */
- public static final String QS_TILES = "sysui_qs_tiles";
-
- /**
- * Use "main" tiles on the first row of the quick settings panel
- * 0 = no, 1 = yes
- * @hide
- */
- public static final String QS_USE_MAIN_TILES = "sysui_qs_main_tiles";
-
- /**
* Global stats collection
* @hide
*/
@@ -2912,8 +2899,6 @@ public final class LineageSettings {
LineageSettings.Secure.POWER_MENU_ACTIONS,
LineageSettings.Secure.STATS_COLLECTION,
LineageSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER,
- LineageSettings.Secure.QS_TILES,
- LineageSettings.Secure.QS_USE_MAIN_TILES,
LineageSettings.Secure.NAVIGATION_RING_TARGETS[0],
LineageSettings.Secure.NAVIGATION_RING_TARGETS[1],
LineageSettings.Secure.NAVIGATION_RING_TARGETS[2],
diff --git a/sdk/src/java/org/lineageos/internal/statusbar/ExternalQuickSettingsRecord.java b/sdk/src/java/org/lineageos/internal/statusbar/ExternalQuickSettingsRecord.java
deleted file mode 100644
index 7a175be2..00000000
--- a/sdk/src/java/org/lineageos/internal/statusbar/ExternalQuickSettingsRecord.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.internal.statusbar;
-
-import android.os.UserHandle;
-import com.android.internal.annotations.VisibleForTesting;
-
-import lineageos.app.CustomTile;
-import lineageos.app.StatusBarPanelCustomTile;
-
-/**
- * @hide
- */
-public class ExternalQuickSettingsRecord {
- public final StatusBarPanelCustomTile sbTile;
- public boolean isUpdate;
- public boolean isCanceled;
-
- @VisibleForTesting
- public ExternalQuickSettingsRecord(StatusBarPanelCustomTile tile) {
- sbTile = tile;
- }
-
- public CustomTile getCustomTile() {
- return sbTile.getCustomTile();
- }
-
- public UserHandle getUser() {
- return sbTile.getUser();
- }
-
- public int getUserId() {
- return sbTile.getUserId();
- }
-
- public String getKey() {
- return sbTile.getKey();
- }
-}
diff --git a/sdk/src/java/org/lineageos/internal/util/QSConstants.java b/sdk/src/java/org/lineageos/internal/util/QSConstants.java
deleted file mode 100644
index bad015a9..00000000
--- a/sdk/src/java/org/lineageos/internal/util/QSConstants.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * Copyright (C) 2015 The CyanogenMod Open Source 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
- */
-
-package org.lineageos.internal.util;
-
-import java.util.ArrayList;
-
-public class QSConstants {
- private QSConstants() {}
-
- public static final String TILE_WIFI = "wifi";
- public static final String TILE_BLUETOOTH = "bt";
- public static final String TILE_INVERSION = "inversion";
- public static final String TILE_CELLULAR = "cell";
- public static final String TILE_AIRPLANE = "airplane";
- public static final String TILE_ROTATION = "rotation";
- public static final String TILE_FLASHLIGHT = "flashlight";
- public static final String TILE_LOCATION = "location";
- public static final String TILE_CAST = "cast";
- public static final String TILE_HOTSPOT = "hotspot";
- public static final String TILE_NOTIFICATIONS = "notifications";
- public static final String TILE_DATA = "data";
- public static final String TILE_ROAMING = "roaming";
- public static final String TILE_DDS = "dds";
- public static final String TILE_APN = "apn";
- public static final String TILE_PROFILES = "profiles";
- public static final String TILE_PERFORMANCE = "performance";
- public static final String TILE_ADB_NETWORK = "adb_network";
- public static final String TILE_NFC = "nfc";
- public static final String TILE_COMPASS = "compass";
- public static final String TILE_LOCKSCREEN = "lockscreen";
- public static final String TILE_LTE = "lte";
- public static final String TILE_VISUALIZER = "visualizer";
- public static final String TILE_VOLUME = "volume_panel";
- public static final String TILE_SCREEN_TIMEOUT = "screen_timeout";
- public static final String TILE_USB_TETHER = "usb_tether";
- public static final String TILE_HEADS_UP = "heads_up";
- public static final String TILE_AMBIENT_DISPLAY = "ambient_display";
- public static final String TILE_SYNC = "sync";
- public static final String TILE_BATTERY_SAVER = "battery_saver";
- public static final String TILE_CAFFEINE = "caffeine";
- public static final String TILE_EDIT = "edit";
- public static final String TILE_DND = "dnd";
-
- public static final String DYNAMIC_TILE_NEXT_ALARM = "next_alarm";
- public static final String DYNAMIC_TILE_IME_SELECTOR = "ime_selector";
- public static final String DYNAMIC_TILE_SU = "su";
- public static final String DYNAMIC_TILE_ADB = "adb";
- public static final String DYNAMIC_TILE_LIVE_DISPLAY = "live_display";
-
- protected static final ArrayList<String> STATIC_TILES_AVAILABLE = new ArrayList<String>();
- protected static final ArrayList<String> DYNAMIC_TILES_AVAILBLE = new ArrayList<String>();
- protected static final ArrayList<String> TILES_AVAILABLE = new ArrayList<String>();
-
- static {
- STATIC_TILES_AVAILABLE.add(TILE_WIFI);
- STATIC_TILES_AVAILABLE.add(TILE_BLUETOOTH);
- STATIC_TILES_AVAILABLE.add(TILE_CELLULAR);
- STATIC_TILES_AVAILABLE.add(TILE_AIRPLANE);
- STATIC_TILES_AVAILABLE.add(TILE_ROTATION);
- STATIC_TILES_AVAILABLE.add(TILE_FLASHLIGHT);
- STATIC_TILES_AVAILABLE.add(TILE_LOCATION);
- STATIC_TILES_AVAILABLE.add(TILE_EDIT);
- STATIC_TILES_AVAILABLE.add(TILE_CAST);
- STATIC_TILES_AVAILABLE.add(TILE_HOTSPOT);
- STATIC_TILES_AVAILABLE.add(TILE_INVERSION);
- STATIC_TILES_AVAILABLE.add(TILE_DND);
-// STATIC_TILES_AVAILABLE.add(TILE_NOTIFICATIONS);
-// STATIC_TILES_AVAILABLE.add(TILE_DATA);
-// STATIC_TILES_AVAILABLE.add(TILE_ROAMING);
-// STATIC_TILES_AVAILABLE.add(TILE_DDS);
-// STATIC_TILES_AVAILABLE.add(TILE_APN);
- STATIC_TILES_AVAILABLE.add(TILE_PROFILES);
- STATIC_TILES_AVAILABLE.add(TILE_PERFORMANCE);
- STATIC_TILES_AVAILABLE.add(TILE_ADB_NETWORK);
- STATIC_TILES_AVAILABLE.add(TILE_NFC);
- STATIC_TILES_AVAILABLE.add(TILE_COMPASS);
- STATIC_TILES_AVAILABLE.add(TILE_LOCKSCREEN);
-// STATIC_TILES_AVAILABLE.add(TILE_LTE);
-// STATIC_TILES_AVAILABLE.add(TILE_VISUALIZER);
- STATIC_TILES_AVAILABLE.add(TILE_VOLUME);
- STATIC_TILES_AVAILABLE.add(TILE_SCREEN_TIMEOUT);
- STATIC_TILES_AVAILABLE.add(TILE_USB_TETHER);
- STATIC_TILES_AVAILABLE.add(TILE_HEADS_UP);
- STATIC_TILES_AVAILABLE.add(TILE_AMBIENT_DISPLAY);
- STATIC_TILES_AVAILABLE.add(TILE_SYNC);
- STATIC_TILES_AVAILABLE.add(TILE_BATTERY_SAVER);
- STATIC_TILES_AVAILABLE.add(TILE_CAFFEINE);
-
- TILES_AVAILABLE.addAll(STATIC_TILES_AVAILABLE);
-
- DYNAMIC_TILES_AVAILBLE.add(DYNAMIC_TILE_ADB);
- DYNAMIC_TILES_AVAILBLE.add(DYNAMIC_TILE_IME_SELECTOR);
- DYNAMIC_TILES_AVAILBLE.add(DYNAMIC_TILE_NEXT_ALARM);
- DYNAMIC_TILES_AVAILBLE.add(DYNAMIC_TILE_SU);
- DYNAMIC_TILES_AVAILBLE.add(DYNAMIC_TILE_LIVE_DISPLAY);
- }
-}
diff --git a/sdk/src/java/org/lineageos/internal/util/QSUtils.java b/sdk/src/java/org/lineageos/internal/util/QSUtils.java
deleted file mode 100644
index d3a6f58a..00000000
--- a/sdk/src/java/org/lineageos/internal/util/QSUtils.java
+++ /dev/null
@@ -1,304 +0,0 @@
-/*
- * Copyright (C) 2015 The CyanogenMod Open Source 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
- */
-
-package org.lineageos.internal.util;
-
-import android.bluetooth.BluetoothAdapter;
-import android.content.ContentResolver;
-import android.content.Context;
-import android.content.pm.PackageManager;
-import android.content.pm.PackageManager.NameNotFoundException;
-import android.database.ContentObserver;
-import android.hardware.Sensor;
-import android.hardware.SensorManager;
-import android.hardware.camera2.CameraAccessException;
-import android.hardware.camera2.CameraCharacteristics;
-import android.hardware.camera2.CameraManager;
-import android.net.ConnectivityManager;
-import android.net.Uri;
-import android.os.Build;
-import android.os.Handler;
-import android.os.PowerManager;
-import android.os.UserHandle;
-import android.provider.Settings;
-import android.telephony.TelephonyManager;
-import android.text.TextUtils;
-import android.util.SparseArray;
-
-import com.android.internal.telephony.PhoneConstants;
-import lineageos.power.PerformanceManager;
-import lineageos.providers.LineageSettings;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Iterator;
-import java.util.List;
-import java.util.regex.Pattern;
-
-public class QSUtils {
- private static boolean sAvailableTilesFiltered;
- private static final SparseArray<Context> sSystemUiContextForUser = new SparseArray<>();
-
- public interface OnQSChanged {
- void onQSChanged();
- }
-
- private QSUtils() {}
-
- public static boolean isStaticQsTile(String tileSpec) {
- return QSConstants.STATIC_TILES_AVAILABLE.contains(tileSpec);
- }
-
- public static boolean isDynamicQsTile(String tileSpec) {
- return QSConstants.DYNAMIC_TILES_AVAILBLE.contains(tileSpec);
- }
-
- @SuppressWarnings("unchecked")
- public static List<String> getAvailableTiles(Context context) {
- filterTiles(context);
- return (List<String>) QSConstants.TILES_AVAILABLE.clone();
- }
-
- public static List<String> getDefaultTiles(Context context) {
- final List<String> tiles = new ArrayList<>();
- final String defaults = context.getString(
- org.lineageos.platform.internal.R.string.config_defaultQuickSettingsTiles);
- if (!TextUtils.isEmpty(defaults)) {
- final String[] array = TextUtils.split(defaults, Pattern.quote(","));
- for (String item : array) {
- if (TextUtils.isEmpty(item)) {
- continue;
- }
- tiles.add(item);
- }
- filterTiles(context, tiles);
- }
- return tiles;
- }
-
- public static String getDefaultTilesAsString(Context context) {
- List<String> list = getDefaultTiles(context);
- return TextUtils.join(",", list);
- }
-
- private static void filterTiles(Context context, List<String> tiles) {
- boolean deviceSupportsMobile = deviceSupportsMobileData(context);
-
- // Tiles that need conditional filtering
- Iterator<String> iterator = tiles.iterator();
- while (iterator.hasNext()) {
- String tileKey = iterator.next();
- boolean removeTile = false;
- switch (tileKey) {
- case QSConstants.TILE_CELLULAR:
- case QSConstants.TILE_HOTSPOT:
- case QSConstants.TILE_DATA:
- case QSConstants.TILE_ROAMING:
- case QSConstants.TILE_APN:
- removeTile = !deviceSupportsMobile;
- break;
- case QSConstants.TILE_DDS:
- removeTile = !deviceSupportsDdsSupported(context);
- break;
- case QSConstants.TILE_FLASHLIGHT:
- removeTile = !deviceSupportsFlashLight(context);
- break;
- case QSConstants.TILE_BLUETOOTH:
- removeTile = !deviceSupportsBluetooth();
- break;
- case QSConstants.TILE_NFC:
- removeTile = !deviceSupportsNfc(context);
- break;
- case QSConstants.TILE_COMPASS:
- removeTile = !deviceSupportsCompass(context);
- break;
- case QSConstants.TILE_AMBIENT_DISPLAY:
- removeTile = !deviceSupportsDoze(context);
- break;
- case QSConstants.TILE_PERFORMANCE:
- removeTile = !deviceSupportsPowerProfiles(context);
- break;
- case QSConstants.TILE_BATTERY_SAVER:
- removeTile = deviceSupportsPowerProfiles(context);
- break;
- }
- if (removeTile) {
- iterator.remove();
- }
- }
- }
-
- private static void filterTiles(Context context) {
- if (!sAvailableTilesFiltered) {
- filterTiles(context, QSConstants.TILES_AVAILABLE);
- sAvailableTilesFiltered = true;
- }
- }
-
- public static int getDynamicQSTileResIconId(Context context, int userId, String tileSpec) {
- Context ctx = getQSTileContext(context, userId);
- int index = translateDynamicQsTileSpecToIndex(ctx, tileSpec);
- if (index == -1) {
- return 0;
- }
-
- try {
- String resourceName = ctx.getResources().getStringArray(
- ctx.getResources().getIdentifier("dynamic_qs_tiles_icons_resources_ids",
- "array", ctx.getPackageName()))[index];
- return ctx.getResources().getIdentifier(
- resourceName, "drawable", ctx.getPackageName());
- } catch (Exception ex) {
- // Ignore
- }
- return 0;
- }
-
- public static String getDynamicQSTileLabel(Context context, int userId, String tileSpec) {
- Context ctx = getQSTileContext(context, userId);
- int index = translateDynamicQsTileSpecToIndex(ctx, tileSpec);
- if (index == -1) {
- return null;
- }
-
- try {
- return ctx.getResources().getStringArray(
- ctx.getResources().getIdentifier("dynamic_qs_tiles_labels",
- "array", ctx.getPackageName()))[index];
- } catch (Exception ex) {
- // Ignore
- }
- return null;
- }
-
- private static int translateDynamicQsTileSpecToIndex(Context context, String tileSpec) {
- String[] keys = context.getResources().getStringArray(context.getResources().getIdentifier(
- "dynamic_qs_tiles_values", "array", context.getPackageName()));
- int count = keys.length;
- for (int i = 0; i < count; i++) {
- if (keys[i].equals(tileSpec)) {
- return i;
- }
- }
- return -1;
- }
-
- public static Context getQSTileContext(Context context, int userId) {
- Context ctx = sSystemUiContextForUser.get(userId);
- if (ctx == null) {
- try {
- ctx = context.createPackageContextAsUser(
- "com.android.systemui", 0, new UserHandle(userId));
- sSystemUiContextForUser.put(userId, ctx);
- } catch (NameNotFoundException ex) {
- // We can safely ignore this
- }
- }
- return ctx;
- }
-
- public static boolean isQSTileEnabledForUser(
- Context context, String tileSpec, int userId) {
- final ContentResolver resolver = context.getContentResolver();
- String order = LineageSettings.Secure.getStringForUser(resolver,
- LineageSettings.Secure.QS_TILES, userId);
- return !TextUtils.isEmpty(order) && Arrays.asList(order.split(",")).contains(tileSpec);
- }
-
- public static ContentObserver registerObserverForQSChanges(Context ctx, final OnQSChanged cb) {
- ContentObserver observer = new ContentObserver(new Handler()) {
- @Override
- public void onChange(boolean selfChange, Uri uri) {
- cb.onQSChanged();
- }
- };
-
- ctx.getContentResolver().registerContentObserver(
- LineageSettings.Secure.getUriFor(LineageSettings.Secure.QS_TILES),
- false, observer, UserHandle.USER_ALL);
- return observer;
- }
-
- public static void unregisterObserverForQSChanges(Context ctx, ContentObserver observer) {
- ctx.getContentResolver().unregisterContentObserver(observer);
- }
-
- public static boolean deviceSupportsDdsSupported(Context context) {
- TelephonyManager tm = (TelephonyManager)
- context.getSystemService(Context.TELEPHONY_SERVICE);
- return tm.isMultiSimEnabled()
- && tm.getMultiSimConfiguration() == TelephonyManager.MultiSimVariants.DSDA;
- }
-
- public static boolean deviceSupportsMobileData(Context ctx) {
- ConnectivityManager cm = (ConnectivityManager) ctx.getSystemService(
- Context.CONNECTIVITY_SERVICE);
- return cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE);
- }
-
- public static boolean deviceSupportsBluetooth() {
- return BluetoothAdapter.getDefaultAdapter() != null;
- }
-
- public static boolean deviceSupportsNfc(Context context) {
- PackageManager packageManager = context.getPackageManager();
- return packageManager.hasSystemFeature(PackageManager.FEATURE_NFC);
- }
-
- public static boolean deviceSupportsFlashLight(Context context) {
- CameraManager cameraManager = (CameraManager) context.getSystemService(
- Context.CAMERA_SERVICE);
- try {
- String[] ids = cameraManager.getCameraIdList();
- for (String id : ids) {
- CameraCharacteristics c = cameraManager.getCameraCharacteristics(id);
- Boolean flashAvailable = c.get(CameraCharacteristics.FLASH_INFO_AVAILABLE);
- Integer lensFacing = c.get(CameraCharacteristics.LENS_FACING);
- if (flashAvailable != null
- && flashAvailable
- && lensFacing != null
- && lensFacing == CameraCharacteristics.LENS_FACING_BACK) {
- return true;
- }
- }
- } catch (CameraAccessException | AssertionError e) {
- // Ignore
- }
- return false;
- }
-
- public static boolean deviceSupportsCompass(Context context) {
- SensorManager sm = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
- return sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null
- && sm.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD) != null;
- }
-
- public static boolean deviceSupportsDoze(Context context) {
- String name = context.getResources().getString(
- com.android.internal.R.string.config_dozeComponent);
- return !TextUtils.isEmpty(name);
- }
-
-
- public static boolean deviceSupportsPowerProfiles(Context context) {
- PerformanceManager pm = PerformanceManager.getInstance(context);
- return pm.getNumberOfProfiles() > 0;
- }
-
- private static boolean supportsRootAccess() {
- return Build.IS_DEBUGGABLE || "eng".equals(Build.TYPE);
- }
-} \ No newline at end of file
diff --git a/tests/src/org/lineageos/tests/customtiles/DummySettings.java b/tests/src/org/lineageos/tests/customtiles/DummySettings.java
deleted file mode 100644
index 90333743..00000000
--- a/tests/src/org/lineageos/tests/customtiles/DummySettings.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.tests.customtiles;
-
-import android.os.Bundle;
-import android.preference.PreferenceActivity;
-
-/**
- * Created by Adnan on 4/29/15.
- */
-public class DummySettings extends PreferenceActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- }
-}
diff --git a/tests/src/org/lineageos/tests/customtiles/LineageStatusBarTest.java b/tests/src/org/lineageos/tests/customtiles/LineageStatusBarTest.java
deleted file mode 100644
index f904b025..00000000
--- a/tests/src/org/lineageos/tests/customtiles/LineageStatusBarTest.java
+++ /dev/null
@@ -1,363 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.tests.customtiles;
-
-import android.app.PendingIntent;
-import android.content.Intent;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.net.Uri;
-import android.os.Handler;
-
-import android.widget.RemoteViews;
-import lineageos.app.CustomTile;
-import lineageos.app.LineageStatusBarManager;
-
-import org.lineageos.tests.R;
-
-import org.lineageos.tests.TestActivity;
-
-import java.util.ArrayList;
-
-public class LineageStatusBarTest extends TestActivity {
-
- private static final int CUSTOM_TILE_ID = 1337;
- private static final int CUSTOM_TILE_SETTINGS_ID = 1336;
- private CustomTile mCustomTile;
- private LineageStatusBarManager mLineageStatusBarManager;
-
- Handler mHandler = new Handler();
-
- @Override
- protected String tag() {
- return null;
- }
-
- @Override
- protected Test[] tests() {
- mLineageStatusBarManager = LineageStatusBarManager.getInstance(this);
- return mTests;
- }
-
- private Test[] mTests = new Test[] {
- new Test("test publish tile") {
- public void run() {
- PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- mCustomTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setOnClickIntent(intent)
- .setContentDescription("Content description")
- .build();
- mLineageStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
- }
- },
-
- new Test("test publish tile with bitmap") {
- public void run() {
- int resourceInt = R.drawable.ic_whatshot_white_24dp;
- Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
- resourceInt);
- PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- mCustomTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test From SDK - remote icon")
- .setIcon(bitmap)
- .setOnClickIntent(intent)
- .shouldCollapsePanel(true)
- .setContentDescription("Content description")
- .build();
- mLineageStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
- }
- },
-
- new Test("test publish tile in 3 seconds") {
- public void run() {
- mHandler.postDelayed(new Runnable() {
- public void run() {
- PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- mCustomTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test 3 seconds")
- .setIcon(R.drawable.ic_launcher)
- .setOnClickIntent(intent)
- .shouldCollapsePanel(true)
- .setContentDescription("Content description")
- .build();
- mLineageStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
- }
- }, 3000);
- }
- },
-
- new Test("test update tile") {
- public void run() {
- if (mCustomTile != null) {
- mCustomTile.label = "Update From SDK";
- mLineageStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
- }
- }
- },
-
- new Test("test remove tile") {
- public void run() {
- mLineageStatusBarManager.removeTile(CUSTOM_TILE_ID);
- }
- },
-
- new Test("test remove tile in 3 seconds") {
- public void run() {
- mHandler.postDelayed(new Runnable() {
- public void run() {
- mLineageStatusBarManager.removeTile(CUSTOM_TILE_ID);
- }
- }, 3000);
- }
- },
-
- new Test("test publish tile with settings") {
- public void run() {
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test Settings From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
- DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
- .setContentDescription("Content description")
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
-
- new Test("test publish tile with long press") {
- public void run() {
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test Long press From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setOnLongClickIntent(PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- new Intent(LineageStatusBarTest.this,DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0))
- .setContentDescription("Content description")
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
-
- new Test("test publish tile with delete intent") {
- public void run() {
- Intent intent = new Intent(LineageStatusBarTest.this, DummySettings.class);
- PendingIntent pendingIntent =
- PendingIntent.getActivity(LineageStatusBarTest.this, 0, intent, 0);
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test Settings From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setDeleteIntent(pendingIntent)
- .setContentDescription("Content description")
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
-
- new Test("test publish tile with custom uri") {
- public void run() {
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setIcon(R.drawable.ic_launcher)
- .setOnClickUri(Uri.parse("http://tasker.dinglisch.net"))
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
-
- new Test("test publish tile with expanded list") {
- public void run() {
- PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- ArrayList<CustomTile.ExpandedListItem> expandedListItems =
- new ArrayList<CustomTile.ExpandedListItem>();
- for (int i = 0; i < 100; i++) {
- CustomTile.ExpandedListItem expandedListItem =
- new CustomTile.ExpandedListItem();
- expandedListItem.setExpandedListItemDrawable(R.drawable.ic_launcher);
- expandedListItem.setExpandedListItemTitle("Test: " + i);
- expandedListItem.setExpandedListItemSummary("Test item summary " + i);
- expandedListItem.setExpandedListItemOnClickIntent(intent);
- expandedListItems.add(expandedListItem);
- }
-
- CustomTile.ListExpandedStyle listExpandedStyle =
- new CustomTile.ListExpandedStyle();
- listExpandedStyle.setListItems(expandedListItems);
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test Expanded List Style From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setExpandedStyle(listExpandedStyle)
- .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
- DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
- .setContentDescription("Content description")
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
-
- new Test("test publish tile with expanded list with bitmaps") {
- public void run() {
- PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- ArrayList<CustomTile.ExpandedListItem> expandedListItems =
- new ArrayList<CustomTile.ExpandedListItem>();
- int resourceInt = R.drawable.ic_whatshot_white_24dp;
- Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
- resourceInt);
- for (int i = 0; i < 20; i++) {
- CustomTile.ExpandedListItem expandedListItem =
- new CustomTile.ExpandedListItem();
- expandedListItem.setExpandedListItemBitmap(bitmap);
- expandedListItem.setExpandedListItemTitle("Test: " + i);
- expandedListItem.setExpandedListItemSummary("Test item summary " + i);
- expandedListItem.setExpandedListItemOnClickIntent(intent);
- expandedListItems.add(expandedListItem);
- }
-
- CustomTile.ListExpandedStyle listExpandedStyle =
- new CustomTile.ListExpandedStyle();
- listExpandedStyle.setListItems(expandedListItems);
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test Expanded List Style From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setExpandedStyle(listExpandedStyle)
- .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
- DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
- .setContentDescription("Content description")
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
-
- new Test("test publish tile with expanded grid") {
- public void run() {
- PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- ArrayList<CustomTile.ExpandedGridItem> expandedGridItems =
- new ArrayList<CustomTile.ExpandedGridItem>();
- for (int i = 0; i < 8; i++) {
- CustomTile.ExpandedGridItem expandedGridItem =
- new CustomTile.ExpandedGridItem();
- expandedGridItem.setExpandedGridItemDrawable(R.drawable.ic_launcher);
- expandedGridItem.setExpandedGridItemTitle("Test: " + i);
- expandedGridItem.setExpandedGridItemOnClickIntent(intent);
- expandedGridItems.add(expandedGridItem);
- }
-
- CustomTile.GridExpandedStyle gridExpandedStyle =
- new CustomTile.GridExpandedStyle();
- gridExpandedStyle.setGridItems(expandedGridItems);
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test Expanded Grid Style From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setExpandedStyle(gridExpandedStyle)
- .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
- DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
- .setContentDescription("Content description")
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
-
- new Test("test publish tile with expanded grid with bitmaps") {
- public void run() {
- PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- ArrayList<CustomTile.ExpandedGridItem> expandedGridItems =
- new ArrayList<CustomTile.ExpandedGridItem>();
- int resourceInt = R.drawable.ic_whatshot_white_24dp;
- Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
- resourceInt);
- for (int i = 0; i < 8; i++) {
- CustomTile.ExpandedGridItem expandedGridItem =
- new CustomTile.ExpandedGridItem();
- expandedGridItem.setExpandedGridItemBitmap(bitmap);
- expandedGridItem.setExpandedGridItemTitle("Test: " + i);
- expandedGridItem.setExpandedGridItemOnClickIntent(intent);
- expandedGridItems.add(expandedGridItem);
- }
-
- CustomTile.GridExpandedStyle gridExpandedStyle =
- new CustomTile.GridExpandedStyle();
- gridExpandedStyle.setGridItems(expandedGridItems);
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test Expanded Grid Style From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setExpandedStyle(gridExpandedStyle)
- .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
- DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
- .setContentDescription("Content description")
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
-
- new Test("test publish tile with remote view") {
- public void run() {
- RemoteViews contentView = new RemoteViews(getPackageName(),
- R.layout.remote_view);
-
- Intent daneshIntent = new Intent(Intent.ACTION_VIEW)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
- .setData(Uri.parse("http://www.reddit.com/r/daneshsayings"));
- PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
- daneshIntent, 0);
- contentView.setOnClickPendingIntent(R.id.whats_hot_click, intent);
-
- CustomTile.RemoteExpandedStyle remoteExpandedStyle =
- new CustomTile.RemoteExpandedStyle();
- remoteExpandedStyle.setRemoteViews(contentView);
-
- CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
- .setLabel("Test Expanded Remote Style From SDK")
- .setIcon(R.drawable.ic_launcher)
- .setExpandedStyle(remoteExpandedStyle)
- .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
- DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
- .setContentDescription("Content description")
- .build();
- LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
- .publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
- }
- },
- };
-}
diff --git a/tests/src/org/lineageos/tests/customtiles/unit/CustomTileBuilderTest.java b/tests/src/org/lineageos/tests/customtiles/unit/CustomTileBuilderTest.java
deleted file mode 100644
index 73e13d06..00000000
--- a/tests/src/org/lineageos/tests/customtiles/unit/CustomTileBuilderTest.java
+++ /dev/null
@@ -1,258 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.tests.customtiles.unit;
-
-import android.app.PendingIntent;
-import android.content.Intent;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.net.Uri;
-import android.test.AndroidTestCase;
-import android.test.suitebuilder.annotation.MediumTest;
-import android.test.suitebuilder.annotation.SmallTest;
-import lineageos.app.LineageContextConstants;
-import lineageos.app.CustomTile;
-import org.lineageos.tests.R;
-import org.lineageos.tests.customtiles.LineageStatusBarTest;
-import org.lineageos.tests.customtiles.DummySettings;
-
-import java.util.ArrayList;
-
-/**
- * Created by adnan on 7/14/15.
- */
-public class CustomTileBuilderTest extends AndroidTestCase {
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- // Only run this if we support lineage status bar service
- org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- LineageContextConstants.Features.STATUSBAR));
- }
-
- @SmallTest
- public void testConstructor() {
- new CustomTile.Builder(mContext);
- }
-
- @SmallTest
- public void testCustomTileBuilderOnClickIntent() {
- Intent intent = new Intent(Intent.ACTION_DIAL);
- PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setOnClickIntent(pendingIntent)
- .build();
- assertNotNull(customTile.onClick);
- assertEquals(pendingIntent, customTile.onClick);
- }
-
- @SmallTest
- public void testCustomTileBuilderOnLongClickIntent() {
- Intent intent = new Intent(Intent.ACTION_DIAL);
- PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setOnLongClickIntent(pendingIntent)
- .build();
- assertNotNull(customTile.onLongClick);
- assertEquals(pendingIntent, customTile.onLongClick);
- }
-
- @SmallTest
- public void testCustomTileBuilderOnSettingsClickIntent() {
- Intent intent = new Intent(mContext, DummySettings.class);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setOnSettingsClickIntent(intent)
- .build();
- assertNotNull(customTile.onSettingsClick);
- assertEquals(intent, customTile.onSettingsClick);
- }
-
- @SmallTest
- public void testCustomTileBuilderDeleteIntent() {
- Intent intent = new Intent(mContext, DummySettings.class);
- PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setDeleteIntent(pendingIntent)
- .build();
- assertNotNull(customTile.deleteIntent);
- assertEquals(pendingIntent, customTile.deleteIntent);
- }
-
- @SmallTest
- public void testCustomTileBuilderOnClickUri() {
- //Calling Mike Jones, WHO!? MIKE JONES.
- Uri uri = Uri.parse("2813308004");
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setOnClickUri(uri)
- .build();
- assertNotNull(uri);
- assertEquals(uri, customTile.onClickUri);
- }
-
- @SmallTest
- public void testCustomTileBuilderLabel() {
- String message = "Test label";
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setLabel(message).build();
- assertNotNull(customTile);
- assertEquals(message, customTile.label);
- }
-
- @SmallTest
- public void testCustomTileBuilderLabelAsRes() {
- String message = mContext.getString(R.string.app_name);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setLabel(R.string.app_name).build();
- assertNotNull(customTile);
- assertEquals(message, customTile.label);
- }
-
- @SmallTest
- public void testCustomTileBuilderContentDescription() {
- String message = "Test content description";
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setContentDescription(message)
- .build();
- assertNotNull(customTile);
- assertEquals(message, customTile.contentDescription);
- }
-
- @SmallTest
- public void testCustomTileBuilderContentDescriptionAsRes() {
- String message = mContext.getString(R.string.app_name);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setContentDescription(R.string.app_name)
- .build();
- assertNotNull(customTile);
- assertEquals(message, customTile.contentDescription);
- }
-
- @SmallTest
- public void testCustomTileBuilderIconSet() {
- int resourceInt = R.drawable.ic_launcher;
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setIcon(resourceInt)
- .build();
- assertNotNull(customTile.icon);
- assertNotSame(customTile.icon, 0);
- assertEquals(resourceInt, customTile.icon);
- }
-
- @SmallTest
- public void testCustomTileBuilderRemoteIconSet() {
- int resourceInt = R.drawable.ic_whatshot_white_24dp;
- Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(),
- resourceInt);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setIcon(bitmap)
- .build();
- assertNotNull(customTile.remoteIcon);
- assertEquals(bitmap, customTile.remoteIcon);
- }
-
- @SmallTest
- public void testCustomTileBuilderCollapsePanelSet() {
- boolean collapsePanel = true;
- CustomTile customTile = new CustomTile.Builder(mContext)
- .shouldCollapsePanel(collapsePanel)
- .build();
- assertEquals(collapsePanel, customTile.collapsePanel);
- }
-
- @SmallTest
- public void testCustomTileBuilderSensitiveDataSet() {
- boolean sensitiveData = true;
- CustomTile customTile = new CustomTile.Builder(mContext)
- .hasSensitiveData(sensitiveData)
- .build();
- assertEquals(sensitiveData, customTile.sensitiveData);
- }
-
- @MediumTest
- public void testCustomTileBuilderExpandedListStyleSet() {
- PendingIntent intent = PendingIntent.getActivity(mContext, 0,
- new Intent(mContext, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- ArrayList<CustomTile.ExpandedListItem> expandedListItems =
- new ArrayList<CustomTile.ExpandedListItem>();
- for (int i = 0; i < 100; i++) {
- CustomTile.ExpandedListItem expandedListItem =
- new CustomTile.ExpandedListItem();
- expandedListItem.setExpandedListItemDrawable(R.drawable.ic_launcher);
- expandedListItem.setExpandedListItemTitle("Test: " + i);
- expandedListItem.setExpandedListItemSummary("Test item summary " + i);
- expandedListItem.setExpandedListItemOnClickIntent(intent);
- expandedListItems.add(expandedListItem);
- }
-
- CustomTile.ListExpandedStyle listExpandedStyle =
- new CustomTile.ListExpandedStyle();
- listExpandedStyle.setListItems(expandedListItems);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setExpandedStyle(listExpandedStyle)
- .build();
-
- assertNotNull(customTile.expandedStyle);
- assertEquals(listExpandedStyle, customTile.expandedStyle);
- assertNotNull(customTile.expandedStyle.getExpandedItems());
- for (int j = 0; j < 100; j++) {
- CustomTile.ExpandedItem itemExpected = expandedListItems.get(j);
- CustomTile.ExpandedItem itemReal = customTile.expandedStyle.getExpandedItems()[j];
- assertEquals(itemExpected.onClickPendingIntent, itemReal.onClickPendingIntent);
- assertEquals(itemExpected.itemDrawableResourceId, itemReal.itemDrawableResourceId);
- assertEquals(itemExpected.itemTitle, itemReal.itemTitle);
- assertEquals(itemExpected.itemSummary, itemReal.itemSummary);
- }
- }
-
- @MediumTest
- public void testCustomTileBuilderExpandedGridStyleSet() {
- PendingIntent intent = PendingIntent.getActivity(mContext, 0,
- new Intent(mContext, LineageStatusBarTest.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- ArrayList<CustomTile.ExpandedGridItem> expandedGridItems =
- new ArrayList<CustomTile.ExpandedGridItem>();
- for (int i = 0; i < 100; i++) {
- CustomTile.ExpandedGridItem expandedGridItem =
- new CustomTile.ExpandedGridItem();
- expandedGridItem.setExpandedGridItemDrawable(R.drawable.ic_launcher);
- expandedGridItem.setExpandedGridItemTitle("Test: " + i);
- expandedGridItem.setExpandedGridItemOnClickIntent(intent);
- expandedGridItems.add(expandedGridItem);
- }
-
- CustomTile.GridExpandedStyle gridExpandedStyle =
- new CustomTile.GridExpandedStyle();
- gridExpandedStyle.setGridItems(expandedGridItems);
- CustomTile customTile = new CustomTile.Builder(mContext)
- .setExpandedStyle(gridExpandedStyle)
- .build();
-
- assertNotNull(customTile.expandedStyle);
- assertEquals(gridExpandedStyle, customTile.expandedStyle);
- assertNotNull(customTile.expandedStyle.getExpandedItems());
- for (int j = 0; j < 100; j++) {
- CustomTile.ExpandedItem itemExpected = expandedGridItems.get(j);
- CustomTile.ExpandedItem itemReal = customTile.expandedStyle.getExpandedItems()[j];
- assertEquals(itemExpected.onClickPendingIntent, itemReal.onClickPendingIntent);
- assertEquals(itemExpected.itemDrawableResourceId, itemReal.itemDrawableResourceId);
- assertEquals(itemExpected.itemTitle, itemReal.itemTitle);
- assertEquals(itemExpected.itemSummary, itemReal.itemSummary);
- }
- }
-}
diff --git a/tests/src/org/lineageos/tests/customtiles/unit/CustomTileTest.java b/tests/src/org/lineageos/tests/customtiles/unit/CustomTileTest.java
deleted file mode 100644
index a6f91419..00000000
--- a/tests/src/org/lineageos/tests/customtiles/unit/CustomTileTest.java
+++ /dev/null
@@ -1,360 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.tests.customtiles.unit;
-
-import android.app.PendingIntent;
-import android.content.Intent;
-import android.net.Uri;
-import android.os.Parcel;
-import android.test.AndroidTestCase;
-
-import android.test.suitebuilder.annotation.MediumTest;
-import android.test.suitebuilder.annotation.SmallTest;
-import android.widget.RemoteViews;
-import lineageos.app.LineageContextConstants;
-import lineageos.app.CustomTile;
-
-import org.lineageos.tests.R;
-import org.lineageos.tests.customtiles.DummySettings;
-
-import java.util.ArrayList;
-
-/**
- * Created by adnan on 7/15/15.
- */
-public class CustomTileTest extends AndroidTestCase {
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- // Only run this if we support lineage status bar service
- org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- LineageContextConstants.Features.STATUSBAR));
- }
-
- @SmallTest
- public void testCustomTileOnClickIntentUnravelFromParcel() {
- Intent intent = new Intent(Intent.ACTION_DIAL);
- PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setOnClickIntent(pendingIntent)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.onClick);
- assertEquals(expectedCustomTile.onClick.getIntent().toString(),
- fromParcel.onClick.getIntent().toString());
- }
-
- @SmallTest
- public void testCustomTileOnLongiClickIntentUnravelFromParcel() {
- Intent intent = new Intent(Intent.ACTION_DIAL);
- PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setOnLongClickIntent(pendingIntent)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.onLongClick);
- assertEquals(expectedCustomTile.onLongClick.getIntent().toString(),
- fromParcel.onLongClick.getIntent().toString());
- }
-
- @SmallTest
- public void testCustomTileOnSettingsClickIntentUnravelFromParcel() {
- Intent intent = new Intent(mContext, DummySettings.class);
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setOnSettingsClickIntent(intent)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.onSettingsClick);
- assertEquals(expectedCustomTile.onSettingsClick.toString(),
- fromParcel.onSettingsClick.toString());
- }
-
- @SmallTest
- public void testCustomTileUriUnravelFromParcel() {
- //TASKER!
- Uri uri = Uri.parse("http://tasker.dinglisch.net");
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setOnClickUri(uri)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.onClickUri);
- assertEquals(expectedCustomTile.onClickUri, fromParcel.onClickUri);
- }
-
- @SmallTest
- public void testCustomTileLabelUnravelFromParcel() {
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setLabel("Test Text SDK")
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.label);
- assertEquals(expectedCustomTile.label, fromParcel.label);
- }
-
- @SmallTest
- public void testCustomTileContentDescriptionUnravelFromParcel() {
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setContentDescription("Test Context Description SDK")
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.contentDescription);
- assertEquals(expectedCustomTile.contentDescription, fromParcel.contentDescription);
- }
-
- @SmallTest
- public void testCustomTileIconUnravelFromParcel() {
- int resourceInt = R.drawable.ic_launcher;
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setIcon(resourceInt)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.icon);
- assertNotSame(fromParcel.icon, 0);
- assertEquals(expectedCustomTile.icon, fromParcel.icon);
- }
-
- @SmallTest
- public void testCustomTileCollapsePanelUnravelFromParcel() {
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .shouldCollapsePanel(true)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertEquals(expectedCustomTile.collapsePanel, fromParcel.collapsePanel);
- }
-
- @SmallTest
- public void testCustomTileSensitiveDataUnravelFromParcel() {
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .hasSensitiveData(true)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertEquals(expectedCustomTile.sensitiveData, fromParcel.sensitiveData);
- }
-
- @MediumTest
- public void testCustomTileExpandedListStyleUnravelFromParcel() {
- PendingIntent intent = PendingIntent.getActivity(mContext, 0,
- new Intent(mContext, DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- ArrayList<CustomTile.ExpandedListItem> expandedListItems =
- new ArrayList<CustomTile.ExpandedListItem>();
- for (int i = 0; i < 100; i++) {
- CustomTile.ExpandedListItem expandedListItem =
- new CustomTile.ExpandedListItem();
- expandedListItem.setExpandedListItemDrawable(R.drawable.ic_launcher);
- expandedListItem.setExpandedListItemTitle("Test: " + i);
- expandedListItem.setExpandedListItemSummary("Test item summary " + i);
- expandedListItem.setExpandedListItemOnClickIntent(intent);
- expandedListItems.add(expandedListItem);
- }
-
- CustomTile.ListExpandedStyle listExpandedStyle =
- new CustomTile.ListExpandedStyle();
- listExpandedStyle.setListItems(expandedListItems);
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setExpandedStyle(listExpandedStyle)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.expandedStyle);
- assertEquals(expectedCustomTile.expandedStyle.getStyle(),
- fromParcel.expandedStyle.getStyle());
- assertNotNull(fromParcel.expandedStyle.getExpandedItems());
- for (int j = 0; j < 100; j++) {
- CustomTile.ExpandedItem itemExpected = expandedListItems.get(j);
- CustomTile.ExpandedItem itemReal = fromParcel.expandedStyle.getExpandedItems()[j];
- assertEquals(itemExpected.onClickPendingIntent, itemReal.onClickPendingIntent);
- assertEquals(itemExpected.itemDrawableResourceId, itemReal.itemDrawableResourceId);
- assertEquals(itemExpected.itemTitle, itemReal.itemTitle);
- assertEquals(itemExpected.itemSummary, itemReal.itemSummary);
- }
- }
-
- @MediumTest
- public void testCustomTileExpandedGridStyleUnravelFromParcel() {
- PendingIntent intent = PendingIntent.getActivity(mContext, 0,
- new Intent(mContext, DummySettings.class)
- .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- ArrayList<CustomTile.ExpandedGridItem> expandedGridItems =
- new ArrayList<CustomTile.ExpandedGridItem>();
- for (int i = 0; i < 100; i++) {
- CustomTile.ExpandedGridItem expandedGridItem =
- new CustomTile.ExpandedGridItem();
- expandedGridItem.setExpandedGridItemDrawable(R.drawable.ic_launcher);
- expandedGridItem.setExpandedGridItemTitle("Test: " + i);
- expandedGridItem.setExpandedGridItemOnClickIntent(intent);
- expandedGridItems.add(expandedGridItem);
- }
-
- CustomTile.GridExpandedStyle gridExpandedStyle =
- new CustomTile.GridExpandedStyle();
- gridExpandedStyle.setGridItems(expandedGridItems);
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setExpandedStyle(gridExpandedStyle)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.expandedStyle);
- assertEquals(expectedCustomTile.expandedStyle.getStyle(),
- fromParcel.expandedStyle.getStyle());
- assertNotNull(fromParcel.expandedStyle.getExpandedItems());
- for (int j = 0; j < 100; j++) {
- CustomTile.ExpandedItem itemExpected = expandedGridItems.get(j);
- CustomTile.ExpandedItem itemReal = fromParcel.expandedStyle.getExpandedItems()[j];
- assertEquals(itemExpected.onClickPendingIntent, itemReal.onClickPendingIntent);
- assertEquals(itemExpected.itemDrawableResourceId, itemReal.itemDrawableResourceId);
- assertEquals(itemExpected.itemTitle, itemReal.itemTitle);
- assertEquals(itemExpected.itemSummary, itemReal.itemSummary);
- }
- }
-
- @MediumTest
- public void testCustomTileExpandedRemoteStyleUnravelFromParcel() {
- RemoteViews contentView = new RemoteViews(mContext.getPackageName(), R.layout.remote_view);
-
- CustomTile.RemoteExpandedStyle remoteExpandedStyle =
- new CustomTile.RemoteExpandedStyle();
- remoteExpandedStyle.setRemoteViews(contentView);
-
- CustomTile expectedCustomTile = new CustomTile.Builder(mContext)
- .setExpandedStyle(remoteExpandedStyle)
- .build();
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- expectedCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- CustomTile fromParcel = CustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel.expandedStyle);
- assertEquals(expectedCustomTile.expandedStyle.getStyle(),
- fromParcel.expandedStyle.getStyle());
- assertNotNull(fromParcel.expandedStyle.getContentViews());
- }
-}
diff --git a/tests/src/org/lineageos/tests/customtiles/unit/LineageStatusBarManagerTest.java b/tests/src/org/lineageos/tests/customtiles/unit/LineageStatusBarManagerTest.java
deleted file mode 100644
index cc027479..00000000
--- a/tests/src/org/lineageos/tests/customtiles/unit/LineageStatusBarManagerTest.java
+++ /dev/null
@@ -1,225 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.tests.customtiles.unit;
-
-import android.app.PendingIntent;
-import android.content.ComponentName;
-import android.content.Intent;
-import android.os.Binder;
-import android.os.IBinder;
-import android.os.RemoteException;
-import android.os.UserHandle;
-import android.test.AndroidTestCase;
-import android.test.suitebuilder.annotation.MediumTest;
-import android.test.suitebuilder.annotation.SmallTest;
-
-import android.text.TextUtils;
-import android.util.Log;
-
-import lineageos.app.LineageContextConstants;
-import lineageos.app.LineageStatusBarManager;
-import lineageos.app.CustomTile;
-import lineageos.app.CustomTileListenerService;
-import lineageos.app.ILineageStatusBarManager;
-import org.lineageos.tests.R;
-
-import java.util.concurrent.CountDownLatch;
-
-public class LineageStatusBarManagerTest extends AndroidTestCase {
- private static final String TAG = LineageStatusBarManagerTest.class.getSimpleName();
- private static final int COUNTDOWN = 1;
- private LineageStatusBarManager mLineageStatusBarManager;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- // Only run this if we support lineage status bar service
- org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- LineageContextConstants.Features.STATUSBAR));
- mLineageStatusBarManager = LineageStatusBarManager.getInstance(mContext);
- }
-
- @SmallTest
- public void testManagerExists() {
- assertNotNull(mLineageStatusBarManager);
- }
-
- @SmallTest
- public void testManagerServiceIsAvailable() {
- ILineageStatusBarManager ilineageHardwareManagerService = mLineageStatusBarManager.getService();
- assertNotNull(ilineageHardwareManagerService);
- }
-
- @MediumTest
- public void testCustomTileListenerServiceRegisterAndUnregisterAsSystemService() {
- CustomTileListenerService customTileListenerService = new CustomTileListenerService();
- registerCustomTileListenerService(customTileListenerService);
- unregisterCustomTileListenerService(customTileListenerService);
- }
-
- @MediumTest
- public void testCustomTileListenerServiceOnListenerConnected() {
- final CountDownLatch signal = new CountDownLatch(COUNTDOWN);
- CustomTileListenerService customTileListenerService =
- new CustomTileListenerService() {
- @Override
- public IBinder onBind(Intent intent) {
- Log.d(TAG, "Bound");
- signal.countDown();
- return super.onBind(intent);
- }
- @Override
- public void onListenerConnected() {
- Log.d(TAG, "Connected");
- super.onListenerConnected();
- signal.countDown();
- }
- };
-
- registerCustomTileListenerService(customTileListenerService);
-
- // Lock
- try {
- signal.await();
- } catch (InterruptedException e) {
- throw new AssertionError(e);
- }
-
- unregisterCustomTileListenerService(customTileListenerService);
- }
-
- @MediumTest
- public void testCustomTileListenerServiceOnCustomTilePosted() {
- final CustomTile expectedCustomTile = createSampleCustomTile();
- final UserHandle expectedUserHandle = new UserHandle(UserHandle.myUserId());
-
- final CountDownLatch signal = new CountDownLatch(COUNTDOWN);
- CustomTileListenerService customTileListenerService =
- new CustomTileListenerService() {
- @Override
- public void onListenerConnected() {
- super.onListenerConnected();
- Log.d(TAG, "Connected");
- // publish
- mLineageStatusBarManager.publishTileAsUser(null, 1337, expectedCustomTile,
- expectedUserHandle);
- }
-
- @Override
- public void onCustomTilePosted(lineageos.app.StatusBarPanelCustomTile sbc) {
- super.onCustomTilePosted(sbc);
- Log.d(TAG, "Posted " + sbc.getCustomTile());
- if (TextUtils.equals(expectedCustomTile.label, sbc.getCustomTile().label)) {
- signal.countDown();
- }
- }
- };
-
- registerCustomTileListenerService(customTileListenerService);
-
- // Lock
- try {
- signal.await();
- } catch (InterruptedException e) {
- throw new AssertionError(e);
- }
-
- mLineageStatusBarManager.removeTileAsUser(null, 1337, expectedUserHandle);
-
- unregisterCustomTileListenerService(customTileListenerService);
- }
-
- @MediumTest
- public void testCustomTileListenerServiceOnCustomTileRemoved() {
- final CustomTile expectedCustomTile = createSampleCustomTile();
-
- final CountDownLatch signal = new CountDownLatch(COUNTDOWN);
- CustomTileListenerService customTileListenerService =
- new CustomTileListenerService() {
- @Override
- public void onListenerConnected() {
- super.onListenerConnected();
- Log.d(TAG, "Connected");
- // publish as user
- mLineageStatusBarManager.publishTile(1338, expectedCustomTile);
- }
-
- @Override
- public void onCustomTilePosted(lineageos.app.StatusBarPanelCustomTile sbc) {
- super.onCustomTilePosted(sbc);
- Log.d(TAG, "Posted " + sbc.getCustomTile());
- if (TextUtils.equals(expectedCustomTile.label, sbc.getCustomTile().label)) {
- removeCustomTile(mContext.getPackageName(), null, 1338);
- }
- }
-
- @Override
- public void onCustomTileRemoved(lineageos.app.StatusBarPanelCustomTile sbc) {
- super.onCustomTileRemoved(sbc);
- Log.d(TAG, "Removed " + sbc.getCustomTile());
- if (TextUtils.equals(expectedCustomTile.label, sbc.getCustomTile().label)) {
- signal.countDown();
- }
- }
- };
-
- registerCustomTileListenerService(customTileListenerService);
-
- // Lock
- try {
- signal.await();
- } catch (InterruptedException e) {
- throw new AssertionError(e);
- }
-
- unregisterCustomTileListenerService(customTileListenerService);
- }
-
- private CustomTile createSampleCustomTile() {
- Intent intent = new Intent(Intent.ACTION_DIAL);
- PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);
- return new CustomTile.Builder(mContext)
- .setLabel("YOLO")
- .setIcon(R.drawable.ic_launcher)
- .setOnClickIntent(pendingIntent)
- .build();
- }
-
- private void registerCustomTileListenerService(
- CustomTileListenerService customTileListenerService) {
- try {
- Log.d(TAG, "Registering " + customTileListenerService
- + " custom tile listener service");
- customTileListenerService.registerAsSystemService(mContext,
- new ComponentName(mContext.getPackageName(),
- LineageStatusBarManagerTest.this.getClass().getCanonicalName()),
- UserHandle.USER_ALL);
- } catch (RemoteException e) {
- throw new AssertionError(e);
- }
- }
-
- private void unregisterCustomTileListenerService(CustomTileListenerService customTileListenerService) {
- try {
- Log.d(TAG, "Unregistering " + customTileListenerService
- + " custom tile listener service");
- customTileListenerService.unregisterAsSystemService();
- } catch (RemoteException e) {
- throw new AssertionError(e);
- }
- }
-}
diff --git a/tests/src/org/lineageos/tests/customtiles/unit/StatusBarPanelCustomTileTest.java b/tests/src/org/lineageos/tests/customtiles/unit/StatusBarPanelCustomTileTest.java
deleted file mode 100644
index 3dcc7e2a..00000000
--- a/tests/src/org/lineageos/tests/customtiles/unit/StatusBarPanelCustomTileTest.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/**
- * 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.
- */
-
-package org.lineageos.tests.customtiles.unit;
-
-import android.app.PendingIntent;
-import android.content.Intent;
-import android.net.Uri;
-import android.os.Binder;
-import android.os.Parcel;
-import android.os.UserHandle;
-import android.test.AndroidTestCase;
-import android.test.suitebuilder.annotation.MediumTest;
-import android.test.suitebuilder.annotation.SmallTest;
-import lineageos.app.LineageContextConstants;
-import lineageos.app.CustomTile;
-import lineageos.app.StatusBarPanelCustomTile;
-import org.lineageos.tests.R;
-import org.lineageos.tests.customtiles.DummySettings;
-
-import java.util.ArrayList;
-
-/**
- * Created by adnan on 7/15/15.
- */
-public class StatusBarPanelCustomTileTest extends AndroidTestCase {
- @Override
- protected void setUp() throws Exception {
- super.setUp();
- // Only run this if we support lineage status bar service
- org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- LineageContextConstants.Features.STATUSBAR));
- }
-
- @SmallTest
- public void testUnravelFromParcel() {
- String expectedPackage = "expectedPackage";
- String expectedOpresPackage = "resPackage";
- String expectedOpPackage = "opPackage";
- int expectedId = 1337;
- String expectedTag = "TAG";
- int expectedUid = mContext.getUserId();
- int expectedPid = Binder.getCallingPid();
- CustomTile expectedCustomTile = createSampleCustomTile();
- UserHandle expectedUserHandle = new UserHandle(mContext.getUserId());
- long expectedPostTime = System.currentTimeMillis();
-
- // public StatusBarPanelCustomTile(String pkg, String resPkg, String opPkg,
- // int id, String tag, int uid, int initialPid, CustomTile customTile, UserHandle user,
- // long postTime)
- StatusBarPanelCustomTile statusBarPanelCustomTile =
- new StatusBarPanelCustomTile(expectedPackage, expectedOpresPackage,
- expectedOpPackage, expectedId, expectedTag, expectedUid, expectedPid,
- expectedCustomTile, expectedUserHandle, expectedPostTime);
-
- // Write to parcel
- Parcel parcel = Parcel.obtain();
- statusBarPanelCustomTile.writeToParcel(parcel, 0);
-
- // Rewind
- parcel.setDataPosition(0);
-
- // Verify data when unraveling
- StatusBarPanelCustomTile fromParcel
- = StatusBarPanelCustomTile.CREATOR.createFromParcel(parcel);
-
- assertNotNull(fromParcel);
- assertEquals(expectedPackage, fromParcel.getPackage());
- assertEquals(expectedPostTime, fromParcel.getPostTime());
- assertEquals(expectedOpresPackage, fromParcel.getResPkg());
- assertEquals(expectedOpPackage, fromParcel.getOpPkg());
- assertEquals(expectedId, fromParcel.getId());
- assertNotNull(fromParcel.getKey());
- assertEquals(expectedTag, fromParcel.getTag());
- assertEquals(expectedUid, fromParcel.getUid());
- assertEquals(expectedPid, fromParcel.getInitialPid());
- //CustomTile validation is excessive
- assertEquals(expectedUserHandle.getIdentifier(), fromParcel.getUser().getIdentifier());
- assertEquals(expectedUserHandle.getIdentifier(), fromParcel.getUserId());
- }
-
- @SmallTest
- public void testDefaultConstructor() {
- String expectedPackage = "expectedPackage";
- String expectedOpresPackage = "resPackage";
- String expectedOpPackage = "opPackage";
- int expectedId = 1337;
- String expectedTag = "TAG";
- int expectedUid = mContext.getUserId();
- int expectedPid = Binder.getCallingPid();
- CustomTile expectedCustomTile = createSampleCustomTile();
- UserHandle expectedUserHandle = new UserHandle(mContext.getUserId());
-
- // public StatusBarPanelCustomTile(String pkg, String resPkg, String opPkg,
- // int id, String tag, int uid, int initialPid, CustomTile customTile, UserHandle user)
- StatusBarPanelCustomTile statusBarPanelCustomTile =
- new StatusBarPanelCustomTile(expectedPackage, expectedOpresPackage,
- expectedOpPackage, expectedId, expectedTag, expectedUid, expectedPid,
- expectedCustomTile, expectedUserHandle);
-
- assertNotNull(statusBarPanelCustomTile);
- assertEquals(expectedPackage, statusBarPanelCustomTile.getPackage());
- assertEquals(expectedOpresPackage, statusBarPanelCustomTile.getResPkg());
- assertEquals(expectedOpPackage, statusBarPanelCustomTile.getOpPkg());
- assertEquals(expectedId, statusBarPanelCustomTile.getId());
- assertNotNull(statusBarPanelCustomTile.getKey());
- assertEquals(expectedTag, statusBarPanelCustomTile.getTag());
- assertEquals(expectedUid, statusBarPanelCustomTile.getUid());
- assertEquals(expectedPid, statusBarPanelCustomTile.getInitialPid());
- //CustomTile validation is excessive
- assertEquals(expectedUserHandle.getIdentifier(),
- statusBarPanelCustomTile.getUser().getIdentifier());
- assertEquals(expectedUserHandle.getIdentifier(),
- statusBarPanelCustomTile.getUserId());
- }
-
- private CustomTile createSampleCustomTile() {
- Intent intent = new Intent(Intent.ACTION_DIAL);
- PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0);
- return new CustomTile.Builder(mContext)
- .setOnClickIntent(pendingIntent)
- .build();
- }
-}