Well, the intention may not be to attack with a malware or something, but what if the phone supports some kind of hardware extension to which a device is being attached which doesn't have a native support in the form of a driver? What if the phone can act as a USB host (like Nokia N8) and I am the developer of a USB device and want to support my device on this phone? Say I have a working Linux driver for my device and want that device to work on this phone, then I might want to provide an APK which installs the required driver. What other option do I have here?
On Apr 22, 1:03 am, Mark Murphy <[email protected]> wrote: > On Thu, Apr 21, 2011 at 7:06 AM, Nagesh A <[email protected]> wrote: > > I have a requirement to install kernel module (module.ko) from the > > application (say setup.apk file). > > Fortunately, this should be impossible. Kernel modules are part of the > firmware, and random people writing random applications cannot attack > Android users' devices this way. > > > For this, I am planning to invoke shell commands insmod/rmmod from the > > application. But, insmod/rmmod commands need ROOT access to execute. > > And they may not exist on any given device. > > > Is it possible to get root access from application level? > > Not from an ordinary SDK application on an ordinary (un-rooted) device. > > > Is there any other way to do this work? > > Write your own firmware. > > > Further, I have gone through google groups mailing lists, and found > > some of them > > are saying its not possible to get root permissions from application > > level. > > Correct. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android 3.0 Programming Books:http://commonsware.com/books -- 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

