I have a Samsung Galaxy Tab A 8.0". I haven't rooted the device (and don't really want to).
Until today, I was running Android 10. Today I installed an update that upgraded it to Android 11.
I'm using Termux (now installed from F-Droid) and PasswdSafe. (CORRECTION: I thought I was using the F-Droid version.)
Until now, I've been using Termux commands to copy my password database into a directory under /storage/emulated/0/data
and using PasswdSafe to access it. After the update from Android 10 to 11, I can no longer access that directory from Termux. (The Unix permissions imply I should be able to; obviously there's an Android-specific restriction.)
$ ls -ld /storage/emulated/0/data
drwxrwx--- 4 root everybody 4096 Jun 9 21:12 /storage/emulated/0/data
$ groups
u0_a192 inet everybody u0_a192_cache all_a192
$ cd /storage/emulated/0/data
bash: cd: /storage/emulated/0/data: Permission denied
$
Ideally, I would like to have a directory such that both Termux and PasswdSafe have read/write access. Read/write access for Termux and read-only access for PasswdSafe would also work.
I also have an SD card mounted as /storage/0000-0000
.
UPDATE: I thought I was using the version from F-Droid rather than from the Play Store, but both the Play Store and F-Droid on the device say I have termux version 0.101, while https://f-droid.org/packages/com.termux/ says the current version is 0.117. There may be a conflict, perhaps introduce when I did a factory reset a few weeks ago (it may have automatically reinstalled the Play Store version). I'll try completely uninstalling termux from the Play store and then installing from F-Droid.
UPDATE 2: I had thought that updating to the latest version Termux from F-Droid had fixed the problem, but there's still something odd (and possibly sporadic) going on. I'm not currently able to update files under /storage/emulated/0/data
, or to cd
to that directory. But I have files under that directory that were updated after I upgraded to Android 11, so I was able to at some point. I'll try to narrow down the problem.