Skip to content

Commit 4319352

Browse files
AndrewScullandroid-build-team Robot
authored andcommitted
Restrict reset password service to O and later.
It is a demo for an API added in O so should not run on older versions. Bug: 38447085 Change-Id: I52ef60a7fba118329fd5040ff5347c329c125b9d (cherry picked from commit 65f539fd9d261fead11a8ee116f94f1b141d0264)
1 parent 757c1b4 commit 4319352

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,16 @@
137137
</receiver>
138138

139139
<receiver android:name=".policy.resetpassword.ResetPasswordService$LockedBootCompletedReceiver"
140-
android:directBootAware="true" >
140+
android:enabled="@bool/is_o_or_later"
141+
android:directBootAware="true" >
141142
<intent-filter>
142143
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
143144
</intent-filter>
144145
</receiver>
145146

146147
<service android:name=".policy.resetpassword.ResetPasswordService"
147-
android:directBootAware="true" >
148+
android:enabled="@bool/is_o_or_later"
149+
android:directBootAware="true" >
148150
</service>
149151

150152
<provider

0 commit comments

Comments
 (0)