History log of /system/hwservicemanager/TokenManager.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e606433c103201de3161f5bdc6887e458602958d 10-May-2017 Steven Moreland <smoreland@google.com> remove "// static" comments

Test: pass

Change-Id: I0167ef0498fb7bab3fa8500c6fbfbb99aae95e7e
/system/hwservicemanager/TokenManager.cpp
79a9e3263f171a220ce4e32d89e5df10b1ab6499 06-Apr-2017 Steven Moreland <smoreland@google.com> Fix transitive include.

TokenManager was indirectly depending on MQDescriptor's include of
utils/log.h.

Test: pass
Change-Id: I1e140d6d36aa0300c4e53c085e5da84a2e5ca12a
(cherry picked from commit 6fd7996cc7ad217eb6f62a27d037c0f4bf47f50c)
/system/hwservicemanager/TokenManager.cpp
69673825e0f3d99673892d2adf4ed003c6019238 07-Apr-2017 bohu <bohu@google.com> hwservicemanager: read random bytes from /dev/urandom

On some device such as emualtor, reading frm /dev/random will
block and cause hwservicemanger to hang.

This CL reads random bytes from /dev/urandom instead, just like
vold does.

BUG: 37084577

Test: build sdk_gphone_x86 target and lunch emualtor.
Change-Id: I9faa3b0356bb25f66a6686c5a5c3ff37a191a0f9
(cherry picked from commit 0c5aba7ab8f2e5e2bda49ec5719d2db213b0e127)
/system/hwservicemanager/TokenManager.cpp
d4530e491c82df0ef296af69ded1c10490fbc4e9 16-Mar-2017 Steven Moreland <smoreland@google.com> TokenManager: use secure tokens

Token manager tokens need to be larger then 64 bits so that we have
sufficient security. Allowing them to be variably sized gives us
sufficient flexibility to change the underlying implementation without
having to change the interface.

Bug: 33842662
Test: hidl_test
Test: (sanity) YouTube + Google Play Movies works
Test: camera video recording works
Test: lshal

Change-Id: I6a39e68b6b660cf00bf5363d9c66a8fa1ff2c6a5
(cherry picked from commit 78d1d05723b9c89c6d612b00a8d4fd5d3ce8118f)
/system/hwservicemanager/TokenManager.cpp
70468b5eca16e8c5f39211059fac44d2f596109a 28-Feb-2017 Steven Moreland <smoreland@google.com> TokenManager: Use sp in the map instead of wp.

Test: Mirroring, Camera, Photos, YouTube, and Play Movies apps.
Change-Id: Iebed71657f099d7dcd0dbc0de219f6e831c06427
/system/hwservicemanager/TokenManager.cpp
7b02bf9599142a2fc04102537f60c28dd8483e8b 02-Jan-2017 Martijn Coenen <maco@google.com> Callback elision for HIDL interfaces.

Bug: 31380743
Test: mma, hidl_test
Change-Id: Id15a4c935ee4a66921538df19c68acdb8436c6bc
/system/hwservicemanager/TokenManager.cpp
66ac401fabe4106f53e3352f0559cad082246d7b 22-Dec-2016 Steven Moreland <smoreland@google.com> Add android.hidl.token@1.0::ITokenManager impl.

For now, this service will be part of hwservicemanager because it is
also for registration and unregistration of services. There are a couple
main differences between IServiceManager and ITokenManager:

- IServiceManager keeps strong references to interfaces, but ITokenManager
keeps week references.
- IServiceManager receives the token (name) of an interface, but
ITokenManager creates and returns tokens to things registering
themselves.

Test: hidl_test passes:

make hidl_test hwservicemanager -j64 && adb sync && phone-kill
hwservicemanager && adb shell ./data/nativetest64/hidl_test/hidl_test64

(where phone-kill kills a process on my phone. hwservicemanager will
automatically restart)

Bug: 33058559
Change-Id: I09741aa99edb7c2c97ffc057c7ff71d9d9dabc02
/system/hwservicemanager/TokenManager.cpp