Re: [android-developers] Re: How to install APK programmatically without user prompt

2012-10-05 Thread Endy Silveira
Hey, did you got the answer?

If no, than there is:

http://www.kanatorn.info/2012/01/21/android-install-apk-programmatically-without-user-prompt/

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

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

 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.p...@gmail.com javascript:: 
  
  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 
  antonin@gmail.com javascript: wrote: 
  
  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 : 
  
  Its in rooted device, but no option for user to do adb. Its nigher for 
  phone nor for tablet market. 
  
  -- 
  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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to install APK programmatically without user prompt

2012-05-27 Thread Pratik Prajapati
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 
antonin.chaza...@gmail.com wrote:

 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 :

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

 --
 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to install APK programmatically without user prompt

2012-05-27 Thread Antonin Chazalet
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 :

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

 -- 
 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to install APK programmatically without user prompt

2012-05-27 Thread Antonin Chazalet
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:

 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
 antonin.chaza...@gmail.com wrote:

 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 :

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

 --
 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to install APK programmatically without user prompt

2011-09-27 Thread Pratik Prajapati
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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to install APK programmatically without user prompt

2011-09-27 Thread Kristopher Micinski
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)?
 
  --
  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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to install APK programmatically without user prompt

2011-09-27 Thread Pratik Prajapati
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)?
  
   --
   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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to install APK programmatically without user prompt

2011-09-27 Thread Pratik Prajapati
yup, Thanks.

On Tue, Sep 27, 2011 at 1:17 PM, Indicator Veritatis mej1...@yahoo.comwrote:

 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)?
 
 --
 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: How to install APK programmatically without user prompt

2011-09-26 Thread Mark Murphy
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 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


RE: [android-developers] Re: How to install APK programmatically without user prompt

2011-09-26 Thread Ted Neward
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

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@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.
 
  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)?
 
   --
   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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to install APK programmatically without user prompt

2011-09-26 Thread Kristopher Micinski
It's not really a matter of not wanting to help so much as, it just
plain won't work ;-)

Kris

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.

  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)?

   --
   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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How to install APK programmatically without user prompt

2011-09-26 Thread Pratik Prajapati
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

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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en