1 diff -uNr radare2-2.0.0/libr/core/cconfig.c radare2-2.0.0.mod/libr/core/cconfig.c
2 --- radare2-2.0.0/libr/core/cconfig.c 2017-10-09 18:05:53.000000000 +0300
3 +++ radare2-2.0.0.mod/libr/core/cconfig.c 2017-10-11 16:22:54.521006895 +0300
5 SETPREF ("dir.plugins", R2_LIBDIR"/radare2/"R2_VERSION"/", "Path to plugin files to be loaded at startup");
7 SETCB ("dir.source", "", &cb_dirsrc, "Path to find source files");
8 - SETPREF ("dir.types", "/usr/include", "Default path to look for cparse type files");
10 - SETPREF ("dir.projects", "/data/data/org.radare.radare2installer/radare2/projects", "Default path for projects");
12 + SETPREF ("dir.types", "@TERMUX_PREFIX@/include", "Default path to look for cparse type files");
14 SETPREF ("dir.projects", "~\\"R2_HOMEDIR"\\projects", "Default path for projects");
16 SETPREF ("dir.projects", "~/"R2_HOMEDIR"/projects", "Default path for projects");
19 r_config_set (cfg, "http.browser", "start");
22 + r_config_set (cfg, "http.browser", "xdg-open");
24 if (r_file_exists ("/usr/bin/openURL")) { // iOS ericautils
25 r_config_set (cfg, "http.browser", "/usr/bin/openURL");
26 } else if (r_file_exists ("/system/bin/toolbox")) {
27 @@ -2540,14 +2541,13 @@
29 r_config_set (cfg, "http.browser", "firefox");
32 r_config_desc (cfg, "http.browser", "Command to open HTTP URLs");
34 SETI ("http.maxsize", 0, "Maximum file size for upload");
35 SETPREF ("http.bind", "localhost", "Server address");
36 SETPREF ("http.homeroot", "~/.config/radare2/www", "http home root directory");
38 - SETPREF ("http.root", "/data/data/org.radare.radare2installer/www", "http root directory");
41 SETPREF ("http.root", "www", "http root directory");
43 SETPREF ("http.root", R2_WWWROOT, "http root directory");
44 diff -uNr radare2-2.0.0/libr/debug/p/debug_rap.c radare2-2.0.0.mod/libr/debug/p/debug_rap.c
45 --- radare2-2.0.0/libr/debug/p/debug_rap.c 2017-10-09 18:05:53.000000000 +0300
46 +++ radare2-2.0.0.mod/libr/debug/p/debug_rap.c 2017-10-11 16:24:45.152199241 +0300
50 static char *r_debug_rap_reg_profile(RDebug *dbg) {
51 - char *out, *tf = r_file_temp ("/tmp/rap.XXXXXX");
52 + char *out, *tf = r_file_temp ("@TERMUX_PREFIX@/tmp/rap.XXXXXX");
53 int fd = r_cons_pipe_open (tf, 1, 0);
54 r_io_system (dbg->iob.io, "drp");
55 r_cons_pipe_close (fd);
56 diff -uNr radare2-2.0.0/libr/include/r_magic.h radare2-2.0.0.mod/libr/include/r_magic.h
57 --- radare2-2.0.0/libr/include/r_magic.h 2017-10-09 18:05:53.000000000 +0300
58 +++ radare2-2.0.0.mod/libr/include/r_magic.h 2017-10-11 16:23:00.721073712 +0300
60 R_LIB_VERSION_HEADER(r_magic);
63 -#define MAGICFILE "/etc/magic"
64 +#define MAGICFILE "@TERMUX_PREFIX@/etc/magic"
67 #define R_MAGIC_PATH R2_PREFIX "/share/radare2/" R2_VERSION "/magic"