Replaced Bluetooth SystemProperties.set by sysprop
Tag: #feature Bug: 197210455 Test: set/get sysprop with SystemProperties Change-Id: I613808dbc930c90e391df9857a173a86aedc4acf
This commit is contained in:
@@ -58,7 +58,7 @@ import android.os.ParcelUuid;
|
|||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
import android.os.ResultReceiver;
|
import android.os.ResultReceiver;
|
||||||
import android.os.ServiceManager;
|
import android.os.ServiceManager;
|
||||||
import android.os.SystemProperties;
|
import android.sysprop.BluetoothProperties;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.Pair;
|
import android.util.Pair;
|
||||||
|
|
||||||
@@ -1352,7 +1352,7 @@ public final class BluetoothAdapter {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Log.e(TAG, "factoryReset(): Setting persist.bluetooth.factoryreset to retry later");
|
Log.e(TAG, "factoryReset(): Setting persist.bluetooth.factoryreset to retry later");
|
||||||
SystemProperties.set("persist.bluetooth.factoryreset", "true");
|
BluetoothProperties.factory_reset(true);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "", e);
|
Log.e(TAG, "", e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user