3G Porting SOP Android

From ESS-WIKI
Revision as of 11:45, 9 August 2017 by Clayder.huang (talk | contribs)
Jump to: navigation, search

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