flibbertigibbet wrote:
> Up until quite recently I've been using
> File Manager Plus
https://bit.ly/3Vb0h31
> and or
> USB Media Explorer
https://bit.ly/3EM2wEx
> to get around my Galaxy S22 Ultra, because the standard file explorer is
> pretty basic and had been giving me the runaround when trying to access my
> Data folder. Now, though, since updating to Android 13 these paid-for
> 3rd-party apps won't give me access to that folder. Can anyone here tell me
> how I can get these apps to cooperate with me, or maybe tell me which app
> bypasses Android's efforts to keep their customers out of this folder,
> please?
I just made these screenshots for you out of the goodness of my soul.
<
https://i.postimg.cc/fT7MSr90/root01.jpg> Even with All Files Access=On
<
https://i.postimg.cc/05wkPQ5n/root02.jpg> Half of file managers read root
<
https://i.postimg.cc/R0hm8Cbc/root03.jpg> & half of file managers do not
I'm not sure if this is a troll or not, but if I assume it's a sincere
question, then I'm glad to pitch in to purposefully helpfully help out.
I've been successful reading almost the entire Android file system using
a variety of common methods (without being rooted) but some file managers
do _not_ read the root file system as shown by my screenshots below.
Even when you give the file manager "All Files Access = On" permission,
half of the free file managers still don't seem to show root files.
When I was researching this for you, I found there is also "Usage Data Access"
which needed to be granted for _some_ of the apps above.
I'm not sure if that's the reason half of the file managers could read
the root partition and the other half could not. Maybe others who know
far more about Android than I ever will know can tell us if it matters.
To be clear, my Android phone is still owned by T-Mobile & is not rooted.
Also note that adb on Windows can read the root partition over Wi-Fi too.
C:\> adb devices
That should report the devices that adb is connected to, for example:
List of devices attached
192.168.0.2:54321 device
C:\> adb shell netstat
That should list the phone's TCP/IP connectivity tables.
C:\> adb shell service list
That should list all the running services on the phone.
C:\> adb shell ps
That should list all the running processes on the phone.
C:\> adb shell ifconfig
That should provide your Android network interface information.
C:\> adb shell "cd /sdcard/Download && ls"
That should list files in your internal storage Download folder.
C:\> adb shell "cd /sdcard && mkdir temp"
That should create a "temp" directory in your internal
storage sdcard on your Android phone.
C:\> adb shell screencap -p /sdcard/temp/screenshot.png
That should snap a screenshot of your android phone & store it
in the newly created temp folder on the Android phone.
C:\> adb shell screenrecord /sdcard/temp/screenrecord.mp4
Do whatever on the Android phone & then press Ctrl+C to end.
That should create an MP4 recording of your Android screen.
C:\> adb install "C:\path-to\filename.apk"
That should install the APK from Windows over Wi-Fi onto Android.
(Note this is useful when you have hundreds of apps like I do!)
<
https://i.postimg.cc/bN875p8b/apk01.jpg> Windows APK archive
C:\> adb push "C:\path-to\filename.apk" /sdcard/Download
That should copy the named file from Windows to Android &
(in this case) put it in your internal storage "Download" folder.
Note that each phone OEM "can" use a different filespec for
internal & external sdcards (e.g., /storage/emulated/0/Download).
C:\> adb push C:\path\apk_archive\ /sdcard/Download/apks
That should create a folder named "apks" in the Android phone's
internal storage "Download" folder and then copy all the files
from the Windows "apk_archive" folder into that new "apks" folder.
C:\> adb shell
$ /storage/emulated/0/DCIM
$ ls
$ exit
That should allow you to interactively manage the Android
filesystem from Windows over Wi-Fi. Note these are common:
/mnt/sdcard/DCIM
/sdcard/DCIM
/sdcard/DCIM
C:\> adb logcat
Use this if you're a glutton for punishment as it will forever
spit out a log of what's going on your phone (until you Ctrl+C).
C:\> adb logcat *:E
The values are:
V: Verbose (lowest priority)
D: Debug
I: Info
W: Warning
E: Error
F: Fatal
S: Silent (highest priority. Nothing is printed)
Note logcat has multiple options, e.g.,
adb logcat Tag1:I *:S
That will list output log messages with the tag "Tag1"
and priority level Info or higher.
The *:S at the end will exclude the log from other tags
with any priority.
C:\> adb shell getprop | FindStr /i "ro.build.version"
Get properties off the phone & grep for the given keyword.
C:\> adb shell getprop ro.build.version.security_patch
This will report the property of the security patch level.
C:\> adb shell getprop ro.build.fingerprint
This will report basic hardware information about your phone.
C:\> adb shell input swipe 500 1000 500 100
This will instantly swipe from center to the top of the screen.
You can add a time period, e.g., take 3 seconds to swipe that.
C:\> adb shell input swipe 500 1000 500 100 3000
C:\> adb shell input text "K-9\ Mail"
This will enter into the phone's search GUI a search for that app.
C:\> adb shell pm list packages
That should list all the packages installed on your Android phone.
C:\> adb shell pm list packages | findStr /i "facebook"
That should list all the packages with that string in their name.
C:\> adb shell pm path com.facebook.appmanager
That should list the path to the named package, e.g.,
package:/system/app/FBAppManager_NS/FBAppManager_NS.apk
C:\> adb pull /system/app/FBAppManager_NS/FBAppManager_NS.apk
That should copy the APK from Android over to Windows.
C:\> adb shell dumpsys package com.facebook.appmanager
This should list an app's components, activities & services, etc.
C:\> adb shell pm list permissions | FindStr facebook
This should list all permissions granted for that particular app.
C:\> adb shell pm revoke com.facebook.appmanager android.permission.READ_EXTERNAL_STORAGE
This should revoke the stated permissions from that app.
C:\> adb shell pm grant com.facebook.appmanager android.permission.READ_EXTERNAL_STORAGE
This should grant the stated permissions to that app.
C:\> adb shell pm clear com.facebook.appmanager
This should clear all the application data in that package.
C:\> adb shell pm uninstall -k --user 0 com.facebook.appmanager
That should uninstall the named package for the current user.
(You don't need root to uninstall system apps for the current user.)
Note this app will provide, by default, a list of all apps
you've installed, in the reverse order that you installed them.
*App Inspector* by UBQSoft
Free, ad free, gsf free, rated 4.3, 100K+ installs
<
https://play.google.com/store/apps/details?id=com.ubqsoft.sec01>
C:\> adb shell pm install-existing com.facebook.appmanager
That should re-install that package that you had just uninstalled.
(This works because it was only uninstalled for the current user.)
C:\> adb shell pm disable-user --user 0 com.facebook.appmanager
That should disable the named package.
C:\> adb shell pm list packages -d | findStr /i "facebook"
That should find the disabled apps & then grep for "facebook".
C:\> adb shell pm enable com.facebook.appmanager
That should enable the named package.
C:\> adb shell pm uninstall com.facebook.appmanager
If you omit the "-k --user 0" part, it uninstalls for all users.
C:\> adb bugreport
That should create a zip file of your current bug-report data.
C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
That should pop up an Android "Reset Advertising ID" settings page.
C:\> adb shell input tap 500 400
If run after the command above, that will tap the button to
asking to "Opt out of Ads Personalization" in that Activity
if that button is like mine, at the X=500 & Y=400 location.
On my phone, this is the "Reset advertising ID" button location:
adb shell input tap 500 200
On my phone, this is the "OK" button on that GUI above.
adb shell input tap 700 1000
C:\> adb shell am force-stop com.google.android.gms
If run after bringing up the advertising-id reset Activity,
it will close the activity without doing anything else.
C:\> adb shell input keyevent KEYCODE_HOME
That should press the "Home" button.
C:\> adb shell input keyevent KEYCODE_CAMERA
That should press the "Camera" button.
C:\> adb shell input keyevent KEYCODE_BACK
That should press the "Back" button.
C:\> adb shell input keyevent KEYCODE_HEADSETHOOK
That should press the "Headset" button.
A list of hardcoded buttons is located in Android documentation:
<
https://developer.android.com/reference/android/view/KeyEvent#constants_1>
C:\> adb pull /system/etc/hosts .\hosts.txt
[That should copy the hosts file over even if you're unrooted.]
C:\> adb shell dumpsys battery set level 4
That will _simulate_ (aka "spoof") a 4% battery level,
which may instantly cause a cascade of actions on your phone
as "if" your battery level really were low.
C:\> adb shell dumpsys battery set ac 1
That will _simulate_ (aka "spoof") that you just connected
an AC power adapter to your phone, so, for example, the phone
should show an icon and speak that you connected to AC power
if you've set this app to do that for you.
*Charging Indicator* by Jason A. Maderski
Free, ad free, gsf free, rated 4.2, 50K+ installs
<
https://play.google.com/store/apps/details?id=maderski.chargingindicator>
Note that with adding notifications, I use text-to-speech to
clarify what the notification is telling me, instead of sounds.
Two text-to-speech free apps I use for notifications are:
*Tell Me - Text To Speech* by Simply Complex Apps
Free, ad free, +inapp $, rated 4.1, 100K+ installs
<
https://play.google.com/store/apps/details?id=com.simplycomplexapps.ASTellme>
*NTM* Convert Text To Audio File by MEPROWORLD
Free, ad free, not rated, 10K+ installs
<
https://play.google.com/store/apps/details?id=com.meproworld.ntm>
In the case of the battery indicators, I set notifications such as:
"Your battery just reached 100% charging"
"Your USB cable just disconnected"
etc.
C:\> adb shell dumpsys battery reset
This will turn off the battery-level simulation (aka spoofing).
C:\> adb shell dumpsys battery set ac 0
That will _simulate_ (aka "spoof") that you just dis-connected
an AC power adapter from your phone.
C:\> adb shell dumpsys battery set usb 1
That will _simulate_ (aka "spoof") that you just connected
a USB cable to your phone.
.
C:\> adb shell dumpsys battery set usb 0
That will _simulate_ (aka "spoof") that you just dis-connected
a USB cable to your phone.
C:\> adb shell pm list packages
That should list all installed packages.
C:\> adb shell pm list packages -s (list system packages only)
C:\> adb shell pm list packages -3 (list 3rd-party package names)
C:\> adb shell pm list packages -u (list uninstalled packages)
C:\> adb shell dumpsys package packages (list package information)
C:\> adb shell pm dump com.facebook.appmanager (info on one package)
C:\> adb shell pm path com.facebook.appmanager (package apk filespec)
C:\> adb shell pm list packages google | find /c /v ""
That should tell you the number of packages you have on Android
which have "google" in the package name.
C:\> adb shell am start -n com.android.settings/.Settings\$PowerUsageSummaryActivity
That should bring up a moving graph of your current battery usage.
C:\> adb shell am start -n com.google.android.gms/.location.settings.LocationAccuracyActivity
That should tell you if you have Google location spyware running.
C:\> adb shell am start -n com.google.android.gms/
co.g.Space
That should allow you to clear your Google Play services storage.
C:\> adb shell am start -n com.google.android.gms/.update.SystemUpdateActivity
That should allow you to check for Android updates.
C:\> adb shell am start -n com.google.android.gms/.nearby.exposurenotification.settings.SettingsActivity
That will let you know your Covid exposure notification status.
C:\> adb shell am start -n com.google.android.gms/.app.settings.GoogleSettingsLink
That should bring up most of the Google privacy settings on Android.
C:\> adb shell am start -n com.android.settings/.Settings\$NotificationAppListActivity
That should bring up _all_ your extant notifications.
C:\> adb shell am start -n com.android.settings/.Settings\$AppMemoryUsageActivity
That should show you how much memory each app is using.
C:\> adb shell am start -n com.android.settings/.network.telephony.MobileNetworkActivity
That should tell you how much mobile data you've used up.
C:\> adb shell am start -n com.android.settings/.applications.ManageApplications
That should bring up the form to set your default Android apps.
C:\> adb shell am start -n com.google.android.gms/.gcm.GcmDiagnostics
That should scare the crap out of you when you see what it says!
mtalk.google.com is obtaining your private location information?
C:\> adb backup -all
Supposedly this will back up your entire device & app data to an
encrypted "backup.adb" file in your current Windows directory.
C:\> adb restore "C:\path-to\backup.adb"
Supposedly this will restore your backed up device & app data.
--
Posted out of the goodness of my heart to disseminate useful information
which, in this case, is to test which file managers can read root files.