Temp 1851144630
Temp 1851144630
Temp 1851144630
comman 0% 0 --.-KB/s
command 1% 1.16M 5.77MB/s
commandl 10% 11.06M 27.5MB/s
commandli 20% 21.50M 35.7MB/s
commandlin 30% 31.62M 39.4MB/s
commandline 40% 42.09M 42.0MB/s
commandlinet 50% 52.44M 43.5MB/s
ommandlineto 60% 62.83M 44.7MB/s
mmandlinetoo 67% 71.11M 44.3MB/s
mandlinetool 75% 78.73M 43.6MB/s
andlinetools 81% 85.03M 42.4MB/s
ndlinetools- 86% 90.62M 41.1MB/s
dlinetools-l 93% 97.67M 40.6MB/s
linetools-li 99% 104.36M 40.0MB/s
commandlinet 100% 104.59M 40.0MB/s
in 2.6s
~/android-sdk/cmdline-tools $ unzip co
mmandlinetools-linux-7583922_latest.zi
p -d ~/android-sdk/cmdline-tools/
Archive: commandlinetools-linux-75839
22_latest.zip
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/avdmanager
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/sdkmanager
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/retrace
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/apkanalyzer
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/lint
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/screenshot2
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/bin/profgen
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdklib/libavdmanager_lib
.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdklib/sdklib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/annotations/libannotatio
ns.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/common/common.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/code
/findbugs/jsr305/3.0.2/jsr305-3.0.2.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/erro
rprone/error_prone_annotations/2.3.4/e
rror_prone_annotations-2.3.4.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/guav
a/failureaccess/1.0.1/failureaccess-1.
0.1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/guav
a/listenablefuture/9999.0-empty-to-avo
id-conflict-with-guava/listenablefutur
e-9999.0-empty-to-avoid-conflict-with-
guava.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/j2ob
jc/j2objc-annotations/1.3/j2objc-annot
ations-1.3.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/checkerfram
ework/checker-qual/3.5.0/checker-qual-
3.5.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/guav
a/guava/30.1-jre/guava-30.1-jre.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-stdlib-common/1.4.32/kotl
in-stdlib-common-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/a
nnotations/13.0/annotations-13.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-stdlib/1.4.32/kotlin-stdl
ib-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/kotlin-plugin-i
j/Kotlin/kotlinc/lib/kotlin-stdlib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/device_validator/dvlib.j
ar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/layoutlib-api/layoutlib-
api.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/net/sf/kxml/kxm
l2/2.3.0/kxml2-2.3.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/repository/repository.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/analytics-library/protos
/src/main/proto/libproto.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/prot
obuf/protobuf-java/3.10.0/protobuf-jav
a-3.10.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/analytics-library/shared
/analytics-shared.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/google/code
/gson/gson/2.8.6/gson-2.8.6.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/net/java/dev/jn
a/jna/5.6.0/jna-5.6.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/net/java/dev/jn
a/jna-platform/5.6.0/jna-platform-5.6.
0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-stdlib-jdk7/1.4.32/kotlin
-stdlib-jdk7-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-stdlib-jdk8/1.4.32/kotlin
-stdlib-jdk8-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/jakarta/activat
ion/jakarta.activation-api/1.2.1/jakar
ta.activation-api-1.2.1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/jakarta/xml/bin
d/jakarta.xml.bind-api/2.3.2/jakarta.x
ml.bind-api-2.3.2.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/apache/comm
ons/commons-compress/1.20/commons-comp
ress-1.20.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/sun/istack/
istack-commons-runtime/3.0.8/istack-co
mmons-runtime-3.0.8.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/sun/xml/fas
tinfoset/FastInfoset/1.2.16/FastInfose
t-1.2.16.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/glassfish/j
axb/txw2/2.3.2/txw2-2.3.2.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jvnet/staxe
x/stax-ex/1.8.1/stax-ex-1.8.1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/glassfish/j
axb/jaxb-runtime/2.3.2/jaxb-runtime-2.
3.2.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/commons-logging
/commons-logging/1.2/commons-logging-1
.2.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/commons-codec/c
ommons-codec/1.10/commons-codec-1.10.j
ar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/apache/http
components/httpcore/4.4.10/httpcore-4.
4.10.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/apache/http
components/httpclient/4.5.6/httpclient
-4.5.6.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdklib/libsdkmanager_lib
.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/r8.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/apkparser/cli/analyzer-c
li.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/apkparser/binary-resourc
es.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/apkparser/analyzer/analy
zer.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/archive-patcher
/explainer.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/archive-patcher
/generator.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/archive-patcher
/shared.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint/lint-api.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint/lint-model.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/builder-mod
el/libbuilder-model.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdk-common/sdk-common.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/aaptcompile
r/libaaptcompiler.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/analytics-library/tracke
r/analytics-tracker.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/aapt2-proto
/libaapt2-proto-with-notice.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/bouncycastl
e/bcprov-jdk15on/1.56/bcprov-jdk15on-1
.56.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/bouncycastl
e/bcpkix-jdk15on/1.56/bcpkix-jdk15on-1
.56.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/builder-tes
t-api/builder-test-api.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/ddmlib/ddmlib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/android/too
ls/build/aapt2-proto/4.1.0-alpha01-619
3524/aapt2-proto-4.1.0-alpha01-6193524
.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/javax/inject/ja
vax.inject/1/javax.inject-1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/i
ntellij/deps/trove4j/1.0.20181211/trov
e4j-1.0.20181211.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlin/kotlin-reflect/1.4.32/kotlin-ref
lect-1.4.32.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/xml-apis/xml-ap
is/1.4.01/xml-apis-1.4.01.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/xerces/xercesIm
pl/2.12.0/xercesImpl-2.12.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/lint-psi/intell
ij-core/intellij-core-all.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/lint-psi/kotlin
-compiler/kotlin-compiler-all.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/lint-psi/uast/u
ast-all.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/build-system/manifest-me
rger.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/ow2/asm/asm
/7.0/asm-7.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/ow2/asm/asm
-tree/7.0/asm-tree-7.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint/lint-checks.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/ow2/asm/asm
-analysis/7.0/asm-analysis-7.0.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/com/beust/jcomm
ander/1.78/jcommander-1.78.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/smali/util/
2.2.4/util-2.2.4.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/smali/dexli
b2/2.2.4/dexlib2-2.2.4.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/smali/baksm
ali/2.2.4/baksmali-2.2.4.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/net/sf/jopt-sim
ple/jopt-simple/4.9/jopt-simple-4.9.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint/cli/libcli.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/misc/screenshot2/libscre
enshot2lib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/profgen/profgen-cli/libp
rofgen-cli-lib.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/external/org/jetbrains/k
otlinx/kotlinx-cli-jvm/0.3.1/kotlinx-c
li-jvm-0.3.1.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/profgen/profgen/libprofg
en.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/avdmanager-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/sdkmanager-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/retrace-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/apkanalyzer-classpath.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/lint-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/screenshot2-classpath.ja
r
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/profgen-classpath.jar
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/source.properties
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/NOTICE.txt
extracting: /data/data/com.termux/fil
es/home/android-sdk/cmdline-tools/cmdl
ine-tools/lib/README
~/android-sdk/cmdline-tools $ mkdir ~/
android-sdk/cmdline-tools/latest
mv ~/android-sdk/cmdline-tools/cmdline
-tools/* ~/android-sdk/cmdline-tools/l
atest/
~/android-sdk/cmdline-tools $ ~/androi
d-sdk/cmdline-tools/latest/bin/sdkmana
ger --sdk_root=~/android-sdk "platform
-tools" "build-tools;30.0.3" "platform
s;android-30"
~/android-sdk/cmdline-tools $ ~/androi
d-sdk/cmdline-tools/latest/bin/sdkmana
ger --sdk_root=~/android-sdk "platform
-tools" "build-tools;30.0.3" "platform
s;android-30"
~/android-sdk/cmdline-tools $ gradle -
v
The program gradle is not installed.
Install it by executing:
pkg install gradle
~/android-sdk/cmdline-tools $ pkg inst
all gradle
No mirror or mirror group selected. Yo
u might want to select one by running
'termux-change-repo'
Checking availability of current mirro
r:
[*] https://mirror.nyist.edu.cn/termux
/apt/termux-main: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be ins
talled:
gradle
0 upgraded, 1 newly installed, 0 to re
move and 29 not upgraded.
Need to get 134 MB of archives.
After this operation, 152 MB of additi
onal disk space will be used.
Get:1 https://mirror.nyist.edu.cn/term
ux/apt/termux-main stable/main aarch64
gradle all 1:8.10.2 [134 MB]
Fetched 134 MB in 41s (3286 kB/s)
Selecting previously unselected packag
e gradle.
(Reading database ... 27854 files and
directories currently installed.)
Preparing to unpack .../gradle_1%3a8.1
0.2_all.deb ...
Unpacking gradle (1:8.10.2) ...
Setting up gradle (1:8.10.2) ...
~/android-sdk/cmdline-tools $ gradle -
v
~/android-sdk/cmdline-tools $ # Verify
Gradle configuration
~/android-sdk/cmdline-tools $ # Locate
the Java binary
~/android-sdk/cmdline-tools $ which ja
va
The program which is not installed. In
stall it by executing:
pkg install which
~/android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools $ # Find t
he full path of the Java executable
~/android-sdk/cmdline-tools $ readlink
-f $(which java)
The program which is not installed. In
stall it by executing:
pkg install which
readlink: missing operand
Try 'readlink --help' for more informa
tion.
~/android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools $ # Set JA
VA_HOME based on the correct path
~/android-sdk/cmdline-tools $ export J
AVA_HOME=/data/data/com.termux/files/u
sr/lib/jvm/openjdk-17
~/android-sdk/cmdline-tools $ export P
ATH=$PATH:$JAVA_HOME/bin ~
/android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools $ # Make t
he change permanent ~
/android-sdk/cmdline-tools $ echo 'exp
ort JAVA_HOME=/data/data/com.termux/fi
les/usr/lib/jvm/openjdk-17' >> ~/.bash
rc
~/android-sdk/cmdline-tools $ echo 'ex
port PATH=$PATH:$JAVA_HOME/bin' >> ~/.
bashrc ~/android-sdk/
cmdline-tools $ source ~/.bashrc ~/
android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools $ # Verify
Java installation ~
/android-sdk/cmdline-tools $ java -ver
sion
openjdk version "17-internal" 2021-09-
14
OpenJDK Runtime Environment (build 17-
internal+0-adhoc..src) O
penJDK 64-Bit Server VM (build 17-inte
rnal+0-adhoc..src, mixed mode) ~/
android-sdk/cmdline-tools $
~/android-sdk/cmdline-tools
$ # Verify Gradle configuration
~/android-sdk/cmdline-tools $
gradle -v
--------------------------------------
---------------------- G
radle 8.10.2 --------------
--------------------------------------
--------
Build time: 2024-09-23 21:28:39 UTC
Revision: 415adb9e06a
516c44b391edff552fd42139443f7
Kotlin: 1.9.24 Groovy:
3.0.22
Ant: Apache Ant(TM) version
1.10.14 compiled on August 16 2023 L
auncher JVM: 17-internal (Oracle Corp
oration 17-internal+0-adhoc..src)
Daemon JVM: /data/data/com.termux/f
iles/usr/lib/jvm/java-17-openjdk (no J
DK specified, using current Java home)
OS: Linux 6.1.57
-android14-11-g792270e27ab1-ab11683491
aarch64
~/android-sdk/cmdline-tools $ #!/bin/b
ash
~/android-sdk/cmdline-tools $ #!/bin/b
ash
~/android-sdk/cmdline-tools $ #!/bin/b
ash