Обновлено 05.11.2022 15:26
The Settings
General settings:
Settings are mostly stored in the /data subdirectory. If you're looking for something specific, start there.
Built-in apps:
Built-in apps tend to keep their settings in /data/data/com.android.* and /data/data/com.google.android.*
For example:
Contacts: /data/data/com.android.contacts
Email accounts: /data/data/com.android.email
MMS: /data/data/com.android.mms
WiFi:
WiFi settings location depends on the manufacturer, but is generally predictable.
Samsung Galaxy Pocket, S2, S3: /data/misc/wifi/wpa_supplicant.conf
Samsung Tab: /data/wifi/bcm_supp.conf
HTC Desire: /data/misc/wifi/wpa_supplicant.conf
Dell Streak: /data/misc/wifi/wpa.conf
Oneplus 2, 3: /data/misc/wifi/networkHistory.txt
Keyboard configs:
I have had to disable hardware keys, reconfigure layouts, or alter general keyboard behaviour before. The exact file name tends to be different on every phone, but I've found the config files to always be in /system/usr/keylayout/. Be careful, as breaking those could render your phone unusable.
Misc:
Most miscellaneous settings like product information, boot sounds, and enabling / disabling the on-screen nav bar are stored in /system/build.prop. Breaking this config file could bootloop your device.
If I find more information, I'll add later.
/data/data/com.android.providers.settings/databases/settings.db
https://4pda.to/forum/index.php?showtopic=606535
(версия20160415) "сценария разлочки" аппаратов с MiFlashUnlock ("что он делает"):
#
определяет какой аппарат (fastboot getvar product | fastboot getvar soc-id | fastboot getvar soc_id | fastboot getvar board_version)
проверяет не разлочен ли аппарат (fastboot oem LKS | fastboot oem device-info)
если не разлочен - получает с аппарата токен (fastboot getvar token)
проверяет есть ли такой же токен (=аппарат) в ми-аккаунте
если нет - "ошибка 50%"; если есть - на сервере на основе токена - "генерится" хеш разлочки ('sig.data')
получает хеш разлочки и выполняет (!своим "бинарником" fastboot.exe) команду (fastboot oem unlock 'sig.data')
аппарат - получает хеш разлочки ('sig.data') - и на основе "своих алгоримов" дешифрует хеш;
если результат дешифрования совпадает с токеном который есть на аппарате - происходит разлочка; если "несовпадает" - ошибка
MiFlashUnlock получает результат о разлочке от аппарата и перезагружает аппарат (fastboot reboot)
на сервере сяоми - при этом отмечается факт разлочки определенного аппарата (="токена")