Third party application(VLC player) as system app - Not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Third party application(VLC player) as system app - Not working

948 Views
ambika
Contributor II

Hi,

 

We are working on Android KK.

 

The application (vlc.apk)  is working when I install it manually,

i.e pm install vlc.apk after boot up.

 

But its not working when I tried to add the same apk as system app.

I have created folder under packages/app/VLC

Created the entry PRODUCT_PACKAGES += VLC in common.mk file

Added Android.mk and vlc.apk (please refer the attached Android.mk )

When I build and boot the system I can see the VLC app but it is not working.

 

Can anyone help me out to solve this issue?

Thanks in advance.

Original Attachment has been moved to: Androi.mk.txt.zip

Labels (3)
0 Kudos
3 Replies

708 Views
jamesbone
NXP TechSupport
NXP TechSupport

Hello Ambika,

In order to use VLC you need to cross compile the version to ARM processor, I haven´t seen this App for the i.MX  here is a thread that explains how to do it,

VLC media player for i.MX ,  but another option that we have tested it is using Download - MX Player​  .


Have a great day,
Jaime

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

708 Views
ambika
Contributor II

Hi Jaime,

Thank you for the info and link.

I am able to install the apk manually using pm install after the system boots up from the given link,

Download - MX Player

As told in the case of VLC player, facing error when I tried the MX player as  system app ( snapshot of the error in the board is attached)

MXplayer_error.JPG

Can you please let me know that how can I install the same as system application, like all other system apps( Gallery, Music, Browser etc)

Thanks in advance,

Ambika

0 Kudos

708 Views
ambika
Contributor II

Hi,

Still facing the issue.. :-(

After the above update, I installed manually installed the apk  and while manual installation got the below piece of lines from logcat

...

...

D/dalvikvm( 1244): Trying to load lib libjavacore.so 0x0

D/dalvikvm( 1244): Added shared lib libjavacore.so 0x0

D/dalvikvm( 1244): Trying to load lib libnativehelper.so 0x0

D/dalvikvm( 1244): Added shared lib libnativehelper.so 0x0

So have updated the Android.mk  as below,

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_MODULE := VLC

LOCAL_REQUIRED_MODULES := libjavacore.so \

  libnativehelper.so

LOCAL_CERTIFICATE := PRESIGNED

LOCAL_SRC_FILES := VLC.apk

LOCAL_MODULE_CLASS := APPS

LOCAL_MODULE_SUFFIX := .apk

include $(BUILD_PREBUILT)

include $(CLEAR_VARS)

LOCAL_MODULE := libjavacore

LOCAL_MODULE_CLASS := SHARED_LIBRARIES

LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)

LOCAL_SRC_FILES := $(LOCAL_MODULE).so

include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE := libnativehelper

LOCAL_MODULE_CLASS := SHARED_LIBRARIES

LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)

LOCAL_SRC_FILES := $(LOCAL_MODULE).so

include $(PREBUILT_SHARED_LIBRARY)

But still facing the same issue.

Any solutions please???

Regards,

Ambika

0 Kudos