TWRP and /system problem


Pelayo

Members
Mar 27, 2020
32
20
There is a problem with the TWRP of the mi10 and mi10pro cannot mount the system partition as write, only as read. When trying to delete or modify any file in /system it is impossible to test it yourself and you will see that it does not leave you.

And there is another problem with the /system partition that only happens to me on the mi10 and my10pro checked. When you modify any file or delete anything from /system with a rooted file manager, the phone on reboot goes into fastboot. For example to delete the icons from the rom: /system/media/theme/miui_mod_icons
Or directly modify from a file manager a system app.
 

LOLO9393

Members
Feb 8, 2016
2,092
322
There is a problem with the TWRP of the mi10 and mi10pro cannot mount the system partition as write, only as read. When trying to delete or modify any file in /system it is impossible to test it yourself and you will see that it does not leave you.

And there is another problem with the /system partition that only happens to me on the mi10 and my10pro checked. When you modify any file or delete anything from /system with a rooted file manager, the phone on reboot goes into fastboot. For example to delete the icons from the rom: /system/media/theme/miui_mod_icons
Or directly modify from a file manager a system app.
We confirm the same issue/behavior on RN9S and EU 11.08 rom.
You can avoid fastboot issue if you remove root access you gave to your file explorer prior ANY reboot. It's what I have done in order to modify my hosts file.
I thought it was an issue related to TWRP that stays in read mode, but rom are system locked for dev' reason...
Solution and/or explanation are welcome from devs side.
 
  • Like
Reactions: Mali2 and Pelayo

SeeYea

Members
May 16, 2020
9
5
There is a problem with the TWRP of the mi10 and mi10pro cannot mount the system partition as write, only as read. When trying to delete or modify any file in /system it is impossible to test it yourself and you will see that it does not leave you.

And there is another problem with the /system partition that only happens to me on the mi10 and my10pro checked. When you modify any file or delete anything from /system with a rooted file manager, the phone on reboot goes into fastboot. For example to delete the icons from the rom: /system/media/theme/miui_mod_icons
Or directly modify from a file manager a system app.
It seems the problem is caused by dynamic partition of Android10,currently there is no solution to modify dynamic partition safely.
 

Mammad

Members
Dec 6, 2016
146
40
no-verity-opt-encrypt or try to Chmod755, Nothing works, must have wait for a solution!!!!
 
  • Like
Reactions: Pelayo

LOLO9393

Members
Feb 8, 2016
2,092
322
It seems the problem is caused by dynamic partition of Android10,currently there is no solution to modify dynamic partition safely.
Many thanks, you give the words to follow in order (to try) to better understand.
 

Pelayo

Members
Mar 27, 2020
32
20
It seems the problem is caused by dynamic partition of Android10,currently there is no solution to modify dynamic partition safely.
And why in a mi 9 for example with android 10 if it works?
 

LOLO9393

Members
Feb 8, 2016
2,092
322
Only devices which are released with Android 10 have dynamic partitions..
Mi9 was released with Android 9..
That's OK. but why are we allowed to debloat and change some system file on MI9T android 10 eu weekly rom (as exemple) and we locked read only on RN9S (global 11.08 eu)?
What solution to bypass this.
 

B!GBOY

Members
Dec 27, 2010
112
40
That's OK. but why are we allowed to debloat and change some system file on MI9T android 10 eu weekly rom (as exemple) and we locked read only on RN9S (global 11.08 eu)?
What solution to bypass this.
shipped with android 10 is not the same thing as updated to android 10
 

B!GBOY

Members
Dec 27, 2010
112
40
Thanks for the information, at least I know why it happens. But is it normal that it also happens with a file manager from the ROM? not from TWRP.
Yes. The best way to modify system files is to make a magisk module and replace them via magisk.
 
  • Like
Reactions: geoorg

B!GBOY

Members
Dec 27, 2010
112
40
what's your point?
Both rom are EU custom.
The point is manufacturers have to implement dynamic partitions if they are releasing a phone with android 10 but they don't have to do it when updating to android 10.
And because that requires a repartition they usually don't.
So it's easier for xiaomi to keep older phones the way they are instead of creating new confusion and more chance of device breaking when updating.
Read more here:


What Magisk module? and what about root failure at reboot?
You are welcome for better explanation.
Everyone can create a magisk module to implement system modifications.
With magisk you can replace, delete or add new files to system without actually modifying it.
You are welcome to try and learn it yourself:
 
  • Like
Reactions: LOLO9393

LOLO9393

Members
Feb 8, 2016
2,092
322
The point is manufacturers have to implement dynamic partitions if they are releasing a phone with android 10 but they don't have to do it when updating to android 10.
And because that requires a repartition they usually don't.
So it's easier for xiaomi to keep older phones the way they are instead of creating new confusion and more chance of device breaking when updating.
Read more here:



