[lldb][Android] Add platform.plugin.remote-android.package-name
authorKazuki Sakamoto <sakamoto@splhack.org>
Wed, 14 Jun 2023 16:03:35 +0000 (09:03 -0700)
committerKazuki Sakamoto <kaz@meta.com>
Tue, 20 Jun 2023 23:17:21 +0000 (16:17 -0700)
commitfabd16c7460e6cfae3106155ec79142bfa54db2e
tree3fa7e34c067eaf662ee173dea80ba69d76cc01aa
parent49f55b025d81823fa7e2b287c8930a8304483e5a
[lldb][Android] Add platform.plugin.remote-android.package-name

When LLDB fails to pull file from a package directory due to security
constraint, user needs to set the package name to
'platform.plugin.remote-android.package-name' property to run shell commands
as the package user. (e.g. to get file with 'cat' and 'dd').

https://cs.android.com/android/platform/superproject/+/master:
system/core/run-as/run-as.cpp;l=39-61;
drc=4a77a84a55522a3b122f9c63ef0d0b8a6a131627

Differential Revision: https://reviews.llvm.org/D152933
lldb/source/Plugins/Platform/Android/CMakeLists.txt
lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
lldb/source/Plugins/Platform/Android/PlatformAndroid.h
lldb/source/Plugins/Platform/Android/PlatformAndroidProperties.td [new file with mode: 0644]
lldb/unittests/Platform/Android/PlatformAndroidTest.cpp