commit 1cf796d3b4246b787c30b436a901a52cf86e04bf
parent 7f626f55770279331e52ea8651ec3c13a6db70ae
Author: Alexander Færøy <ahf@torproject.org>
Date: Wed, 13 Sep 2023 18:29:38 +0200
Merge remote-tracking branch 'upstream/merge-requests/460' into ahf/android-gp-fixes-bulk
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/app/config/config.c b/src/app/config/config.c
@@ -483,6 +483,13 @@ static const config_var_t option_vars_[] = {
#ifdef _WIN32
V(GeoIPFile, FILENAME, "<default>"),
V(GeoIPv6File, FILENAME, "<default>"),
+#elif defined(__ANDROID__)
+ /* Android apps use paths that are configured at runtime.
+ * /data/local/tmp is guaranteed to exist, but will only be
+ * usable by the 'shell' and 'root' users, so this fallback is
+ * for debugging only. */
+ V(GeoIPFile, FILENAME, "/data/local/tmp/geoip"),
+ V(GeoIPv6File, FILENAME, "/data/local/tmp/geoip6"),
#else
V(GeoIPFile, FILENAME,
SHARE_DATADIR PATH_SEPARATOR "tor" PATH_SEPARATOR "geoip"),