this post was submitted on 24 Aug 2024
15 points (89.5% liked)

Android

27551 readers
639 users here now

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It's fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

[email protected]


founded 1 year ago
MODERATORS
 

Hi,

I created another user on my custom rom Android (aka Multiple users)

Unfortunately when doing so the system do not adapt the permission of the sdcard and some other directory, thus the new user can't access them :/

So I wanted to "remote" terminal into my android device from my computer.

How are you achieving this ? ( without 3thparty apps please ! )

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

You can do things with ADB (like copy files, etc). In fact, ScrCpy uses it for remote control.

You do have to enable developer options, then USB debugging, physically connect to a pc and authorize it (also enable permanent authorization and disable timeouts), etc. (I may forget a step or two there).

I wouldn't really consider it a native sharing system - as you said, it's not enabled by default, and it's a bit cumbersome. It's a debugging utility that happens to enable remote debugging which can be used for other things with a bit of work. Not something I'd tell most people to use, because it's cumbersome, and opens a security hole. It's also a bit unstable. It tends to drop the network connection for no apparent reason.

I use it to setup phones, because I can script a handful of app installs with it, or unlock the bootloader and flash a rom (or root the device).

[–] [email protected] 2 points 3 weeks ago (1 children)

Almost easier to set up a share or ssh on the pc and use an easily installed app like Ghost Commander to connect and transfer.

[–] [email protected] 1 points 3 weeks ago

Yep.

Or MixPlorer on the phone, which can host it's own servers.

But... Without root, it has to use the ephemeral port range, so no SMB from Windows to phone.

I've used an FTP server on my phone from The Olive Tree since about 2014. I only run it when I need to copy/move stuff manually.

[–] [email protected] 1 points 3 weeks ago (1 children)

It’s also a bit unstable.

Try to transfer files via MTP instead and then tell me what's unstable.

Anyway, the most reliable way of file transfer I found so far is KDE connect. Haven't had that fail yet.

[–] [email protected] 2 points 3 weeks ago* (last edited 3 weeks ago)

Lol, oh fuck MTP - that's almost useless.

Which is why I use apps like Syncthing, or MixPlorer (which can host it's own servers for SMB, FTP, SFTP, FTPS, etc).

It really depends on what I'm trying to do.