mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-23 22:54:02 +00:00
Change radare2 download URL to GitHub releases
Merge pull request #93 from kavishdevar/move-radare2-from-hetzner-to-github-releases
This commit is contained in:
@@ -36,7 +36,8 @@ import java.net.URL
|
|||||||
class RadareOffsetFinder(context: Context) {
|
class RadareOffsetFinder(context: Context) {
|
||||||
companion object {
|
companion object {
|
||||||
private const val TAG = "RadareOffsetFinder"
|
private const val TAG = "RadareOffsetFinder"
|
||||||
private const val RADARE2_URL = "https://hc-cdn.hel1.your-objectstorage.com/s/v3/c9898243c42c0d3d1387de9a37d57ce9df77f9c9_radare2-5.9.9-android-aarch64.tar.gz"
|
// Custom static build of radare2 for Android that doesn't need Termux. See: https://github.com/devnoname120/radare2/releases/tag/5.9.8-android-aln
|
||||||
|
private const val RADARE2_URL = "https://github.com/devnoname120/radare2/releases/download/5.9.8-android-aln/radare2-5.9.9-android-aarch64-aln.tar.gz"
|
||||||
private const val HOOK_OFFSET_PROP = "persist.aln.hook_offset"
|
private const val HOOK_OFFSET_PROP = "persist.aln.hook_offset"
|
||||||
private const val EXTRACT_DIR = "/"
|
private const val EXTRACT_DIR = "/"
|
||||||
|
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ unzip -d "$UNZIP_DIR" -oq "$ZIPFILE" || {
|
|||||||
set_perm "$BUSYBOX" 0 0 755
|
set_perm "$BUSYBOX" 0 0 755
|
||||||
set_perm "$XZ" 0 0 755
|
set_perm "$XZ" 0 0 755
|
||||||
|
|
||||||
# The bundled radare2 is a custom build that works without Termux: https://github.com/devnoname120/radare2
|
# The bundled radare2 is a custom build that works without Termux: https://github.com/devnoname120/radare2/releases/tag/5.9.8-android-aln
|
||||||
ui_print "Extracting radare2 to /data/local/tmp/aln_unzip..."
|
ui_print "Extracting radare2 to /data/local/tmp/aln_unzip..."
|
||||||
$BUSYBOX tar xzf "$UNZIP_DIR/radare2-5.9.9-android-aarch64.tar.gz" -C / || {
|
$BUSYBOX tar xf "$UNZIP_DIR/radare2-5.9.9-android-aarch64-aln.tar.gz" -C / || {
|
||||||
abort "Failed to extract "$UNZIP_DIR/radare2-5.9.9-android-aarch64.tar.gz"."
|
abort "Failed to extract "$UNZIP_DIR/radare2-5.9.9-android-aarch64-aln.tar.gz"."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user