Re: mc and adb?



Message: 2
Date: Sat, 22 Jun 2019 16:43:47 +0200
From: Henning <xaoxx t-online de>
To: mc gnome org
Subject: Re: mc and adb?
Message-ID: <20ad44a6-ca47-d21a-f2f6-cce1481ae918 t-online de>
Content-Type: text/plain; charset=utf-8; format=flowed

On 22/06/2019 16:00, Alan Corey via mc wrote:
But there's no mc,

there is

which is usually the first thing I install on a normal computer.

me too.

I dealt with this some years ago with a Samsun Galaxy S3. First I used
Android Term with mc. But then I found termux

The links:
https://termux.com/ and https://wiki.termux.com/wiki/Main_Page
ee Pl> https://wiki.termux.com/wiki/Available_Software with pre-built packages,
among them mc-4.8.22 and about 750 other packages.

Henning

It seems to go the other way from what I had in mind.  I wanted to run
something on a computer and connect over USB to the phone in USB debug
mode.  Then you've got a real keyboard, much bigger monitor, more
space to put files, etc.  Running an ssh server on the phone and doing
cd ssh://user:pass@<phone IP> in mc almost does it.  I grabbed it from
Google Play.

I've run debian on a phone and run mc in that, but even running
Hacker's Keyboard to get function and arrow keys you're hampered by
the display.  If you could open the phone connection from the computer
like
cd adb://[path]
you could copy files, all the good stuff.  Like you can open a zip
file or tarball: a "virtual file system" in mc terms.  Bluetooth is
also a possibility, I don't use it much though.

I haven't look at adb source, it's possibly more practical to extract
parts of it rather than running through the command line executable.
There is an adb server daemon that runs, maybe interface to that.  It
runs on port 5037 or 5555 by default (from the adb man page).  In
Debian at least there's a android-libadb and android-libadb-dev.

I found I could at a command line run things like:
adb shell du &> afile.txt
and get the directory usage on a phone into a file on the computer.
df works too.  I'm always fighting with running out of space on the
phone, I think that's in a particular partition.  On one phone the
camera doesn't work most of the time, it shows as busy, that could be
a lock file or space.  But Android has Linux inside, many of the same
techniques work, you just have to deal with Android's paranoia.  Every
app runs as a different user, there are a slew of partitions, not sure
removing an app removes its partition if it used one.  Free space
vanishes, only comes back when you do a factory reset (wipe
everything).  The uninstalls aren't clean I think.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]