Loading res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -71,4 +71,7 @@ <!-- Enabling autoconnect over pan --> <bool name="config_bluetooth_pan_enable_autoconnect">true</bool> <!-- Enabling the phone policy --> <bool name="enable_phone_policy">true</bool> </resources> src/com/android/bluetooth/btservice/AdapterService.java +9 −2 Original line number Diff line number Diff line Loading @@ -422,8 +422,15 @@ public class AdapterService extends Service { mProfileObserver = new ProfileObserver(getApplicationContext(), this, new Handler()); mProfileObserver.start(); // Phone policy is specific to phone implementations and hence if a device wants to exclude // it out then it can be disabled by using the flag below. if (getResources().getBoolean(com.android.bluetooth.R.bool.enable_phone_policy)) { Log.i(TAG, "Phone policy enabled"); mPhonePolicy = new PhonePolicy(this, new ServiceFactory()); mPhonePolicy.start(); } else { Log.i(TAG, "Phone policy disabled"); } setAdapterService(this); Loading Loading
res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -71,4 +71,7 @@ <!-- Enabling autoconnect over pan --> <bool name="config_bluetooth_pan_enable_autoconnect">true</bool> <!-- Enabling the phone policy --> <bool name="enable_phone_policy">true</bool> </resources>
src/com/android/bluetooth/btservice/AdapterService.java +9 −2 Original line number Diff line number Diff line Loading @@ -422,8 +422,15 @@ public class AdapterService extends Service { mProfileObserver = new ProfileObserver(getApplicationContext(), this, new Handler()); mProfileObserver.start(); // Phone policy is specific to phone implementations and hence if a device wants to exclude // it out then it can be disabled by using the flag below. if (getResources().getBoolean(com.android.bluetooth.R.bool.enable_phone_policy)) { Log.i(TAG, "Phone policy enabled"); mPhonePolicy = new PhonePolicy(this, new ServiceFactory()); mPhonePolicy.start(); } else { Log.i(TAG, "Phone policy disabled"); } setAdapterService(this); Loading