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

Commit adeea456 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Abhisek Devkota
Browse files

If the device has FRP, prompt the user to set up a lockscreen

FRP is kind of pointless if the device is freely accessible. Suggest
setting up a secure lockscreen during setup.

RM-290

Change-Id: Ia807142ab08f388d533b5ee45d1fcbe81071f6d1
(cherry picked from commit 8331602e)
parent 7c4b9372
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2015 The CyanogenMod Project

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

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

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

    <include layout="@layout/header" />

    <FrameLayout android:id="@+id/page"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <ScrollView android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fillViewport="true">

            <LinearLayout
                android:orientation="vertical"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                style="@style/PageContent">

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    style="@style/PageSummaryText"
                    android:textSize="16sp"
                    android:paddingLeft="@dimen/content_margin_left"
                    android:layout_marginBottom="@dimen/summary_margin_bottom"
                    android:paddingRight="@dimen/location_text_margin_right"
                    android:text="@string/lockscreen_setup_summary" />

                <TextView
                    android:id="@+id/setup_lockscreen"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:paddingLeft="@dimen/content_margin_left"
                    android:paddingRight="@dimen/location_text_margin_right"
                    android:gravity="center_vertical"
                    android:textSize="16sp"
                    android:textAllCaps="true"
                    android:textColor="@color/accent"
                    android:text="@string/lockscreen_setup_screen_lock_setup"/>

            </LinearLayout>
        </ScrollView>
    </FrameLayout>
</LinearLayout>
+5 −0
Original line number Diff line number Diff line
@@ -78,5 +78,10 @@
  <string name="fingerprint_setup_add_fingerprint">Voeg jou vingerafdruk by</string>
  <string name="fingerprint_setup_screen_lock_setup">Stel skerm sluit op</string>
  <string name="sim_locale_changed">%1$s SIM opgespoor</string>

  <!-- secure lock screen -->
  <string name="lockscreen_setup_title">Beskerm jou foon</string>
  <string name="lockscreen_setup_summary"><b>Beskerm die toestel</b>" en vereis 'n PIN, patroon of wagwoord om skerm te ontsluit"</string>
  <string name="lockscreen_setup_screen_lock_setup">Stel PIN, patroon of wagwoord op</string>
  <!-- MOD stuff -->
</resources>
+5 −0
Original line number Diff line number Diff line
@@ -78,5 +78,10 @@
  <string name="fingerprint_setup_add_fingerprint">أضف بصمتك</string>
  <string name="fingerprint_setup_screen_lock_setup">إنشاء إقفال الشاشة</string>
  <string name="sim_locale_changed">تم اكتشاف %1$s SIM</string>

  <!-- secure lock screen -->
  <string name="lockscreen_setup_title">حماية هاتفك</string>
  <string name="lockscreen_setup_summary"><b>حماية هذا الجهاز</b> وطلب رقم تعريف شخصي أو نمط أو كلمة مرور لإلغاء قفل الشاشة.</string>
  <string name="lockscreen_setup_screen_lock_setup">إعداد رقم تعريف شخصي أو نمط أو كلمة مرور</string>
  <!-- MOD stuff -->
</resources>
+5 −0
Original line number Diff line number Diff line
@@ -79,6 +79,11 @@
  <string name="fingerprint_setup_add_fingerprint">Добавете вашият пръстов отпечатък</string>
  <string name="fingerprint_setup_screen_lock_setup">Настройка на екрана за заключване</string>
  <string name="sim_locale_changed">Намерена %1$s СИМ карта</string>

  <!-- secure lock screen -->
  <string name="lockscreen_setup_title">Защитете телефона си</string>
  <string name="lockscreen_setup_summary"><b>Защитете у-вото</b> и изисквайте ПИН код, фигура или парола за отключване на екрана</string>
  <string name="lockscreen_setup_screen_lock_setup">Настройване на ПИН код, фигура или парола</string>
  <!-- MOD stuff -->
  <string name="mod_welcome">Вашето устройство е готово за модификация</string>
  <string name="mod_description">Модулите ще направят в телефона по-бърз, по-умен и лесен за употреба. В това ръководство можете да откриете нови модове, да научите какво те правят и как да ги активирате и деактивирате.</string>
+5 −0
Original line number Diff line number Diff line
@@ -79,6 +79,11 @@
  <string name="fingerprint_setup_add_fingerprint">Afegeix la teva empremta digital</string>
  <string name="fingerprint_setup_screen_lock_setup">Configuració del bloqueig de pantalla</string>
  <string name="sim_locale_changed">%1$s SIM detectada</string>

  <!-- secure lock screen -->
  <string name="lockscreen_setup_title">Protegeix el teu telèfon</string>
  <string name="lockscreen_setup_summary"><b>Protegeix el dispositiu</b> i estableix un PIN, un patró o una contrasenya per desbloquejar la pantalla</string>
  <string name="lockscreen_setup_screen_lock_setup">Configura el PIN, el patró o la contrasenya</string>
  <!-- MOD stuff -->
  <string name="mod_welcome">El teu dispositiu està llest pel MOD</string>
  <string name="mod_description">Els Mods fan el teu telèfon més ràpid, i més fàcil d\'utilitzar. En aquesta guia, pots descobrir nous mods, aprendre què fan, i habilitar-los o deshabilitar-los.</string>
Loading