Commit 9fa6a2d4 authored by David Crawshaw's avatar David Crawshaw

os: use different test files on android

Some Android OS installations have very strange permissions on their
/system/etc directory, meaning that Readdir fails. Instead use
/system/framework, which is far more regular.

Change-Id: Iefc140614183cda0f875e0f6ef859f4d4eaad9da
Reviewed-on: https://go-review.googlesource.com/17078Reviewed-by: 's avatarHyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent bda88551
......@@ -47,10 +47,10 @@ var sysdir = func() *sysDir {
switch runtime.GOOS {
case "android":
return &sysDir{
"/system/etc",
"/system/framework",
[]string{
"audio_policy.conf",
"system_fonts.xml",
"ext.jar",
"framework.jar",
},
}
case "darwin":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment