Make init.updatable_crashing a read/write property

This property will need to be reset during userspace reboot, so it can't
be a read-only property anymore.

Test: builds
Test: atest apex_rollback_tests
Bug: 135984674
Change-Id: I9f5ec10ed31b63642192573139e44d43e726ea9c
This commit is contained in:
Nikita Ioffe
2019-10-04 16:51:06 +01:00
parent d3ec7950e3
commit 76a0579ad7

View File

@@ -370,7 +370,7 @@ public final class RollbackPackageHealthObserver implements PackageHealthObserve
private void checkAndMitigateNativeCrashes() {
mNumberOfNativeCrashPollsRemaining--;
// Check if native watchdog reported a crash
if ("1".equals(SystemProperties.get("ro.init.updatable_crashing"))) {
if ("1".equals(SystemProperties.get("sys.init.updatable_crashing"))) {
execute(getModuleMetadataPackage());
// we stop polling after an attempt to execute rollback, regardless of whether the
// attempt succeeds or not