As I always owned rooted phones I find frustrating living with all the limitations of non-rooted phones.
I would like to list here all the adb commands you can issue and system settings you can tweak to get your non-rooted phone experience closer to a rooted one. In a way decreasing "security" when connected to a PC.
Especially targeting Android 10+
Of course we all know everything starts enabling Developer Options
and USB Debug
I can execute some pm disable package
or pm uninstall package
to get rid of some bloat system apps.
Then I can do some setting put global parameter n
to tweak some system settings.
I.E. setting put global dropbox_max_files 9
limits the number of files in /data/system/dropbox
directory (unaccessible) to 9 instead of hundreds (if not thousands).
Dropbox app not installed, but there is log activity in /data/system/dropbox
Finally there's pm grant com.package.name android.permission.WRITE_SECURE_SETTINGS
to play with...