question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Paths to external app cache folder

See original GitHub issue

How 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dave08commented, Mar 31, 2019

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!

0reactions
WASIM88AHMEDcommented, Apr 6, 2019

We hu

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found