Project

General

Profile

Actions

DeprecatedPortingGuideMSMQSD » History » Revision 8

« Previous | Revision 8/72 (diff) | Next »
Denis 'GNUtoo' Carikli, 12/24/2010 11:46 PM


Introduction
Many people bought many different phones, and some of them whish to help replicant and/or to port replicant to their phones or devices.
This guide will show what was done for the htc dream, so theses people could understand the process better. Build the source

The first thing to do is to download the replicant sources:
[wiki:BuildDream] can be used as a reference: download and build the sources for your device.
Let's say the user has an htc wildfire.

The main difference will be that instead of doing that: {{{
lunch cyanogen_dream_sapphire-eng
}}}
you would need to identify the right command that correspond to your device, so in order to do that:
when you run the following command look at the output. {{{
$ source build/envsetup.sh
including device/geeksphone/one/vendorsetup.sh
including device/htc/ace/vendorsetup.sh
including device/htc/bravoc/vendorsetup.sh
including device/htc/bravo/vendorsetup.sh
including device/htc/buzz/vendorsetup.sh
including device/htc/glacier/vendorsetup.sh
including device/htc/heroc/vendorsetup.sh
including device/htc/inc/vendorsetup.sh
including device/htc/legend/vendorsetup.sh
including device/htc/liberty/vendorsetup.sh
including device/htc/supersonic/vendorsetup.sh
including device/htc/vision/vendorsetup.sh
including device/motorola/sholes/vendorsetup.sh
including device/nvidia/harmony/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
}}}
The output include the list of supported(by cyanogenmod) devices.
For instance if you have the bravo phone do: {{{
$ cat device/htc/buzz/vendorsetup.sh #
  1. Copyright (C) 2008 The Android Open Source Project #
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at #
  5. http://www.apache.org/licenses/LICENSE-2.0 #
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License. #
  1. This file is executed by build/envsetup.sh, and can use anything
  2. defined in envsetup.sh. #
  3. In particular, you can add lunch options with the add_lunch_combo
  4. function: add_lunch_combo generic-eng

add_lunch_combo generic_buzz-eng
}}}
Note that the developper is supposed to know the code of his device, that is to say that the htc wildfire correspond to the "buzz" codename.
then instead of typing that: {{{
lunch cyanogen_dream_sapphire-eng
}}}
type what correspond to your device: {{{
lunch generic_buzz-eng
}}}
Then build the source, backup what's on your device, including the operating system, and flash the new replicant image.

Then test what works and what doesn't.

Trying free replacements Replace proprietary libraries

On the htcdream the following proprietary libraries were replaced:
( Refer to [wiki:ProprietaryHtcDreamLibsReplacement] for more up to date details(or fix it if it's less recent) )

The first thing you will have to do is

Updated by Denis 'GNUtoo' Carikli over 14 years ago · 8 revisions

Also available in: PDF HTML TXT