fix: 权限跳转改为应用详情页(精确定位)
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -211,7 +211,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
private fun installApk(apkFile: File) {
|
private fun installApk(apkFile: File) {
|
||||||
if (!packageManager.canRequestPackageInstalls()) {
|
if (!packageManager.canRequestPackageInstalls()) {
|
||||||
val intent = Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES).apply {
|
val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).apply {
|
||||||
data = Uri.parse("package:$packageName")
|
data = Uri.parse("package:$packageName")
|
||||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user