User Tools

Site Tools


doc:appunti:android:programs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:android:programs [2018/11/05 16:23] – [Busybox] niccolodoc: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://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard|Hacker's Keyboard]] - Ottima per la modalità landscape e l'emulazione terminale: cursori, ctrl, Esc, ecc. Se necessario installare anche il relativo dizionario italiano.   * [[https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard|Hacker's Keyboard]] - Ottima per la modalità landscape e l'emulazione terminale: cursori, ctrl, Esc, ecc. Se necessario installare anche il relativo dizionario italiano.
   * [[https://play.google.com/store/apps/details?id=free.inputmethod.latin.perfectkeyboard|Perfect Keyboard Free]] - Ottima per la tastiera [[wp>T9_%28predictive_text%29|T9]], altamente configurabile, versione ridotta o completa, tasti cursore, ecc. Esiste anche il relativo pacchetto per la lingua italiana.   * [[https://play.google.com/store/apps/details?id=free.inputmethod.latin.perfectkeyboard|Perfect Keyboard Free]] - Ottima per la tastiera [[wp>T9_%28predictive_text%29|T9]], altamente configurabile, versione ridotta o completa, tasti cursore, ecc. Esiste anche il relativo pacchetto per la lingua italiana.
 +
 +===== SMS =====
 +
 +Some interesting alternatives for the SMS sending programs:
 +
 +  * My preferred is the open source **[[https://f-droid.org/en/packages/com.moez.QKSMS/|QKSMS]]** (11 Mb).
 +  * You can choose also the very light **[[https://play.google.com/store/apps/details?id=aos.andro.messaging|Messaging-AOSP]]** (only 7 Mb) derived from the Android Open Source Project.
 +  * Otherwise you can opt for the **[[https://play.google.com/store/apps/details?id=com.google.android.apps.messaging|Messaging]]** monster app from Google (32 Mb).
 +
 ====== Rimozione programmi di sistema ====== ====== Rimozione programmi di sistema ======
  
Line 342: Line 353:
 Questi file contengono le **impostazioni del programma**, si tratta delle impostazioni generali e quelle specifiche per ogni modalità di funzionamento (navigazione a piedi, in bicicletta, in auto, ecc.). Sembra che sia possibile copiare i file e riportarli da una versione ad un altra del programma. Questi file contengono le **impostazioni del programma**, si tratta delle impostazioni generali e quelle specifiche per ogni modalità di funzionamento (navigazione a piedi, in bicicletta, in auto, ecc.). Sembra che sia possibile copiare i file e riportarli da una versione ad un altra del programma.
  
-====== Termux ======+====== Terminale Termux ======
  
-Emulatore terminale e collezione di pacchetti GNU/Linux-like. Dopo aver installato l'emulatore è possibile installare con il comando **apt** diversi pacchetti con i tool da riga di comando più famosi (rsync, ssh, ecc.). +Vedere la pagina dedicata **[[termux]]**.
- +
-  * **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**: la versione del Google Play Store e quella di F-Droid non sono compatibili tra loro (es. l'app Termux e l'app Termux Widget devono avere la stessa origine), perché sonon firmate con chiavi diverse e non possono installarsi nella stessa directory. +
- +
-Ecco alcuni comandi che è possibile eseguire nel terminale, per installare pacchetti aggiuntivi: +
- +
-<code> +
-apt update +
-apt list +
-apt install mc +
-</code> +
-===== Directory ===== +
- +
-^ /data/data/com.termux/files/usr/local/bin/    | Script utente, impostare **mode 700**. +
-^ /data/data/com.termux/files/home/.shortcuts/  | Ogni script installato in questa directory diviene una entry nel menu Termux Widget. +
-^ /data/data/com.termux/files/home/.ssh/        | Configurazione ssh utente termux (chiave RSA pubblica/privata, ecc.)  | +
- +
-===== Script "Permission denied" ===== +
- +
-**ATTENZIONE**: Almeno in alcune versioni di Android 6.0 c'è un **problema di permessi** che va oltre i canonici permessi **rwx** Unix, si tratta del **security context** di **Selinux**. Se un file viene creato ad esempio dalla **adb shell** dall'utente root e poi viene opportunamente attribuito all'utente Termux con i permessi opportuni, può comunque **restare inaccessibile** all'interno dell'app Termux. Ecco un esempio da una sessione terminale Termux: +
- +
-<code> +
-id +
-uid=10099(u0_a99) gid=10099(u0_a99) groups=3003(inet),9997(everybody),50099(all_a99) +
-cd .shortcuts +
-ls -la +
--rwxr-xr-x u0_a99   u0_a99         48 2018-07-05 09:51 01_prova +
-cat 01_prova +
-cat: can't open '01_prova': Permission denied +
-</code> +
- +
-Con il comando **ls -Z** si vede che i file hanno un **security context** diverso; il file //pippo1// è accessibile dall'utente Termux, mentre il file //pippo2// non lo è: +
- +
-<code> +
--rwxr-xr-x u0_a99   u0_a99            u:object_r:app_data_file:s0:c512,c768 pippo1 +
--rwxr-xr-x u0_a99   u0_a99            u:object_r:app_data_file:s0 pippo2 +
-</code> +
- +
-Per **cambiare** il //security context// del file è sufficiente usare i comando: +
- +
-<code> +
-chcon "u:object_r:app_data_file:s0:c512,c768" pippo2 +
-</code> +
-===== Script .shortcuts ===== +
- +
-Ecco un esempio di script da eseguire tramite Termux Widget. È sufficiente crearlo nella directory **/data/data/com.termux/files/home/.shortcuts/**: +
- +
-<code bash> +
-#!/data/data/com.termux/files/usr/bin/sh +
-exec /data/data/com.termux/files/usr/local/bin/rsync-documents +
-</code> +
- +
-===== Problema ambiente adb shell ===== +
- +
-Se si accede al terminale con una **adb shell** anche di root non è semplice avere l'ambiente Termux completamente funzionante. Come prima cosa si può cambiare utente da root a quello Termux (verificare il nome che viene determinato al momento dell'installazione di Termux, basta guardare il proprietario della directory ''/data/data/com.termux/files/') e impostare le opportune PATH: +
- +
-<code> +
-su u0_a99 +
-export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib +
-export PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets +
-export HOME=/data/data/com.termux/files/home +
-export TMPDIR=/data/data/com.termux/files/usr/tmp +
-export TERM=linux +
-</code> +
- +
-Sarà possibile eseguire i programmi installati in Termux, ma non si avrà i **permessi per accedere alla rete**, ecc.+
  
 ====== Open Source File Managers ====== ====== Open Source File Managers ======
Line 433: 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 =====
  
Line 448: Line 390:
   * Does not support root explorer.   * Does not support root explorer.
  
-====== Busybox ======+====== BusyBox ======
  
 Installing **[[https://busybox.net/about.html|BusyBox]]** is one of the first thing that we do after rooting an Android device, sometimes BusyBox is included into the root kit itself. Installing **[[https://busybox.net/about.html|BusyBox]]** is one of the first thing that we do after rooting an Android device, sometimes BusyBox is included into the root kit itself.
Line 454: Line 396:
 In the past I relied on the free [[https://play.google.com/store/apps/details?id=stericson.busybox|Stericson BusyBox Free]] installer, which indeed is just an Android app, not the BusyBox binary. The app downloads and installs the (updated) BusyBox binary and creates the required symlinks. Quite obviously, it requires root privileges to do that. In the past I relied on the free [[https://play.google.com/store/apps/details?id=stericson.busybox|Stericson BusyBox Free]] installer, which indeed is just an Android app, not the BusyBox binary. The app downloads and installs the (updated) BusyBox binary and creates the required symlinks. Quite obviously, it requires root privileges to do that.
  
-I recently **experienced problems** with Stericson BusyBox Free version 62. When I launch the installer (and BusyBox is not installed yet), it says in the main screen:+I recently **experienced problems** with Stericson BusyBox Free version 62, installed on a Xiaomi Mi A1, running **Android One 8.1.0 Oreo**. When I launch the installer (and BusyBox is not installed yet), it says in the main screen:
  
 <code> <code>
Line 461: Line 403:
  
 Then it proposes to install busybox into **/sbin**, but after you tap the "Install" button, a pop-up will warn that: "//The original contents of /sbin are always restored upon boot and as a result busybox will be removed from /sbin upon next boot//". Then it proposes to install busybox into **/sbin**, but after you tap the "Install" button, a pop-up will warn that: "//The original contents of /sbin are always restored upon boot and as a result busybox will be removed from /sbin upon next boot//".
 +
 +May be the best choice is to install BusyBox into **/system/xbin**; that directory is almost empty on my device and it is into the **$PATH** system variable.
doc/appunti/android/programs.1541431415.txt.gz · Last modified: 2018/11/05 16:23 by niccolo