this post was submitted on 24 Aug 2024
14 points (88.9% liked)

Android

27537 readers
122 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:

!android@lemmy.ml


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
[–] BearOfaTime@lemm.ee 7 points 3 weeks ago* (last edited 3 weeks ago) (7 children)

Each user gets their own partition in storage. So that user can see the SD card, just their partition in the card (whether internal or external).

Same with the primary user - it can only see its own partition.

If you have root, you can see these partitions as "user00", "user11", etc. From each user's perspective, the related partition is mounted as SDCard or SDCardExt (or something like that, depends on the phone).

You can't remote into Android without a third party app, since Android doesn't natively host any remotely-accessable service (side note: this is part of what makes Linux more secure natively than Windows, and why we saw viruses on Windows - it natively has sharing services such as everything based on LanManager).

If you want to have access to the file system over the network, you'd need to host a network file service, i.e. FTP, Samba/CIFS, etc, from within the user profile of the partition you'd like to access.

If you want remote control, you'd need to use something like Rustdesk or ScrCpy.

I enable file sharing between user partitions by installing SyncThing-Fork in both profiles, then creating a sync job in both user profiles. For example, Profile1 has a local folder called SyncToWorkProfile, that Syncthing uses with a sync job ("Folder" in Syncthing terminology), that's shared with the Syncthing Device ID of SyncThing in the Work Profile (and I do the same in the Work Profile). Those file system folders are unique to each partition - they're different folders, as different as folders on 2 different computers. SyncThing simply synchronizes files between devices - since it sees each installation of SyncThing as a separate device, those two folders are kept in sync.

It would probably be more useful if you describe what you're trying to accomplish - then we can consider the different ways to achieve your goals.

[–] eruchitanda@lemmy.world 2 points 3 weeks ago

The first user (owner) is probably 0, and the second one be 10, and additional users after 10 would be 10+x (11, 12, 13…).

load more comments (6 replies)