DeprecatedInstallAndroid » History » Version 12
Denis 'GNUtoo' Carikli, 09/17/2009 03:26 PM
| 1 | 1 | Denis 'GNUtoo' Carikli | == Introduction == |
|---|---|---|---|
| 2 | Here's a tutorial that covers the installation of a previously built or downloaded Free Android Image,we will assume that: |
||
| 3 | * you don't have the engineering bootloader |
||
| 4 | * you have root access |
||
| 5 | 4 | Denis 'GNUtoo' Carikli | * you have a blank vfat sdcard in your android phone with enough free space |
| 6 | 1 | Denis 'GNUtoo' Carikli | |
| 7 | == Howto == |
||
| 8 | * /!\ first backup your curent version...in case something is wrong we need it |
||
| 9 | * then if you want the proprietary wifi firmware,execute the following command on your computer(/!\ the firmware is proprietary,we don't know what it does and we are not even allowed to redistribute it): |
||
| 10 | {{{ |
||
| 11 | ./adb pull /system/etc/wifi/Fw1251r1c.bin ./ |
||
| 12 | }}} |
||
| 13 | * dowload an image that can flash our Free Android, like cm-recovery-1.4.img for instance (/!\ we didn't check cm-recovery-1.4.img's freedom) |
||
| 14 | {{{ |
||
| 15 | wget http://n0rp.chemlab.org/android/cm-recovery-1.4.img |
||
| 16 | }}} |
||
| 17 | 2 | Denis 'GNUtoo' Carikli | Then we will boot on the image that will flash our android: |
| 18 | * shutdown your phone if it isn't shut down |
||
| 19 | * press the camera button first,keep pressing it while pressing the power button...that will give you a screen with skateboarders |
||
| 20 | * use fastboot to boot: |
||
| 21 | 1 | Denis 'GNUtoo' Carikli | {{{ |
| 22 | 2 | Denis 'GNUtoo' Carikli | ./fastboot boot cm-recovery-1.4.img |
| 23 | 1 | Denis 'GNUtoo' Carikli | }}} |
| 24 | 2 | Denis 'GNUtoo' Carikli | * press on the back button(<-) that is under the menu button at the right of the trackball |
| 25 | it will boot |
||
| 26 | * backup your image selecting "nandroid v2.2 backup" |
||
| 27 | 4 | Denis 'GNUtoo' Carikli | * then use adb to push your images but first we need to look where to push them: |
| 28 | 3 | Denis 'GNUtoo' Carikli | {{{ |
| 29 | 1 | Denis 'GNUtoo' Carikli | ./adb shell |
| 30 | mount -t vfat /dev/block/mmcblk0p1 /sdcard |
||
| 31 | 4 | Denis 'GNUtoo' Carikli | ls -d /sdcard/nandroid/*/* |
| 32 | /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455 |
||
| 33 | 1 | Denis 'GNUtoo' Carikli | exit |
| 34 | 4 | Denis 'GNUtoo' Carikli | }}} |
| 35 | * write down the last line before the exit command,because it will differ from device to device |
||
| 36 | * push the images: |
||
| 37 | {{{ |
||
| 38 | ./adb shell |
||
| 39 | mount -t vfat /dev/block/mmcblk0p1 /sdcard |
||
| 40 | exit |
||
| 41 | ./adb push boot.img /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455 |
||
| 42 | 5 | Denis 'GNUtoo' Carikli | ./adb push system.img /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455 |
| 43 | 6 | Denis 'GNUtoo' Carikli | }}} |
| 44 | * then we need to compute the md5sums: |
||
| 45 | {{{ |
||
| 46 | 1 | Denis 'GNUtoo' Carikli | ./adb shell |
| 47 | 6 | Denis 'GNUtoo' Carikli | md5sum /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455/system.img |
| 48 | 7 | Denis 'GNUtoo' Carikli | a491db2000489c7fb7c5f7fe4b103b8c boot.img |
| 49 | 6 | Denis 'GNUtoo' Carikli | md5sum /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455/system.img |
| 50 | 7 | Denis 'GNUtoo' Carikli | 610b10a715ea1a5db4e6badd6a8a2989 system.img |
| 51 | 1 | Denis 'GNUtoo' Carikli | }}} |
| 52 | * write down the result of both md5sum commands |
||
| 53 | 8 | Denis 'GNUtoo' Carikli | * download the nandroid.md5 file |
| 54 | {{{ |
||
| 55 | 9 | Denis 'GNUtoo' Carikli | ./adb pull /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455/nandroid.md5 ./ |
| 56 | 8 | Denis 'GNUtoo' Carikli | }}} |
| 57 | 1 | Denis 'GNUtoo' Carikli | * change the lines where there is boot.img and system.img to the ones you've writed down previously |
| 58 | 9 | Denis 'GNUtoo' Carikli | * push them: |
| 59 | {{{ |
||
| 60 | ./adb push nandroid.md5 /sdcard/nandroid/HT935NG03936/CBDMRS12-20090917-1455/nandroid.md5 |
||
| 61 | }}} |
||
| 62 | 8 | Denis 'GNUtoo' Carikli | * umount the sdcard |
| 63 | {{{ |
||
| 64 | ./adb shell |
||
| 65 | umount /sdcard |
||
| 66 | }}} |
||
| 67 | 10 | Denis 'GNUtoo' Carikli | * then select "restore the lastest backup" on the screen,with the trackball |
| 68 | * press home like it is said |
||
| 69 | * then select "wipe data/factory reset" on the screen,with the trackball /!\ it will erase all the data of your phone... |
||
| 70 | * then select reboot system now |
||
| 71 | 11 | Denis 'GNUtoo' Carikli | * wait for the system to boot(the boot will take longer than usual) |
| 72 | * then do the following: |
||
| 73 | 10 | Denis 'GNUtoo' Carikli | {{{ |
| 74 | 1 | Denis 'GNUtoo' Carikli | ./adb shell |
| 75 | 11 | Denis 'GNUtoo' Carikli | cd /data/data/com.android.providers.settings/databases |
| 76 | ls |
||
| 77 | settings.db |
||
| 78 | SQLite version 3.5.9 |
||
| 79 | Enter ".help" for instructions |
||
| 80 | sqlite> INSERT INTO secure (name, value) VALUES ('device_provisioned', 1); |
||
| 81 | .exit |
||
| 82 | 12 | Denis 'GNUtoo' Carikli | }}} |
| 83 | * then if you want the proprietary wifi firmware,execute do the following: (/!\ the firmware is proprietary,we don't know what it does and we are not even allowed to redistribute it): |
||
| 84 | {{{ |
||
| 85 | ./adb push Fw1251r1c.bin ./system/etc/wifi/ |
||
| 86 | }}} |
||
| 87 | 11 | Denis 'GNUtoo' Carikli | reboot |
| 88 | 10 | Denis 'GNUtoo' Carikli | }}} |
| 89 | |||
| 90 |