From eb32b1ff00878e7b01453450fcd04ecb9fcbba52 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Mon, 18 May 2015 10:23:03 -0500 Subject: Mount system as read-only by default Mounting system as rw can prevent future OTA updates. The purpose of this patch set is to prevent TWRP from mounting sytem as rw on the first boot. Device maintainers should update their twrp.fstab files on these devices to include an additional line: /system_image emmc /dev/block/../system This line will allow TWRP to create a raw system image backup to ensure that the user can return to an original state for future OTA updates. Change-Id: I8929d85bc3a5b96cc564bc7f734b58d5612ec833 --- gui/devices/portrait/res/portrait.xml | 113 ++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) (limited to 'gui/devices/portrait/res') diff --git a/gui/devices/portrait/res/portrait.xml b/gui/devices/portrait/res/portrait.xml index bd235981d..997da9d23 100644 --- a/gui/devices/portrait/res/portrait.xml +++ b/gui/devices/portrait/res/portrait.xml @@ -2105,6 +2105,27 @@ decrypt + + + + + Only mount system read-only + + + + + + + + + Only mount system read-only + + + tw_lifetime_writes=2 + system_readonly_check + + + main @@ -2161,6 +2182,31 @@ + + + /system + + + + + + + + mount + + + + + + + + + tw_back=mount + system_readonly + + + + @@ -3607,5 +3653,72 @@ + + + + + + + TWRP has detected an unmodified system partition. + + + + + TWRP can leave your system partition unmodified + + + + + to make it easier for you to take official updates. + + + + + TWRP will be unable to prevent the stock ROM from + + + + + replacing TWRP and will not offer to root your device. + + + + + Installing zips or performing adb operations may still + + + + + modify the system partition. + + + + + + Never show this screen during boot again + + + + + + Keep Read Only + + tw_mount_system_ro=1 + tw_page_done=1 + %tw_back% + + + + + Swipe to Allow Modifications + + tw_mount_system_ro=0 + tw_page_done=1 + %tw_back% + + + + + -- cgit v1.2.3