Difference between revisions of "3G Porting SOP Android"

From ESS-WIKI
Jump to: navigation, search
(Created page with "== Introduction == Our Workflow about easily porting 3G/4G module. How to do about dynamic change 3G/4G module in Android 6.0.1. == 3G/4G Module  == (1) G...")
 
Line 5: Line 5:
 
How to do about dynamic change 3G/4G module in Android 6.0.1.
 
How to do about dynamic change 3G/4G module in Android 6.0.1.
  
 +
Please follow the SOP.
  
 +
Step1 Push RIL code in vendor folder.
  
== 3G/4G Module  ==
+
Step2 Add new module in check USB vid/pid script file. (check_mobile.sh)
 +
 
 +
Step3 Add create new module flag and ril daemon setting. (init.rc)
 +
 
 +
 
 +
 
 +
== Push RIL code in vendor folder ==
  
 
(1) Get 3G/4G vendor provide ril source code and porting guide.
 
(1) Get 3G/4G vendor provide ril source code and porting guide.
Line 15: Line 23:
 
(3) Modify the Android.mk.  
 
(3) Modify the Android.mk.  
  
<small>&nbsp; &nbsp; ifeq (foo,foo)<br/>&nbsp; &nbsp; &nbsp; #build shared library<br/>&nbsp; &nbsp; &nbsp; &nbsp;LOCAL_SHARED_LIBRARIES += \<br/>&nbsp; &nbsp; &nbsp; &nbsp; libcutils libutils<br/>&nbsp; &nbsp; &nbsp; &nbsp; LOCAL_CFLAGS += -DRIL_SHLIB<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LOCAL_MODULE:= libreference-ril &nbsp; &nbsp;--> libvendor_name-ril<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include $(BUILD_SHARED_LIBRARY)<br/>&nbsp; &nbsp; &nbsp;else<br/>&nbsp; &nbsp; &nbsp;#build executable<br/>&nbsp; &nbsp; &nbsp; LOCAL_SHARED_LIBRARIES += \<br/>&nbsp; &nbsp; &nbsp; &nbsp; libril<br/>&nbsp; &nbsp; &nbsp; LOCAL_MODULE:= reference-ril<br/>&nbsp; &nbsp; &nbsp; &nbsp;include $(BUILD_EXECUTABLE)<br/>&nbsp; &nbsp; &nbsp; endif</small>
+
----
 +
 
 +
<small>&nbsp; &nbsp; ifeq (foo,foo)<br/>&nbsp; &nbsp; &nbsp; #build shared library<br/>&nbsp; &nbsp; &nbsp; &nbsp;LOCAL_SHARED_LIBRARIES += \<br/>&nbsp; &nbsp; &nbsp; &nbsp; libcutils libutils<br/>&nbsp; &nbsp; &nbsp; &nbsp; LOCAL_CFLAGS += -DRIL_SHLIB<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LOCAL_MODULE:= libreference-ril &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#FF0000;">Modify--> &nbsp;lib<span style="background-color:#FFFF00;">vendor_name</span>-ril</span><br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include $(BUILD_SHARED_LIBRARY)<br/>&nbsp; &nbsp; &nbsp;else<br/>&nbsp; &nbsp; &nbsp;#build executable<br/>&nbsp; &nbsp; &nbsp; LOCAL_SHARED_LIBRARIES += \<br/>&nbsp; &nbsp; &nbsp; &nbsp; libril<br/>&nbsp; &nbsp; &nbsp; LOCAL_MODULE:= reference-ril &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#FF0000;">Modify--> &nbsp;<span style="background-color:#FFFF00;">vendor_name</span>-ril</span><br/>&nbsp; &nbsp; &nbsp; &nbsp;include $(BUILD_EXECUTABLE)<br/>&nbsp; &nbsp; &nbsp; endif</small>
  
(LOCAL_MODULE:= librefernence-ril) &nbsp; --> Please modify to &nbsp; libvendor-ril
+
----
  
  
  
== 3G Module&nbsp; ==
+
== Add New Module Check USB ==
  
== ==
+
== Add New Module RIL Daemon ==

Revision as of 11:45, 9 August 2017

Introduction

Our Workflow about easily porting 3G/4G module.

How to do about dynamic change 3G/4G module in Android 6.0.1.

Please follow the SOP.

Step1 Push RIL code in vendor folder.

Step2 Add new module in check USB vid/pid script file. (check_mobile.sh)

Step3 Add create new module flag and ril daemon setting. (init.rc)


Push RIL code in vendor folder

(1) Get 3G/4G vendor provide ril source code and porting guide.

(2) Check vendor provide ril code and push to "vendor" folder. ( Reference: https://github.com/ADVANTECH-Corp/android_risc_vendor/tree/android-6.0.1_r22)

(3) Modify the Android.mk.  


    ifeq (foo,foo)
      #build shared library
       LOCAL_SHARED_LIBRARIES += \
        libcutils libutils
        LOCAL_CFLAGS += -DRIL_SHLIB
         LOCAL_MODULE:= libreference-ril                Modify-->  libvendor_name-ril
         include $(BUILD_SHARED_LIBRARY)
     else
     #build executable
      LOCAL_SHARED_LIBRARIES += \
        libril
      LOCAL_MODULE:= reference-ril                      Modify-->  vendor_name-ril
       include $(BUILD_EXECUTABLE)
      endif



Add New Module Check USB

Add New Module RIL Daemon