Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to install APK programmatically without user prompt
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  25 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pratik Prajapati  
View profile  
 More options Sep 16 2011, 1:32 pm
From: Pratik Prajapati <pratik.prajap...@gmail.com>
Date: Fri, 16 Sep 2011 10:32:05 -0700
Local: Fri, Sep 16 2011 1:32 pm
Subject: How to install APK programmatically without user prompt

I need to install some non market place APK programmatically *without *user
prompt. I found some links on stackoverflow, but all those mechanism will
prompt the user.
Is there any way to do it with some APIs or I should use 'pm install <apk
name>' command (doing with system() api)?

--
Regards,
Pratik Prajapati


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Sep 16 2011, 1:45 pm
From: Chris <crehb...@gmail.com>
Date: Fri, 16 Sep 2011 10:45:52 -0700 (PDT)
Local: Fri, Sep 16 2011 1:45 pm
Subject: Re: How to install APK programmatically without user prompt

You can't install apks silently.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TreKing  
View profile  
 More options Sep 16 2011, 1:46 pm
From: TreKing <treking...@gmail.com>
Date: Fri, 16 Sep 2011 12:46:04 -0500
Local: Fri, Sep 16 2011 1:46 pm
Subject: Re: [android-developers] How to install APK programmatically without user prompt

On Fri, Sep 16, 2011 at 12:32 PM, Pratik Prajapati <

pratik.prajap...@gmail.com> wrote:
> Is there any way to do it with some APIs

No, thankfully.

--------------------------------------------------------------------------- ----------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dianne Hackborn  
View profile  
 More options Sep 16 2011, 6:53 pm
From: Dianne Hackborn <hack...@android.com>
Date: Fri, 16 Sep 2011 15:53:10 -0700
Local: Fri, Sep 16 2011 6:53 pm
Subject: Re: How to install APK programmatically without user prompt

On Fri, Sep 16, 2011 at 10:32 AM, Pratik Prajapati <

pratik.prajap...@gmail.com> wrote:
> Is there any way to do it with some APIs or I should use 'pm install <apk
> name>' command (doing with system() api)?

(a) Running the pm command doesn't give you any extra privileges.
(b) NO shell commands are part of the SDK; using them will risk your
application breaking.

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oli  
View profile  
 More options Sep 19 2011, 7:11 am
From: Oli <oli.wri...@gmail.com>
Date: Mon, 19 Sep 2011 04:11:05 -0700 (PDT)
Local: Mon, Sep 19 2011 7:11 am
Subject: Re: How to install APK programmatically without user prompt
Pratik,

I think you should explain what you're trying to achieve with this and
maybe someone can suggest an alternative.  There's no good reason why
you should want to install an apk without user input as that would
break security, so I think you just need an alternative approach here.

Cheers,
Oli

On Sep 16, 6:32 pm, Pratik Prajapati <pratik.prajap...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nyarlathotep  
View profile  
 More options Sep 26 2011, 7:49 am
From: nyarlathotep <davi...@gmail.com>
Date: Mon, 26 Sep 2011 04:49:25 -0700 (PDT)
Local: Mon, Sep 26 2011 7:49 am
Subject: Re: How to install APK programmatically without user prompt
I honestly thing these are the most frustrating answers to get in a
forum.

People has not to explain what they're trying to achieve.
If you know the answer good, if you don't, please don't say that there
is no good reason for doing this or that.

We are not all trying to hack code behind our desks at home.
Sometimes there are special requirements in a business environment
that you have to implement and which people is not due and even
allowed to tell you.

On Sep 19, 12:11 pm, Oli <oli.wri...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Murphy  
View profile  
 More options Sep 26 2011, 4:41 pm
From: Mark Murphy <mmur...@commonsware.com>
Date: Mon, 26 Sep 2011 16:41:16 -0400
Local: Mon, Sep 26 2011 4:41 pm
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt

On Mon, Sep 26, 2011 at 7:49 AM, nyarlathotep <davi...@gmail.com> wrote:
> If you know the answer good, if you don't, please don't say that there
> is no good reason for doing this or that.

Like you, others are allowed to express their opinions.

> Sometimes there are special requirements in a business environment
> that you have to implement and which people is not due and even
> allowed to tell you.

In that case, the business should not be seeking assistance from
volunteers on a public forum. The business should hire a consulting
firm and execute an NDA with that firm.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ted Neward  
View profile  
 More options Sep 26 2011, 6:53 pm
From: "Ted Neward" <ted.new...@gmail.com>
Date: Mon, 26 Sep 2011 15:53:35 -0700
Local: Mon, Sep 26 2011 6:53 pm
Subject: RE: [android-developers] Re: How to install APK programmatically without user prompt
Sometimes, though, the answer you want just doesn't exist, and by asking
"What are you really after?", the responder is trying to help you achieve
your goal by thinking around the problem.

