LoginSignup
4
3

More than 1 year has passed since last update.

UserLAnd/Termuxとandroidでファイルコピー

Last updated at Posted at 2021-06-26

概要

  • android上でLinux環境を構築するUserLAndやTermux
  • これらのLinux環境と母体のandroidでファイルのコピーをする
  • 環境はPixel4a 5G(android11)

準備

  • android標準のファイルマネージャーを使えるようにする
    • Googleが配布しているFiles By Googleとは別物
    • 多くのandroidではデフォルトでは見えないようになっているので見えるようにする
  • Google PlayからShortcut Makerをインストールする
  • Shortcut Makerを立ち上げてアクティビティを選ぶ
  • 「ファイル」アプリを開いて「com.android.documentsui.files.FilesActivity」を選んで「ショートカットを作成」
  • ホーム画面に「ファイル」のショートカットが作成される

Termuxの場合

  • androidからTermuxのホームディレクトリを参照する
    • ファイルのショートカットを立ち上げる
    • 左上の「≡」を開いて、Termuxを選ぶ
    • Linux側のホームディレクトリが表示されるので、ここでファイル操作ができる
  • Linux側からandroidのストレージを参照する

UserLAndの場合

  • 公式情報: Importing and exporting files in UserLAnd
  • ファイルのショートカットを立ち上げる
  • 左上の「≡」を開く
  • UserLAnd INTERNALが内部ストレージ
    • Linux環境での/storage/internalが見えている
  • UserLAnd SDCARDがSDカード
    • Linux環境での/storage/sdcardが見えている
    • android側からもsdcardのAndroid/data/tech.ula/files/storageとして見えている
      • 通常のファイルマネージャーからも見える
4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3