If an adversary can escalate privileges, he or she may be able to use those privileges to place malicious code in the device system partition, where it may persist after device resets and may not be easily removed by the device user.
Many Android devices provide the ability to unlock the bootloader for development purposes. An unlocked bootloader may provide the ability for an adversary to modify the system partition. Even if the bootloader is locked, it may be possible for an adversary to escalate privileges and then modify the system partition.
|S0316||Pegasus for Android|
|S0289||Pegasus for iOS|
|M1004||System Partition Integrity|
Android devices with the Verified Boot capability  perform cryptographic checks of the integrity of the system partition.
The Android SafetyNet API's remote attestation capability could potentially be used to identify and respond to compromised devices.
Samsung KNOX also provides a remote attestation capability on supported Samsung Android devices.
iOS devices will fail to boot or fail to allow device activation if unauthorized modifications are detected.