Sup20扫描服务加入系统
ScannerService添加
将已经调试好的扫描服务项目中,hdsup文件夹下内容复制到系统 “/home/tly/android8.0/D38/packages/apps/ScannerService/src/com/”
jar包---“/home/tly/android8.0/D38/packages/apps/ScannerService/lib/”
CodeType加入类型
ScannerSettings修改
CodeTypeSettings + Sup20
HdSup20ExtraSetting
xml:
1.hdsup20_extra_setting.xml
2.hdsup20code_settings.xml
strings文件合并加入
so库添加或so库更新
vendor/scanlibs/
arm64-v8a:
1.libHDSD.so
2.libdecodeer_jni.so
armeabi-v7a
1.libHDSD.so
2.libdecodeer_jni.so
sup20更新库路径:
64位库: “/home/tly/android8.0/D38/vendor/qcom/proprietary/prebuilt_HY11/target/product/msm8953_64/vendor/lib64/”
32位库: “/home/tly/android8.0/D38/vendor/qcom/proprietary/prebuilt_HY11/target/product/msm8953_64/vendor/lib64/”
ScanService.apk加入
1.ScanService.apk加入路径:“/home/tly/android8.0/D38/packages/apps/ScanService/”;
2.同时加入Android.mk文件:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
"#Module name should match apk name to be installed"
LOCAL_MODULE := ScanService
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_CERTIFICATE := platform
include $(BUILD_PREBUILT)
接下来就是编译,编译那里报错改哪里,编译通过之后刷机,配置扫描头型号验证测试:
配置扫描头型号:
adb reboot bootloader
fastboot oem setsup20
fastboot reboot