Dankass remote control thang for k0di vidy0 (Android only lmao)

Wazakindjes 6bafdfe222 Added qt integr8ion with mein srthax shit [[=[=[=[=[==[=[=[ 10 months ago
app 6bafdfe222 Added qt integr8ion with mein srthax shit [[=[=[=[=[==[=[=[ 10 months ago
ass 6bafdfe222 Added qt integr8ion with mein srthax shit [[=[=[=[=[==[=[=[ 10 months ago
.gitignore 0003ccfc19 Updated Andr0id pr0ject files to work w/ Studio v4.0, simplified .gitignores (one inside Android st00dio dir for all that shit and one in the git root for errythang else), VERSION_CODE property file is now created if it doesn't exist, explicitly disable minify for debug builds, fixed/suppressed a bunch of code inspection warnings/errors, standardised version numbering (x.y.z), some security fixes (e.g no longer export services lmoa), build number on settings screen now includes build type (debug/release/etc), use commit() instead of apply() for prefs (the former makes it apply immediately, fuck that delayed bullshit), updated Gradle dependencies to the latest version where possibru, added custom project search sc0pe and pr0lly some other misc fixes xdxd 1 year ago
LICENSE 2b2aaac8a5 Initial commit 2 years ago
README.md 6bafdfe222 Added qt integr8ion with mein srthax shit [[=[=[=[=[==[=[=[ 10 months ago


The fuck is this

This shit started as a dankass remote control thanggGgGg for Kodi (as in the home theater shit) to forward/rewind playback using fixed intervals, based on what you're watching. I mostly made it for myself because I cbf to keep using a mouse to skip past an intro or credits roll, depending on the show. It's not a full-fledged remote control cuz there are better apps for that already. ;]

This app has a target SDK of 25 which corresponds to Android 7.1 (I'm using 25 cuz that gives me full-size app icons w/o that adaptive cancer). It was tested against Kodi v17.6 ("Krypton") which uses JSON-RPC v8. Anything newer should work just fine as well though.


The app makes use of Kodi's webserver functionality as well as the separate JSON-RPC API. If you already have another remote app (like Kore) then you should be good already. Otherwise:

  • Webserver (HTTP): In System > Settings > Network > Services activate Allow control of Kodi via HTTP
  • JSON-RPC (TCP): In System > Settings > Network > Services activate Allow programs on other systems to control Kodi

The webserver is only used in the initial connection to check your user credentials, cuz apparently the TCP API doesn't support authentication?

Releasing modified (and signed) APKs

You'll need to make some adjustments if you want to release signed APKs lol. Refer to the section right here (only applies to Mac OS X, if you're on Windows then idk how to do something similar :>).



If enabled in the settings, this entire activity can be shown on the lock screen (but it requires you to l0cc the screen while the app itself is in the foreground)

  1. Obviously you're gonna use the plus sign for adding shit brah

  2. If you want to edit existing "shortcuts" you'll have to enable edit mode. I went with a separate "mode" so you won't accidentally skip ahead when you just wanted to change some shit. In edit mode you can:

    • Short press on a button to change its label and/or skip-ahead value, or to delete it entirely.
    • Long press to initiate dragging. You can then drop it onto another button and it will take its place, moving everything after it to the right.

  3. Reconnect to Kodi in case shit rips =]

  4. Import/export shortcuts. They will be saved to the Downloads directory on y0 SD card to a file named k0di.jayson. When importing that shit it will clear all existing shortcuts and replace them with the JSON contents.

  5. Settings 0bv lol

  6. Connection status, which can be either W E   G U C C I or R I P and is col0urised to match. In some cases the text will be gucci but the col0ur is also red, this means that you're still connected but it's just a command that returned an error. ;]

  7. Extra error information when applicable, which may be the raw JSON as received from Kodi. =]

  8. Integration with mein srthax shit, so you can correct subs as you watch something. =]]] This assumes your subtitles are all together in one directory (e.g. /media/subtitles), plus that the movie's filename matches the subtitle filename (except for the extension of course ;]). Apparently the Kodi API doesn't return the actual path to the subtitle it's using, so doing it like this is the only reliable way really.

  9. The (re)store functionality is so you can save your playlist's current position (including time as you can see), which you can quickly restore so you don't have to try and remember that shit yourself. When rest0ring, it checks the current play/pause status and repauses that shit if it wasn't playing before either. Also, if the "playlist" (aka "Now Playing" shit) changed it will try to find the st0red vidy0 in the list by name.

  10. Area for the shortcuts y0. The buttons are rendered in a grid-based layout which will wrap them onto new "lines" (or rows) automatically when necessary.

There's also an optional persistent notification which will be shown on the l0cc screen as well, so you won't have to unlock that shit just to skip some shit. ;3

Muy imp0rtante: the Toast message popups with success feedback or even errors won't show up when using this notification from the l0cc screen (THANKS GOOGLE)

  1. Name of last used shortcut

  2. Restore the saved vidy0 information, will be hidden if nothing was st0red obv

  3. st0re current vidy0 information

  4. Redo the last used skip action (shortcut)