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)?
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.
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.
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:
> 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)?
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:
> 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.
> > 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)?
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.
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.
> -----Original Message----- > From: android-developers@googlegroups.com [mailto:android- > developers@googlegroups.com] On Behalf Of nyarlathotep > Sent: Monday, September 26, 2011 4:49 AM > To: Android Developers > Subject: [android-developers] 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: > > 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.
> > > 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 received this message because you are subscribed to the Google Groups > "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
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:
> 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)?
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:
> 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:
> > 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.
> > > 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)?
On Mon, Sep 26, 2011 at 9:09 PM, Indicator Veritatis <mej1...@yahoo.com> wrote: > 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: >> 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:
>> > 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.
>> > > 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 received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
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.
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.
On Mon, Sep 26, 2011 at 10:40 PM, akay <ak.kiet...@gmail.com> wrote: > Are you asking this because of recent headlines about android security > issues that allow apps to install w/O you knowing?
> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
> 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)?
On Tue, Sep 27, 2011 at 12:10 AM, martypantsROK <martyg...@gmail.com> wrote: > 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: > > 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 received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
<pratik.prajap...@gmail.com> wrote: > Implemented and working fine now.
> -- > Regards, > Pratik Prajapati
> On Tue, Sep 27, 2011 at 12:10 AM, martypantsROK <martyg...@gmail.com> wrote:
>> 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: >> > 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 received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscribe@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en
> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
> On Tue, Sep 27, 2011 at 11:28 AM, Pratik Prajapati > <pratik.prajap...@gmail.com> wrote: > > Implemented and working fine now.
> > -- > > Regards, > > Pratik Prajapati
> > On Tue, Sep 27, 2011 at 12:10 AM, martypantsROK <martyg...@gmail.com> > wrote:
> >> 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: > >> > 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 received this message because you are subscribed to the Google > >> Groups "Android Developers" group. > >> To post to this group, send email to > android-developers@googlegroups.com > >> To unsubscribe from this group, send email to > >> android-developers+unsubscribe@googlegroups.com > >> For more options, visit this group at > >> http://groups.google.com/group/android-developers?hl=en
> > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscribe@googlegroups.com > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en
> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
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:
> 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
> > wrote:
> > 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
> > <pratik.prajap...@gmail.com> wrote:
> > > Implemented and working fine now.
> > > --
> > > Regards,
> > > Pratik Prajapati
> > > On Tue, Sep 27, 2011 at 12:10 AM, martypantsROK <martyg...@gmail.com>
> > wrote:
> > >> 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:
> > >> > 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)?
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to
> > android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscribe@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscribe@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
> 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: > > 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
> > > wrote: > > > 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 > > > <pratik.prajap...@gmail.com> wrote: > > > > Implemented and working fine now.
> > > > On Tue, Sep 27, 2011 at 12:10 AM, martypantsROK <martyg...@gmail.com
> > > wrote:
> > > >> 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: > > > >> > 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)?
> > > >> -- > > > >> You received this message because you are subscribed to the Google > > > >> Groups "Android Developers" group. > > > >> To post to this group, send email to > > > android-developers@googlegroups.com > > > >> To unsubscribe from this group, send email to > > > >> android-developers+unsubscribe@googlegroups.com > > > >> For more options, visit this group at > > > >>http://groups.google.com/group/android-developers?hl=en
> > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to > android-developers@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > android-developers+unsubscribe@googlegroups.com > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en
> > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscribe@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en
> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
> 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 received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en