is it possible: termux + emacs cli + elcord ?

Elcord ( https://github.com/Mstrodl/elcord ) does something with the Discord Rich Presence API. I'm on unrooted android, so i dunno if it's possible. Would be cool i think.
GitHub
GitHub - Mstrodl/elcord: Discord Rich Presence / Gamebridge support...
Discord Rich Presence / Gamebridge support for Emacs! - GitHub - Mstrodl/elcord: Discord Rich Presence / Gamebridge support for Emacs!
13 Replies
komo
komo15mo ago
what Android are you on? if you're on below Android 12, i guess you sort of can have RPC connection to Discord via arRPC. if you're on Android 12 or the newest one Android 14, you can't have RPC connection i have tried arRPC + presence.nvim, the arRPC do works but the socket connection doesn't because it was blocked by seccomp iirc
komo
komo15mo ago
GitHub
[Bug]: Network utils don't work in Android 13 · Issue #2993 · termu...
Problem description Linux network utils like net-tools and iproute2 don't work (or work correctly) in Android 13. It seems Android 13 limits the network devices' permission? Steps to reprod...
damnedhatter
damnedhatterOP15mo ago
I'm on android 9 so far, it's not working. I wonder if the emacs android app has better luck, but i prefer using the emacs cli in termux more tbh
komo
komo15mo ago
try run emacs and then check the logcat output, and send it here
damnedhatter
damnedhatterOP15mo ago
its kinda long and i cant post it all so i hope this is the important part ~ $ logcat --------- beginning of main 12-23 07:09:42.898 3345 3345 E Termux:TerminalEmulator: (ignored) CSI > MODIFY RESOURCE: 4 to 1 12-23 07:09:44.209 30538 30538 W python : type=1400 audit(0.0:258398): avc: denied { read } for name="/" dev="dm-0" ino=2 scontext=u:r:untrusted_app:s0:c199,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0 12-23 07:09:45.613 30538 30538 I chatty : uid=10199(com.termux.api) /data/data/com.termux/files/home/.emacs.d/elpy/rpc-venv/bin/python identical 3 lines 12-23 07:09:45.653 30538 30538 W python : type=1400 audit(0.0:258402): avc: denied { read } for name="/" dev="dm-0" ino=2 scontext=u:r:untrusted_app:s0:c199,c256,c512,c768 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0
komo
komo15mo ago
im sorry, i meant logcat | tail -n
damnedhatter
damnedhatterOP15mo ago
Sorry, seems -n should have something after it?
komo
komo15mo ago
tail -n10
damnedhatter
damnedhatterOP15mo ago
I try this and there is no output
komo
komo15mo ago
i meant logcat | tail -n10
damnedhatter
damnedhatterOP15mo ago
Yes i mean that is what i tried and no output Or maybe it took longer... ~ $ logcat | tail -n10 read: unexpected EOF! 12-23 08:21:44.697 3345 3368 D OpenGLRenderer: endAllActiveAnimators on 0xc9712f00 (RippleDrawable) with handle 0xc7648070 12-23 08:22:10.924 3345 3368 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface , EGLBoolean) returns 0x3000 12-23 08:22:12.891 3345 3368 W libEGL : EGLNativeWindowType 0xc71bb008 disconnect failed 12-23 08:22:19.284 5523 5523 W emacs : type=1400 audit(0.0:1482426): avc: denied { map } for path="/vendor/etc/passwd" dev="dm-1" ino=519 scontext=u:r:untrusted_app:s0:c199,c256,c512,c768 tcontext=u:object_r:vendor_configs_file:s0 tclass=file permissive=0 12-23 08:22:21.420 3345 3368 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface , EGLBoolean) returns 0x3000 12-23 08:22:23.382 3345 3368 W libEGL : EGLNativeWindowType 0xc71bb008 disconnect failed 12-23 08:22:23.394 3345 3345 E Termux:TerminalEmulator: (ignored) CSI > MODIFY RESOURCE: 4 to 1 12-23 08:22:25.951 3345 3368 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 12-23 08:22:27.879 3345 3368 W libEGL : EGLNativeWindowType 0xc71bb008 disconnect failed 12-23 08:22:34.502 3345 3368 W libEGL : EGLNativeWindowType 0xc7f8c808 disconnect failed It's kinda disappointing i cant get this to work Maybe the android app will have more luck Not even sure if showing that i'm using emacs in discord is any good
komo
komo15mo ago
you can just use Emacs without any fancy RPC or whatever
damnedhatter
damnedhatterOP15mo ago
Yes but i'm wanting to start programming a lot and being social online

Did you find this page helpful?