Making rebootPromptAndWipeUserData a SystemApi

RescueParty performs factory reset as the last resort to recover the
device. RescueParty uses 'rebootPromptAndWipeUserData' to perform this
operation. Since RescueParty is moving to CrashRecovery module, we need
to make it an SystemApi. Also adding appropriate permissions to it.
More Details: go/v-crashrecovery-module-design-doc

Bug: 354693320
Test: m
Flag: android.crashrecovery.flags.enable_crashrecovery
Change-Id: I55fee6521ccfd6942b2550344f5d0e39bb6da23d
2 files changed