Loading docs/html/guide/topics/manifest/provider-element.jd +13 −4 Original line number Original line Diff line number Diff line Loading @@ -96,10 +96,19 @@ If "{@code false}", the provider is available only to components of the same application or applications with the same user ID. The default value same application or applications with the same user ID. The default value is "{@code true}". is "{@code true}". <p> <p>You can export a content provider but still limit access to it with the You can export a content provider but still limit access to it with the <code><a <code><a href="{@docRoot}guide/topics/manifest/provider-element.html#prmsn">permission</a></code> attribute. href="{@docRoot}guide/topics/manifest/provider-element.html#prmsn">permission</a></code> </p></dd> attribute. Note that due to a bug in versions of Android prior to {@link android.os.Build.VERSION_CODES#VERSION_GINGERBREAD} providers were exported even if {@code android:exported} were set to {@code false}. Therefore, for provider security on all devices, protect your provider with a signature-level permission. For information on defining a permission, see the <a href="{@docRoot}guide/topics/manifest/permission-element.html">permission element</a>. For information on using the permission, see the <a href="{@docRoot}guide/topics/manifest/uses-permission-element.html">uses-permission element</a>.</p></dd> <dt><a name="gprmsn"></a>{@code android:grantUriPermissions}</dt> <dt><a name="gprmsn"></a>{@code android:grantUriPermissions}</dt> <dd>Whether or not those who ordinarily would not have permission to <dd>Whether or not those who ordinarily would not have permission to Loading Loading
docs/html/guide/topics/manifest/provider-element.jd +13 −4 Original line number Original line Diff line number Diff line Loading @@ -96,10 +96,19 @@ If "{@code false}", the provider is available only to components of the same application or applications with the same user ID. The default value same application or applications with the same user ID. The default value is "{@code true}". is "{@code true}". <p> <p>You can export a content provider but still limit access to it with the You can export a content provider but still limit access to it with the <code><a <code><a href="{@docRoot}guide/topics/manifest/provider-element.html#prmsn">permission</a></code> attribute. href="{@docRoot}guide/topics/manifest/provider-element.html#prmsn">permission</a></code> </p></dd> attribute. Note that due to a bug in versions of Android prior to {@link android.os.Build.VERSION_CODES#VERSION_GINGERBREAD} providers were exported even if {@code android:exported} were set to {@code false}. Therefore, for provider security on all devices, protect your provider with a signature-level permission. For information on defining a permission, see the <a href="{@docRoot}guide/topics/manifest/permission-element.html">permission element</a>. For information on using the permission, see the <a href="{@docRoot}guide/topics/manifest/uses-permission-element.html">uses-permission element</a>.</p></dd> <dt><a name="gprmsn"></a>{@code android:grantUriPermissions}</dt> <dt><a name="gprmsn"></a>{@code android:grantUriPermissions}</dt> <dd>Whether or not those who ordinarily would not have permission to <dd>Whether or not those who ordinarily would not have permission to Loading