[Top][All Lists]

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

Re: Android port

From: Dov Grobgeld
Subject: Re: Android port
Date: Sun, 19 Feb 2023 11:24:58 +0200

Finally something that I can answer. :-)

To use adb on Linux you need to do the following:

1. Enable debug mode on the android device. The way you do this
depends on the device, but it typically involves tapping five to seven
times on the system about kernel version. Look for it on the web.
2. After enabling debug mode looking for "USB debugging" on the device
and turn it on.
3. Connect the android device to the computer by cable.
4. Run `adb shell` on your computer. This will fail to connect because
of permissions.
5. On the android device you will get a popup asking whether you want
to allow usb debugging from your computer. Confirm this.
6. Back in the computer terminal do a `killall adb` to remove the
previous adb process (it installs itself as a server). And redo it.
7. You will now have a shell into your device. :-)

You can use adb to copy files `adb push` and `adb pull` to the device.

You can also use `adb logcat` and filter the output by regexps.

Hope this helps!

Looking forward to using emacs on my android tablet!


On Sun, Feb 19, 2023 at 11:02 AM Angelo Graziosi <angelo.g0@libero.it> wrote:
> > Il 19/02/2023 03:13 Po Lu ha scritto:
> >
> > As it says, you should read the node ``Android Environment'' in the
> > Emacs manual.  This notification is displayed to prevent Emacs from
> > being killed after entering the background.
> I did but many things are still unclear..
> > Copying an init.el from another system is best done through the system
> > file manager or by copying the files into Emacs's home directory via the
> > external storage.
> >
> Here the file manager does not show Emacs directory.. or at least I cannot 
> find it.. It is unclear the last sentence: from Emacs I can visit a file, say 
> in /sdcard/Download/, but HOW copy it in Emacs, say in ~/?
> > File managers on most proprietary versions of Android refuse to display
> > Emacs's home directory, because they are more keen to display
> > advertisements than to actually manage files.
> ..so this way could be unusable here...
> > First, try with an up to date build.
> Let's wait for an F-Droid update, then..
> >
> >   adb logcat | grep android_run_debug_thread
> >
> to run the above or similar I should install adb on GNU/Linux (Mint in my 
> case)? and how to connect the device? with its cable? I never did this 
> because I transfer files via ssh and similar.. BTW, I have adb installed in 
> Termux on the same device.. I wonder if I can use that..
> In any case,
>  Thanks!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]