mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
This adds a couple of helper functions for working within Android: - in_android(): Crude test that uses getenv() to see if an Android- specific environment variable is defined. - android_tmpdir_path(): Android doesn't have the usual locations for temporary file storage such as /tmp or even /var/run/locks. And to make matters worse, there isn't even a standard location for temporary files so it must be determined at run time. This will be used in a follow-up patch. BUG=chrome-os-partner:49527 BRANCH=none TEST=tested on smaug Change-Id: Ifb5fb4067fffb7c8cb2d4350ca4a223e884d3aa5 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/329299 Reviewed-by: Shawn N <shawnn@chromium.org>
2.1 KiB
2.1 KiB