Hi. I solved the problem I mentioned below.
To completely install an apk file on a gem5 disk image, it seems like simply copying the apk file to the "/system/app" path is not enough for some cases. I reinstalled an apk using " adb install -r app_name.apk ", and I was able to successfully launch the application. Thanks! Kiyeon On Thu, Jan 9, 2014 at 11:51 PM, Kiyeon Lee <[email protected]> wrote: > Hi, everyone. > > I am trying to run Android applications using gem5, however, I am having > some difficulties. > I am new to Android and I am not familiar with Java, so I wish some one > can shed me some light. > > I am using 2.6.35 Android kernel and the ICS disk image with BBench > provided by the gem5 website, http://gem5.org/BBench-gem5 > > I can successfully boot Android and run BBench to completion. > Since I can launch the default web browser in the ICS disk image, I > suppose I can run other default applications in the ICS disk image as well. > BTW, I am using "adb shell" to start the applications. > > However, I cannot run apk files that are packaged with "shared libraries". > > To run the apk files, I first copied the apk files to "/system/app" and > used the following command to start the applications. > > "am start -a android.intent.action.MAIN -n > com.package.name/com.package.name.ActivityName" (I apologize for being > ambiguous) > > However, the applications were not executed. > I checked the log messages using "adb logcat" to see what's going on and > observed same type of error messages for different apk files that use > shared libraries. > > For example, if I try to run an apk file which is packaged with a shared > library called "libmylib.so", I get the following error. > > java.lang.UnsatisfiedLinkError: Couldn't load mylib: findLibrary returned > null > at java.lang.Runtime.loadLibrary(Runtime.java.365) > at java.lang.System.loadLibrary(System.java:535) > at .... > > Based on the error message, I suppose the application is killed when it is > launched because the application cannot load the shared library it needs. > > Can someone tell me how I can load the shared libraries (packaged in the > apk file) in gem5? > I wish the problem can be simply resolved by setting some environment > variables. > > As far as I know, many realistic applications (.apk files) running on top > of Android, such as chrome, and Android benchmarks are packaged with shared > libraries. > Hence, I will have the same problem if I try to run realistic applications > in gem5 unless I resolve this issue. > > Thanks in advance. > > Kiyeon > > > > > >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
