From 982d532704b89cf930723c159febf817770cd425 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Tue, 16 Mar 2021 19:05:01 +0200 Subject: [PATCH] Make Termux debuggable to allow ADB 'run-as' This resolves #924 and makes it possible to access Termux directrly from `adb shell` via `run-as`. Not totally elegant, but it works: ``` % adb shell dreamlte:/ $ run-as com.termux dreamlte:/data/data/com.termux $ PATH=/data/data/com.termux/files/usr/bin LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so /data/data/com.termux/files/usr/bin/bash -l ~ $ python Python 3.9.2 (default, Feb 22 2021, 12:26:04) [Clang 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489 on linux Type "help", "copyright", "credits" or "license" for more information. >>> ``` --- app/src/main/AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 035fc8dafa..e2997fa3e2 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -33,6 +33,7 @@ android:banner="@drawable/banner" android:label="@string/application_name" android:theme="@style/Theme.Termux" + android:debuggable="true" android:supportsRtl="false" >