Of course, if you'd prefer to just be told, "You can't. The end.", then so
be it.

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Indicator Veritatis  
View profile  
 More options Sep 26 2011, 9:06 pm
From: Indicator Veritatis <mej1...@yahoo.com>
Date: Mon, 26 Sep 2011 18:06:37 -0700 (PDT)
Local: Mon, Sep 26 2011 9:06 pm
Subject: Re: How to install APK programmatically without user prompt
What you need to do is pick your customers/clients more carefully. Any
client who asks you for such a feature either has completely failed to
understand the Android ecosystem or is up to no good. As already
explained, what you are asking for would break the security of
Android. This is NOT tolerable.

On Sep 16, 10:32 am, Pratik Prajapati <pratik.prajap...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Indicator Veritatis  
View profile  
 More options Sep 26 2011, 9:09 pm
From: Indicator Veritatis <mej1...@yahoo.com>
Date: Mon, 26 Sep 2011 18:09:09 -0700 (PDT)
Local: Mon, Sep 26 2011 9:09 pm
Subject: Re: How to install APK programmatically without user prompt
More importantly, sometimes these business people who come up with
"special requirements in a business environment" do not know what they
are talking about. What you are asking for, as Dianne explained, is
breaking the security model of Android. We will NOT help you do this.

On Sep 26, 4:49 am, nyarlathotep <davi...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristopher Micinski  
View profile  
 More options Sep 26 2011, 9:13 pm
From: Kristopher Micinski <krismicin...@gmail.com>
Date: Mon, 26 Sep 2011 21:13:18 -0400
Local: Mon, Sep 26 2011 9:13 pm
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt
It's not really a matter of not wanting to help so much as, it just
plain won't work ;-)

Kris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
 More options Sep 26 2011, 11:36 pm
From: Chris <crehb...@gmail.com>
Date: Mon, 26 Sep 2011 20:36:15 -0700 (PDT)
Local: Mon, Sep 26 2011 11:36 pm
Subject: Re: How to install APK programmatically without user prompt

On Monday, September 26, 2011 7:49:25 AM UTC-4, nyarlathotep wrote:

> We are not all trying to hack code behind our desks at home.
> Sometimes there are special requirements in a business environment
> that you have to implement and which people is not due and even
> allowed to tell you.

The person giving you the special requirement doesn't understand his
platform.  Though, you're able to accomplish what you want if you're willing
to write your own firmware, but that might add some time to your development
schedule and isn't germane to this list.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
akay  
View profile  
 More options Sep 27 2011, 1:40 am
From: akay <ak.kiet...@gmail.com>
Date: Mon, 26 Sep 2011 22:40:38 -0700 (PDT)
Local: Tues, Sep 27 2011 1:40 am
Subject: Re: How to install APK programmatically without user prompt
Are you asking this because of recent headlines about android security
issues that allow apps to install w/O you knowing?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Prajapati  
View profile  
 More options Sep 27 2011, 1:49 am
From: Pratik Prajapati <pratik.prajap...@gmail.com>
Date: Mon, 26 Sep 2011 22:49:29 -0700
Local: Tues, Sep 27 2011 1:49 am
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt

In this complex world, there are always some un-common requirements to
implement un-common stuff. It is upto the architect to understand the
security loophole to clear.

--
Regards,
Pratik Prajapati


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
martypantsROK  
View profile   Translate to Translated (View Original)
 More options Sep 27 2011, 3:10 am
From: martypantsROK <martyg...@gmail.com>
Date: Tue, 27 Sep 2011 00:10:13 -0700 (PDT)
Local: Tues, Sep 27 2011 3:10 am
Subject: Re: How to install APK programmatically without user prompt
I truly hope you nor anyone else ever figures out how to do it.
Windows is plagued with such junk.

On Sep 17, 2:32 am, Pratik Prajapati <pratik.prajap...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Prajapati  
View profile  
 More options Sep 27 2011, 11:28 am
From: Pratik Prajapati <pratik.prajap...@gmail.com>
Date: Tue, 27 Sep 2011 08:28:58 -0700
Local: Tues, Sep 27 2011 11:28 am
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt

Implemented and working fine now.

--
Regards,
Pratik Prajapati


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kristopher Micinski  
View profile  
 More options Sep 27 2011, 11:55 am
From: Kristopher Micinski <krismicin...@gmail.com>
Date: Tue, 27 Sep 2011 11:55:15 -0400
Local: Tues, Sep 27 2011 11:55 am
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt
On a non rooted device?

Well that's a nice security hole to hear about.

Kris

On Tue, Sep 27, 2011 at 11:28 AM, Pratik Prajapati


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Prajapati  
View profile  
 More options Sep 27 2011, 12:04 pm
