ContentResolver methods that open files are sinks

Reviewed By: leegao

Differential Revision: D3107130

fb-gh-sync-id: 9862141
fbshipit-source-id: 9862141
master
Sam Blackshear 9 years ago committed by Facebook Github Bot 7
parent 61c5a80567
commit b5b4d436ba

@ -31,22 +31,6 @@ let sources = [
language = Config.Java
};
(* actual specs *)
{
classname = "com.facebook.katana.urimap.Fb4aUriIntentMapper";
method_name = "getIntentForUri";
ret_type = "android.content.Intent";
params = ["android.content.Context"; "java.lang.String"];
is_static = false;
language = Config.Java
};
{
classname = "com.facebook.prefs.shared.FbSharedPreferences";
method_name = "getString";
ret_type = "java.lang.String";
params = ["com.facebook.prefs.shared.PrefKey"; "java.lang.String"];
is_static = false;
language = Config.Java
};
{
classname = "android.content.SharedPreferences";
method_name = "getString";
@ -87,6 +71,79 @@ let sinks = [
is_static = true;
language = Config.Java
}, [0;1]);
({
classname = "android.content.ContentResolver";
method_name = "openInputStream";
ret_type = "java.io.InputStream";
params = ["android.net.Uri"];
is_static = false;
language = Config.Java;
}, [1]);
({
classname = "android.content.ContentResolver";
method_name = "openOutputStream";
ret_type = "java.io.OutputStream";
params = ["android.net.Uri"];
is_static = false;
language = Config.Java;
}, [0]);
({
classname = "android.content.ContentResolver";
method_name = "openOutputStream";
ret_type = "java.io.OutputStream";
params = ["android.net.Uri"; "java.lang.String"];
is_static = false;
language = Config.Java;
}, [0]);
({
classname = "android.content.ContentResolver";
method_name = "openAssetFileDescriptor";
ret_type = "android.content.res.AssetFileDescriptor";
params = ["android.net.Uri"; "java.lang.String"];
is_static = false;
language = Config.Java;
}, [0]);
({
classname = "android.content.ContentResolver";
method_name = "openAssetFileDescriptor";
ret_type = "android.content.res.AssetFileDescriptor";
params = ["android.net.Uri"; "java.lang.String"; "android.os.CancellationSignal"];
is_static = false;
language = Config.Java;
}, [0]);
({
classname = "android.content.ContentResolver";
method_name = "openFileDescriptor";
ret_type = "android.os.ParcelFileDescriptor";
params = ["android.net.Uri"; "java.lang.String"; "android.os.CancellationSignal"];
is_static = false;
language = Config.Java;
}, [0]);
({
classname = "android.content.ContentResolver";
method_name = "openFileDescriptor";
ret_type = "android.os.ParcelFileDescriptor";
params = ["android.net.Uri"; "java.lang.String"];
is_static = false;
language = Config.Java;
}, [0]);
({
classname = "android.content.ContentResolver";
method_name = "openTypedAssetFileDescriptor";
ret_type = "android.content.res.AssetFileDescriptor";
params = ["android.net.Uri"; "java.lang.String"; "android.os.Bundle";
"android.os.CancellationSignal"];
is_static = false;
language = Config.Java;
}, [0]);
({
classname = "android.content.ContentResolver";
method_name = "openTypedAssetFileDescriptor";
ret_type = "android.content.res.AssetFileDescriptor";
params = ["android.net.Uri"; "java.lang.String"; "android.os.Bundle"];
is_static = false;
language = Config.Java;
}, [0]);
(* ==== iOS for testing only ==== *)
({

Loading…
Cancel
Save