Loading android/app/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -9,6 +9,6 @@ LOCAL_PACKAGE_NAME := Bluetooth LOCAL_JAVA_LIBRARIES := javax.obex LOCAL_CERTIFICATE := shared LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE) android/app/AndroidManifest.xml +18 −7 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.bluetooth" > package="com.android.bluetooth" android:sharedUserId="@string/sharedUserId"> <original-package android:name="com.android.bluetooth" /> Loading @@ -19,18 +20,24 @@ <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.WRITE_SETTINGS" /> <application android:icon="@drawable/bt_share" <application android:icon="@drawable/bt_share" android:label="@string/app_name"> <uses-library android:name="javax.obex" /> <provider android:name=".opp.BluetoothOppProvider" android:authorities="com.android.bluetooth.opp"> android:authorities="com.android.bluetooth.opp" android:process="@string/process"> <path-permission android:path="/btopp" android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" /> </provider> <service android:name=".opp.BluetoothOppService" <service android:process="@string/process" android:name=".opp.BluetoothOppService" android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" /> <receiver android:name=".opp.BluetoothOppReceiver"> <receiver android:process="@string/process" android:name=".opp.BluetoothOppReceiver"> <intent-filter> <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" /> <action android:name="android.intent.action.BOOT_COMPLETED" /> Loading Loading @@ -107,9 +114,13 @@ <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <service android:name=".pbap.BluetoothPbapService" > <service android:process="@string/process" android:name=".pbap.BluetoothPbapService" > </service> <receiver android:name=".pbap.BluetoothPbapReceiver"> <receiver android:process="@string/process" android:name=".pbap.BluetoothPbapReceiver"> <intent-filter> <action android:name="android.bluetooth.adapter.action.STATE_CHANGED"/> </intent-filter> Loading android/app/AndroidManifest_test.xml +14 −7 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.bluetooth" > package="com.android.bluetooth" android:sharedUserId="@string/sharedUserId"> <!-- Allows access to the Bluetooth Share Manager --> <permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE" android:label="@string/permlab_bluetoothShareManager" Loading @@ -16,7 +17,8 @@ <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.WRITE_SETTINGS" /> <application android:icon="@drawable/bt_share" <application android:icon="@drawable/bt_share" android:label="@string/app_name"> <uses-library android:name="javax.obex" /> <activity android:name=".opp.TestActivity" android:label="@string/app_name"> Loading @@ -26,14 +28,17 @@ </intent-filter> </activity> <provider android:name=".opp.BluetoothOppProvider" android:authorities="com.android.bluetooth.opp"> android:authorities="com.android.bluetooth.opp" android:process="@string/process"> <path-permission android:path="/btopp" android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" /> </provider> <service android:name=".opp.BluetoothOppService" <service android:process="@string/process" android:name=".opp.BluetoothOppService" android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" /> <receiver android:name=".opp.BluetoothOppReceiver"> <receiver android:process="@string/process" android:name=".opp.BluetoothOppReceiver"> <intent-filter> <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" /> <action android:name="android.intent.action.BOOT_COMPLETED" /> Loading Loading @@ -85,10 +90,12 @@ <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <service android:name=".pbap.BluetoothPbapService" > <service android:process="@string/process" android:name=".pbap.BluetoothPbapService" > <action android:name="android.bluetooth.IBluetoothPbap"/> </service> <receiver android:name=".pbap.BluetoothPbapReceiver"> <receiver android:process="@string/process" android:name=".pbap.BluetoothPbapReceiver"> <intent-filter> <action android:name="android.bluetooth.adapter.action.STATE_CHANGED"/> </intent-filter> Loading android/app/res/values/strings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -191,4 +191,10 @@ <!-- Do not translate. file name used for sharing. --> <string name="bluetooth_share_file_name" translate="false">bluetooth_content_share</string> <!-- Used to run Bluetooth.apk in another process if needed --> <!-- Do not translate. android:sharedUserId string of this application. --> <string name="sharedUserId" translate="false"><xliff:g id="x"></xliff:g></string> <!-- Do not translate. android:process of this application. --> <string name="process" translate="false"><xliff:g id="x"></xliff:g></string> </resources> Loading
android/app/Android.mk +1 −1 Original line number Diff line number Diff line Loading @@ -9,6 +9,6 @@ LOCAL_PACKAGE_NAME := Bluetooth LOCAL_JAVA_LIBRARIES := javax.obex LOCAL_CERTIFICATE := shared LOCAL_CERTIFICATE := platform include $(BUILD_PACKAGE)
android/app/AndroidManifest.xml +18 −7 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.bluetooth" > package="com.android.bluetooth" android:sharedUserId="@string/sharedUserId"> <original-package android:name="com.android.bluetooth" /> Loading @@ -19,18 +20,24 @@ <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.WRITE_SETTINGS" /> <application android:icon="@drawable/bt_share" <application android:icon="@drawable/bt_share" android:label="@string/app_name"> <uses-library android:name="javax.obex" /> <provider android:name=".opp.BluetoothOppProvider" android:authorities="com.android.bluetooth.opp"> android:authorities="com.android.bluetooth.opp" android:process="@string/process"> <path-permission android:path="/btopp" android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" /> </provider> <service android:name=".opp.BluetoothOppService" <service android:process="@string/process" android:name=".opp.BluetoothOppService" android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" /> <receiver android:name=".opp.BluetoothOppReceiver"> <receiver android:process="@string/process" android:name=".opp.BluetoothOppReceiver"> <intent-filter> <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" /> <action android:name="android.intent.action.BOOT_COMPLETED" /> Loading Loading @@ -107,9 +114,13 @@ <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <service android:name=".pbap.BluetoothPbapService" > <service android:process="@string/process" android:name=".pbap.BluetoothPbapService" > </service> <receiver android:name=".pbap.BluetoothPbapReceiver"> <receiver android:process="@string/process" android:name=".pbap.BluetoothPbapReceiver"> <intent-filter> <action android:name="android.bluetooth.adapter.action.STATE_CHANGED"/> </intent-filter> Loading
android/app/AndroidManifest_test.xml +14 −7 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.bluetooth" > package="com.android.bluetooth" android:sharedUserId="@string/sharedUserId"> <!-- Allows access to the Bluetooth Share Manager --> <permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE" android:label="@string/permlab_bluetoothShareManager" Loading @@ -16,7 +17,8 @@ <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.WRITE_SETTINGS" /> <application android:icon="@drawable/bt_share" <application android:icon="@drawable/bt_share" android:label="@string/app_name"> <uses-library android:name="javax.obex" /> <activity android:name=".opp.TestActivity" android:label="@string/app_name"> Loading @@ -26,14 +28,17 @@ </intent-filter> </activity> <provider android:name=".opp.BluetoothOppProvider" android:authorities="com.android.bluetooth.opp"> android:authorities="com.android.bluetooth.opp" android:process="@string/process"> <path-permission android:path="/btopp" android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" /> </provider> <service android:name=".opp.BluetoothOppService" <service android:process="@string/process" android:name=".opp.BluetoothOppService" android:permission="android.permission.ACCESS_BLUETOOTH_SHARE" /> <receiver android:name=".opp.BluetoothOppReceiver"> <receiver android:process="@string/process" android:name=".opp.BluetoothOppReceiver"> <intent-filter> <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" /> <action android:name="android.intent.action.BOOT_COMPLETED" /> Loading Loading @@ -85,10 +90,12 @@ <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <service android:name=".pbap.BluetoothPbapService" > <service android:process="@string/process" android:name=".pbap.BluetoothPbapService" > <action android:name="android.bluetooth.IBluetoothPbap"/> </service> <receiver android:name=".pbap.BluetoothPbapReceiver"> <receiver android:process="@string/process" android:name=".pbap.BluetoothPbapReceiver"> <intent-filter> <action android:name="android.bluetooth.adapter.action.STATE_CHANGED"/> </intent-filter> Loading
android/app/res/values/strings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -191,4 +191,10 @@ <!-- Do not translate. file name used for sharing. --> <string name="bluetooth_share_file_name" translate="false">bluetooth_content_share</string> <!-- Used to run Bluetooth.apk in another process if needed --> <!-- Do not translate. android:sharedUserId string of this application. --> <string name="sharedUserId" translate="false"><xliff:g id="x"></xliff:g></string> <!-- Do not translate. android:process of this application. --> <string name="process" translate="false"><xliff:g id="x"></xliff:g></string> </resources>