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.
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.
The images are located in
{{{
out/target/product/dream_sapphire
}}}
in the case of the htcdream, look in the path that correspond to your device.
As you built The source code you now have some libraries that could replace the proprietary libraries.
The list of proprietary libraries are available in
{{{
device/htc/dream_sapphire/extract-files.sh
}}}
Note: don't run this file, just look at it, if you run it, not only you would make a build containing proprietary libraries,putting you and your users at risk, but is is also illegal to redistribute such build, because the libraries are not redistributable(the copyright owner didn't allow you to redistribute them)
=== Ril test ===
I will take the example of how to use the free ril to see if it works fine without modifications:
The proprietary ril library(which you don't have in the phone) location is found looking at the extract-files.sh
here's a part of extract-files.sh:
{{{
adb pull /system/lib/libhtc_ril.so ../../../vendor/htc/$DEVICE/proprietary/libhtc_ril.so
}}}
Note: don't run this command, just look at it, if you run it, not only you would make a build containing proprietary libraries,putting you and your users at risk, but is is also illegal to redistribute such build, because the libraries are not redistributable(the copyright owner didn't allow you to redistribute them)
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 to modify the build system.
The key thing to do is to change