How to add system.img pre-installed Flash Player application to android?

I am trying to customize my android system by adding Flash Player to default system apps. I added .apk file to packages / apps / FlashPlayer, with Android.mk file

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := FlashPlayer
LOCAL_SRC_FILES := FlashPlayer.apk
LOCAL_MODULE_SUFFIX := .apk
LOCAL_MODULE_CLASS := APPS
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)

      

This apk also uses some libraries: libflashplayer.so libstagefright_froyo.so. libstagefright_honeycomb.so and libysshared.so.

I created a module for each of them and added them to generic.mk in the PRODUCT_PACKAGES variable

PRODUCT_PACKAGES:=  libflashplayer \
libstagefright_froyo \
libstagefright_honeycomb \
libysshared \
FlashPlayer \

      

I tested with adb shell, apk is in / system / app and libs is present in / system / lib but when I try to play movie from browser it says no flash player is installed.

However, if I manually installed FlashPlayer with the adb install command, the movie can be played from the browser.

Can you help with this problem?

+3


source to share


2 answers


Libs should be in /system/lib/plugins/com.adobe.flashplayer, according to PluginManager.java.



+1


source


I got the same problem. For some reason WebKit is unable to download plugins that are installed by adding them to the PRODUCT_PACKAGES list. However, WebKit will download them if you install them using adb install. I haven't found another way to install them yet. Only adb install will make them work. Please update your post here if you have any progress on this.



0


source







All Articles