[android-discuss] Injecting new code to existing DEX files

2012-04-23 Thread atta ur rehman
Folks, Didn't get any replies on developer mailing list, so I thought I'll try it here in case someone has any ideas to share. I have just started to work on an idea where I'd want to inject some additional cross cutting concerns -- mainly security with some logging -- to an existing APK files.

[android-discuss] Re: Injecting new code to existing DEX files

2012-04-23 Thread Chris Stratton
On Monday, April 23, 2012 4:39:50 AM UTC-4, atta wrote: I have just started to work on an idea where I'd want to inject some additional cross cutting concerns -- mainly security with some logging -- to an existing APK files. You do realize that anything that uses jni or reflection or even

Re: [android-discuss] Re: Injecting new code to existing DEX files

2012-04-23 Thread atta ur rehman
Thanks, Chris. I understand your point about JNI and reflection. I don't have solution for JNI but for reflection, I think we can use static analyzer to see if it's been used to load certain classes or make calls to certain methods. What I don't know about is, constructed intent. Could you

Re: [android-discuss] Re: Injecting new code to existing DEX files

2012-04-23 Thread Chris Stratton
On Monday, April 23, 2012 11:22:51 AM UTC-4, atta wrote: I understand your point about JNI and reflection. I don't have solution for JNI but for reflection, I think we can use static analyzer to see if it's been used to load certain classes or make calls to certain methods. You might be

Re: [android-discuss] Re: Injecting new code to existing DEX files

2012-04-23 Thread atta ur rehman
Thank you Chris. I understand your points. And they are all valid ones. Custom intents are indeed tricky. I didn't really think about them. But now that I think about that, analysing every startActivity(intent) and startService(intent) -- that is not exhaustive by any means but good enough for

Re: [android-discuss] Re: Injecting new code to existing DEX files

2012-04-23 Thread Chris Stratton
On Monday, April 23, 2012 1:39:05 PM UTC-4, atta wrote: Thank you Chris. I understand your points. And they are all valid ones. Custom intents are indeed tricky. I didn't really think about them. But now that I think about that, analysing every startActivity(intent) and

Re: [android-discuss] Re: Injecting new code to existing DEX files

2012-04-23 Thread atta ur rehman
Thank you, Chris. You've given quite a bit of food for thought! I'll be looking into these aspects more closely. By the way, I have assumed that (dalvik) byte code manipulation is the best available way to try to tackle this problem. I have assumed that it won't be possible to do anything at the

Re: [android-discuss] Re: Injecting new code to existing DEX files

2012-04-23 Thread Chris Stratton
On Monday, April 23, 2012 3:06:32 PM UTC-4, atta wrote: By the way, I have assumed that (dalvik) byte code manipulation is the best available way to try to tackle this problem. I have assumed that it won't be possible to do anything at the OS level. Now, I am not an expert on Linux/Anroid

Re: [android-discuss] Re: Injecting new code to existing DEX files

2012-04-23 Thread atta ur rehman
I do have access to APKs before they are installed. I'm also constrained to off-the-shelf, non-rooted devices. So, I guess, byte code manipulation is the only option for me. On Mon, Apr 23, 2012 at 8:40 PM, Chris Stratton cs07...@gmail.com wrote: On Monday, April 23, 2012 3:06:32 PM UTC-4, atta

[android-discuss] Flash Development to Native Android and iOS

2012-04-23 Thread No12call
So I have a quick one for the pro's here on this list. I am not very handy when it comes to coding but I know my way around flash. I have run into a group of developers that use AIR to port over flash programs into native. I would like some general thoughts on this as it seems like a very simple

Re: [android-discuss] Flash Development to Native Android and iOS

2012-04-23 Thread Jean Madson
I tried to use Adobe approach to deliver apps to Android, but I hadn't good results. So I'm moving to such a HTML5+CSS3 solutions like Titanium, PhoneGap and so on. Em 23/04/2012 18:36, No12call no12c...@gmail.com escreveu: So I have a quick one for the pro's here on this list. I am not very