Hmm, actually it kind of solved itself. All I did was $ adb remount $ adb shell rm /system/app/MiniRM.apk # if it's installed when doing a full make for the system $ adb uninstall com.example.MiniRMService # if it's installed manually with adb install $ mm # will generate a .so file and a .apk file $ adb push ~/android-froyo/out/target/product/generic/system/lib/ librmjni-lib.so /system/lib $ adb install -r ~/android-froyo/out/target/product/generic/system/app/ MiniRM.apk # will be installed in /data/app
Now it works. I think maybe I forgot the adb remount earlier. It will remount /system so it's writeable. Cheers! On Nov 10, 4:22 pm, Hamilton Vera <[email protected]> wrote: > Never tested but you can try to export the LD_LIBRARY_PATH > > export LD_LIBRARY_PATH /system/lib:/sdcard/yourlibs_dir/ > > If it works, give us a feedback. > > []'s > > Hamilton Vera > > 2010/11/10 Samuel Skånberg <[email protected]>: > > > > > > > I'm developing a system application apk and I'm using mm to develop > > the program since it will put in the <android root>/packages/app > > directory. I don't want to use ndk-build because mm will be used to > > build the whole system, including my apk file. > > > The problem is that if I use shared libraries, they will be put in > > the /system/lib directory. So if I change the shared libraries I have > > to regenerate the system.img file (which will put my shared libraries > > in /system/lib). That takes a lot of time (not to mention the restart > > of the emulator) so I wonder if there is another way to use libraries > > without having to restart the emulator? > > > Since I use mm instead of ndk-build the shared libraries I create will > > not be packaged with the apk but instead put in /system/lib > > > Do you have any suggestions to how I can work with libraries but > > without having to restart the emulator each time I change the library? > > > Kind regards, > > Samuel > > > -- > > unsubscribe: [email protected] > > website:http://groups.google.com/group/android-porting > > -- > Hamilton Vera > int Administrator (char Network[],char > ComputationalSystems[])http://hvera.wordpress.com -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
