• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Unlocking Android: Regarding Dynamic Class Loading

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
Do not threaten THIS beaver! Not even with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic