【发布时间】:2018-09-26 06:49:19
【问题描述】:
正如我在文档中看到的那样
Direct Boot
在 Android N 中接收设备锁定时启动完成的操作,我们应该在 Manifest 中使用 android:directBootAware 和 android:encryptionAware 属性。像这样:
<receiver
android:name=".receivers.BootCompletedReceiver"
android:directBootAware="true"
android:encryptionAware="true"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
</intent-filter>
</receiver>
很遗憾,android:encryptionAware 被标记为未知属性。
【问题讨论】:
标签: android android-7.0-nougat