am ac7774e8: Merge "Do not fix uris inside the system." into lmp-mr1-dev
* commit 'ac7774e8c13e5e2881a588012b8710ad3947169c': Do not fix uris inside the system.
This commit is contained in:
@@ -41,6 +41,7 @@ import android.os.Bundle;
|
|||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
import android.os.Process;
|
||||||
import android.os.StrictMode;
|
import android.os.StrictMode;
|
||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
import android.provider.DocumentsContract;
|
import android.provider.DocumentsContract;
|
||||||
@@ -7498,10 +7499,12 @@ public class Intent implements Parcelable, Cloneable {
|
|||||||
*/
|
*/
|
||||||
public void prepareToEnterProcess() {
|
public void prepareToEnterProcess() {
|
||||||
if (mContentUserHint != UserHandle.USER_CURRENT) {
|
if (mContentUserHint != UserHandle.USER_CURRENT) {
|
||||||
|
if (UserHandle.getAppId(Process.myUid()) != Process.SYSTEM_UID) {
|
||||||
fixUris(mContentUserHint);
|
fixUris(mContentUserHint);
|
||||||
mContentUserHint = UserHandle.USER_CURRENT;
|
mContentUserHint = UserHandle.USER_CURRENT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @hide
|
* @hide
|
||||||
|
|||||||
Reference in New Issue
Block a user