— a/system/core/adb/daemon/shell_service.cpp
+++ b/system/core/adb/daemon/shell_service.cpp
@@ -852,7 +852,13 @@ unique_fd StartSubprocess(std::string name, const char* terminal_type, Subproces
unique_fd StartCommandInProcess(std::string name, Command command, SubprocessProtocol protocol) {
LOG(INFO) << “StartCommandInProcess(” << dump_hex(name.data(), name.size()) << “)”;
-
std::string str= android::base::GetProperty("persist.custom.package.install", "false");
-
LOG(INFO) << "StartCommandInProcess str (" << str.c_str() << ")";
-
if (strcmp(str.c_str(),"false") ==0){
-
return ReportError(protocol, "failed not install package");
- }
constexpr auto terminal_type = “”;
constexpr auto type = SubprocessType::kRaw;
constexpr auto make_pty_raw = false;