>executing code from the SD card is a security hole for your app, no
>matter how short a time you have the code there.
now I am successful in writing file in the /data/app-private/ dir
rather than /sdcard. So one problem is solved.
but still I cant invoke intents in the method which is called
dynamically using PathClassLoader.
If android does not support dynamic loading of classes from another
application then my question to google engineers is that why You have
provided the APIs like PathClassLoader , DexClassLoader and DexFile??
why the variables (which are defined outside the invoked method but
inside the loaded class) throwing null pointer exception and why the
problem occurs with intents( which are used in the invoked method)
gives null pointer exception at startActivity(intent); line. Is there
anyway to solve this problem.
My aim is to send the .apk files dynamically from the desktop
using socket communication and execute one method in this .apk at
runtime . After executing this methos I will delete this .apk file.
Thanks,
Asif
On Apr 20, 1:13 pm, Dianne Hackborn <[email protected]> wrote:
> On Sun, Apr 19, 2009 at 3:37 AM, Ask <[email protected]> wrote:
> > >I am writing the file in the /sdcard using the application
> > programmatically and the same file I am deleting when its work has been
> > done. Same thing I had tried in the /data/app-private file but I could not
> > write the file prgrammatically.. Is there any way to write in the private
> > dir programmatically using changing permissions??
>
> I am having a lot of trouble visualizing what you are trying to do, but if
> you are getting in to situations where you are trying to write to an app
> directory with a different UID, you really need to step back and rethink
> what you are doing.
>
> Also, executing code from the SD card is a security hole for your app, no
> matter how short a time you have the code there.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---