From: Pratik Prajapati <pratik.prajap...@gmail.com>
Date: Tue, 27 Sep 2011 09:04:37 -0700
Local: Tues, Sep 27 2011 12:04 pm
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt

Its in rooted device, but no option for user to do adb. Its nigher for phone
nor for tablet market.

--
Regards,
Pratik Prajapati

On Tue, Sep 27, 2011 at 8:55 AM, Kristopher Micinski <krismicin...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Indicator Veritatis  
View profile  
 More options Sep 27 2011, 4:17 pm
From: Indicator Veritatis <mej1...@yahoo.com>
Date: Tue, 27 Sep 2011 13:17:04 -0700 (PDT)
Local: Tues, Sep 27 2011 4:17 pm
Subject: Re: How to install APK programmatically without user prompt
I hope and assume that by 'nigher', you meant, 'neither'. For it is a
security hole. Then again, every rooted device is like swiss cheese
when it comes to security holes.

Now that I know you are developing this for a rooted device (it would
have helped had you mentioned this in your first post on this issue),
I can see the general architecture of a solution: write your own
installer, bypass the built-in installer completely. Since the user
has root privileges, so does the custom installer; you can violate
security in SO many ways!

On Sep 27, 9:04 am, Pratik Prajapati <pratik.prajap...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Prajapati  
View profile  
 More options Sep 27 2011, 4:48 pm
From: Pratik Prajapati <pratik.prajap...@gmail.com>
Date: Tue, 27 Sep 2011 13:48:52 -0700
Local: Tues, Sep 27 2011 4:48 pm
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt

yup, Thanks.

On Tue, Sep 27, 2011 at 1:17 PM, Indicator Veritatis <mej1...@yahoo.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Antonin Chazalet  
View profile   Translate to Translated (View Original)
 More options May 27 2012, 12:10 pm
From: Antonin Chazalet <antonin.chaza...@gmail.com>
Date: Sun, 27 May 2012 09:10:04 -0700 (PDT)
Local: Sun, May 27 2012 12:10 pm
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt

Hello,

Pratik, can you tell us how you skipped the user prompt?

Thanks,
Regards,

Antonin.

Le mardi 27 septembre 2011 18:04:37 UTC+2, Pratik.p...@gmail.com a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pratik Prajapati  
View profile   Translate to Translated (View Original)
 More options May 27 2012, 2:26 pm
From: Pratik Prajapati <pratik.prajap...@gmail.com>
Date: Sun, 27 May 2012 11:26:31 -0700
Local: Sun, May 27 2012 2:26 pm
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt

It was my hack. Which worked in my device, as is not for any smart phone,
tablet.

I run System command from java and user pm utility of android to install
apk.

On Sun, May 27, 2012 at 9:10 AM, Antonin Chazalet <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Antonin Chazalet  
View profile  
 More options May 27 2012, 5:09 pm
From: Antonin Chazalet <antonin.chaza...@gmail.com>
Date: Sun, 27 May 2012 23:09:16 +0200
Local: Sun, May 27 2012 5:09 pm
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt
Thanks for your quick answer.

I tryied:

pm install /sdcard/download_aaa/NotePad.apk

Via my phone's terminal, and it returns me:

pkg: /sdcard/download_aaa/NotePad.apk
[1]  Killed pm install /sdcard/download_aaa/NotePad.apk

The NotePad.apk app hasn't been installed.

Do I miss any options? or something else?

My phone is a real one, not a emulated one.
It runs Android 2.1-update1.
It is not rooted.

I use the application named Terminal Emulator (v44) in order to get
access to my phone's shell.

I was already able to install, execute, and uninstall NotePad.apk
using standards ways.

Thanks,
Regards,

Antonin.

2012/5/27 Pratik Prajapati <pratik.prajap...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Endy Silveira  
View profile  
 More options Oct 5 2012, 9:45 am
From: Endy Silveira <endy.silve...@traceback.com.br>
Date: Fri, 5 Oct 2012 06:45:53 -0700 (PDT)
Local: Fri, Oct 5 2012 9:45 am
Subject: Re: [android-developers] Re: How to install APK programmatically without user prompt

Hey, did you got the answer?

If no, than there is:

http://www.kanatorn.info/2012/01/21/android-install-apk-programmatica...

The only one problem is that you need to be rooted...

Em domingo, 27 de maio de 2012 18h09min16s UTC-3, Antonin Chazalet escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lokesh gupta  
View profile  
 More options Oct 5 2012, 9:51 am
From: lokesh gupta <lokeshgupt...@gmail.com>
Date: Fri, 5 Oct 2012 19:18:50 +0530
Local: Fri, Oct 5 2012 9:48 am
Subject: Re:[android-developers] How to install APK programmatically without user prompt

U can... But you need rooyed devices to achieve that
On Sep 16, 2011 11:02 PM, "Pratik Prajapati" <pratik.prajap...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »