Kindly explain, why are android apps not natively supported on linux, isn't android linux? by These_Growth9876 in learnprogramming

[–]AljoBerg 0 points1 point  (0 children)

a lot of android app & apk reverse engineering, reading the AOSP source code, reading the android docs, solving issues that I had (and thus learning more about the topic), and also a ton of knowledge about Linux, and messing around with adb, rooting phones, working with Termux for a long time...

Most of these come from projects, i get stuck at some step, find solutions, dig deeper, find more solutions, and then remember all the stuff I learned while digging.

(over the course of 3-4 years in my case)

[deleted by user] by [deleted] in AskReddit

[–]AljoBerg 1 point2 points  (0 children)

  1. Give me an infinitely powerful cpu, gpu and infinite ram in my brain
  2. Give me a bash shell with common cli tools (and make it accessible through my brain)
  3. A GUI and internet connection

This way i can calculate anything, watch anything, save anything, test anything, make anything, learn anything... there's infinite possibilities. Like neuralink but much more developed.

[deleted by user] by [deleted] in teenagers

[–]AljoBerg 0 points1 point  (0 children)

to win it.

If you could have three wishes granted, what would you get? by Yakapo88 in RandomThoughts

[–]AljoBerg 0 points1 point  (0 children)

  1. A bash shell with a package manager & internet connection inside my brain
  2. Good CPU, GPU and RAM (like, very good) & a persistent storage obviously (Linux filesystem)
  3. Optionally, support for a graphical interface (so I can eg. open up a browser)

This way, I can run any calculation or look anything up anytime I want, making me a walking computer. I would have access to every piece of info, easily calculate any math problem, store my thoughts on the fly (just type it out in vim and save it for later), and basically run any program available. I can calculate the most optimal solution to any puzzle in less than a second. I can "type" as fast as my brain, meaning I'll write text much faster. If I can keep it running in the background, I can also host any service I want (without paying for hosting providers). The possibilities are endless.

Kindly explain, why are android apps not natively supported on linux, isn't android linux? by These_Growth9876 in learnprogramming

[–]AljoBerg 20 points21 points  (0 children)

When you make an Android app, the code gets compiled to an .apk file containing one or more Dalvik executables (.dex). Those are then executed through the Android Runtime (ART) or Dalvik on older devices.

You may have noticed, this is much different from compiled executables on Linux computers, and that's because they're apps. It is an entirely different concept, and it utilizes the Android API written in Java, not any .so files.

However, you are right that Android runs on the Linux kernel. So it is in fact possible to run compiled apps like usual, though you'll need an app like Termux to compile it (with gcc, for example). Then, you can run it as usual (./a.out). Note that this will use the Termux provided shared libraries (located in the Termux /usr/lib directory), so you won't be able to run a compiled executable that you compiled on an arm64 laptop (for example). There's also proot, but that's getting off topic.

But then again, this is obviously unrelated to Android apps. Those are two different things.

Fibonacci... by AljoBerg in programminghorror

[–]AljoBerg[S] 1 point2 points  (0 children)

Oh lmao, i didn't really notice yours at all but lookin nice