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

Commit fe4bf10f authored by Nate Myren's avatar Nate Myren
Browse files

Remove Permission Dashboard

Remove all usage-related code and strings from the PermissionController

Fixes: 144366057
Test: Navigate to permissioncontroller after enabling permissions hub
via ADB, verify no permission hub shows, and permissios still work as
expected

Change-Id: I528add0bab122c06159af7997dd42fd4092382a6
parent a9ac94bd
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -102,7 +102,6 @@
                <action android:name="android.intent.action.MANAGE_APP_PERMISSION" />
                <action android:name="android.intent.action.MANAGE_PERMISSION_APPS" />
                <action android:name="android.intent.action.MANAGE_PERMISSIONS" />
                <action android:name="android.intent.action.REVIEW_PERMISSION_USAGE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
@@ -120,7 +119,6 @@
                  android:theme="@android:style/Theme.NoDisplay">
            <intent-filter android:priority="1">
                <action android:name="com.android.permissioncontroller.settingssearch.action.MANAGE_PERMISSION_APPS" />
                <action android:name="com.android.permissioncontroller.settingssearch.action.REVIEW_PERMISSION_USAGE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
@@ -149,17 +147,6 @@
                  android:excludeFromRecents="true"
                  android:theme="@style/PermissionDialog" />

        <activity android:name="com.android.permissioncontroller.permission.ui.ReviewOngoingUsageActivity"
                  android:excludeFromRecents="true"
                  android:theme="@style/PermissionDialog"
                  android:launchMode="singleInstance"
                  android:permission="android.permission.GRANT_RUNTIME_PERMISSIONS" >
            <intent-filter android:priority="1">
                <action android:name="android.intent.action.REVIEW_ONGOING_PERMISSION_USAGE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity android:name="com.android.permissioncontroller.permission.ui.ReviewAccessibilityServicesActivity"
                  android:excludeFromRecents="true"
                  android:theme="@style/PermissionDialog"
+0 −6
Original line number Diff line number Diff line
@@ -121,12 +121,6 @@
                    android:id="@+id/divider"
                    style="@style/AppPermissionFooterDivider"/>

                <TextView
                    android:id="@+id/usage_summary"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    style="@style/AppPermissionFooterText"/>

                <TextView
                    android:id="@+id/footer_link_1"
                    android:layout_width="wrap_content"
+0 −40
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2019 The Android 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.
-->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            style="@style/PermissionUsageDialogContainerScrollView">

    <LinearLayout
        android:id="@+id/dialog_container"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        style="@style/PermissionUsageDialogContainerLayout">

        <TextView
            android:id="@+id/title"
            style="@style/PermissionUsageDialogTitle"/>

        <LinearLayout
            android:id="@+id/items_container"
            style="@style/PermissionUsageDialogItemsContainer"/>

    </LinearLayout>

</ScrollView>
+0 −38
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2019 The Android 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.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/PermissionUsageDialogItemContainer">

    <FrameLayout
        style="@style/PermissionUsageDialogItemIconFrame">

        <ImageView
            android:id="@+id/app_icon"
            style="@style/PermissionUsageDialogItemIcon"/>

    </FrameLayout>

    <TextView
        android:id="@+id/app_name"
        style="@style/PermissionUsageDialogItemAppName"/>

    <LinearLayout
        android:id="@+id/icons"
        style="@style/PermissionUsageDialogItemIconsContainer"/>

</LinearLayout>
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@

            <!-- START HELP LINKS -->
            <item type="string" name="help_app_permissions" />
            <item type="string" name="help_permission_usage" />
            <!-- END HELP LINKS -->

            <!-- START PERMISSION GRANT DIALOG -->
Loading