OSDN Git Service

Implement Bluetooth settings factory reset (4/5)
authorAjay Panicker <apanicke@google.com>
Tue, 28 Jul 2015 23:53:53 +0000 (16:53 -0700)
committerAjay Panicker <apanicke@google.com>
Tue, 4 Aug 2015 22:14:03 +0000 (15:14 -0700)
Implemented the factory reset function to be used to reset all bluetooth
settings on device to factory default

Bug: 16161518
Change-Id: I69358db95582ddd0f2f640f76cf0931f797d369b

include/hardware/bluetooth.h

index da7f4b8..3427213 100644 (file)
@@ -542,6 +542,12 @@ typedef struct {
      * Function is synchronous and |fd| is owned by caller.
      */
     void (*dump)(int fd);
+
+    /**
+     * Clear /data/misc/bt_config.conf and erase all stored connections
+     */
+    int (*config_clear)(void);
+
 } bt_interface_t;
 
 /** TODO: Need to add APIs for Service Discovery, Service authorization and