In TWRP go to Advanced > File Manager, and go to the /data/system folder. Scroll down and find the two files with the .key extension. Delete both of them. Then, delete all the files containing the word locksettings.
Delete the following files:
Works without root:
adb shell pm uninstall -k –user 0 [app]
Example [app] = net.oneplus.launcher
adb shell su mount -o rw,remount /system rm -rf /system/app/myApp.apk rm -rf /data/data/com.example.myapp mount -o ro,remount /system exit exit
Maybe this works:
adb shell rm /system/app/MyApp* adb uninstall org.my.app
adb devices | tail -n 2 | head -n 1 | awk '{print $1}'