Project

General

Profile

DeprecatedInstallAndroid » History » Version 21

Anonymous, 05/27/2010 06:49 PM

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