this post was submitted on 11 Oct 2024
160 points (96.0% liked)

Android

17682 readers
37 users here now

The new home of /r/Android on Lemmy and the Fediverse!

Android news, reviews, tips, and discussions about rooting, tutorials, and apps.

πŸ”—Universal Link: [email protected]


πŸ’‘Content Philosophy:

Content which benefits the community (news, rumours, and discussions) is generally allowed and is valued over content which benefits only the individual (technical questions, help buying/selling, rants, self-promotion, etc.) which will be removed if it's in violation of the rules.


Support, technical, or app related questions belong in: [email protected]

For fresh communities, lemmy apps, and instance updates: [email protected]

πŸ’¬Matrix Chat

πŸ’¬Telegram channels / chats

πŸ“°Our communities below


Rules

  1. Stay on topic: All posts should be related to the Android OS or ecosystem.

  2. No support questions, recommendation requests, rants, or bug reports: Posts must benefit the community rather than the individual. Please post to [email protected].

  3. Describe images/videos, no memes: Please include a text description when sharing images or videos. Post memes to [email protected].

  4. No self-promotion spam: Active community members can post their apps if they answer any questions in the comments. Please do not post links to your own website, YouTube, blog content, or communities.

  5. No reposts or rehosted content: Share only the original source of an article, unless it's not available in English or requires logging in (like Twitter). Avoid reposting the same topic from other sources.

  6. No editorializing titles: You can add the author or website's name if helpful, but keep article titles unchanged.

  7. No piracy or unverified APKs: Do not share links or direct people to pirated content or unverified APKs, which may contain malicious code.

  8. No unauthorized polls, bots, or giveaways: Do not create polls, use bots, or organize giveaways without first contacting mods for approval.

  9. No offensive or low-effort content: Don't post offensive or unhelpful content. Keep it civil and friendly!

  10. No affiliate links: Posting affiliate links is not allowed.

Quick Links

Our Communities

Lemmy App List

Chat and More


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 44 points 1 month ago (3 children)

I just need sudo and a package manager

The promise of the smart phone was a mini computer in your pocket. I think we got it, but then the vendor locked the user out of admin on their own bought and paid hardware πŸ€·β€β™‚οΈ

[–] [email protected] 18 points 1 month ago (2 children)

Try Termux, it's great.

While it doesn't get you sudo, it does get you a package manager and a decent amount of programs.

I use it and rclone to sync my cell phone's photos to a S3 bucket.

[–] [email protected] 6 points 1 month ago (1 children)

You can totally use sudo if you're rooted. Using su also allows you to acces your native shell instead of Termuxs

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

You're totally right, but I wasn't assuming they had a rooted phone.

Is there any difference between the native shell and Termux's? I just installed fish and chsh'ed it to default: after syncing over all my dotfiles it looks and acts as expected.

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

Is there any difference between the native shell and Termux's? I just installed fish and chsh'ed it to default: after syncing over all my dotfiles it looks and acts as expected.

I did the same, but that's not what I'm talking about.

I don't know for sure, but if I hat to guess I'd say that Termux uses chroot to emulate a more Linuxy experience by changing your root to /data/data/com.termux/files/ with it's own bin, etc, lib and so on directories

Using su you escape that chroot and start using your roms root directory at /

I might be totally wrong with this, but that should hopefully clarify the way it behaves

[–] [email protected] 2 points 1 month ago

Aah, okay.

I don't mind the chroot too much, especially as you can just use Termux's termux-setup-storage script for accessing files.

But, yeah, I can see how one would want to use su for that!

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

what package manager?
edit: nvm its apt

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

Last I looked you could pretty easily get root on many phones, just if you did you couldn't use stuff that checks the device security

If you want to carry two phones you could use one for banks and 2 factor authentication, and have root on the other

[–] [email protected] 1 points 1 month ago (1 children)

Banking is pretty significant

[–] [email protected] 1 points 1 month ago

Yeah, that's why you'd want two phones