[android-developers] Re: DLL equivalent in android

2012-02-13 Thread Doug
On Feb 11, 7:53 am, Kristopher Micinski krismicin...@gmail.com wrote: I would hope that main apps can't reach inside other apps to access their code!  In any case, even if you got an app's bytecode, there's not really a way to take arbitrary bytecode and execute it on the vm. Though I think

Re: [android-developers] Re: DLL equivalent in android

2012-02-13 Thread Mark Murphy
Note that the thread you cite was from early beta versions of Android in the spring of 2008. That's not to say that the technique doesn't work, but unless you've actually implemented it, I would take such an old thread with a decent-sized grain of salt. On Mon, Feb 13, 2012 at 3:34 AM, Doug

Re: [android-developers] Re: DLL equivalent in android

2012-02-13 Thread Kristopher Micinski
On Mon, Feb 13, 2012 at 3:34 AM, Doug beafd...@gmail.com wrote: On Feb 11, 7:53 am, Kristopher Micinski krismicin...@gmail.com wrote: I would hope that main apps can't reach inside other apps to access their code!  In any case, even if you got an app's bytecode, there's not really a way to

Re: [android-developers] Re: DLL equivalent in android

2012-02-13 Thread Kostya Vasilyev
Yes, the flags have scary names as a warning, but using them with createPackageContext definitely does work (is 4.0.2 recent enough?) 13 февраля 2012 г. 17:19 пользователь Kristopher Micinski krismicin...@gmail.com написал: On Mon, Feb 13, 2012 at 3:34 AM, Doug beafd...@gmail.com wrote: On Feb

Re: [android-developers] Re: DLL equivalent in android

2012-02-13 Thread Kristopher Micinski
2012/2/13 Kostya Vasilyev kmans...@gmail.com: Yes, the flags have scary names as a warning, but using them with createPackageContext definitely does work (is 4.0.2 recent enough?) That's not my point... My point is that I feel people are very prone to use this when they really shouldn't be.

Re: [android-developers] Re: DLL equivalent in android

2012-02-13 Thread Kostya Vasilyev
Oh, I agree that using those is most likely a bad idea. But, for the record, even though the technique is described in a thread from 2008, it still works today. -- Kostya 13 февраля 2012 г. 17:41 пользователь Kristopher Micinski krismicin...@gmail.com написал: 2012/2/13 Kostya Vasilyev

[android-developers] Re: DLL equivalent in android

2012-02-13 Thread joebowbeer
Something more recent posted by Fred Chung, Android Developer Advocate: http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html On Feb 13, 5:48 am, Kostya Vasilyev kmans...@gmail.com wrote: Oh, I agree that using those is most likely a bad idea. But, for the

[android-developers] Re: DLL equivalent in android

2012-02-11 Thread Doug
On Feb 9, 1:35 pm, New Developer secur...@isscp.com wrote: For further insight, under windows I used a code within the .exe which said which modules were available then based on the code it checked to see if those .dll were present.  If so, then they were loaded and added items to the main

Re: [android-developers] Re: DLL equivalent in android

2012-02-11 Thread Kristopher Micinski
On Sat, Feb 11, 2012 at 5:10 AM, Doug beafd...@gmail.com wrote: On Feb 9, 1:35 pm, New Developer secur...@isscp.com wrote: For further insight, under windows I used a code within the .exe which said which modules were available then based on the code it checked to see if those .dll were

[android-developers] Re: DLL equivalent in android

2012-02-09 Thread JackN
deep in the system, you also have shared objects, which can be like dlls. for java though, it is the jars On Feb 9, 9:49 am, Kristopher Micinski krismicin...@gmail.com wrote: On Thu, Feb 9, 2012 at 12:42 PM, New Developer secur...@isscp.com wrote:  In Windows programming we have DLL so that

Re: [android-developers] Re: DLL equivalent in android

2012-02-09 Thread Kristopher Micinski
On Thu, Feb 9, 2012 at 2:54 PM, JackN j...@jacknorth.com wrote: deep in the system, you also have shared objects, which can be like dlls. for java though, it is the jars Right, but by that argument you could also have a shared object for the ndk that you'd migrate to the android platform.