doc:appunti:android:programs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:android:programs [2019/09/17 11:25] – [SSH con ADB port forward] niccolo | doc:appunti:android:programs [2022/11/21 18:07] (current) – niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Programmi Android ====== | ====== Programmi Android ====== | ||
+ | |||
+ | * **[[librera_reader]]** | ||
===== Open GPS Tracker ===== | ===== Open GPS Tracker ===== | ||
Line 224: | Line 226: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== SMS ===== | ||
+ | |||
+ | Some interesting alternatives for the SMS sending programs: | ||
+ | |||
+ | * My preferred is the open source **[[https:// | ||
+ | * You can choose also the very light **[[https:// | ||
+ | * Otherwise you can opt for the **[[https:// | ||
+ | |||
====== Rimozione programmi di sistema ====== | ====== Rimozione programmi di sistema ====== | ||
Line 342: | Line 353: | ||
Questi file contengono le **impostazioni del programma**, | Questi file contengono le **impostazioni del programma**, | ||
- | ====== Termux ====== | + | ====== |
- | Emulatore terminale e collezione di pacchetti GNU/ | + | Vedere la pagina dedicata |
- | * **Termux** | ||
- | * **Termux Widget** (a pagamento sul Google Play Store) | ||
- | |||
- | Il pacchetto Termux Widget è particolarmente utile perché consente di aggiungere sul desktop un menu con un elenco di comandi eseguibili con un tap. Ogni voce di menu corrisponde ad uno script di shell installato in una apposita directory. | ||
- | |||
- | Essendo software open source, è disponibile anche la versione free su F-Droid. **ATTENZIONE**: | ||
- | |||
- | Ecco alcuni comandi che è possibile eseguire nel terminale, per installare pacchetti aggiuntivi: | ||
- | |||
- | < | ||
- | apt update | ||
- | apt list | ||
- | apt install mc | ||
- | </ | ||
- | ===== Directory ===== | ||
- | |||
- | ^ / | ||
- | ^ / | ||
- | ^ / | ||
- | |||
- | ===== Script " | ||
- | |||
- | **ATTENZIONE**: | ||
- | |||
- | < | ||
- | id | ||
- | uid=10099(u0_a99) gid=10099(u0_a99) groups=3003(inet), | ||
- | cd .shortcuts | ||
- | ls -la | ||
- | -rwxr-xr-x u0_a99 | ||
- | cat 01_prova | ||
- | cat: can't open ' | ||
- | </ | ||
- | |||
- | Con il comando **ls -Z** si vede che i file hanno un **security context** diverso; il file //pippo1// è accessibile dall' | ||
- | |||
- | < | ||
- | -rwxr-xr-x u0_a99 | ||
- | -rwxr-xr-x u0_a99 | ||
- | </ | ||
- | |||
- | Per **cambiare** il //security context// del file è sufficiente usare i comando: | ||
- | |||
- | < | ||
- | chcon " | ||
- | </ | ||
- | ===== Script .shortcuts ===== | ||
- | |||
- | Ecco un esempio di script da eseguire tramite Termux Widget. È sufficiente crearlo nella directory **/ | ||
- | |||
- | <code bash> | ||
- | # | ||
- | exec / | ||
- | </ | ||
- | |||
- | ===== Problema ambiente Termux via ADB shell ===== | ||
- | |||
- | FIXME Questa ricetta non è funzionante al 100%. In effetti i problemi sono due: accedere con **adb shell** come **utente root** ed avere l' | ||
- | |||
- | Se da un PC si accede al device via //USB Debug// e **ADB shell** non è semplice avere l' | ||
- | |||
- | **Con i permessi di root** nella ADB shell è possibile ricreare l' | ||
- | |||
- | < | ||
- | su u0_a99 | ||
- | export LD_LIBRARY_PATH=/ | ||
- | export PATH=/ | ||
- | export HOME=/ | ||
- | export TMPDIR=/ | ||
- | export TERM=linux | ||
- | </ | ||
- | |||
- | * FIXME Sarà possibile eseguire i programmi installati in Termux, ma non si avrà i **permessi per accedere alla rete**, ecc. | ||
- | * FIXME Sarebbe preferibile impostare **TERM=xterm-256color** che dovrebbe essere l' | ||
- | |||
- | Se si mantiene l' | ||
- | |||
- | Eventuali script di shell dovranno utilizzare l' | ||
- | |||
- | * **/ | ||
- | * **/ | ||
- | * **/ | ||
- | |||
- | ===== SSH con ADB port forward ===== | ||
- | |||
- | Nell' | ||
- | |||
- | < | ||
- | apt install openssh | ||
- | sshd | ||
- | </ | ||
- | |||
- | FXIME: Il demone quanta batteria consuma? Sopravvive alla chiusura del terminale Termux? Sopravvive al reboot del telefono? | ||
- | |||
- | Poiché non è possibile usare l' | ||
- | |||
- | < | ||
- | ls -lZ | ||
- | total 16 | ||
- | -rw------- 1 u0_a96 u0_a96 u: | ||
- | -rw------- 1 u0_a96 u0_a96 u: | ||
- | -rw------- 1 u0_a96 u0_a96 u: | ||
- | -rw-r--r-- 1 u0_a96 u0_a96 u: | ||
- | </ | ||
- | |||
- | Sul PC GNU/Linux avviare il port forward via ADB e poi collegarsi con ssh: | ||
- | |||
- | < | ||
- | adb forward tcp:8022 tcp:8022 | ||
- | ssh localhost -p 8022 | ||
- | </ | ||
====== Open Source File Managers ====== | ====== Open Source File Managers ====== | ||
Line 474: | Line 374: | ||
* Support root explorer. | * Support root explorer. | ||
* Support WebDAV and other sources (SMB, SFTP, etc.) using plugins. Unfortunately some plugins are available only from Google Play, so being incompatible with the main app from F-Droid. | * Support WebDAV and other sources (SMB, SFTP, etc.) using plugins. Unfortunately some plugins are available only from Google Play, so being incompatible with the main app from F-Droid. | ||
+ | |||
===== OI File Manager ===== | ===== OI File Manager ===== | ||
doc/appunti/android/programs.txt · Last modified: 2022/11/21 18:07 by niccolo