• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unlocking Android: Regarding Dynamic Class Loading

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

After android 1.0 onwards, android is not providing any permission to access .apk files at the runtime. So Regarding android Hacking chapter, Is there any way to change that permission and call the .apk file at the runtime which resides in the /sdcard.

My aim is to transfer a .apk file from the desktop during the application execution , store it in the /sdcard and call it dynamically using PathClassLoader.

Thanks in advance.
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you cannot launch apk form Sd card I would imagine it would not matter as you would not be ale to call classes of apk on sd card as well..

Asif Kadiwala wrote:Hi,

After android 1.0 onwards, android is not providing any permission to access .apk files at the runtime. So Regarding android Hacking chapter, Is there any way to change that permission and call the .apk file at the runtime which resides in the /sdcard.

My aim is to transfer a .apk file from the desktop during the application execution , store it in the /sdcard and call it dynamically using PathClassLoader.

Thanks in advance.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Asif Kadiwala wrote:Hi,

After android 1.0 onwards, android is not providing any permission to access .apk files at the runtime. So Regarding android Hacking chapter, Is there any way to change that permission and call the .apk file at the runtime which resides in the /sdcard.

My aim is to transfer a .apk file from the desktop during the application execution , store it in the /sdcard and call it dynamically using PathClassLoader.

Thanks in advance.



I don't know exactly how they do it, but there is an app in the Android Market that lets you install apps from the SDCard - APK Installer - I use it frequently actually. I haven't looked into the details, but you can load packages and so on from the APIs (shouldn't be too tough to figure out).

http://www.youtube.com/watch?v=WPKxKT5mluk
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic