Merge "Fixed the incorrect permission for data/network service binding"
This commit is contained in:
@@ -36,8 +36,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Base class of network service. Services that extend NetworkService must register the service in
|
* Base class of network service. Services that extend NetworkService must register the service in
|
||||||
* their AndroidManifest to be detected by the framework. They must be protected by the permission
|
* their AndroidManifest to be detected by the framework. They must be protected by the permission
|
||||||
* "android.permission.BIND_NETWORK_SERVICE". The network service definition in the manifest must
|
* "android.permission.BIND_TELEPHONY_NETWORK_SERVICE". The network service definition in the
|
||||||
* follow the following format:
|
* manifest must follow the following format:
|
||||||
* ...
|
* ...
|
||||||
* <service android:name=".xxxNetworkService"
|
* <service android:name=".xxxNetworkService"
|
||||||
* android:permission="android.permission.BIND_TELEPHONY_NETWORK_SERVICE" >
|
* android:permission="android.permission.BIND_TELEPHONY_NETWORK_SERVICE" >
|
||||||
|
|||||||
@@ -44,11 +44,11 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Base class of data service. Services that extend DataService must register the service in
|
* Base class of data service. Services that extend DataService must register the service in
|
||||||
* their AndroidManifest to be detected by the framework. They must be protected by the permission
|
* their AndroidManifest to be detected by the framework. They must be protected by the permission
|
||||||
* "android.permission.BIND_DATA_SERVICE". The data service definition in the manifest must follow
|
* "android.permission.BIND_TELEPHONY_DATA_SERVICE". The data service definition in the manifest
|
||||||
* the following format:
|
* must follow the following format:
|
||||||
* ...
|
* ...
|
||||||
* <service android:name=".xxxDataService"
|
* <service android:name=".xxxDataService"
|
||||||
* android:permission="android.permission.BIND_DATA_SERVICE" >
|
* android:permission="android.permission.BIND_TELEPHONY_DATA_SERVICE" >
|
||||||
* <intent-filter>
|
* <intent-filter>
|
||||||
* <action android:name="android.telephony.data.DataService" />
|
* <action android:name="android.telephony.data.DataService" />
|
||||||
* </intent-filter>
|
* </intent-filter>
|
||||||
|
|||||||
Reference in New Issue
Block a user