[core] New hiddenapi stub (#766)
This commit is contained in:
parent
1cf1c793e1
commit
1ee42aea79
|
|
@ -25,8 +25,11 @@ import android.content.res.AssetManager;
|
|||
import android.content.res.Resources;
|
||||
import android.content.res.ResourcesImpl;
|
||||
import android.os.Binder;
|
||||
import android.os.Environment;
|
||||
import android.os.IBinder;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class HiddenApiBridge {
|
||||
public static int AssetManager_addAssetPath(AssetManager am, String path) {
|
||||
return am.addAssetPath(path);
|
||||
|
|
@ -51,4 +54,8 @@ public class HiddenApiBridge {
|
|||
public static IBinder Context_getActivityToken(Context ctx) {
|
||||
return ctx.getActivityToken();
|
||||
}
|
||||
|
||||
public static File Environment_getDataProfilesDePackageDirectory(int userId, String packageName) {
|
||||
return Environment.getDataProfilesDePackageDirectory(userId, packageName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
package android.os;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class Environment {
|
||||
public static File getDataProfilesDePackageDirectory(int userId, String packageName) {
|
||||
throw new IllegalArgumentException("STUB");
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue