Thank youI actually did some diagnosing and analyzing the logcat, after some long headaches, i found the file causing this mess from the beginning, so each time google play store system update automatically downloads the update , it stores it inside "/data/apex/active/" with the file name : "com.android.media.swcode(at)340818112.apex" so i had to remove it from there, the system restores to its stable state.
maybe this is not a practical solution as the google play store system update can anytime download it automatically but, it solves the problem of wiping data each time.
*Note: for users who doesn't have root privileges, you can do the same thing using twrp recovery!
Thank you
Thank you
Spent the last two days trying to find the culprit. Thinking about factory reset with all the Hussle even to buy a new phone.
And this 5 seconds trick saved my life.
Again, thank you
May you and your family always be in great health