I want to install app silently in android without using user prompt and without ROOT.
I know this question has lots of answers but i can't find proper answer for same.
i.e is it possible if we make app as device admin or device owner or profile owner ?
Thanks for advance.
It's not possible, the only way for skip user prompt, is to be root and place the apk on the system folder instead of app folder
If the apk is in the system folder you can install it silently easely, but the system folder can only be access with ROOT
Related
On my android device, superuser and normal user see different /sdcard folder. In details, when I login as a normal user, in the /sdcard folder, I can see many files. However, when I login as a superuser, in the /sdcard folder, I can only see a single file. I am confused about this observation. Can somebody tell me why?
Are you using SuperSU?
If yes, please disable namespace trimming (or similar) in the settings.
You may have the pro version for that. If you don't want to buy it, enable Freeload.
Also which android version do you have?
I know this is may or may not be possible,but I just want to confirm is it possible in android or not?
So here it goes,Let's say I have an android app ( example my_app.apk) ,I copied my_app.apk from my computer or through pendrive or downloaded from website to my android device( let's say I copied to /sdcard/).I have also activated install app from unknown sources in my phone settings.
Now is there any way through which I can make the App to auto install on the device as soon as I copied to /sdcard folder? I mean my_app.apk should kick auto installation on the device without user navigating to /sdcard of the device and selecting the app and clicking the install option.
I just want to know is this possible in Android? if Yes how can I achieve that? I don't want to use other third party applications to kick off installation,instead the app should kick installation itself as soon as it gets copied to /sdcard folder.
Any help would be appreciated.
I think that is not possible. It is possible to have Android app which checks some folders and detects new file and automatically install new apk files. To install apk package ordinary (from SD card) you should activated installing from Unknown sources in settings. Auto instalation packages aren't possible, because it could be security problem.
I wrote a simple application for android, it works fine on my phone, but i want to run it on my phone without connecting my phone to the computer, i mean i want to install the application on my computer. How can i do this? Also what if i want to send this app to a frind? Do i have to install it to market? Thanks
The first thing you need to do is create an .apk file.
Here is a question about creating it.
You can then put it on the play store, or upload the .apk to a server and use the URL to download it.
Or you could just copy the .apk from your computer onto your phone then just click the file and it will install.
Using anything other than the market will require the user to 'allow applications from unknown sources'.
After you will run for the first time the application on the phone (launched from the computer), it will remain installed after you disconnect the phone from the computer.
Then you can launch it from the Applications menu.
Preinstalled applications are in /system/app folder. User installed applications are in /data/app. I guess you can't access unless you have a rooted phone. Try to carry with your external memory card.
If you want to reach your .apk file simply try below...
I assumed you are using Eclipse..
in /bin folder of your project you can see appName.apk then copy and send it to your friend.
If you use eclipse you need to do a right click on the project folder.
There you have the menu for android tools.
There you must click the export (un)signed application package button and then a wizard opens where you have to do some settings. (I prefer sigend one).
There you need to create a new keystore and a new certificate. It does not really matter what you insert there.
After you created these files you can save an "apk" and copy it to your device.
There you simply have to open the apk and the app will be installed.
But I don't know how to install the app on your pc. I just know that you can run an emulator and install it there (bluestack is the emulators' name).
I have a Google Nexus 7, and I've been developing on it. Only recently, however, have I become unable to access the /data/ directory using the file browser in eclipse. The device was never rooted, but now since I upgraded it, I believe that I have lost access to this. Is there any way to get eclipse to use the "run-as" command to access my app's data directory? How come I have suddenly lost access to this?
Is the only option left to root the device?
Thanks
Is there any way to get eclipse to use the "run-as" command to access my app's data directory?
There is nothing for you to run "as" that would help here, AFAIK.
How come I have suddenly lost access to this?
You should not have had access to it in the first place. If you did, that was a security flaw in the device, perhaps fixed by a firmware upgrade.
Is the only option left to root the device?
You could not browse the /data/ directory on production hardware. For example, you can browse /data/ on the emulator.
I am able to given root permission by installing apk.
http://gadgets.ndtv.com/mobiles/features/how-to-root-nokia-x-and-get-access-to-google-play-store-and-google-now-508391
Is there a way to disable android market ? Say for a device admin or anyone for that matter ? How does ATT do it ? Have they asked mobile manufactures to modify the Android src accordingly ?
Edit : Can this be done on non-rooted device ?
You needn't modify the source.
The Market is just another app, but its typically stored in the /system/app directory which is read-only without root access. If you root the device, or if you're a manufacturer you simply need to remove the vending.apk from /system/app.