android 获取应用内安装其他访问权限

 val packageURI: Uri = Uri.parse("package:" + context!!.packageName)
            val intent = Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES, packageURI)
            startActivityForResult(intent, 100)
 Uri packageURI = Uri.parse("package:" + getPackageName());
        Intent intent = new Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES, packageURI);
        startActivityForResult(intent, 100);

 

你可能感兴趣的:(android 获取应用内安装其他访问权限)