summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-10-27 03:51:58 +0100
committerDees Troy <dees_troy@teamw.in>2015-11-05 20:07:21 +0100
commit1673e3d4ea240fa49e0771c19848bcbde6f85faf (patch)
treea2c23f5f1930d6d87842ac2154438054fb066e5e /twrp.cpp
parenttwrp: fb2png: do not pack relocations for executables (diff)
downloadandroid_bootable_recovery-1673e3d4ea240fa49e0771c19848bcbde6f85faf.tar
android_bootable_recovery-1673e3d4ea240fa49e0771c19848bcbde6f85faf.tar.gz
android_bootable_recovery-1673e3d4ea240fa49e0771c19848bcbde6f85faf.tar.bz2
android_bootable_recovery-1673e3d4ea240fa49e0771c19848bcbde6f85faf.tar.lz
android_bootable_recovery-1673e3d4ea240fa49e0771c19848bcbde6f85faf.tar.xz
android_bootable_recovery-1673e3d4ea240fa49e0771c19848bcbde6f85faf.tar.zst
android_bootable_recovery-1673e3d4ea240fa49e0771c19848bcbde6f85faf.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/twrp.cpp b/twrp.cpp
index 50db72501..ff7d55fcb 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -345,6 +345,7 @@ int main(int argc, char **argv) {
#ifndef TW_OEM_BUILD
// Check if system has never been changed
TWPartition* sys = PartitionManager.Find_Partition_By_Path("/system");
+ TWPartition* ven = PartitionManager.Find_Partition_By_Path("/vendor");
if (sys) {
if ((DataManager::GetIntValue("tw_mount_system_ro") == 0 && sys->Check_Lifetime_Writes() == 0) || DataManager::GetIntValue("tw_mount_system_ro") == 2) {
if (DataManager::GetIntValue("tw_never_show_system_ro_page") == 0) {
@@ -354,11 +355,15 @@ int main(int argc, char **argv) {
}
} else if (DataManager::GetIntValue("tw_mount_system_ro") == 0) {
sys->Change_Mount_Read_Only(false);
+ if (ven)
+ ven->Change_Mount_Read_Only(false);
}
} else if (DataManager::GetIntValue("tw_mount_system_ro") == 1) {
// Do nothing, user selected to leave system read only
} else {
sys->Change_Mount_Read_Only(false);
+ if (ven)
+ ven->Change_Mount_Read_Only(false);
}
}
#endif