Sharing a directory between Termux and another application (PasswdSafe)


Question

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.


Answer

get termux from f-droid . The play store version isnt capable of doing advanced stuff on modern versions of android


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes