2017-01-24 06:19:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
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
|
|
|
tools:context=".superuser.RequestActivity"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:minWidth="350dp"
|
|
|
|
android:layout_gravity="center"
|
2017-12-03 07:15:00 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="?attr/colorBackgroundFloating">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:text="@string/su_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"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
|
|
android:id="@+id/request_title"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:layout_marginBottom="5dp"/>
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
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"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
android:layout_gravity="center_horizontal">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/app_icon"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_weight="0"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_gravity="center_vertical" />
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="wrap_content"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_height="wrap_content"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:gravity="center_vertical"
|
2017-01-24 17:01:12 +00:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_gravity="center_vertical">
|
2017-01-24 06:19:28 +00:00
|
|
|
|
|
|
|
<TextView
|
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:minWidth="200dp"
|
|
|
|
android:maxWidth="300dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
android:id="@+id/app_name" />
|
|
|
|
|
|
|
|
<TextView
|
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:minWidth="200dp"
|
|
|
|
android:maxWidth="300dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:id="@+id/package_name" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<Spinner
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/timeout"
|
|
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/warning"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-07 08:31:00 +00:00
|
|
|
android:drawableStart="@drawable/ic_warning"
|
2017-01-24 06:19:28 +00:00
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:text="@string/su_warning"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:layout_margin="5dp"
|
|
|
|
android:drawablePadding="10dp" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
style="?android:buttonBarStyle"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="bottom"
|
|
|
|
android:paddingLeft="30dp"
|
|
|
|
android:paddingRight="30dp">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
style="?android:buttonBarButtonStyle"
|
2017-01-27 22:13:07 +00:00
|
|
|
android:text="@string/deny_with_str"
|
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"
|
|
|
|
android:id="@+id/deny_btn"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<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"
|
|
|
|
android:src="@drawable/ic_fingerprint" />
|
2017-01-24 06:19:28 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|