Modify reference-ril.c. Implement new RIL-Command. (How to?)

419 views
Skip to first unread message

felixad

unread,
Jul 10, 2011, 6:17:51 AM7/10/11
to Android Linux Kernel Development
Hello

I want to modify the reference-ril.c. My aim is to implement a new RIL-
command to export the gsm/cdma tx-power.

For this, I tried to modify the reference-ril.c in a very simple way.
I tried to show me the radiopower if I call the signalstrength
command:

case RIL_REQUEST_SIGNAL_STRENGTH:
requestRadioPower(data, datalen, t);
break;


Afterwards, I compilied my cyanogenmod rom with:
cd ~/android/system/
. build/envsetup.sh
lunch cyanogen_dream_sapphire-eng
mka bacon


Then I updated the kernel with:
fastboot flash boot boot.img
fastboot reboot


But I saw there no changes, when I look at the signalstrength. Has
anybody an idea, what I have to compile, when I modify the reference-
ril.c?

Thx.

Felix

manish shakya

unread,
Jul 10, 2011, 8:51:40 AM7/10/11
to android...@googlegroups.com
Hi,

After lunch command try doing   mmm hardware/ril/reference-ril which will update  libreference-ril.so . Then, you can push libreference-ril.so  to system/lib only and restart.






--
Manish Shakya
http://www.manishshakya.com.np
http://secs.oakland.edu/~ganesan/iMX/

Mike Martin

unread,
Jul 12, 2011, 4:14:51 PM7/12/11
to android...@googlegroups.com
Do what manish suggested or reflash the system partition with the android version that you built.  The lib that you are replacing is not in the boot partition.

felixad

unread,
Jul 13, 2011, 1:27:52 PM7/13/11
to Android Linux Kernel Development
Thank you Manish and Mike!
Reply all
Reply to author
Forward
0 new messages