Ideally, we'd only expose the methods that we intend unbundled apps to
call (e.g. not NetworkScoreManager#setActiveScorer, which should only
be called by Settings), but this isn't harmful in terms of permissions
as the APIs still check security appropriately.
Bug:
15833200
Change-Id: I2047515b41c8be0cf7cb51dd495fe72309c05f68
package android.net;
+import android.annotation.SystemApi;
import android.os.Parcel;
import android.os.Parcelable;
*
* @hide
*/
+@SystemApi
// NOTE: Ideally, we would abstract away the details of what identifies a network of a specific
// type, so that all networks appear the same and can be scored without concern to the network type
// itself. However, because no such cross-type identifier currently exists in the Android framework,
import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
+import android.annotation.SystemApi;
import android.content.Context;
import android.content.Intent;
import android.net.NetworkScorerAppManager.NetworkScorerAppData;
*
* @hide
*/
+@SystemApi
public class NetworkScoreManager {
/**
* Activity action: ask the user to change the active network scorer. This will show a dialog
package android.net;
+import android.annotation.SystemApi;
import android.os.Parcel;
import android.os.Parcelable;
* @see ScoredNetwork
* @hide
*/
+@SystemApi
public class RssiCurve implements Parcelable {
/** The starting dBm of the curve. */
package android.net;
+import android.annotation.SystemApi;
import android.os.Parcel;
import android.os.Parcelable;
*
* @hide
*/
+@SystemApi
public class ScoredNetwork implements Parcelable {
/** A {@link NetworkKey} uniquely identifying this network. */
package android.net;
+import android.annotation.SystemApi;
import android.os.Parcel;
import android.os.Parcelable;
*
* @hide
*/
+@SystemApi
public class WifiKey implements Parcelable {
// Patterns used for validation.
android:description="@string/permdesc_changeWimaxState"
android:label="@string/permlab_changeWimaxState" />
- <!-- Allows applications to act as network scorers. @hide -->
+ <!-- Allows applications to act as network scorers. @hide @SystemApi-->
<permission android:name="android.permission.SCORE_NETWORKS"
android:permissionGroup="android.permission-group.NETWORK"
android:protectionLevel="normal"