Everyone can create a magisk module to implement system modifications.
With magisk you can replace, delete or add new files to system without actually modifying it.
You are welcome to try and learn it yourself:
OK! OK!
got the points to know.....now.
Thanks for sharing your knowledge on this subject. That"s huge change from guys commenting for rom update availability. lol.
What is important to know and understand is your first sentence.
Thanks for the documentation links you provided. room for me to learn.
You are welcome.
 
  • Like
Reactions: B!GBOY

cedric3320

Members
May 6, 2011
11
15
Hello everyone,
The only way I found to delete system apps on mi 10 is with Debloater module for Magisk.
Via terminal emulator run:
su
debloat
Choose the app to delete, and Debloater module will delete the file and replace it by some kind of placebo file.

View attachment Screenshot_2020-06-09-07-21-32-635_com.topjohnwu.magisk.jpg

View attachment Screenshot_2020-06-09-07-28-27-227_com.termux.jpg

View attachment Screenshot_2020-06-09-07-28-31-683_com.termux.jpg

View attachment Screenshot_2020-06-09-07-30-10-299_pl.solidexplorer2.jpg
 

Pelayo

Members
Mar 27, 2020
32
20

ALI MOHAMED ALI

Members
Apr 15, 2018
5
15
For Mi10 And Mi10 pro , the only solution i found to modify , delete system files, folders, is :

- first if you need root , you must install root from TWRP it self ( in advances - instal root ) (magisk v20.3 ) and before reboot make sure you make this steps:

TWRP Recovery , then Advanced , then ,Close AVB2.0

-Check (on):


1- Close the boot Verification of AVB2.0

2- Close the DMVerity of AVB2.0


then reboot to system.


you must do these step every time you flash anything in TWRP recovery.


to modify or delete Sysyem files , folder use ( ES explorer with root permission ). other explorer make system reboot in fastboot , i don't know why .

After you complete , you can update magisk to v20.4 in TWRP recovery and make same steps as above:

- TWRP- Advanced - close ABV2.0 and yes again.


Best regards.




 
  • Like
Reactions: slavke1976

Mammad

Members
Dec 6, 2016
146
40
Dude
You mean
I have installed TWRP 2.04 already and my phone works fine - no problem at all
so for modifying system files:
1- Do your favorite editing in Root/System files with only ES-Explorer
2- Reboot to TWRP
3-go to Advance and close both Verification of AVB2.0 and DMVerity of AVB2.0
4- Reboot to system
Well any body tried that guys???
Please report successful modifying with the mentioned method !!!!
 

ALI MOHAMED ALI

Members
Apr 15, 2018
5
15
Dude
You mean
I have installed TWRP 2.04 already and my phone works fine - no problem at all
so for modifying system files:
1- Do your favorite editing in Root/System files with only ES-Explorer
2- Reboot to TWRP
3-go to Advance and close both Verification of AVB2.0 and DMVerity of AVB2.0
4- Reboot to system
Well any body tried that guys???
Please report successful modifying with the mentioned method !!!!

No bro :

Just :
1- Install root from TWRP itself in advanced , Install root , will install magisk 20.3
2-go to Advance and close both Verification of AVB2.0 and DMVerity of AVB2.0
3- Reboot to system
4- Editing in Root/System files with only ES-Explorer.

* for any zip flash file in twrp do step 2 again before reboot.
** you must do this steps before editing in Root/system files
 

SeeYea

Members
May 16, 2020
9
5
Dude
You mean
I have installed TWRP 2.04 already and my phone works fine - no problem at all
so for modifying system files:
1- Do your favorite editing in Root/System files with only ES-Explorer
2- Reboot to TWRP
3-go to Advance and close both Verification of AVB2.0 and DMVerity of AVB2.0
4- Reboot to system
Well any body tried that guys???
Please report successful modifying with the mentioned method !!!!
For Mi10 And Mi10 pro , the only solution i found to modify , delete system files, folders, is :

- first if you need root , you must install root from TWRP it self ( in advances - instal root ) (magisk v20.3 ) and before reboot make sure you make this steps:


TWRP Recovery , then Advanced , then ,Close AVB2.0

-Check (on):


1- Close the boot Verification of AVB2.0


2- Close the DMVerity of AVB2.0


then reboot to system.


you must do these step every time you flash anything in TWRP recovery.


to modify or delete Sysyem files , folder use ( ES explorer with root permission ). other explorer make system reboot in fastboot , i don't know why .

After you complete , you can update magisk to v20.4 in TWRP recovery and make same steps as above:

- TWRP- Advanced - close ABV2.0 and yes again.


Best regards.
Could you tell the package name of ES-Explorer,I see several ES-explorer in Google Play,that makes me confused..
 

Pelayo

Members
Mar 27, 2020
32
20
Es-explorer download link :

I do not recommend using this application, it is removed from the play store for fraudulent practices, and not to mention the amount of ads and bloatware it has.

Use FX File Explorer