2017-01-24 06:19:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-02-02 10:06:13 +00:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-12-27 09:28:06 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-02-02 10:06:13 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-01-24 18:16:36 +00:00
|
|
|
android:id="@+id/su_popup"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_gravity="center"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:background="?attr/colorBackgroundFloating"
|
|
|
|
android:minWidth="350dp"
|
2017-12-03 07:15:00 +00:00
|
|
|
android:orientation="vertical"
|
2019-02-02 10:06:13 +00:00
|
|
|
tools:context=".SuRequestActivity">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<TextView
|
2019-02-02 10:06:13 +00:00
|
|
|
android:id="@+id/request_title"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="20dp"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:text="@string/su_request_title"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge" />
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:layout_gravity="center_horizontal"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:orientation="horizontal"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:paddingStart="10dp"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:paddingEnd="10dp">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/app_icon"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="50dp"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_marginStart="5dp"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_weight="0" />
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:layout_gravity="center_vertical"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_weight="1"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<TextView
|
2019-02-02 10:06:13 +00:00
|
|
|
android:id="@+id/app_name"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:ellipsize="end"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:maxWidth="300dp"
|
|
|
|
android:maxLines="1"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:minWidth="200dp"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:textColor="?android:textColorPrimary" />
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<TextView
|
2019-02-02 10:06:13 +00:00
|
|
|
android:id="@+id/package_name"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:ellipsize="end"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:maxWidth="300dp"
|
|
|
|
android:maxLines="1"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:minWidth="200dp"
|
|
|
|
android:textColor="?android:textColorSecondary" />
|
2017-01-24 06:19:28 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<Spinner
|
2019-02-02 10:06:13 +00:00
|
|
|
android:id="@+id/timeout"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/warning"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_margin="5dp"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:drawablePadding="10dp"
|
|
|
|
android:text="@string/su_warning"
|
|
|
|
android:textColor="?android:textColorSecondary" />
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
style="?android:buttonBarStyle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="bottom"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:orientation="horizontal"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:paddingLeft="30dp"
|
|
|
|
android:paddingRight="30dp">
|
|
|
|
|
|
|
|
<Button
|
2019-02-02 10:06:13 +00:00
|
|
|
android:id="@+id/deny_btn"
|
2017-01-24 06:19:28 +00:00
|
|
|
style="?android:buttonBarButtonStyle"
|
2018-01-11 17:53:49 +00:00
|
|
|
android:layout_width="0dp"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2019-02-02 10:06:13 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="@string/deny_with_str" />
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<Button
|
2018-01-11 17:53:49 +00:00
|
|
|
android:id="@+id/grant_btn"
|
2017-01-24 06:19:28 +00:00
|
|
|
style="?android:buttonBarButtonStyle"
|
2018-01-11 17:53:49 +00:00
|
|
|
android:layout_width="0dp"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-01-11 17:53:49 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="@string/grant" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/fingerprint"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:padding="7dp"
|
|
|
|
android:tint="?attr/colorAccent"
|
2018-12-27 09:28:06 +00:00
|
|
|
app:srcCompat="@drawable/ic_fingerprint" />
|
2017-01-24 06:19:28 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|