History log of /frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2e581fcc3d5ed5b23487506267c444e17f5d0736 28-Jun-2017 Eugene Susla <eugenesusla@google.com> [Companion] Dont crash if started with bluetooth off

Bug: 63068644
Test: Turn BT off, and ensure the attached bud doesn't reproduce
Change-Id: I0de5ba6d28d7195dd3ebc7a3af36f057c762de60
(cherry picked from commit 7a090a11ed00aa492684800de890f4df633409d8)
/frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
eebd276715783df06f0e4720ccc709b59e551c59 15-Jun-2017 Eugene Susla <eugenesusla@google.com> Fix companion uses-permission enforcement

Fixes: b/62662686
Test: Call CompanionDeviceManager#associate from app without uses-permission
declaration
Ensure exception is thrown

Call the method from app with the declaration
Ensure no exception is thrown

In debug mode catch the #isCallerSystem call from NotificationManagerService
(which runs in the system process) and ensure it passes the check
Change-Id: I26e5d2a7f5e63a346d4ab50b9ded1ec7dbc246a5
/frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
6fd0ce3616ce6b92bdb4443b189aa8ac9e106577 25-Apr-2017 Eugene Susla <eugenesusla@google.com> Avoid activity leak via Companion callback

Test: invoke associate() API and ensure it still works
Change-Id: I9aedb043b4b1f0d77f076d8753cd60ff7c98a7d6
/frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
066422180bd8a93739ae89dd9eaaa4a021d976b7 28-Apr-2017 Eugene Susla <eugenesusla@google.com> Rename Companion permissions

Test: ensure permission check still works
Fixes: 37721270
Change-Id: I1ff5c2924ee837c8b4a6e2825dce171e6a2e00cb
/frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
60c17e06e8c892577f207f86d4047343c7bc5d38 27-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose Companion API via shell command" into oc-dev
a5ccbbc16981ab7709b56f88ea3469af76f1a6fd 24-Apr-2017 Eugene Susla <eugenesusla@google.com> Expose Companion API via shell command

Usage:
adb shell cmd companion_device ...

Test: Call each subcommand and ensure it works
Change-Id: I383995221384013b798fdd1c30a2846e14f7ad06
/frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
d74e65944d6c4b19d3d959c7269f50cb06638798 25-Apr-2017 Eugene Susla <eugenesusla@google.com> Drop uses-feature requirement for system process

Fixes: 37673382
Test: go through setup wizard and ensure no exception from bug report
is present
Change-Id: I5a64586c1baec54ae579f47771546493f82b19df
/frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
aa43a4ba9f61504a22d10f2c6d233576791e7776 21-Apr-2017 Eugene Susla <eugenesusla@google.com> Check for uses-feature in Companion APIs

Fixes: 37629514
Test: Invoke API from app without uses-feature
Ensure an exception with an appropriate message is thrown
Invoke API from app with uses-feature
Ensure no exception

Change-Id: I53665732264ea2de2b4c8c251b1f00bf3a256dad
/frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java
0d3dd12fa0ba38ffedbb18b55886306acf98988e 18-Apr-2017 Eugene Susla <eugenesusla@google.com> Move CompanionDeviceManagerService to a place of its own

Fixes: 37473452
Test: Ensure companion devi9ce functionality still works
Change-Id: I89624217373b3e77296c71f9429387d99d15e236
/frameworks/base/services/companion/java/com/android/server/companion/CompanionDeviceManagerService.java