Reading files via shell without root

I Had thought I had a method in my old phone using shell to import files to variables in macrodroid. However, now, in my new phone when I go to shell it says root required.

Was this recently changed?
Is there some other method I can use to retrieve / import file contents to macrodroid?
 

tanutanu

Well-known member
I Had thought I had a method in my old phone using shell to import files to variables in macrodroid. However, now, in my new phone when I go to shell it says root required.

Was this recently changed?
Is there some other method I can use to retrieve / import file contents to macrodroid?
Use the absolute path starting with "storage/emulated/0/" to access internal storage like below:

cat /storage/emulated/0/download/test.txt

I think it works even if on Android 11+ currently when you granted file access permission correctly.
 
Top