DeprecatedInstallAndroid » History » Version 19
Denis 'GNUtoo' Carikli, 10/27/2009 06:12 PM
corrected error about sqlite
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 | 16 | Denis 'GNUtoo' Carikli | # ./adb pull /system/etc/wifi/Fw1251r1c.bin ./ |
12 | 1 | Denis 'GNUtoo' Carikli | }}} |
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 | 16 | Denis 'GNUtoo' Carikli | # wget http://n0rp.chemlab.org/android/cm-recovery-1.4.img |
16 | 1 | Denis 'GNUtoo' Carikli | }}} |
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 | 16 | 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 | 16 | Denis 'GNUtoo' Carikli | # mount -t vfat /dev/block/mmcblk0p1 /sdcard |
31 | # ls -d /sdcard/nandroid/*/* |
||
32 | 4 | Denis 'GNUtoo' Carikli | /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455 |
33 | 16 | 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 | 16 | Denis 'GNUtoo' Carikli | # ./adb shell |
39 | # mount -t vfat /dev/block/mmcblk0p1 /sdcard |
||
40 | # exit |
||
41 | # ./adb push boot.img /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455 |
||
42 | # ./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 | 17 | Denis 'GNUtoo' Carikli | # md5sum /sdcard/nandroid/HT935NG03334/CBDMRS12-20090917-1455/boot.img |
48 | 7 | Denis 'GNUtoo' Carikli | a491db2000489c7fb7c5f7fe4b103b8c boot.img |
49 | 16 | 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 | 16 | 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 | 16 | Denis 'GNUtoo' Carikli | # ./adb push nandroid.md5 /sdcard/nandroid/HT935NG03936/CBDMRS12-20090917-1455/nandroid.md5 |
61 | 9 | Denis 'GNUtoo' Carikli | }}} |
62 | 18 | Denis 'GNUtoo' Carikli | * unmount the sdcard |
63 | 8 | Denis 'GNUtoo' Carikli | {{{ |
64 | 16 | Denis 'GNUtoo' Carikli | # ./adb shell |
65 | 8 | Denis 'GNUtoo' Carikli | 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 | 16 | Denis 'GNUtoo' Carikli | # ./adb shell |
75 | # cd /data/data/com.android.providers.settings/databases |
||
76 | # sqlite3 settings.db |
||
77 | 11 | Denis 'GNUtoo' Carikli | SQLite version 3.5.9 |
78 | Enter ".help" for instructions |
||
79 | sqlite> INSERT INTO secure (name, value) VALUES ('device_provisioned', 1); |
||
80 | 19 | Denis 'GNUtoo' Carikli | sqlite> .exit |
81 | 12 | Denis 'GNUtoo' Carikli | }}} |
82 | 15 | Denis 'GNUtoo' Carikli | * 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): |
83 | 12 | Denis 'GNUtoo' Carikli | {{{ |
84 | 16 | Denis 'GNUtoo' Carikli | # ./adb remount |
85 | # ./adb push Fw1251r1c.bin /system/etc/wifi/ |
||
86 | 12 | Denis 'GNUtoo' Carikli | }}} |
87 | 15 | Denis 'GNUtoo' Carikli | * then reboot: |
88 | 13 | Denis 'GNUtoo' Carikli | {{{ |
89 | 16 | Denis 'GNUtoo' Carikli | # ./adb shell |
90 | 11 | Denis 'GNUtoo' Carikli | reboot |
91 | 10 | Denis 'GNUtoo' Carikli | }}} |
92 | |||
93 |