Version 32 (modified by GNUtoo, 7 years ago) (diff)



Recently some official htcdream images were built .
That means that you can install SHR on it!
That also means,that because of the recentness of the images,only shr-unstable is available for this phone.
During the installatin you will be able to choose between a permanent and non permanent installation

What to expect from the images

here's a Detailed status of the hardware support


First you'll need:

  • Fastboot(free and opensource version available,SHR can build one, and you too)
  • for now a linux installtion, like ubuntu for instance.
  • a blank microsd card(will be overwriten if not already in the correct format)
  • a way of formatting directly the microsd card(don't format it trough the usb exporting of the card in the recovery images)
  • a rooted htcdream or an ADP1(android developer phone version 1)

Basically you will have to format the card to ext2 or ext3. you can use gparted for that(BEWARE!!! select the right disk), or do it from the command line

if you use the commandline(BEWARE!!! select the right disk here too),that can be achieved with the following tools:

  • fdisk (in order to change the partiton system id)
  • mkfs.ext3

it's easier(less risk of failures) to make only one partition. The kernel image expects the rootfs to be on the first partition which should be ext. Once the sdcard will be formated,simply extract the tarball to it,as root(very important) for instance,if the sdcard is mounted to /media/sdcard and that the shr-image was downloaded in /home/user/Download/full-htcdream.tar.gz do:

sudo su cd /media/sdcard tar xvzpf home/user/Download/full-htcdream.tar.gz

Then if you don't have fastboot do:

git clone;a=summary
cd uttilities/android/image-utils
cd fastboot 

Then if you intend to try it without replacing android do:

fastboot boot zImage-2.6.32+r20+gitr1ee84e3fcdf91917842c150ded113c540ece1841-r20-htcdream.fastboot

replace the zimage version by the one you downladed...note that the image should be a .fastboot image

if you plan to install shr permanantly,simply flash the kernel image on the boot partition. There are 3 ways to do it:

  • from an android recovery image like cm-recovery-1.4
  • from shr itself(for instance boot with fastboot)
  • with fastboot itself (require an unlocked bootloader)

Then wait a very long time for SHR post-install configuration screen to come up


  • if you've a endless reboot loop,it should be because the kernel doesn't find the rootfs.

Initial configuration

Right after booting the htcdream(so at the first boot),you will have to wait a long time:

  • Before X starts
  • Between when X is started and when it loads the initial configuration application(an application that let you configure the phone)

Note that if you don't set a password during the configuration,everyone could ssh into your phone(from wifi,3g,usb...)

After-install configuration


For now you need to do the following steps to get some gps data on the virtual serial port(/dev/smd27):

gps #in order to activate the gps(must stay on as long as you want GPS informations,fix,position)

if you kill "gps" the gps should stop with a timeout.


First note that the htcdream's wifi driver shipped with the kernel we ship doesn't support PSM,that means that you can expect a very short battery life when using wifi,but in another hand it will be very fast and responsive. In order to make wifi work,you need the firmware and the calibration files, the howto is here

In order to load wifi do:

modprobe wl1251_sdio
modprobe msm_wifi
sleep 4
cd /sys/class/rfkill
cd $(ls |grep -v rfkill0)
echo 1 > state
ifconfig wlan0 up


GUI tweaks

  • click on the settings icon and go to appearence and put the engine to x11-16,

That will make the app-switcher work but will make eve segfault,to correct that edit the /usr/share/applications/eve.desktop and change that line:


into that:

Exec=ELM_ENGINE=x11 eve
  • in /usr/share/themes/shr-theme-gtk-e17lookalike/gtk-2.0/gtkrc change:
    gtk-font-name = "Sans 5"


gtk-font-name = "Sans 10"
  • in /usr/share/applications/vala-terminal.desktop change:


Exec=vala-terminal -fs 10

xorg tweaks

  • Add that in xorg.conf: under the keyboard section
    	Option      "XkbOptions"	"lv3:ralt_switch"

And you'll be able to use xmodmap to map the keyboard for non-gtk applications. For GTK applications you need to do that:

opkg install gtk-immodule-xim
GTK_IM_MODULE=xim vala-terminal #vala-terminal could be replaced by any gtk application
  • to rotate the screen you need to:
    • comment the lines containing
      #comment for disabling rotation
    • restart xorg

midori(has been replaced by eve in the images) tweaks

In order to have kinetic scrolling in midori(thanks to always innovating for the trick):

  • add the following line to /usr/share/themes/shr-theme-gtk-e17lookalike/gtk-2.0/gtkrc
    gtk-touchscreen-mode = 1
  • add the following file:
    // ==UserScript==
    // @name Gregoire
    // @description Description
    // @include *
    // ==/UserScript==
    function mousedown_hook(e) {
    if ( ( != "INPUT") && ( != "TEXTAREA") )
    window.addEventListener("mousedown", mousedown_hook, true);

to that location: