Okay if anyone comes across my post, the basic idea is that RILD looks
first to its own arguments (in init.rc) then after that it looks to
the property system.

For a discussion on the property system, see here:
http://blog.chinaunix.net/u2/85805/showart_1421739.html
Basically, though, it reads properties from the following files:
/default.prop
/system/build.prop
/system/default.prop
/data/local.prop

It reads them in order, each one can override the previous, so data/
local will override everything, system/default will override /default
and system/build, but be overridden by data/local... etc... you get
the idea.

-Jesse

On Jun 18, 10:57 am, hikeit <[email protected]> wrote:
> That answers my question, pulled up the code I guess I should've done
> that first, it is very clear :)
>
> Thank you!
>
> On Jun 18, 10:39 am, Michael Trimarchi <[email protected]>
> wrote:
>
> > hikeit wrote:
> > > Quick question for the community...
> > > It seems that setting the RILD library path and tty can be done in
> > > multiple locations.
>
> > > In boot.img it can be set in default.prop as:
> > > rild.libpath=/system/lib/libreference-ril.so
> > > rild.libargs=-d /dev/smd0
>
> > > In boot.img it can be set in init.rc as:
> > > service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so
> > > -- -d /dev/smd0
>
> > Look at the code, seems that it check the -l option and then it looks
> > for the
> > property database to load the library. I don't know the difference
> > between the
> > system.prop and build.prop
> > Michael
>
> > > In system.img it can be set in build.prop as:
> > > rild.libpath=/system/lib/libreference-ril.so
> > > rild.libargs=-d /dev/smd0
>
> > > What takes precedence? If different arguments are specified in each
> > > one, which will actually take effect?
> > > I'll be testing it out empirically, but if someone already knows the
> > > answer, that'd be quicker :D
>
> > > Thanks!
>
>
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to