Difference between revisions of "3G Porting SOP Android"
(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. | ||
− | == | + | 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> ifeq (foo,foo)<br/> #build shared library<br/> LOCAL_SHARED_LIBRARIES += \<br/> libcutils libutils<br/> LOCAL_CFLAGS += -DRIL_SHLIB<br/> LOCAL_MODULE:= libreference-ril --> | + | ---- |
+ | |||
+ | <small> ifeq (foo,foo)<br/> #build shared library<br/> LOCAL_SHARED_LIBRARIES += \<br/> libcutils libutils<br/> LOCAL_CFLAGS += -DRIL_SHLIB<br/> LOCAL_MODULE:= libreference-ril <span style="color:#FF0000;">Modify--> lib<span style="background-color:#FFFF00;">vendor_name</span>-ril</span><br/> include $(BUILD_SHARED_LIBRARY)<br/> else<br/> #build executable<br/> LOCAL_SHARED_LIBRARIES += \<br/> libril<br/> LOCAL_MODULE:= reference-ril <span style="color:#FF0000;">Modify--> <span style="background-color:#FFFF00;">vendor_name</span>-ril</span><br/> include $(BUILD_EXECUTABLE)<br/> endif</small> | ||
− | + | ---- | |
− | == | + | == Add New Module Check USB == |
− | == | + | == Add New Module RIL Daemon == |
Revision as of 11:45, 9 August 2017
Contents
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