Add ramdisk detection

This commit is contained in:
topjohnwu 2020-02-10 01:56:34 -08:00
parent d51d549a28
commit 3b8d2fe8b7
16 changed files with 25 additions and 34 deletions

View File

@ -15,6 +15,8 @@
<import type="com.topjohnwu.magisk.model.events.RebootEvent" />
<import type="com.topjohnwu.magisk.core.Info" />
<variable
name="viewModel"
type="com.topjohnwu.magisk.ui.home.HomeViewModel" />
@ -214,7 +216,7 @@
<androidx.appcompat.widget.AppCompatTextView
style="@style/W.Home.ItemContent"
android:text="@string/home_device_build_style" />
android:text="A/B" />
<androidx.appcompat.widget.AppCompatTextView
style="@style/W.Home.ItemContent.Right"
@ -225,13 +227,13 @@
<LinearLayout
android:id="@+id/home_device_details_sar"
style="@style/W.Home.Item.Bottom"
style="@style/W.Home.Item"
app:layout_constraintStart_toStartOf="@+id/home_device_details_ab"
app:layout_constraintTop_toBottomOf="@+id/home_device_details_ab">
<androidx.appcompat.widget.AppCompatTextView
style="@style/W.Home.ItemContent"
android:text="@string/home_device_build_type" />
android:text="SAR" />
<androidx.appcompat.widget.AppCompatTextView
style="@style/W.Home.ItemContent.Right"
@ -240,6 +242,23 @@
</LinearLayout>
<LinearLayout
android:id="@+id/home_device_details_recovery"
style="@style/W.Home.Item.Bottom"
app:layout_constraintStart_toStartOf="@+id/home_device_details_sar"
app:layout_constraintTop_toBottomOf="@+id/home_device_details_sar">
<androidx.appcompat.widget.AppCompatTextView
style="@style/W.Home.ItemContent"
android:text="Ramdisk" />
<androidx.appcompat.widget.AppCompatTextView
style="@style/W.Home.ItemContent.Right"
android:text="@{Info.recovery ? @string/no : @string/yes }"
tools:text="Yes" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>

View File

@ -24,8 +24,6 @@
<string name="home_support_content">Magisk és, i sempre serà, gratis i codi lliure. De totes maneres, pot mostrar el seu interès fent una petita donació.</string>
<string name="home_device_system">Sistema</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Paquet</string>

View File

@ -26,9 +26,7 @@
<string name="home_device_extra_model">Modelo:</string>
<string name="home_device_extra_board">Placa:</string>
<string name="home_device_system">Sistema:</string>
<string name="home_device_build_style">A/B:</string>
<string name="home_device_build_type">SAR:</string>
<string name="home_package">Paquete</string>
<string name="home_package">Paquete</string>
<string name="home_status_normal">Normal</string>
<string name="details">Detalles</string>
<string name="invalid_update_channel">Canal de actualización inválido</string>

View File

@ -23,8 +23,6 @@
<string name="home_support_content">Magisk est, et sera toujours, libre et opensource. Vous pouvez cependant nous témoigner de votre soutien en envoyant un petit don.</string>
<string name="home_device_system">Système</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Paquet</string>

View File

@ -24,8 +24,6 @@
<string name="home_support_content">Magisk è e sempre sarà gratuto ed open source. Puoi comunque mostrarci il tuo appezzamento inviando una piccola donazione.</string>
<string name="home_device_system">Sistema</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Pacchetto</string>

View File

@ -24,8 +24,6 @@
<string name="home_support_content">Magisk-ი არის და ყოველთვის იქნება უფასო და წყარო-გახსნილი. მაგრამ თქვენ შეგიძლიათ დახმარება გაგვიწიოთ პატარა დონაციით.</string>
<string name="home_device_system">სისტემა</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">პაკეტი</string>

View File

@ -30,8 +30,6 @@
<string name="home_device_extra_board">Platforma</string>
<string name="home_device_system">System</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Pakiet</string>

View File

@ -22,8 +22,6 @@
<string name="home_item_source">Origem</string>
<string name="home_support_content">Magisk é, e sempre será, gratuito e de código aberto. No entanto, você pode nos mostrar que se importa enviando uma pequena doação.</string>
<string name="home_device_system">Sistema</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Pacote</string>
<string name="home_status_normal">Normal</string>
<string name="invalid_update_channel">Canal de atualização inválido</string>

View File

@ -24,8 +24,6 @@
<string name="home_support_content">Magisk este și va fi întotdeauna gratuit și open-source. Cu toate acestea, ne poți arăta că îți pasă trimițând o mică donație.</string>
<string name="home_device_system">Sistem</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Pachet</string>

View File

@ -31,8 +31,8 @@
<!--ro.build.version.security_patch-->
<string name="home_device_system">Android</string> <!--Do not translate-->
<string name="home_device_build_style">A/B</string> <!--Do not translate-->
<string name="home_device_build_type">SAR</string> <!--Do not translate-->
<!--Do not translate-->
<!--Do not translate-->
<!--ro.build.version.security_patch-->
<!--ro.build.version.security_patch-->

View File

@ -24,8 +24,6 @@
<string name="home_support_content">Magisk je a vždy bude slobodný a s otvoreným kódom. Môžete nám však ukázať, že vám na tom záleží zaslaním malého daru.</string>
<string name="home_device_system">Systém</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Balíček</string>

View File

@ -23,8 +23,6 @@
<string name="home_support_content">Magisk özgür ve açık kaynaklıdır ve her zaman öyle olacaktır. Ancak küçük bir bağış göndererek bize önem verdiğinizi gösterebilirsiniz.</string>
<string name="home_device_system">Sistem</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Paket</string>

View File

@ -30,8 +30,6 @@
<string name="home_device_extra_board">Платформа</string>
<string name="home_device_system">Система</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">Пакунок</string>

View File

@ -24,8 +24,6 @@
<string name="home_support_content">Magisk 现在是,将来也永远是免费且开源的。但您可以向我们小额捐赠表示支持。</string>
<string name="home_device_system">系统版本</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_package">包名</string>

View File

@ -23,8 +23,6 @@
<string name="home_support_content">Magisk 現在是,未來也永遠是免費且開源。但您可以透過發送小額的抖內來彰顯對我們的支持。</string>
<string name="home_device_system">系統版本</string>
<string name="home_device_build_style">A/B 系統</string>
<string name="home_device_build_type">SaR 分割區</string>
<string name="home_package">包裝名稱</string>

View File

@ -35,8 +35,6 @@
<string name="home_device_extra_model">Model</string>
<string name="home_device_extra_board">Board</string>
<string name="home_device_system">System</string>
<string name="home_device_build_style">A/B</string>
<string name="home_device_build_type">SAR</string>
<string name="home_status_normal">Normal</string>
<string name="home_status_safe">Safe Mode</string>
<string name="home_status_stub">Stub</string>