this post was submitted on 19 Jul 2023
1906 points (100.0% liked)

196

17966 readers
1033 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
1906
Android rule (lemmy.blahaj.zone)
submitted 2 years ago* (last edited 2 years ago) by CosmicFlowchart@lemmy.blahaj.zone to c/196@lemmy.blahaj.zone
 
you are viewing a single comment's thread
view the rest of the comments
[–] gerbler@lemmy.world 144 points 2 years ago (15 children)

Android's file structure is so incomprehensible. I'm genuinely surprised there hasn't been any significant effort made to make it more readable. Pictures saved in app directories, downloads, camera, images, pictures, media, DCIM???.

[–] yogurtwrong@lemmy.world 62 points 2 years ago* (last edited 2 years ago) (3 children)

Open source developer and Linux enthusiast here. Although cluttered, Android's home directory is fairly simple to understand

The nightmare begins when you take a look at the root filesystem.

One time I was trying to port an OS to my phone and I had to figure out the Android init system. Went to source.android.com and what. the. fuck. Just as a side-by-side comparison:

Linux boot sequence: Android boot sequence (unmodded, SIMPLE):

There are so many wrong things about it like why are there 11, 12 places to put programs (/system/bin, /bin, /usr/bin /system/usr/bin, /sbin, /system/usr/share/bin...)

Why the fuck drivers are scattered around folders instead of just /lib/modules

Why is the home directory /storage/emulated/0/ instead of just /home/0/ (also why the user is named "0")

Where the fuck is everything???

God (Linus Torvalds) forgive me but even Windows is better than that shit

[–] ShittyKopper@lemmy.blahaj.zone 30 points 2 years ago (1 children)

i wonder if that graphic is up to date with system as root and A/B dynamic partitioning and whatever crazy new bullshit google invents with every release

[–] IverCoder@lemmy.world 25 points 2 years ago* (last edited 2 years ago)

I raise you all of these monstrosities:

  • Phones launching with Android 13 without a dedicated partition for recovery mode

Phones launching with Android 13 without a dedicated partition for recovery mode

  • Phones launching with Android 13 with two dedicated partitions for recovery mode (two because of A/B partitioning scheme)

Phones launching with Android 13 with a two dedicated partitions for recovery mode

  • Phones launching with Android 13 with one dedicated partition for recovery mode (only one because A/B partitioning scheme is not used)

Phones launching with Android 13 with one dedicated partition for recovery mode

  • Phones that launch with or upgrade to Android 12, that use a generic kernel image, without a dedicated partition for recovery mode

Phones that launch with or upgrade to Android 12, that use a generic kernel image, without a dedicated partition for recovery mode

  • Phones that launch with or upgrade to Android 12, that use a generic kernel image, with two dedicated partitions for recovery mode (A/B partitioning scheme)

Phones that launch with or upgrade to Android 12, that use a generic kernel image, with two dedicated partitions for recovery mode

  • Phones that launch with or upgrade to Android 12, that use a generic kernel image, with one dedicated partition for recovery mode (non-A/B partitioning scheme)

Phones that launch with or upgrade to Android 12, that use a generic kernel image, with one dedicated partition for recovery mode

  • Phones that upgrade to Android 12, that does not use a generic kernel image, with no dedicated partition for recovery mode

Phones that launch with or upgrade to Android 12, that does not use a generic kernel image, with no dedicated partition for recovery mode

  • Phones that upgrade to Android 12, that does not use a generic kernel image, with dedicated partition(s) for recovery mode

Phones that upgrade to Android 12, that does not use a generic kernel image, with dedicated partition(s) for recovery mode

In Android's defense however, a phone would likely use only one of these layouts at a time. The question of which of these layouts does a said phone uses though, that's a more complicated question.

That's not correct though. The GNU+Linux version is missing the bootloader and initramfs.

[–] BautAufWasEuchAufbaut@lemmy.blahaj.zone 3 points 2 years ago (2 children)

The Linux boot sequence link doesn't work for me

[–] can@sh.itjust.works 21 points 2 years ago* (last edited 2 years ago)

Init

^

|

Linux Kernel

[–] callyral@readit.buzz 11 points 2 years ago (1 children)

It's a graph, showing a red oval with the text "Linux Kernel", an arrow points from the red oval to a light-green oval titled "Init".

"Linux Kernel" --→ "Init"

load more comments (11 replies)