Paths to external app cache folder
See original GitHub issueHow do I get to the path of Context.getExternalCacheDir()
using this shell? In the lib I was currently using (org.sufficientlysecure.rootcommands), I could just do (in Kotlin): context.externalCacheDir.absolutePath.replace("/storage/emulated/0","\$EXTERNAL_STORAGE")
and it worked, with this lib it doesn’t. Is there any difference? How could I accomplish the same thing across all device models?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Access app-specific files - Android Developers
External storage directories: These directories include both a dedicated location for storing persistent files, and another location for storing cache data.
Read more >How to Clear System Cache Windows 10 [2022 Updated]
The best-known storage path of cache in Windows should be C:\Windows\Temp, which stores a lot of system temporary files.
Read more >How can I get the external application data path in android?
2 Answers 2 ... simply use Context.getExternalCacheDir() , this is the standard way android provides for external cache, when your app uninstalled ...
Read more >Cache directory on windows should be %localappdata% by ...
So cache path should be set to %LOCALAPPDATA% and HTTP Cache, GPUCache ... local file system dependencies outside of the app data folders...
Read more >Naming Files, Paths, and Namespaces - Win32 apps
Use a backslash (\) to separate the components of a path. The backslash divides the file name from the path to it, and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I thought it did apply since there seemed to be a difference between the libraries. But in the end it was my fault, since some devices have magisk that don’t need -mm and older ones had your rooting that did require it. When I omitted -mm the cache dir wasn’t visible to the root shell. Thanks for responding!
We hu