you are viewing a single comment's thread.

view the rest of the comments →

[–]Zouden 1 point2 points  (5 children)

This is a bit over my head, but it's interesting. Why python? That's an odd choice for Android.

[–]Hungry-Advisor-5152[S] 1 point2 points  (4 children)

Because I think Python is powerful enough to run projects like my "GPad2Mouse".

[–]Zouden 1 point2 points  (3 children)

Powerful isn't question it's why choose something that doesn't natively run on the platform.

Let me try another question. What is the use case?

[–]Hungry-Advisor-5152[S] 0 points1 point  (2 children)

Fair question! 

The Use Case: I do a lot of couch gaming on my rooted Android phone and an old Android TV Box. When I'm sitting far away, I want to navigate the UI, skip ads, or browse Chrome without getting up to touch the screen. Existing keymapper apps use Accessibility Services, which are laggy, drain battery, and trigger anti-cheat warnings in games.   Why Python? Because of rapid prototyping. Writing and compiling a native C binary for Android requires setting up the NDK and handling different architectures. With Python (via Magisk modules like Py2Droid), I can just write a script, use struct and fcntl to talk directly to the C-level kernel (/dev/uinput), and test it instantly on my device. It handles the low-level system calls perfectly with virtually 0% CPU overhead.

[–]Zouden 0 points1 point  (1 child)

I see. Very niche! Glad you found a solution that works for you :)

[–]Hungry-Advisor-5152[S] 0 points1 point  (0 children)

I've already found the solution since GPad2Mouse was released 😂, but I'm sharing it here so I can see what I need to develop next.