android - Pre-loaded APK with OBB file in custom ROM is not working -
we need add app (size more 100 mb) pre-installed app in custom rom. have added obb file same in custom rom when try run app tries download obb server instead of locating same local. following android.mk file , script copy obb file. pre-installed apps without obb working fine. please let know if making mistake here, want app should locate obb file locally instead of going server download obb file copied locally in device.
location of android.mk file: packages/apps/myappname
apk file name: myappname.apk
android.mk:
local_path:= $(call my-dir) include $(clear_vars) local_module := myappname local_module_tags := optional # compile source java files in apk. local_src_files := $(local_module).apk local_module_class := apps local_module_suffix := $(common_android_package_suffix) local_privileged_module := true local_certificate := presigned include $(build_prebuilt)
location of obb file in source code: device/hcn/obb/{package-name}
script copy obb file source code device's data folder of compiled rom:
we have added below line in device/hcn/device.mk file
product_copy_files += device/hcn/{my-device}/obb/{package-name}/[main|patch].{expansion-version}.{package-name}.obb:data/media/0/android/data/{package-name}/[main|patch].{expansion-version}.{package-name}.obb
thanks in advance input.
Comments
Post a Comment