Can someone help me with an problem please?
I have an A20e (SM-A202F) phone and I try to clear all apps data and cache with adb with this command:
cmd package list packages | cut -d":" -f2 | while read package; do pm clear $package && echo $package; done
All working fine but at some point for whatever reason its stuck at one random app... I try again and the same thing, at another app is stuck and is not finishing to clear all apps. I also want to specify that I'm trying to do this on stock firmware, the latest one.
Someone have an ideea please? Thanks a lot and please excuse my English, I'm not native.
UPDATE: I found that when pm clear
command stops working on the phone screen appears an message: Security policy restrics clearing of application data
....