User Tools

Site Tools


docs:tips_n_tricks:android:index.html

This is an old revision of the document!


Android

HTC Desire Z

FIXME :!: Work in progress :!: :!: Do not use :!:

Gain temporary root and create Backup on HTC Desire Z Android 2.3

On Linux:

adb push fre3vo   /data/local/tmp
adb install Superuser.apk
# from Vision-fre3vo-temp-root.zip
adb push su       /data/local/tmp
adb push fixsu.sh /data/local/tmp
adb push busybox  /data/local/tmp
adb shell

In adb shell:

chmod 777 /data/local/tmp/fre3vo
/data/local/tmp/fre3vo -debug -start FAA90000 -end FFFFFFFF

Dropping back to Linux!

~ $ adb shell
# /data/local/tmp/fixsu.sh
# exit

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

see Google ;-)

/data/local/tmp/misc_version -s 1.33.405.5

Root and ugrade HTC Desire Z to Android 2.3

On Linux:

adb push psneuter /data/local/tmp/
adb push hboot-eng.img /data/local/tmp/
adb push busybox /data/local/tmp/
adb push flashgc /data/local/tmp/
adb push gfree /data/local/tmp/
adb push root_psn /data/local/tmp/
adb push recovery-clockwork-touch-5.8.1.0-vision.img /data/local/tmp/recovery.img
adb push su /sdcard/
adb push Superuser.apk /sdcard/
adb shell

In adb Shell:

chmod 755 /data/local/tmp/* 
/data/local/tmp/psneuter

In Linux:

adb shell

In adb Shell (note the '#' sign):

cd /data/local/tmp 
./gfree -f -b hboot-eng.img -y recovery.img 
./root_psn
sync

References:

* http://wiki.cyanogenmod.org/w/Install_CM_for_vision
* http://forum.xda-developers.com/showthread.php?t=1178912
* http://forum.xda-developers.com/showthread.php?t=905261
* http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#Rooting_the_Vision_.28G2.2FDZ.29_and_DHD
* 

Use QR Code to gain Wifi Access

To get Wifi access by use of common QR Code scanners, you have to QR encode the string WIFI:S:MySSID;T:WPA2;P:MyPassword;; which can be generated with the open source tool qrencode:

qrencode -t PNG -s 12 -l L -o MyNetwork.png 'WIFI:S:MySSID;T:WPA;P:MyPassword;;'

Apart from replacing MySSID and MyPassword by the right values for your network, you might need to replace WPA by WEP. I was told, a WPA2 might work as well, but WPA seems to be generic for both WPA and WPA2.

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), just omit the respective tags completely1).

References:

Thanks to Generate QR Codes for WiFi networks for pointing out the basiscs.

Wileyfox Swift

Install TWRP 3.0.2 unofficial on Wileyfox Swift

Some time ago, I found an unofficial build of TWRP for the Wileyfox Swift (crackling): TWRP_3.0.2-0_crackling_20160524.zip

For some reason, twrp-3.2.1-0-crackling.img from https://dl.twrp.me/crackling/ did not work for me2)

Steps done:

  1. Extract recovery.img from TWRP_3.0.2-0_crackling_20160524.zip
  2. Boot Wileyfox Swift into fastboot
  3. Connect by USB
  4. Run
    fastboot flash recovery recovery.img
    on connected computer
  5. Reboot by command
    fastboot boot recovery.img
    on connected computer3)
  6. 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.:!:

Obviously, TWRP saves backups into a phone specific subdirectory and offers restores only for backups found in the appropriate subdirectory
  1. Install TWRP on both systems (see above)
  2. Put old phone into flight mode to avoid sync operations during backup and restore
  3. Boot old phone into recovery mode
  4. Check time and timezone, select correct timezone eventually
  5. Select “Backup”
  6. Select storage “MicroSD”
  7. Select partitions for backup
    • System
    • Data
    • Boot
  8. Start Backup
  9. After backup finished, shutdown old phone by choosing Power off from the Reboot Menu
  10. Move all SIM cards and the SD card from old phone to new one4)
  11. Boot new phone directly into recovery mode by pressing Volume down and Power, let go after approx. 5 seconds.
  12. Check time and timezone, select correct timezone eventually
  13. Select Terminal from TWRP menu
    or
    Connect to computer by USB and run adb shell
  14. Set current time by
    date -s YYYYMMDDHHMM00
  15. Do a dummy backup of some small partition (e.g. boot) to get TWRP subdirectory name of new phone
  16. Find new subdirectory either in /sdcard/TWRP/BACKUP or in /sdcard1/TWRP/BACKUP
  17. Rename
    /sdcard1/TWRP/BACKUP/<old name>
    to
    /sdcard1/TWRP/BACKUP/<new name>
  18. Select WipeAdvanced Wipe
  19. Select5)
    • Dalvik / ART Cache
    • System
    • Data
    • Internal Storage
    • Cache
  20. Start Wiping by Swipe to Wipe
  21. Select Restore
  22. Select storage “MicroSD”
  23. Select most recent backup
  24. Select partitions to be restored:
    • System
    • Data
    • Boot
  25. After restore finished, reboot into System.
  26. Connect to computer by USB
  27. Run6)
    adb shell date YYYYMMDD.HHMM00
  28. Reboot new phone
  29. Check date and time on new phone
  30. Have fun!
I recommend not to go online with the existing system on the old phone to avoid sync mischief. Factory reset the old phone as soon as you are confident, that the transfer worked well.
1)
meaning no ;T:…;P… at all
2)
Flashing was possible, but fastboot boot <imgfile> gave an error and forcing boot into recovery by pressing Power and Volume down did stall on “Wileyfox” screen
3)
If you boot reboot into system first, the recovery image will be overwritten by the factory default
4)
You might want to do a image backup of the SD card befor exposing it to the recovered system
5)
should be all but MicroSD
6)
Yes, this ist different from the syntax above
docs/tips_n_tricks/android/index.html.1526584141.txt.gz · Last modified: 17.05.2018 21:09 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki