top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

accessing a file in dalvik directory from frameworks directory in android root

0 votes
466 views

I was experimenting something with Android native code and it needs to access a file in dalvik/vm folder from a .cpp file in frameworks/base/core/jni ... I would like to know if this is even possible through #include or some other technique. I think #include may not be the right way to do it and wold like to know if my purpose can be somehow achieved.

posted Jul 23, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

What are you trying to do? Presumably this won't be possible if you're doing it in an app setting: this only makes sense if you're compiling with the system!

Still, if you need this then it's really strange that you'd even be considering writing an app: since I can't think of any reason these includes would be necessary in an app-type scenario.

answer Jul 23, 2013 by anonymous
I'm not doing this in an app setting. I'm compiling from source and modifying some android libraries. I need to instrument them to collect some information.
Similar Questions
+2 votes

How to use java libraries from /lib directory of my app in AOSP?

Currently I have built my app in eclipse so i had my libraries in /lib directory of my app but after including source code in AOSP, it is giving error, I think I need to add the entry of the libraries in /lib in my Android.mk file, but how?

I dont know what entry need to be made... any suggestions?

0 votes

I tried to run Dalvik in portable mode by setting /data/local.prop as follows:

dalvik.vm.execution-mode = int:portable

But after I reboot the device (which is a Nexus 7), app_process (hosting zygote) still starts in jit mode.

However, if I run:

adb shell stop
adb shell setprop dalvik.vm.execution-mode int:portable
adb shell start

Then app_process will run in portable mode. Is /data/local.prop deprecated or something is missing here?

0 votes

Have you even seen OutOfMemoryError in system server? If yes, how do you find the root case of OOM? Do you have any tools that help finding the root cause in production code or during development?

...