Not able to read text file from "file:///var/log/" location in Chromebook from Android app.

44 views
Skip to first unread message

Anup Maurya

unread,
Oct 17, 2023, 11:51:04 PM10/17/23
to ChromiumOS Discussion
Hi, 

I am trying to read the eventlog text file of Chromebook from Android app but not able to get the file location on app. 

Error: file:/var/log/eventlog.txt: open failed: ENOENT (no such file or directory). 

Note: I am trying to build an app that runs on Chromebook to capture screen on and off events. 

Mike Frysinger

unread,
Oct 17, 2023, 11:55:37 PM10/17/23
to anup.ma...@gmail.com, ChromiumOS Discussion
Android does not get access to the host filesystem, so this will never work
-mike

--
--
Chromium OS Discussion mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-discuss

Anup Maurya

unread,
Oct 18, 2023, 3:12:16 AM10/18/23
to ChromiumOS Discussion, Mike Frysinger, ChromiumOS Discussion, anup.ma...@gmail.com
Where can I find the "file:///var/log" path in Chromebook. 

Mike Frysinger

unread,
Oct 18, 2023, 3:13:37 AM10/18/23
to Anup Maurya, ChromiumOS Discussion
assuming your question is "how can i read /var/log/ files from Android apps", the answer is "you cannot"
-mike
Reply all
Reply to author
Forward
0 new messages