diff options
-rw-r--r-- | bdaddr_read/bdaddr_read.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bdaddr_read/bdaddr_read.c b/bdaddr_read/bdaddr_read.c index b795e92..360cc74 100644 --- a/bdaddr_read/bdaddr_read.c +++ b/bdaddr_read/bdaddr_read.c @@ -48,6 +48,10 @@ int main() { return -2; } write(fd, bdaddr, 18); + + // Set bluetooth owner + fchown(fd, 1002, 1002); + close(fd); property_set("ro.bt.bdaddr_path", BDADDR_PATH); return 0; |