summaryrefslogtreecommitdiff
path: root/services/memtrackproxy
AgeCommit message (Collapse)Author
2023-03-03Memtrack: Fallback to HIDL implementation Kalesh Singh
Avoid attemptimg to get the HIDL service if we already got the AIDL service. This can help to reduce the warning logs from servicemanager on devices with an AIDL memtrack (this should be true for devices launching on recent desserts). servicemanager: Could not find android.hardware.memtrack.IMemtrack/default in the VINTF manifest. On devices still using a HILD implementation still expect to see service manager logs for the missing AIDL implemetation. Bug: 188388088 Test: Logcat Change-Id: Ifd740ff2d0a17b6fc46b217e0ca8861ef7dc5f1e Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
2021-08-09Remove ndk_platform backend. Use the ndk backend. Jiyong Park
The ndk_platform backend will soon be deprecated because the ndk backend can serve the same purpose. This is to eliminate the confusion about having two variants (ndk and ndk_platform) for the same ndk backend. Bug: 161456198 Test: m Merged-In: I1e84945fcfef3b2a300811f27ef57059eaf08553 Change-Id: I1564d49bea7f09f2ee211bc309a6e857f631dbdd
2021-04-09Don't retry getting memtrack hal service Kalesh Singh
On devices where the AIDL memtrack hal is absent, this can cause many service manager errors in logcat, since we retry getting the AIDL hal for each getMemory() call. servicemanager: Could not find android.hardware.memtrack.IMemtrack/defaut ... The hal services get started before we start the proxy service, so it's ok to remove this retry. Bug: 177664629 Test: Manual Change-Id: I2512e7eef0224d36827c0a4611373d0655cefc2f
2021-04-06[LSC] Add LOCAL_LICENSE_KINDS to frameworks/native Bob Badour
Added SPDX-license-identifier-Apache-2.0 to: services/memtrackproxy/Android.bp services/memtrackproxy/test/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I80b7dc5efdef18c80b7890234f51ed86ec5018fc
2021-04-05libmemtrackproxy Kalesh Singh
Helper library that implements memtrack proxy service. The service forwards requests to the appropriate AIDL or HIDL memtrack HAL if the following access control requirements are met: - Only AID_SYSTEM, AID_ROOT or AID_SHELL can request getMemory() for other processes, otherwise the requested PID must match the calling PID. - Only AID_SYSTEM, AID_ROOT or AID_SHELL can request getGpuDeviceInfo() If the above conditions are not met, the request is not forwarded to the memtrack HAL and a status with exception code EX_SECURITY is returned. Bug: 177664629 Test: memtrackproxy_test Change-Id: Icf3e0fa0500b2961b0945e800899881c9a3c86cf