The "FAQ18076" Android 6.0 m version opens the system verified boot by default, that is, the Userdebug and user versions will map the system to the DM-0 device before mounting. System Partition data integrity is checked before mounting, and the system is not allowed to mount if the system partition is modified maliciously.
Userdebug version If you need to remount the system partition to push file debug, you do not need to recompile the version disable dm-verity, just execute the following ADB command.
ADB root
ADB disable-verity
ADB reboot
Restart and then execute:
The ADB remount can remount the system partition into RW.
After you send the push file to the system partition, do not enable-verity the ADB, or you will not be able to boot, so the system partition data changes after the push file.
The ADB disable-verity/enable-verity command can only be used in Userdebug mode. The user version does not support turning off dm-verity.
If ADB does not support the ADB disable-verity command, please update the Android SDK Platform-tools to the latest version. Or go directly to the link below to download the latest version of the standalone ADB tool.
http://forum.xda-developers.com/showthread.php?t=2317790
For other related information, please refer to https://source.android.com/security/verifiedboot/index.html
Android 6.0 M userdebug version execution adb remount failed