What rooting tool do you use?

Personally I use KernelSU-Next but I used to use Magisk (simply because it was the easiest for me to use since I was so used to it). What do you people use? Question for people who use APatch, what do you think about it? Is it better than KernelSU (if you have used that before) and or Magisk?

reddit.com
u/TheNullDeref — 1 day ago
▲ 7 r/osdev

KARM, my shitty little OS

KARM (Kernel Almost Reaching Milestones) is a small OS, I stole a LOT of code (thanks Lightweight AML Interpreter). Now I will admit, in the past I did use AI to write a lot of it (thanks to my idiocity) but I have stopped with doing this. Yes there are some remnents of me using AI in this, but I have stopped and have started to repair for my past sins.

Anyways I have been working on some fun things. I currently have:

  • A simple test userland (a small shell that attempts to spawn applications, it causes a crash right now, but hey, thats a WIP)
  • IOAPIC/LAPIC working
  • ATA DMA access
  • ATA PIO fallback (if DMA fails to initialize/is not supported on the hardware)
  • A VFS (its not very good, a rewrite is in order since I rarely ever use it, its not even good enough to launch userland apps ffs)
  • A functional PCI parser
  • Functional (for the most part) AML thanks to the LAI project, which while no longer updated was pretty easy for me to implement (I would recommend if uACPI is too hard/weird for you to implement)
  • Putting logs into RAM (able to be dumped during a kernel panic)
  • A port of FATFS
  • A HAL for disk access (three others exist but not worth mentioning)
  • Syscalls for putchar and getchar, and of course full FS IO (you can do a write(1, string, size) if you want instead though)
  • Ability to request pages from the kernel.
  • Process killing, getting your own process ID, and spawning (spawning is broken for now) in the API.
  • Unique API implementation (will explain later)
  • Able to read ELF files (static binaries only)
  • Round Robin scheduler.

The API:

Basically my API is not built around registers for every argument, but is instead built around passing a pointer to the kernel based on the standard request header, or cmd_ctx_t. cmd_ctx_t contains the standard header (size and revision) which I should really check but I never do (for now, yes its risky). Then each command parser for IO, scheduling, or memory, will then check the ctx pointer (if applicable to the command being used) or use ctx itself (say it might be a character) or ctx is not used at all. From there whatever is in the CTX/pointed to is used (for example it may be cmd_fil_t which contains info on file processes) and then things return.

Source: https://codeberg.org/KARM-Project/default

u/TheNullDeref — 1 day ago
▲ 25 r/Magisk

Why do we still use TrickyStore?

Everyone here talks about how you shouldnt use closed source modules even if the developer is trusted, so how come we all use TrickyStore despite the fact that it is closed source, are we using a fork of the original by 5ec1cff or what are we doing?

u/TheNullDeref — 6 days ago

Trying to build from source for the pixel 10a. adevtool failing.

I am trying to build from source for the pixel 10a (stallion) but when I run

adevtool generate-all -d stallion --verbose

it crashes and says:

unpacking 'stallion BD6A.251031.001.A4 factory'
unpacking 'stallion CP1A.260505.005 factory'
building adevtool dependencies: Or did you mean ["libctspermission_jni" "mcts-neuralnetworks" "mcts-webviewbootstrap" "octets_test_src_lib" "rpc_test_proto_header" "rpc_test_proto_source"]?Error: /home/owen/grapheneos-16-qpr2/vendor/adevtool/scripts/run-build.sh,sdk_phone64_x86_64,out_adevtool_deps,aapt2,apksigner,aprotoc,arsclib,debugfs,dispol,fsck.erofs,lz4,ota_extractor,sqlite3,toybox returned 1
    at ChildProcess.<anonymous> (/home/owen/grapheneos-16-qpr2/vendor/adevtool/src/util/process.ts:114:16)
    at ChildProcess.emit (node:events:508:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1100:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:508:28)
    at Socket.emit (node:domain:489:12)
    at Pipe.<anonymous> (node:net:346:12)

Yet I have all dependencies installed and I cannot seem to understand what it even means. Any help would be greatly appreciated.

reddit.com
u/TheNullDeref — 9 days ago
▲ 136 r/osdev

Can we stop the AI slop?

The only moderator, u/timschwartz is an active reddit user, we shouldnt let him just sit around and twiddle him thumbs! We don't want our subreddit to be flooded with AI slop, we want it to stop. We want rules, we want active moderators who CARE. We want a nice place on reddit for our hobby to EXIST peacefully without this bullshit, r/osdev has failed us. The lack of moderation and rules has led to splinter subs like r/KernelDevelopment. The outright uncare for this subreddit by its only moderator leaves us three choices, do nothing, go to another subreddit, or forcefully take it back via a reddit request.

reddit.com
u/TheNullDeref — 17 days ago

Any ROMs for the Pixel 10a?

I am going to get an unlocked Google Pixel 10a and plan to root it. I know GrapheneOS has a build for this device, but it is explicitly designed for safety and privacy. Because Magisk does not play well with GrapheneOS and often has issues with Zygisk, I am wondering if other ROMs exist. I have experience building custom Android ROMs for obscure hardware. If needed, I may attempt to build an AOSP version using GrapheneOS as a reference. This is just an idea, but it is not impossible given that I have a few months of free time as a student. Though I do understand the immense difficulty with doing so, possibly taking months to do so, maybe even half a year.

reddit.com
u/TheNullDeref — 19 days ago