====== Android ======
===== Customization =====
==== Delete fingerprint profiles via TWRP ====
- Boot into TWRP
- Go to advanced > filemanager to access the files in your phone.
- Enter the folder /data/system/user/0
- Delete following files: ./fpdata/user.db, settings_fingerprint.xml
- Reboot to system and set up new fingerprints with the fingerprint wizard
- Everything should work normal
==== Fix PIN errors after restoring from TWRP backups ====
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:
* password.key
* pattern.key
* locksettings.db
* locksettings.db-shm
* locksettings.db-wal
==== Delete System Apps ====
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
===== Commands =====
==== Get device MAC ===
adb devices | tail -n 2 | head -n 1 | awk '{print $1}'
===== Links =====
* [[https://forum.xda-developers.com/nexus-5x/orig-development/rom-lineageos-15-1-nexus-5x-bullhead-t3724575|[ROM][OFFICIAL] LineageOS 15.1 for Nexus 5X (bullhead)]]
* [[https://opengapps.org/|The Open GApps Project]]
* [[https://forum.xda-developers.com/showthread.php?t=2223545|Restoring TWRP backup to a new phone]]
* [[https://www.xda-developers.com/how-to-install-twrp/|How to Install TWRP]]
* [[https://www.xda-developers.com/how-to-manually-change-your-android-encryption-password/|How to Change Your Android Encryption Password Without Changing Your Lock Screen Password]]
* [[https://wiki.lineageos.org/devices/bullhead/build|Build LineageOS for bullhead]]
* [[https://www.cyanogenmods.org/download-lineageos-17/|Download LineageOS 17.1 for Supported Devices]]
* [[https://www.celsoazevedo.com/files/android/nexus-5x-lineageos/|LineageOS builds for the Nexus 5X]]
* [[https://blog.j15h.nu/building-lineageos-15-1-from-source/|Building LineageOS 15.1 from source]]
* [[http://example.com|Android in a Box - Run Android applications on any GNU/Linux operating system.]]
* [[https://www.droidviews.com/sideload-roms-mods-using-adb-sideload/|Sideload ROMs and Mods Using ADB Sideload]]
* [[https://www.androidblog.gs/how-to-flash-ota-firmware-updates-using-recovery-and-adb-fastboot-commands/|Flash OTA Update via Recovery and ADB Fastboot Commands]]
* [[https://twrp.me/|TeamWin - TWRP Recovery]]
* [[https://www.xda-developers.com/how-to-install-twrp/|How to Install TWRP]]
* [[https://www.droidviews.com/install-apk-files-using-adb-commands/|How to Install APK Using ADB Commands]]
* [[https://www.plasma-mobile.org/index.html|Plasma Mobile - Plasma, in your pocket]]
* [[https://www.plasma-mobile.org/2020/05/26/Plasma-Mobile-update-April-May.html|Plasma Mobile update: April-May 2020]]