1. Signature Related: KeyStore, platform.pk8
"How to convert key pairs from Android source to KeyStore"
"One of the Android signature mechanisms--detailed signature process"
2. Confusing related
Because of the external network restrictions and other reasons, I was in the project mm compiled APK, installed when the application found that many Baidumap related classes can not find the method error. The reason for this error is that because the engineering compilation is confusing with the Mk file, we need to manually ignore the Baidumap related classes.
Proguard.flags
# Required forActionbarsherlock-keep class android.support.v4.app.** {*; }-keep interface android.support.v4.app.** {*; }-keep class com.actionbarsherlock.** {*; }-keep interface com.actionbarsherlock.** {*; }-keepattributes *annotation*-libraryjars libs/baidumap/baidulbs_android.jar#-dontwarn com.baidu.mapapi.** #-dontwarn com.baidu.**#-dontwarnVI. Com.gdi.bgl.**-keep class com.baidu.mapapi.** {*; } -keep public class * extends com.baidu.mapapi.**-keep class com.baidu.** {*; } -keep public class * extends com.baidu.**-keep classVI. com.gdi.bgl.** {*; }-keep public class * extendsVI. com.gdi.bgl.**
"Android Proguard.flags"
3. android.mk file
################################################# #include $ (clear_vars) Local_module:= Libbaidumapsdk_map_v3_7_1local_module_tags:= optionalifeq ($ (Strip $ (target_arch)), arm64) local_src_ FILES:= libs/armeabi64/libbaidumapsdk_map_v3_7_1.soelse local_src_files:= libs/armeabi/libbaidumapsdk_map_v3_7_1.soendiflocal_module_class:= Shared_librarieslocal_module_ SUFFIX:= . So include $ (build_prebuilt) ##################################################
Baidu Map Development (2): signature, obfuscation, 32-bit and 64-bit related