Permission denied when writing file to sdcard on android

278 views
Skip to first unread message

Yafei

unread,
Oct 28, 2016, 4:48:29 PM10/28/16
to Chromium-dev
Hi,

I'm running into issues like when running a test which would read/write from/to sdcard:
error: /storage/emulated/0/paquete/offline_eval_logs.txt: open failed: EACCES (Permission denied)

1. The test extends ChromeActivityTestCaseBase<ChromeActivity>
2. The chrome_public_test app on the device has the storage permission.

However I was able to so the same thing a few days ago. Is there any changes related and what I should do about it?

Thanks!
Yafei

Jian Li

unread,
Oct 28, 2016, 6:01:39 PM10/28/16
to ro...@chromium.org, Chromium-dev
I am seeing the following error when installing chrome_public_apk:

C   28.782s blacklisting_install(...)  (TimeoutThread-1-for-blacklisting_install(...)) Exception on Install(..., /usr/local/google/home/jianli/src/chromium_android/src/out/Release/apks/ChromePublic.apk, allow_downgrade=False, retries=3, reinstall=True, timeout=120), attempt 1 of 4: AdbShellCommandFailedError('(device: ...) shell command run via adb failed on the device:\n  command: sh /data/local/tmp/temp_file-d9559396f94a2.sh\n  exit status: 1\n  output:\n  - Operation not allowed: java.lang.SecurityException: Permission com.google.android.apps.now.CURRENT_ACCOUNT_ACCESS is not a changeable permission type\n',)

Also there is a bug filed on this for same error for installing chrome_public_test_apk.

Maybe all these are related to the same root cause.



--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Reply all
Reply to author
Forward
0 new messages