https://github.com/unbound-app/libunbound-android
📖 Native Android library for dynamically interacting with compiled Hermes.
https://github.com/unbound-app/libunbound-android
android discord hermes react-native
Last synced: 6 months ago
JSON representation
📖 Native Android library for dynamically interacting with compiled Hermes.
- Host: GitHub
- URL: https://github.com/unbound-app/libunbound-android
- Owner: unbound-app
- License: gpl-3.0
- Created: 2025-02-17T01:02:10.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-20T05:17:21.000Z (11 months ago)
- Last Synced: 2025-07-01T01:46:44.636Z (6 months ago)
- Topics: android, discord, hermes, react-native
- Language: C++
- Homepage:
- Size: 92.8 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libunbound 
Android native library for dynamically interacting with compiled Hermes.
This is mainly intended to be used by Discord RNA client mods.
## Usage
`build.gradle.kts`:
```kotlin
repositories {
mavenCentral()
}
dependencies {
implementation("dev.rushii:libunbound:1.0.0")
}
```
Use after Hermes (`libhermes.so`) has been loaded into the process:
```kotlin
// Returns the HBC version supported by the loaded runtime
// https://github.com/discord/hermes/blob/0.76.2-discord/include/hermes/BCGen/HBC/BytecodeVersion.h#L23
LibUnbound.getHermesRuntimeBytecodeVersion()
// Check to verify whether some bytes are hermes bytecode (possibly inaccurate)
LibUnbound.isHermesBytecode(/* bytes */)
```
## Credits
- [LSPosed](https://github.com/LSPosed/LSPosed) - ELF symbols parser
- [miniz](https://github.com/richgel999/miniz) - zip lib