When Android is locked after Too many pattern attempts, it will ask you to sign in with your Google Account to unlock, I have my username and password but the mobile data and the wireless are not enabled and i can't enable it because it's totally locked, i don't want to make a factory reset because i will lose my data.
as a programmer I have wasted two days searching on how and i have found an answer using the ADB to turn on the wifi :
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
update secure set value=1 where name='wifi_on';
.exit
However,it will not work if the USB debugging was disabled, Is there any other solution to enable the USB debugging on using ADB or to get the wifi or the mobile data on?
Please don't close this questions because Questions on Stack Overflow are expected to relate to programming or software development, because this question is related to software development, at lease please Android experts, Answer me and answer thousands of people who losing their data everyday, because Android is not turning the wireless on by default if it's locked or gives at least the opportunity to log in and unlock by storing the password locally. Please suggest a solution.