PrivilegedInstaller: Use ContentUri on Nougat (24) and above
This commit is contained in:
parent
5e59138082
commit
c004f1ce10
@ -27,6 +27,7 @@ import android.content.Intent;
|
||||
import android.content.ServiceConnection;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
@ -406,7 +407,6 @@ public class PrivilegedInstaller extends Installer {
|
||||
|
||||
@Override
|
||||
protected boolean supportsContentUri() {
|
||||
// TODO: correct?
|
||||
return false;
|
||||
return Build.VERSION.SDK_INT >= 24;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user