Commits

Ben Cheng authored 6c0afff7f02
Detect system-wide safe mode and configure the VM accordingly. For the system server process, do the disableJitCompilation/startJitCompilation callbacks depending on whether the system is in safe mode or not. In addition, if the system is found to be in safe mode, a flag will be set in the Zygote class which will be used to launch subsequent apps in VM safe mode. Bug: 2267590