image - ClassNotFoundException when add a prebuilt apk into system.img in android -


i'm in trouble add prebuilt apk system.img based taiwan mtk android phone platform, when push apk onto device,after reboot phone,the apk can installed succecessfully,but if add apk alps/out/target/product/$prj/system/app or vendor/mediatek/$prj/artifacts/out/target/product/$prj/system/app,and produce system.img,the apk can't installed normally,the logcat say:

a.lang.runtimeexception: unable instantiate activity componentinfo{com.sec.android.widgetapp.ap.hero.accuweather.widget/com.sec.android.widgetapp.ap.hero.accuweather.widget.weatherclock}:  java.lang.classnotfoundexception: com.sec.android.widgetapp.ap.hero.accuweather.widget.weatherclock. 

can tell me what's problem ?

when package manager installs apps part of system partition different installing apps on data partition. looks app using libraries somewhere else. when install on data lib directory created in apps data directory , symlinked /data/app-lib/. when apps installed on system it's expected libraries depend on part of system.img in system/lib or vendor/lib. libraries aren't copied in effort creating multiple copies of libraries included in shared location on device. may want make copy apk , unzip , libraries includes , make sure being placed in system/lib or system/framework. find libraries , create symlink self on device flashed see if resolves problem.

hope helps some.


Comments

Popular posts from this blog

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -