summaryrefslogtreecommitdiff
path: root/util/lock/android.cc
blob: 2ba47a04d2e21abc88666607792bcb531a7cded7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright 2016 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "android.h"

#include <stdlib.h>

int in_android(void)
{
	if (getenv("ANDROID_ROOT"))
		return 1;

	return 0;
}

char *android_tmpdir_path(void)
{
	return getenv("TMPDIR");
}