Skip to content

Instantly share code, notes, and snippets.

@jaimemrjm
Last active September 26, 2025 12:25
Show Gist options
  • Select an option

  • Save jaimemrjm/941dfc7050ca89ae85f4acb106879fd3 to your computer and use it in GitHub Desktop.

Select an option

Save jaimemrjm/941dfc7050ca89ae85f4acb106879fd3 to your computer and use it in GitHub Desktop.

Revisions

  1. jaimemrjm revised this gist Sep 26, 2025. 1 changed file with 16 additions and 2 deletions.
    18 changes: 16 additions & 2 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,15 @@
    3. Open the keepassx database, config your Nextcloud app.
    4. Config keepassx2Android to use Nextcloud app.
    5. Install the latest [TaskerSettings](https://github.com/joaomgcd/TaskerSettings/releases) by using adb
    6. Set manually Android [system permissions for Tasker](https://tasker.joaoapps.com/userguide/en/help/ah_secure_setting_grant.html) by using adb and enable "Modify system settings" in the Android settings for Tasker.
    7. Enjoy your Android phone.
    6. Set manually Android [system permissions for Tasker](https://tasker.joaoapps.com/userguide/en/help/ah_secure_setting_grant.html) by using adb and enable "Modify system settings" in the Android settings for Tasker.
    7. Login in all my authorization/identification/securized apps:
    * Authy
    * Cl@ave
    * Microsoft Authenticator (requires to get the code from the old phone)
    * MiDGT
    * Nextcloud
    * Finance apps
    9. Enjoy your Android phone.


    # SSH Server in Android
    @@ -130,6 +137,13 @@ On termux:
    - Disable battery optimization for Android Auto app
    - Wi-Fi -> Intelligent Wi-Fi: disable Change to better Wi-Fi networks

    ## Saving battery

    (TODO merge from another personal gist)

    - [Enable Location tracking in Home Assistant zones based on Android geofences](https://companion.home-assistant.io/docs/core/location/)


    ## Reference
    - [Back up Files from Android with rsync and Termux](https://howtos.davidsebek.com/android-rsync-termux.html)
    - [Access Termux via USB](https://glow.li/technology/2016/9/20/access-termux-via-usb/)
  2. jaimemrjm revised this gist Sep 20, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -62,7 +62,7 @@ adb shell pm install -r -d /data/local/tmp/xyz.apk
    ```
    # DNS config

    Recommended to config a private DNS from a public available one in your country. For example: [ControlD](https://controld.com/free-dns) Malware+Ads.
    Recommended to config a private DNS from a public available one in your country or region. For example, I like : [DNS4.eu](https://www.joindns4.eu/for-public#resolver-options).

    # Samsung Dex tips

  3. jaimemrjm revised this gist Sep 20, 2025. 1 changed file with 13 additions and 2 deletions.
    15 changes: 13 additions & 2 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,14 @@
    # Restore apps when new Android phone

    1. Install termux, rsync and copy your SSH key and restore your files with rsync (see next section).
    2. Copy your keepassx database via adb, Telegram or Google Drive.
    3. Open the keepassx database, config your Nextcloud app.
    4. Config keepassx2Android to use Nextcloud app.
    5. Install the latest [TaskerSettings](https://github.com/joaomgcd/TaskerSettings/releases) by using adb
    6. Set manually Android [system permissions for Tasker](https://tasker.joaoapps.com/userguide/en/help/ah_secure_setting_grant.html) by using adb and enable "Modify system settings" in the Android settings for Tasker.
    7. Enjoy your Android phone.


    # SSH Server in Android

    [Termux](https://termux.com/) in a powerful app to run a Linux environment, making possible your Android phone has some applications or tools like a desktop computer. So you could backup your phone content seamlessly without any propietary cloud. You can use the embedded ssh server running at 8022 port.
    @@ -42,7 +53,7 @@ If you have no WiFi available (for example, by train/underground/plane...) or yo

    `ssh localhost -p 8022`.

    # How to downgrade an Android without losing data and removing it
    # How to downgrade an Android app without losing data and removing it

    ```sh
    # Download the apk before
    @@ -57,7 +68,7 @@ Recommended to config a private DNS from a public available one in your country.

    ## Browser recommended

    [Samsung Internet Browser](https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser) includes IA, is fast and optimized for Samsung Dex. The Adguard Content Blocker addon gets a good mark in https://adblock-tester.com/
    [Brave browser](https://github.com/brave/brave-browser/wiki/Installing-Brave-on-Android)) includes IA, is fast, [low-battery consumption](https://greenspector.com/en/which-are-the-best-android-and-ios-web-browsers-to-use-edition-2024/), not bad in Samsung Dex and gets a good mark in https://adblock-tester.com/

    ### Alternative browsers

  4. jaimemrjm revised this gist Sep 19, 2025. 1 changed file with 9 additions and 12 deletions.
    21 changes: 9 additions & 12 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,8 @@
    # FTP Server in Android

    - Propietary app: https://play.google.com/store/apps/details?id=com.medhaapps.wififtpserver
    - Open source app: https://ppareit.github.io/swiftp/

    # SSH Server in Android

    [Termux](https://termux.com/) in a powerful app to run a Linux environment, making possible your Android phone has some applications or tools like a desktop computer. So you could backup your phone content seamlessly without any propietary cloud. You can use the embedded ssh server running at 8022 port.

    Install ssh server is easy in Termux: `pkg install openssh`
    Allow [storage permissions](https://wiki.termux.com/wiki/Termux-setup-storage) and install ssh server is easy in Termux: `pkg install openssh`.

    ## Config your SSH config in your computer

    @@ -26,13 +21,16 @@ Get the user name, and set the password with the command `passwd`.
    (Optionally) Install rsync: `pkg install rsync`

    Then copy your public key from your computer:
    `ssh-copy-id -i ~/.ssh/id_rsa.pub -p 8022 <your_phone_ip>`
    `ssh-copy-id -i ~/.ssh/id_rsa.pub <your_phone_ip>`

    ## Backup/Sync your phone files to your computer

    - Start the SSH server from Termux: `sshd`
    - Start the SSH server in background from Termux: `sshd` or `sshd -D` if you want to stop in any case.
    - Get the Android IP network adderss: `ip a`
    - Rsync from your computer: `rsync -rvlc --exclude={thumbnails,.thumbnails,tmfs,.tmfs,trash,.Trash} --delete-excluded myphone:/sdcard <backup_path_in_your_computer>`
    - Rsync from your computer:
    ```
    rsync -avz --no-perms --no-times --exclude=thumbnails --exclude=.thumbnails --exclude=tmfs --exclude=.tmfs --exclude=trash --exclude=.Trash --delete-excluded galaxys24:~/storage/shared/ <your_phone_ip>:/~/storage/shared <backup_path_in_your_computer>
    ```

    ### Disable password authentication (optionally)

    @@ -119,11 +117,10 @@ On termux:
    ### AA Wireless tips

    - Disable battery optimization for Android Auto app
    - Wi-Fi - Intelligent Wi-Fi: disable Change to better Wi-Fi networks
    - Wi-Fi -> Intelligent Wi-Fi: disable Change to better Wi-Fi networks

    ## Reference
    - [Run an SSH server on your Android with Termux](https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/)
    - [Back up Files from Android with rsync and Termux](https://howtos.davidsebek.com/android-rsync-termux.html)
    - [Access Termux via USB](https://glow.li/technology/2016/9/20/access-termux-via-usb/)
    - [Instalar servidor SSH sobre...](https://parzibyte.me/blog/2019/07/31/servidor-ssh-termux-android/)
    - [Disable Phantom Process Killing](https://github.com/agnostic-apollo/Android-Docs/blob/master/en/docs/apps/processes/phantom-cached-and-empty-processes.md#commands-to-disable-phantom-process-killing-and-tldr)
    - [Install Visual Studio Code](https://gist.github.com/ppoffice/b9e88c9fd1daf882bc0e7f31221dda01)
  5. jaimemrjm revised this gist Mar 10, 2025. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -78,7 +78,16 @@ It seems WiFi + Power charging + Display on output screen + Mobile Data makes po
    Copy&paste works mostly in apps but in terminal apps doesn't work Ctrl-v is not correct shortcut for pasting. That's a reserved key combination. In Termux works:
    - Paste: Ctrl+Alt+V

    ## Tip for Termux when Android >= 12L
    ## Termux

    ### Change font size on Samsung Dex

    In Samsung DeX you cannot pinch-to-zoom, but you can adjust the font size in Termux using the keyboard shortcuts:

    Ctrl + Alt + - → Decrease font size
    Ctrl + Alt + = → Increase font size

    ### Tip for Termux when Android >= 12L
    Run command once to disable killing of phantom processes and processes using excessive cpu (recommeded for Termux in Android 12L or 13):

    `adb shell "settings put global settings_enable_monitor_phantom_procs false"`
  6. jaimemrjm revised this gist Mar 6, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -69,6 +69,7 @@ Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is a
    * Fission is enabled by default but [is not already approved](https://bugzilla.mozilla.org/show_bug.cgi?id=1610822)
    * Firefox (and its forks) are [not resizeable](https://bugzilla.mozilla.org/show_bug.cgi?id=1813635) in Desktop Mode.
    * Huge fonts in Samsung Dex: https://www.reddit.com/r/firefox/comments/1gu9g9p/rant_dex_issue_huge_text_on_website/
    * [Several issues](https://gitlab.com/ironfox-oss/IronFox/#known-issues) but the majority have a workaround.

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
    It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface).
  7. jaimemrjm revised this gist Feb 24, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -67,7 +67,7 @@ Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is a

    [Ironfox](https://gitlab.com/ironfox-oss/IronFox) plus some privacy addons like uBlock Origin, Privacy Badger... is the best open source alternative for me. You may set Enhanced Tracking Protection to Standard level, because some sites like Paypal could have issues. Take into account that:
    * Fission is enabled by default but [is not already approved](https://bugzilla.mozilla.org/show_bug.cgi?id=1610822)
    * It's [not resizeable](https://bugzilla.mozilla.org/show_bug.cgi?id=1813635)
    * Firefox (and its forks) are [not resizeable](https://bugzilla.mozilla.org/show_bug.cgi?id=1813635) in Desktop Mode.
    * Huge fonts in Samsung Dex: https://www.reddit.com/r/firefox/comments/1gu9g9p/rant_dex_issue_huge_text_on_website/

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
  8. jaimemrjm revised this gist Feb 23, 2025. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -61,10 +61,14 @@ Recommended to config a private DNS from a public available one in your country.

    [Samsung Internet Browser](https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser) includes IA, is fast and optimized for Samsung Dex. The Adguard Content Blocker addon gets a good mark in https://adblock-tester.com/

    ### Alternative browser
    ### Alternative browsers

    Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is the best open source alternative for me. It fails for some authentication webviews, so I cannot set as my default browser.
    Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is an open source alternative. It fails for some authentication webviews, so I cannot set as my default browser.

    [Ironfox](https://gitlab.com/ironfox-oss/IronFox) plus some privacy addons like uBlock Origin, Privacy Badger... is the best open source alternative for me. You may set Enhanced Tracking Protection to Standard level, because some sites like Paypal could have issues. Take into account that:
    * Fission is enabled by default but [is not already approved](https://bugzilla.mozilla.org/show_bug.cgi?id=1610822)
    * It's [not resizeable](https://bugzilla.mozilla.org/show_bug.cgi?id=1813635)
    * Huge fonts in Samsung Dex: https://www.reddit.com/r/firefox/comments/1gu9g9p/rant_dex_issue_huge_text_on_website/

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
    It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface).
  9. jaimemrjm revised this gist Jan 28, 2025. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -100,6 +100,13 @@ On termux:
    pkg i tur-repo
    pkg i code-oss code-is-code-oss

    ## Android Auto

    ### AA Wireless tips

    - Disable battery optimization for Android Auto app
    - Wi-Fi - Intelligent Wi-Fi: disable Change to better Wi-Fi networks

    ## Reference
    - [Run an SSH server on your Android with Termux](https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/)
    - [Access Termux via USB](https://glow.li/technology/2016/9/20/access-termux-via-usb/)
  10. jaimemrjm revised this gist Nov 27, 2024. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -65,9 +65,6 @@ Recommended to config a private DNS from a public available one in your country.

    Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is the best open source alternative for me. It fails for some authentication webviews, so I cannot set as my default browser.

    ## Private DNS config

    Recommended private DNS to config:

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
    It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface).
  11. jaimemrjm revised this gist Nov 27, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -63,7 +63,7 @@ Recommended to config a private DNS from a public available one in your country.

    ### Alternative browser

    Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is the best open source alternative for me.
    Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is the best open source alternative for me. It fails for some authentication webviews, so I cannot set as my default browser.

    ## Private DNS config

  12. jaimemrjm revised this gist Apr 29, 2024. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -51,6 +51,9 @@ If you have no WiFi available (for example, by train/underground/plane...) or yo
    adb push xyz.apk /data/local/tmp/
    adb shell pm install -r -d /data/local/tmp/xyz.apk
    ```
    # DNS config

    Recommended to config a private DNS from a public available one in your country. For example: [ControlD](https://controld.com/free-dns) Malware+Ads.

    # Samsung Dex tips

    @@ -62,6 +65,10 @@ adb shell pm install -r -d /data/local/tmp/xyz.apk

    Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is the best open source alternative for me.

    ## Private DNS config

    Recommended private DNS to config:

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
    It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface).

  13. jaimemrjm revised this gist Mar 25, 2024. 1 changed file with 1 addition and 6 deletions.
    7 changes: 1 addition & 6 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -60,12 +60,7 @@ adb shell pm install -r -d /data/local/tmp/xyz.apk

    ### Alternative browser

    Mozilla Firefox (Android) has support to install addons but needs some tweaks to improve performance:
    - https://www.reddit.com/r/firefox/comments/11shvus/fixing_performance_problems_in_firefox_on_android/
    - https://www.reddit.com/r/browsers/comments/1278zp5/improving_performance_in_firefox_android_part_ii/
    - https://www.reddit.com/r/browsers/comments/19emwvq/comment/kjffnww/
    - https://bugzilla.mozilla.org/show_bug.cgi?id=1610822 [pending implementation]

    Cromite browser plus [adblocking userscripts](https://userscripts.010.one/) is the best open source alternative for me.

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
    It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface).
  14. jaimemrjm revised this gist Feb 8, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -63,6 +63,7 @@ adb shell pm install -r -d /data/local/tmp/xyz.apk
    Mozilla Firefox (Android) has support to install addons but needs some tweaks to improve performance:
    - https://www.reddit.com/r/firefox/comments/11shvus/fixing_performance_problems_in_firefox_on_android/
    - https://www.reddit.com/r/browsers/comments/1278zp5/improving_performance_in_firefox_android_part_ii/
    - https://www.reddit.com/r/browsers/comments/19emwvq/comment/kjffnww/
    - https://bugzilla.mozilla.org/show_bug.cgi?id=1610822 [pending implementation]


  15. jaimemrjm revised this gist Feb 8, 2024. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -58,6 +58,13 @@ adb shell pm install -r -d /data/local/tmp/xyz.apk

    [Samsung Internet Browser](https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser) includes IA, is fast and optimized for Samsung Dex. The Adguard Content Blocker addon gets a good mark in https://adblock-tester.com/

    ### Alternative browser

    Mozilla Firefox (Android) has support to install addons but needs some tweaks to improve performance:
    - https://www.reddit.com/r/firefox/comments/11shvus/fixing_performance_problems_in_firefox_on_android/
    - https://www.reddit.com/r/browsers/comments/1278zp5/improving_performance_in_firefox_android_part_ii/
    - https://bugzilla.mozilla.org/show_bug.cgi?id=1610822 [pending implementation]


    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
    It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface).
  16. jaimemrjm revised this gist Jan 30, 2024. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -52,13 +52,12 @@ adb push xyz.apk /data/local/tmp/
    adb shell pm install -r -d /data/local/tmp/xyz.apk
    ```

    # Browser recommended
    # Samsung Dex tips

    Fast, opensource, privacy protection: [Cromite](https://github.com/uazo/cromite).
    ## Browser recommended

    Compatible uerscript to bypass paywalls: https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters#userscripts
    [Samsung Internet Browser](https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser) includes IA, is fast and optimized for Samsung Dex. The Adguard Content Blocker addon gets a good mark in https://adblock-tester.com/

    # Samsung Dex tips

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
    It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface).
  17. jaimemrjm revised this gist Jan 22, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -54,7 +54,8 @@ adb shell pm install -r -d /data/local/tmp/xyz.apk

    # Browser recommended

    Fast, opensource, privacy protection: [Cromite](https://github.com/uazo/cromite)
    Fast, opensource, privacy protection: [Cromite](https://github.com/uazo/cromite).

    Compatible uerscript to bypass paywalls: https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters#userscripts

    # Samsung Dex tips
  18. jaimemrjm revised this gist Jan 22, 2024. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,12 @@ If you have no WiFi available (for example, by train/underground/plane...) or yo
    adb push xyz.apk /data/local/tmp/
    adb shell pm install -r -d /data/local/tmp/xyz.apk
    ```


    # Browser recommended

    Fast, opensource, privacy protection: [Cromite](https://github.com/uazo/cromite)
    Compatible uerscript to bypass paywalls: https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters#userscripts

    # Samsung Dex tips

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
  19. jaimemrjm revised this gist Jan 6, 2024. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -68,6 +68,8 @@ Run command once to disable killing of phantom processes and processes using exc

    ## Visual Studio Code on Samsung Dex

    ### code-server (vscode on browser)

    Install code-server from Termux is easy but have a version that works is not easy:
    ```
    pkg upgrade -y
    @@ -79,6 +81,13 @@ To start:

    code-server --auth none

    ### code-oss (vscode native and opensource)

    On termux:

    pkg i tur-repo
    pkg i code-oss code-is-code-oss

    ## Reference
    - [Run an SSH server on your Android with Termux](https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/)
    - [Access Termux via USB](https://glow.li/technology/2016/9/20/access-termux-via-usb/)
  20. jaimemrjm revised this gist May 25, 2023. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -52,7 +52,10 @@ adb push xyz.apk /data/local/tmp/
    adb shell pm install -r -d /data/local/tmp/xyz.apk
    ```

    # Termux on Samsung Dex tips
    # Samsung Dex tips

    ## Fixing flickering/disconnecting screen when Desktop Mode on Samsung Dex
    It seems WiFi + Power charging + Display on output screen + Mobile Data makes powering issues so disable Mobile Data connection fix the issue (really not needed because typically you can use WiFi or Ethernet interface).

    ## Copy-paste
    Copy&paste works mostly in apps but in terminal apps doesn't work Ctrl-v is not correct shortcut for pasting. That's a reserved key combination. In Termux works:
  21. jaimemrjm revised this gist May 13, 2023. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -44,6 +44,14 @@ If you have no WiFi available (for example, by train/underground/plane...) or yo

    `ssh localhost -p 8022`.

    # How to downgrade an Android without losing data and removing it

    ```sh
    # Download the apk before
    adb push xyz.apk /data/local/tmp/
    adb shell pm install -r -d /data/local/tmp/xyz.apk
    ```

    # Termux on Samsung Dex tips

    ## Copy-paste
  22. jaimemrjm revised this gist Mar 23, 2023. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -58,13 +58,12 @@ Run command once to disable killing of phantom processes and processes using exc
    ## Visual Studio Code on Samsung Dex

    Install code-server from Termux is easy but have a version that works is not easy:
    ˋˋˋ
    ```
    pkg upgrade -y
    pkg install nodejs-lts python yarn binutils
    FORCE_NODE_VERSION=FALSE yarn global add [email protected] --ignore-engines;
    sed -i -e 's|switch(process.platform)|switch("linux")|' /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js
    ˋˋˋ

    ```
    To start:

    code-server --auth none
  23. jaimemrjm revised this gist Mar 23, 2023. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -58,12 +58,13 @@ Run command once to disable killing of phantom processes and processes using exc
    ## Visual Studio Code on Samsung Dex

    Install code-server from Termux is easy but have a version that works is not easy:
    ˋˋˋsh
    ˋˋˋ
    pkg upgrade -y
    pkg install nodejs-lts python yarn binutils
    FORCE_NODE_VERSION=FALSE yarn global add [email protected] --ignore-engines;
    sed -i -e 's|switch(process.platform)|switch("linux")|' /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js
    ˋˋˋ

    To start:

    code-server --auth none
  24. jaimemrjm revised this gist Mar 23, 2023. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -57,10 +57,20 @@ Run command once to disable killing of phantom processes and processes using exc

    ## Visual Studio Code on Samsung Dex

    [Install code-server from Termux](https://coder.com/docs/code-server/latest/termux) and enjoy coding from your phone! Note that there are issues using git files from /sdcard.
    Install code-server from Termux is easy but have a version that works is not easy:
    ˋˋˋsh
    pkg upgrade -y
    pkg install nodejs-lts python yarn binutils
    FORCE_NODE_VERSION=FALSE yarn global add [email protected] --ignore-engines;
    sed -i -e 's|switch(process.platform)|switch("linux")|' /data/data/com.termux/files/home/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js
    ˋˋˋ
    To start:

    code-server --auth none

    ## Reference
    - [Run an SSH server on your Android with Termux](https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/)
    - [Access Termux via USB](https://glow.li/technology/2016/9/20/access-termux-via-usb/)
    - [Instalar servidor SSH sobre...](https://parzibyte.me/blog/2019/07/31/servidor-ssh-termux-android/)
    - [Disable Phantom Process Killing](https://github.com/agnostic-apollo/Android-Docs/blob/master/en/docs/apps/processes/phantom-cached-and-empty-processes.md#commands-to-disable-phantom-process-killing-and-tldr)
    - [Install Visual Studio Code](https://gist.github.com/ppoffice/b9e88c9fd1daf882bc0e7f31221dda01)
  25. jaimemrjm revised this gist Mar 2, 2023. No changes.
  26. jaimemrjm revised this gist Mar 2, 2023. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,7 @@ If you have no WiFi available (for example, by train/underground/plane...) or yo

    `ssh localhost -p 8022`.

    # Samsung Dex tips
    # Termux on Samsung Dex tips

    ## Copy-paste
    Copy&paste works mostly in apps but in terminal apps doesn't work Ctrl-v is not correct shortcut for pasting. That's a reserved key combination. In Termux works:
    @@ -55,6 +55,10 @@ Run command once to disable killing of phantom processes and processes using exc

    `adb shell "settings put global settings_enable_monitor_phantom_procs false"`

    ## Visual Studio Code on Samsung Dex

    [Install code-server from Termux](https://coder.com/docs/code-server/latest/termux) and enjoy coding from your phone! Note that there are issues using git files from /sdcard.

    ## Reference
    - [Run an SSH server on your Android with Termux](https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/)
    - [Access Termux via USB](https://glow.li/technology/2016/9/20/access-termux-via-usb/)
  27. jaimemrjm revised this gist Feb 8, 2023. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -40,7 +40,9 @@ To improve security, go to `$PREFIX/etc/ssh/` in your phone and modify the `sshd

    ### Alternative connection via USB

    If you have no WiFi available (for example, by train/underground/plane...) or you want to improve the connection speed, you can use a USB cable to connect your Android phone via USB to your computer. USB tethering or ADB USB debugging (recommended) are available. Execute: `adb forward tcp:8022 tcp:8022` and you will have SSH connectivity in your 8022 port (localhost) to your Android phone: `ssh localhost -p 8022`.
    If you have no WiFi available (for example, by train/underground/plane...) or you want to improve the connection speed, you can use a USB cable to connect your Android phone via USB to your computer. USB tethering or ADB USB debugging (recommended) are available. Execute: `adb forward tcp:8022 tcp:8022` and you will have SSH connectivity in your 8022 port (localhost) to your Android phone:

    `ssh localhost -p 8022`.

    # Samsung Dex tips

    @@ -50,6 +52,7 @@ Copy&paste works mostly in apps but in terminal apps doesn't work Ctrl-v is not

    ## Tip for Termux when Android >= 12L
    Run command once to disable killing of phantom processes and processes using excessive cpu (recommeded for Termux in Android 12L or 13):

    `adb shell "settings put global settings_enable_monitor_phantom_procs false"`

    ## Reference
  28. jaimemrjm revised this gist Feb 8, 2023. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -42,12 +42,18 @@ To improve security, go to `$PREFIX/etc/ssh/` in your phone and modify the `sshd

    If you have no WiFi available (for example, by train/underground/plane...) or you want to improve the connection speed, you can use a USB cable to connect your Android phone via USB to your computer. USB tethering or ADB USB debugging (recommended) are available. Execute: `adb forward tcp:8022 tcp:8022` and you will have SSH connectivity in your 8022 port (localhost) to your Android phone: `ssh localhost -p 8022`.

    # Sansung Dex tips
    # Samsung Dex tips

    ## Copy-paste
    Copy&paste works mostly in apps but in terminal apps doesn't work Ctrl-v is not correct shortcut for pasting. That's a reserved key combination. In Termux works:
    - Paste: Ctrl+Alt+V

    ## Tip for Termux when Android >= 12L
    Run command once to disable killing of phantom processes and processes using excessive cpu (recommeded for Termux in Android 12L or 13):
    `adb shell "settings put global settings_enable_monitor_phantom_procs false"`

    ## Reference
    - [Run an SSH server on your Android with Termux](https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/)
    - [Access Termux via USB](https://glow.li/technology/2016/9/20/access-termux-via-usb/)
    - [Instalar servidor SSH sobre...](https://parzibyte.me/blog/2019/07/31/servidor-ssh-termux-android/)
    - [Disable Phantom Process Killing](https://github.com/agnostic-apollo/Android-Docs/blob/master/en/docs/apps/processes/phantom-cached-and-empty-processes.md#commands-to-disable-phantom-process-killing-and-tldr)
  29. jaimemrjm renamed this gist Jan 25, 2023. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions ssh_ftp_servers_Android.md → Android_tips.md
    Original file line number Diff line number Diff line change
    @@ -42,6 +42,11 @@ To improve security, go to `$PREFIX/etc/ssh/` in your phone and modify the `sshd

    If you have no WiFi available (for example, by train/underground/plane...) or you want to improve the connection speed, you can use a USB cable to connect your Android phone via USB to your computer. USB tethering or ADB USB debugging (recommended) are available. Execute: `adb forward tcp:8022 tcp:8022` and you will have SSH connectivity in your 8022 port (localhost) to your Android phone: `ssh localhost -p 8022`.

    # Sansung Dex tips

    Copy&paste works mostly in apps but in terminal apps doesn't work Ctrl-v is not correct shortcut for pasting. That's a reserved key combination. In Termux works:
    - Paste: Ctrl+Alt+V

    ## Reference
    - [Run an SSH server on your Android with Termux](https://glow.li/technology/2015/11/06/run-an-ssh-server-on-your-android-with-termux/)
    - [Access Termux via USB](https://glow.li/technology/2016/9/20/access-termux-via-usb/)
  30. Jaime Martín Jiménez revised this gist Oct 9, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ssh_ftp_servers_Android.md
    Original file line number Diff line number Diff line change
    @@ -36,7 +36,7 @@ Then copy your public key from your computer:

    ### Disable password authentication (optionally)

    To improve security, go to `$PREFIX/etc/ssh/` in your phone and modify the `sshd_config` file (for example, use `nano sshd_config` and switch the config line `PasswordAuthentication` from `yes` to `no`.
    To improve security, go to `$PREFIX/etc/ssh/` in your phone and modify the `sshd_config` file (for example, use `nano sshd_config`) and switch the config line `PasswordAuthentication` from `yes` to `no`.

    ### Alternative connection via USB