[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 08/12: android: runtime: need to use a usab
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 08/12: android: runtime: need to use a usable, writable location for android apps, so use the tmp path that we set up to point to the app's home directory. |
Date: |
Fri, 19 Feb 2016 13:58:39 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch android
in repository gnuradio.
commit b5ac4c385e727b90e1d045e6201c78b5297fb460
Author: Tom Rondeau <address@hidden>
Date: Sun Jan 18 11:24:33 2015 -0500
android: runtime: need to use a usable, writable location for android
apps, so use the tmp path that we set up to point to the app's home
directory.
---
gnuradio-runtime/lib/prefs.cc | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnuradio-runtime/lib/prefs.cc b/gnuradio-runtime/lib/prefs.cc
index b303ffd..932eb0b 100644
--- a/gnuradio-runtime/lib/prefs.cc
+++ b/gnuradio-runtime/lib/prefs.cc
@@ -62,7 +62,13 @@ namespace gr {
{
std::vector<std::string> fnames;
+#if ANDROID
+ //FIXME: provide function to determine where this should go
+ fs::path dir = fs::path("/sdcard");
+#else
fs::path dir = prefsdir();
+#endif
+
if(!fs::is_directory(dir))
return fnames;
@@ -77,7 +83,13 @@ namespace gr {
// Find if there is a ~/.gnuradio/config.conf file and add this to
// the end of the file list to override any preferences in the
// installed path config files.
+#if ANDROID
+ //FIXME: provide function to determine where this should go
+ fs::path homedir = fs::path("/sdcard");
+#else
fs::path homedir = fs::path(gr::appdata_path());
+#endif
+
homedir = homedir/".gnuradio/config.conf";
if(fs::exists(homedir)) {
fnames.push_back(homedir.string());
- [Commit-gnuradio] [gnuradio] branch android updated (ff27361 -> b7870d6), git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 12/12: analog: add ControlPort interfaces to frequency_modulator block., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 05/12: android: logger: adding Android log functions for different logging levels., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 07/12: android: runtime: issues related to vmcircbuf; only mmap_tmpfile version working currently., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 03/12: android: cmake: changed to using C checks for headers instead of C++., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 08/12: android: runtime: need to use a usable, writable location for android apps, so use the tmp path that we set up to point to the app's home directory.,
git <=
- [Commit-gnuradio] [gnuradio] 04/12: android: cmake: adding Boost deps used static builds; ordering in this patch is important., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 06/12: android: runtime: Android does not support pthread_setaffinity_np; turned this into a nop call., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 09/12: android: runtime: moved global block registry to a static get function., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 10/12: android: rutnime: better logging and cleanup, git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 11/12: cmake: cmake should get native thrift binary when cross compiling., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 01/12: android: fft: problems with wisdom files and MEASURE version of FFTW. Using a setting for the FFTW plan options if android or not., git, 2016/02/19
- [Commit-gnuradio] [gnuradio] 02/12: android: cmake: adding toolchain file for building., git, 2016/02/19