I guess that this is probably a common problem. In the first public release
of the SDK, it merely required adding: <uses-permission
id="android.permission.INSTALL_PACKAGES"/> to the android manifest and then
pushing the application to the /system/app directory. Android would pick up
your app as running under elevated or system privileges. By the latest SDK,
this hack had been closed. Deploying under /system/app no longer bumped the
privileges. I only found that the apps running under pid 508 had permission
to install packages.
The solution I came up with was simple. I created an external service that
takes whatever URL it is handed, downloads it and then runs the adb install
program. From the client side, it only requires:
Socket socket = new Socket("10.0.2.2", 8090);
os = socket.getOutputStream();
os.write(uri.toString().getBytes());
and you are done. You can get the JAR and more info, here:
http://code.google.com/p/slideme/wiki/InstallingOTA
Shane
On Fri, Apr 4, 2008 at 12:25 PM, BMT <[EMAIL PROTECTED]> wrote:
>
> Did any of you get the remote download to work? I am working on a
> similar probelm.
> The basic system is supposed to work like this: The user gets a
> message containing a personalized "link" this link points to a
> personalized application that gets downloaded and installed to the
> phone.
>
> The current APP works by sending an SMS that contains a url where the
> user can download the application specifically a JAD file, that then
> triggers a download and installation of the JAR on the users device.
>
> Any help would be greatly apreciated
>
> /Mikael
>
>
> On Feb 11, 9:11 pm, Jeff <[EMAIL PROTECTED]> wrote:
> > I have been working on remote deployment modules as part of my
> > project. The thing about the PackageManager is that, while it has an
> > installPackage method, as far as I can tell there is no means of
> > programatically removing a package, or to temporarily install a
> > package. So you can imagine the package bloat. Instead, I have an
> > activity that responds to a remote package url. I intend to either
> > force the remote package to be signed before running it or just allow
> > the user to run anything at their own risk after a warning. I can
> > fast track this aspect of my project and get it out there if anyone is
> > interested.
> >
> > On Feb 11, 7:51 pm, mathiastck <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Please to repost if you find anyone that has solved this and posted
> > > their solution.
> >
> > > On Feb 11, 12:07 pm, bdadkiss <[EMAIL PROTECTED]> wrote:
> >
> > > > Thanks for the quick respose
> >
> > > > On Feb 11, 1:17 pm, Zach Hobbs <[EMAIL PROTECTED]> wrote:
> >
> > > > > Can't do it through thebrowseryet, however it would be possible to
> do it
> > > > > with a program using PackageManager.
> >
> > > > > --
> >
> > > > > Zach Hobbs
> > > > > HelloAndroid.com
> > > > > Android OS news, tutorials, downloads
> >
> > > > > On Monday 11 February 2008 14:04:57 bdadkiss wrote:
> >
> > > > > > Can anyone give any insight to deploying myapkfile from a
> webserver
> > > > > > to the emulator? I have a working application I have developed
> and I
> > > > > > am at a point where I would like to try deployment from a
> website. I
> > > > > > am trying to place theapkfile in a web server and using the
> emulator
> > > > > >browsergo to the web page and have theapkinstall on the emulator.
> > > > > > When I go to the url the emulator opens the file as if it was
> opened
> > > > > > with a text editor.
> >
> > > > > > Thanks
> > > > > > Brent- Hide quoted text -
> >
> > - Show quoted text -
> >
>
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---