docs:tips_n_tricks:android:index.html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docs:tips_n_tricks:android:index.html [13.06.2017 02:36 CEST] – peter | docs:tips_n_tricks:android:index.html [13.08.2022 17:07 CEST] (current) – [Conversations / adb] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Android ====== | ||
+ | {{tag> | ||
+ | {{entry> | ||
+ | {{entry> | ||
+ | ===== HTC Desire Z ===== | ||
+ | {{tag>" | ||
FIXME :!: Work in progress :!: | FIXME :!: Work in progress :!: | ||
:!: Do not use :!: | :!: Do not use :!: | ||
- | ====== Android ====== | + | |
- | ===== Gain temporary root and create Backup on HTC Desire Z Android 2.3 ===== | + | HTC Desire Z{{entry> |
+ | |||
+ | ==== Gain temporary root and create Backup on HTC Desire Z Android 2.3 ==== | ||
On Linux: | On Linux: | ||
Line 26: | Line 34: | ||
| | ||
Yeah, this time it's root! Now run //Titanium Backup *root*// and save everything to SD Card! | Yeah, this time it's root! Now run //Titanium Backup *root*// and save everything to SD Card! | ||
- | ===== Downgrade HTC Desire Z to Android 2.2 ===== | + | ==== Downgrade HTC Desire Z to Android 2.2 ==== |
see Google ;-) | see Google ;-) | ||
/ | / | ||
- | ===== Root and ugrade HTC Desire Z to Android 2.3 ===== | + | ==== Root and ugrade HTC Desire Z to Android 2.3 ==== |
On Linux: | On Linux: | ||
Line 61: | Line 69: | ||
./root_psn | ./root_psn | ||
sync | sync | ||
- | | ||
- | | ||
- | | ||
- | | ||
| | ||
// | // | ||
- | | + | |
* http:// | * http:// | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
- | * | ||
| | ||
- | ===== Use QR Code to gain Wifi Access ===== | + | ===== Use QR Code to configure |
+ | {{tag>" | ||
+ | To get Wifi{{entry> | ||
- | To get Wifi access by use of common QR Code scanners, you have to QR encode the string | + | // |
+ | |||
+ | which can be generated with the open source tool // | ||
qrencode -t PNG -s 12 -l L -o MyNetwork.png ' | qrencode -t PNG -s 12 -l L -o MyNetwork.png ' | ||
- | Apart from replacing //MySSID// and // | + | {{: |
- | For a hidden network, a //H:true// is expecte as a last value, seperated by another //;// and finished by a pair of them. In case of no password (no encryption), | + | For a hidden network, a //H:true// is expecte as a last value, seperated by another //;// and finished by a pair of them. In case of no password (no encryption), |
- | + | <WRAP clear></ | |
- | __References__: | + | {{ : |
+ | qrencode -t ANSIUTF8 -l L ' | ||
+ | <WRAP clear></ | ||
+ | // | ||
* [[https:// | * [[https:// | ||
* Tries with the [[https:// | * Tries with the [[https:// | ||
Thanks to [[http:// | Thanks to [[http:// | ||
+ | |||
+ | ===== Wileyfox Swift ===== | ||
+ | {{tag>" | ||
+ | |||
+ | ==== Install TWRP 3.0.2 unofficial on Wileyfox Swift ==== | ||
+ | Some time ago, I found an unofficial build of TWRP{{entry> | ||
+ | < | ||
+ | Steps done: | ||
+ | - Enable developer options/ | ||
+ | - Enable //adb// on phone | ||
+ | - Enable //oem unlock// on phone | ||
+ | - Extract // | ||
+ | - Boot Wileyfox Swift into // | ||
+ | - Connect by USB | ||
+ | - Run <code bash> | ||
+ | fastboot oem unlock | ||
+ | fastboot -i 0x2970 oem unlock-go | ||
+ | fastboot oem unlock-go | ||
+ | </ | ||
+ | - Run <code bash> | ||
+ | fastboot flash recovery recovery.img | ||
+ | </ | ||
+ | - Reboot by command < | ||
+ | fastboot boot recovery.img | ||
+ | </ | ||
+ | - Reboot or shutdown from TWRP Menu | ||
+ | |||
+ | ==== Transfer system from one Wileyfox Swift to another with TWRP ==== | ||
+ | //This is a guide to transfer an //Android// system to a new hardware of the same type in case the old hardware is somewhat broken, but the system ist still running.// | ||
+ | :!://This will not work as described to transfer the system to different hardware.//: | ||
+ | |||
+ | <note tip> | ||
+ | <note warning> | ||
+ | - Install TWRP on both systems (see above) | ||
+ | - Put old phone into flight mode to avoid sync operations during backup and restore | ||
+ | - Boot old phone into recovery mode | ||
+ | - Check time and timezone, select correct timezone eventually | ||
+ | - :!: Connect computer via USB and backup all data from internal storage to computer by //mtp//:!: | ||
+ | - Select " | ||
+ | - Select storage " | ||
+ | - Select partitions for backup | ||
+ | * System | ||
+ | * Data | ||
+ | * Boot | ||
+ | - Start Backup | ||
+ | - After backup finished, shutdown old phone by choosing //Power off// from the //Reboot// Menu | ||
+ | - Move all SIM cards and the SD card from old phone to new one((You might want to do a image backup of the SD card befor exposing it to the recovered system)) | ||
+ | - Boot new phone directly into recovery mode by pressing //Volume down// and //Power//, let go after approx. 5 seconds. | ||
+ | - Check time and timezone, select correct timezone eventually | ||
+ | - Select // | ||
+ | - Set current time by running< | ||
+ | - Do a dummy backup of some small partition (e.g. boot) to get TWRP subdirectory name of new phone | ||
+ | - Find new subdirectory either in ''/ | ||
+ | - Rename\\ ''/ | ||
+ | - Select //Wipe// -> //Advanced Wipe// | ||
+ | - Select((should be all but // | ||
+ | * Dalvik / ART Cache | ||
+ | * System | ||
+ | * Data | ||
+ | * Internal Storage | ||
+ | * Cache | ||
+ | - Start Wiping by //Swipe to Wipe// | ||
+ | - Select //Restore// | ||
+ | - Select storage " | ||
+ | - Select most recent backup | ||
+ | - Select partitions to be restored: | ||
+ | * System | ||
+ | * Data | ||
+ | * Boot | ||
+ | - Wait for restore to finish | ||
+ | - :!: Connect computer via USB and restore all data to internal storage from computer by //mtp//:!: | ||
+ | - Reboot into //System// via the //Reboot// menu. | ||
+ | - Connect to computer by USB | ||
+ | - On connected computer run((Yes, this ist different from the syntax above))< | ||
+ | - Reboot new phone | ||
+ | - Check date and time on new phone | ||
+ | - Have fun! | ||
+ | <note warning> | ||
+ | ==== Upgrad from CyanogenOS to Android ==== | ||
+ | <note important> | ||
+ | ==== Change disk encryption PIN on Android 7.2.1 Nougat ==== | ||
+ | |||
+ | adb shell | ||
+ | su | ||
+ | vdc cryptfs changepw pin <old> <new> | ||
+ | |||
+ | ==== Install F-Droid Privilege Extension systemless ==== | ||
+ | //(e.g. needed for system on //sqashfs// which can not be modified by TWRP)// | ||
+ | |||
+ | - Install Magisk | ||
+ | - Install Magisk Systemizer extension | ||
+ | - Download F-Droid Privilege Exteion APK. (downloading, | ||
+ | - connect via USB from PC and run< | ||
+ | su | ||
+ | cd / | ||
+ | systemizer</ | ||
+ | - Select " | ||
+ | - Enter filename of apk | ||
+ | - Choose destination ''/ | ||
+ | - Reboot Phone | ||
+ | |||
+ | ==== Install LineageOS 14.1 ==== | ||
+ | // | ||
+ | |||
+ | Install everything (but System) from Cyanogen 13.1.2 via fastboot first: | ||
+ | |||
+ | unzip cm-13.1.2-ZNH2KAS3LG-crackling-signed-fastboot-84f0d5200b.zip \ | ||
+ | NON-HLOS.bin hyp.mbn emmc_appsboot.mbn rpm.mbn tz.mbn sbl1.mbn \ | ||
+ | splash.img flash-radio.sh cache.img userdata.img boot.img recovery.img \ | ||
+ | android-info.txt filesmap | ||
+ | su - | ||
+ | for file in boot.img cache.img recovery.img userdata.img ; do fastboot flash " | ||
+ | | ||
+ | Depending where you came from (i.e. what has been the previous OS Revision on the phone) you might want to flash further firmware: | ||
+ | |||
+ | ./ | ||
+ | |||
+ | Then reboot the //Swift// into the new fastboot: | ||
+ | |||
+ | fastboot reboot-bootloader | ||
+ | |||
+ | In fastboot, boot TWRP: | ||
+ | |||
+ | fastboot boot twrp-3.2.3-0-crackling.img | ||
+ | exit # finish su | ||
+ | |||
+ | In TWRP select " | ||
+ | |||
+ | You might want to tick "Wipe Dalvik Cache" and "Wipe Cache" to avoid problems due to cache inconsistency. Then start the sideload mode by doing the "Swipe to Start Sideload" | ||
+ | |||
+ | Then install Lineage from PC((Might finish with " | ||
+ | adb sideload lineage-14.1-20180905-nightly-crackling-signed.zip | ||
+ | |||
+ | In TWRP select " | ||
+ | |||
+ | After reboot, wait for the installation process to finish. (If you think, its stuck - keep waiting provided the animated LineageOS Logo is still running) | ||
+ | |||
+ | If you want to have //root// for apps, you need to install [[https:// | ||
+ | |||
+ | If you want to use //f-droid// with privilege extension, you need to install [[https:// | ||
+ | |||
+ | ==== Install LineageOS 16.0 over Android 7.1.2 ==== | ||
+ | // | ||
+ | - Unlock phone | ||
+ | - Install TWRP 3.2.3-0 | ||
+ | - Flash emmc_appsboot.mbn from cm-13.1.2-ZNH2KAS3LG-crackling-signed-fastboot-84f0d5200b.zip to aboot\\ '' | ||
+ | - Boot into recovery (i.e. TWRP) | ||
+ | - Wipe all data partitions (Well ... archive all needed data before ...) | ||
+ | - Reformat /system with ext4 | ||
+ | - Format data | ||
+ | - Reboot | ||
+ | |||
+ | ===== ===== | ||
+ | // | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | ===== Conversations / adb ===== | ||
+ | How to remove lines from // | ||
+ | |||
+ | <code bash> | ||
+ | cd / | ||
+ | mkdir adb-backup | ||
+ | cd adb-backup | ||
+ | adb devices -l | ||
+ | adb backup -f eu.siacs.conversations.ab -apk -obb eu.siacs.conversations | ||
+ | cp -vip eu.siacs.conversations.ab eu.siacs.conversations.ab.save | ||
+ | java -jar ~/ | ||
+ | cd /tmp | ||
+ | mkdir unpack | ||
+ | cd unpack/ | ||
+ | tar -xvkpf / | ||
+ | sqlitebrowser apps/ | ||
+ | tar -tf / | ||
+ | tar -cvf eu.siacs.conversations-modified.tar -T files.list | ||
+ | java -jar ~/ | ||
+ | adb restore eu.siacs.conversations.ab | ||
+ | |||
+ | </ | ||
+ | |||
+ | // | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | {{tag> | ||
+ | {{entry> | ||
+ | {{entry> | ||
+ | {{entry> | ||
+ | {{entry> | ||
+ | {{entry> | ||
+ | {{entry> |
docs/tips_n_tricks/android/index.html.1497314177.txt.gz · Last modified: 13.06.2017 02:36 CEST by peter