For a long time I'm using my good old friend OnePlus One, it works great to me on stock AOSP CM-13.1.2 until yesterday. I fail in the name of good and terrible thing has happened xD.
I wanted to stop draining my battery by apps which all the time were using GPS service to track my location so I started to make some change in settings -> privacy guard settings -> Location permission.
I tried to change the permission to those apps from "Allowed" to "Always ask". I do mistake and change permission to Google Play Services. After that I restart my phone. Now every time my OnePlus One is stuck/freeze after booting screen and I see only black screen and popup window in center with requests to give Location permission to Google Play Service.
Touch screen not working when is press to Allow, It cant go ahead to lock screen.
My phone is not rooted, locked bootloader, no TWRP, only stock Cayanogen recovery with options:
Reboot system now
Apply update -> Apply from ADB->ADB Sideload
Factory reset -> Full factory reset or Wipe cache partition ( I dont want lose my data on phone)
Advanced-> Reboot recovery
Advanced-> Reboot to bootloader
I read on internet that I need to modify or delete /data/system/appops.xml file
What can I do now, how can I do this modification without losing data.
Can I do it from shell console ADB? and which option I have to choose in recovery to connect my laptop OS: win XP with OnePlus One?
I read that i can do it by TWRP recovery but i dont have it on OPO. Can I safely flash it to phone without losing data? Bootloader is locked.
Is there any tutorial how to do it safely? How to Delete or download, modiffy and replace file /data/system/appops.xml using ADB commands, backup my personal data to PC, connect with phone by ADB with computer.
Any help needed. Sorry for my bad english.