[Q] Kiosk executable apk - General Questions and Answers

Hi I am putting together a kiosk for a public space that should allow the user to place their android phone on a micro usb key.
I would like the micro usb key to automatically install an apk on their phone.
Now I was wondering how would one go about writing an executable that could be automatically executed from a usb on an android device. I know that this is possible for PC and mac.
stackoverflow.com/questions/1232966/auto-run-appilication-while-plug-in-usb-drive
So basically I need a way so when I plug a usb key into a phone a script will run that requests that the apk on the key installs on the phone. I presume that prerequisites like asking the user to turn on usb debugging and unknown sources is a given.

nothing?
I didnt expect XDA to be so quiet

Related

[Q] how can I make my Xoom 2 ME visible under linux?

Whenever I plug my tablet to a Windows machine, it appears as a flash drive.
On my linux box at work, dmesg recognizes it but kde fails to inform it on the device notifier.
Is there a driver I need install??
Thanks in advance,
gtludwig
Most of the times i transfer files wireless with programs like airdroid... If you still want to transfer files with usb connection you can choose the type of usb connection protocol that your tablet use. In settings menu, storage, check for the menu button at the upper right corner. Then use a program that can transfers files using the protocol you choose (try ptp). Windows use Motorola drivers to simulate a typical usb connection. There is a way to do it also under linux but you will need to install few extra packages. Is little difficult to explain to you right now how to do this but you will find tutorials if you search for it in Google...

[Q] Nexus 7 - backing up apps and game progress

My son has a Nexus 7 and twice I have had to replace it (due to lack of power charging problems) and twice he has lost his 'game progress'. The apps and games can be redownloaded but he loses all of his game progress. If I can't solve this problem, after this Nexus 7 goes (it's now having power charging problems and it is only 5 months old) he refuses to ever use a Nexus again and wants to go the iPad.
How can I backup games and their progress? I downloaded titanium but then realized there is no slot for a SD card or usb port to connect to my PC to backup. And I don't know how to use the cloud for this.
Suggestions?
Thanks
The Dad
You can connect your nexus 7 to your computer and view backup files / game files with 2 simple steps:
1) Configure MTP Connection by going to Settings -> Storage -> Menu button in upper-right side -> command USB Computer Connection -> MTP
2) Set USB debug mode- go to Settings-> About tablet -> tap the Build Number line for several times until
you get the 'you are now a developer!' message. go back -> Developer options -> Make sure that its on and you check 'USB debugging' box.
Thats it. when you use Titanium Backup, you should be able to see a folder named 'Titanium Backup" with all your backed up files when plugging the device to your pc. Note- If your game is pretty heavy, I suggest to backup the game's folder in Android->data->name of the game.
If it doesn't help- try to download USB drivers for your pc from Asus website: http://www.asus.com/Tablets_Mobile/Nexus_7/#support
Other alternative:
use BS file explorer to get to your need-to-backup folder- then by long pressing the folder you can choose to send it via your local shared network (wich can be configured by BS explorer) or, to zip it and then share it to a cloud service such as Google Drive or Dropbox.
Good luck!
Nexus 7 Backup games progress
REPLY........You say...."when plugging the device to your PC". I don't have a USB outlet (or any outlet other than power adapter) on my Nexus 7. So how can I plug the Nexus 7 into my PC ?
(Weird, I thought that Nexus 7 power adapter and cable are separated units...)
Any standard micro usb cable will do: https://www.modmypi.com/image/cache/data/raspberry-pi-accessories/microUSB-800x800.jpg
most electronic devices come with this kind of cable. just plug it into your nexus and pc.
(If you don't have any- it only costs about 1$)
amirTor said:
(Weird, I thought that Nexus 7 power adapter and cable are separated units...)
My Nexus 7 only has a power adapter (a hole) for connecting the power cord. There is NO other hole on the Nexus to plug in anything else. That's the issue. Thanks
Click to expand...
Click to collapse
Is your nexus 7 power adapter hole looks like this? http://cdn.arstechnica.net/wp-content/uploads/2013/05/nexus-7-bottom-sticker.jpg
than its multi-functional connection that operates as power adapter and a data port.
you just need to plug the cable shown at my previous post.
Maybe this will make things clearer: https://www.youtube.com/watch?v=7YiFmkMULuA
The charging cable is a micro usb to usb cable. Plug the micro usb into the charging port on your tablet and the other end, instead of plugging it into the wall plug, plug it into a usb port on your computer.
The tablet should install drivers onto the computer and then you should be able to see the internal storage on the tablet (photos, music, videos etc).
This will however not help you in backing up the games and their data.
Look in the Playstore for Backup apps, specifically ones that DO NOT need root, there are a couple. They should be able to help.
Nexus7Question said:
My son has a Nexus 7 and twice I have had to replace it (due to lack of power charging problems) and twice he has lost his 'game progress'. The apps and games can be redownloaded but he loses all of his game progress. If I can't solve this problem, after this Nexus 7 goes (it's now having power charging problems and it is only 5 months old) he refuses to ever use a Nexus again and wants to go the iPad.
How can I backup games and their progress? I downloaded titanium but then realized there is no slot for a SD card or usb port to connect to my PC to backup. And I don't know how to use the cloud for this.
Suggestions?
Thanks
The Dad
Click to expand...
Click to collapse
I guess the first question I have is; is the device rooted? If so, this makes backing up a bit simpler. You already have Titanium Backup, so just tap the button that looks like a square with a check mark. Then push the 'run' button that's in the "Backup all user apps + system data" (Third item in the backup section). Let this run. Once complete, you can upload the whole folder that TB put the files in (found by tapping 'menu' > Preferences > Backup folder laction) and upload it to a cloud service like Dropbox.
If you're not rooted (works with rooted devices too), we will need a Windows computer. This process can take a bit to explain, so sorry for the long post.
First, you’ll need to install Oracle’s Java Development Kit, which the Android SDK requires. Download and install the 32-bit version. The Android SDK wants the 32-bit version, even if you’re using a 64-bit version of Windows.
Next, download the Android SDK from Google. Extract the .zip folder to a location of your choosing, but remember where you put it. If you have the option to open extracted contents in a new window, do so.
Okay, now open the Android SDK Manager (you may have to open a subfolder or two) with administrative rights. You do this by right clicking on the .exe and choosing the option "Run as administror". A window will pop up, click yes, and after a small wait, the SDK Manager will open.
Now within the SDK Manger, under the tools section, check the box for Android SDK Platform-tools and click Install. This can take some time depending on your Internet connection. Once installed, go back to the open window where you cliked the SDK Manager .exe and navigate to the folder named "Platform Tools". If you're unsure where this is, the SDK Manager has the path of install located near the top.
Now let's get the tablet ready. If you can, charge your device to its fullest. Now go into the settings, scroll down to 'development options'. Near the top of this menu, make sure the toggle switch is in the 'on' position. Now scroll down to USB debugging, and tick the box. Tap "OK" when the message shows up. Now plug the smaller end of the USB cable (preferably the one that came with your Nexus) into the bottom of the tablet and the other into an open USB port of your computer. It's best to use a 2.0 USB port (no blue end) and if on a desktop, a port located in the rear.
If your computer starts installing any drivers, let it do this. Once that's finished, go to the window with the Platform Tools folder open. You should see a few files, two named "ADB" and another "Fastboot". Now hold your Shift key, right click in an open area, and choose the option "Open command window here". You may release the shift key at this time.
We're almost done. To make sure your tablet is seen by the computer type:
Code:
adb devices
One device should be listed. If you see no devices, adb can’t communicate with your device because its driver isn’t installed properly. In this case, go back to the SDK Manager and download the USB drivers. You may also need to restart your computer.
Assuming you're up and working, type:
Code:
adb backup -apk -shared -all -f C:\backup.ab
This backs up all the installed apps (APK files) and shared storage (SD card) data to the C:\backup.ab file on your computer.
After running this command, you’ll have to agree to the backup on the device. You can also encrypt the backup with a password here, if you like (leave it blank if you don't want encryption). Depending on how much data there is to back up, this can take some time. The device will letyou know when it's done.
Now for the restoration process:
On the new device, make sure USB debugging is enabled. On the computer, follow the same steps for opening the adb command window. Ensure adb can see the device, then type:
Code:
adb restore C:\backup.ab
On the device, you will need to confirm you want to do a full restore. If you encrypted the backup, enter in the password, then hit "Restore my data". If you didn't add encryption, then leave that area blank. Once the restoration is done, you're good to go.
Hopes this helps you (^^) Oh and if you need further explanation or screenshots, just let me know.
Thanks for the detailed response!! if my Nexus is not rooted, and before I go down this rather complex path I want to mention that I just read that "Helium" can be used instead of Titanium if the Nexus is not rooted. Would that be a simpler approach?
Also when I plug in the Nexus to PC cord my PC does not recognize the Nexus with a drive letter. I gave it 5 minutes. Any suggestions on that?
Thanks
Mark
Yes Helium is a good app. Are you using Windows 8? It doesn't like unsigned drivers being installed.
There is a guide here about installing drivers on your pc for nexus devices.
http://www.theandroidsoul.com/nexus-7-2013-drivers-installation-guide/
killall said:
Yes Helium is a good app. Are you using Windows 8? It doesn't like unsigned drivers being installed.
I'm using Windows 7.
Click to expand...
Click to collapse
OK try the link I just posted.

Access data from Samsung Tocco Lite S5230 via USB Cable

I have a Samsung Tocco Lite S5230, otherwise known as Samsung Star, Samsung Player One, Samsung S5233 or Samsung Avila in different countries. I have not modified the firmware. I bought the phone originally with an Orange UK contract but it was not locked as it was from a 3rd party phone shop.
The touchscreen is not responding so I am looking for a way to get my data off it via the USB cable. Unfortunately, in the settings for the phone, it is set to prompt on USB connection to determine which USB mode to use (the options are Media Player, PC Suite, Mass Storage).
So I am wondering what options I have to try to access the data without relying on the touchscreen. If I could change that setting to default PC Suite mode I'd probably be fine as pretty much everything (except for text messages longer than 160 characters) can be access via the PC Suite software. But since the touchscreen isn't responding I can't change this setting.
1. From looking around I am lead to believe that this phone runs the Bada platform?
2. I have a computer which dual boots Ubuntu and Windows.
2a. In Ubuntu, if I connect the USB cable before entering the Sim card pin, the operating system prompts me automatically to enter the pin which allows me to start up the phone; I'm not sure if this is helpful but it seems like a step in the right direction.
2b. In Windows, I haven't found any way to use the computer keyboard to enter the sim card pin, and if I start PC Suite, the computer prompts me to select the PC Suite option on the phone's screen [which I can't do].
I had seen clues to suggest that this phone runs on the Bada Platform? But I have just found this post which seems to claim that a related model does not run Bada?
Perhaps someone would be kind enough to point me in the right direction to help me find some software that can be used to access the phone via the USB cable without relying on the touchscreen?
Thanks in advance for any pointers
PS - as a bonus though probably more for interest than for any practical purpose, is there a way to enter the SIM card PIN from Windows like I can on Ubuntu?
Hello,
I have the problem also,
for a solution I would be happy

Cant turn on usb debugging after system update

Cant turn on usb debugging after system update even when its plugged into the pc it wont turn on.. i can still transfer files from phone to pc and pc to phone im not sure whats going on here. Theres no bug reports either and you cant verify apps over usb..
haro25 said:
Cant turn on usb debugging after system update even when its plugged into the pc it wont turn on.. i can still transfer files from phone to pc and pc to phone im not sure whats going on here. Theres no bug reports either and you cant verify apps over usb..
Click to expand...
Click to collapse
Do a factory reset ?
That didnt work it hasnt worked since day of the system update and that was on a fresh install of the rom before this one.. i think thats just how the system update is...
https://youtu.be/fqFvuZoFwF4
I made this video showing settings and dev settings in the boost mobile j7 after system update... kinda give people a better look at whats going on. I posted it to the public on Facebook so hopefully it gets out to the right people..
Heres a screen recorder that works without root..
https://play.google.com/store/apps/details?id=com.hecorat.screenrecorder.free
What Is USB Debugging Mode On Android? [MakeUseOf Explains]
Written by Joel Lee
January 11, 2013
Ads by Google
usb debuggingIf you use an Android phone and you’ve searched forums for solutions to problems, you’ve probably heard the term “USB Debugging” every once in a while. You may even have seen it while looking through your phone’s settings. It sounds like a high-tech option, but it really isn’t; it’s quite simple and useful.
One beauty of Android is that it has a lot of built-in features, many of which are advanced. If you want to supercharge your phone with mods and whatnot, you can; if you want to use it just as it was out of the box, you can ignore the advanced stuff. USB Debugging is a feature that all users can benefit from, though, so you should know what it does and when to use it.
What Is USB Debugging Mode?
USB Debugging Mode is a mode that can be enabled in Android after connecting the device directly to a computer with a USB cable. The primary function of this mode is to facilitate a connection between an Android device and a computer with Android SDK (software development kit). As the name might suggest, Android SDK is a software suite that’s designed to aid in the development of Android apps.
Ever wondered how a programmer creates apps on the Android? They definitely don’t code them straight on the phone device! That would be nightmarish at best. Instead, they utilize the environment of the Android SDK to code apps on a computer, use USB Debugging Mode to transfer those apps to a device for testing.
usb debugging
But, again, here’s the takeaway: USB Debugging Mode establishes a direct connection between an Android device and a computer and readies it for deeper-level actions. That’s the important part.
In some versions of Android, the USB Debugging Mode feature may be called Developer Mode. With such a name, it can be easy (and reasonable) to think that you’ll never need to deal with this aspect of Android if you never plan on developing anything. That’s not exactly true.
Why Is USB Debugging Mode Important?
USB Debugging grants you a level of access to your device. This level of access is important when you need system-level clearance, such as when coding a new app. However, there are a few non-development-related benefits from this new level of access that can give you much more freedom of control over your device.
For example, with Android SDK, you gain direct access to your phone through your computer and that allows you to do things you normally couldn’t, like snag instant screenshots of your device or run terminal commands with ADB. These terminal commands can help you restore a bricked phone–a useful tool for any adventurous Android owner. Without it, you’d have to get a replacement phone.
android usb debugging
USB Debugging is also necessary if you ever want to root your Android device. Before an app like One-Click Root can dig into your system and deliver the exploit that roots the device, USB Debugging is necessary to allow that function in the first place.
Yes, the original intention for USB Debugging Mode was only meant for developers who needed to copy data between their computers and Android devices, to install apps on the phone without notifications, and to read log data off the phone. But even if you aren’t a developer, you’ll probably run into a few apps that require USB Debugging Mode to function properly, so this mode does affect you and you should know about it.
Start searching dialer codes for Samsung devices and do be careful on what you do in those service menus.
-sent from this device using this app.
Just tried that and cant get any codes to work in the dialer or in the apps.. and one says im missing su so i dont know im about to just flash back to the older firmware Security is nice and all but damn they killed it.
I found the problem it was samsung knox if you activate it or use my knox app it disables your dev settings so i ripped knox out of my phone now i have usb debugging..

Samsung S7 Edge ADB Commands

Hi,
Basically I have a Samsung S7 Edge (SM-G935F) which the screen is completely smashed on (no display no touch). When I connect it to the PC it detects the phone but it doesn't show the folders inside (can only assume its got a prompt to accept PC or USB debugging isn't enabled).
After a lot of testing with OTG cables keyboards/mouse etc the furthest I got was putting the phone into Recovery Mode (PWR, VOL UP & HOME) then selected APPLY UPDATE ADB.
When I run the ADB in Powershell and run "adb devices" it finds the device ID and says "sideload".
Is there any command I can run to pull the files off my internal DCIM folder (thats all I really need)?
I did read up the only way this could be possible is to install a custom rom (TWP with ODIN?) and then pull files off.
Is this possible and would installing a custom rom delete my internal files as that would render this pointless.
Sorry im new to a lot of this so all my knowledge is just what ive read recently.
Thanks
1. To pull user data USB-debugging must got enabled. May be this method works for you to enable it:
2. To flash TWRP it's required device's bootloader got unlocked - what requires OEM unlock must got enabled . Note: Unlocking bootloader erases all user data.
jwoegerbauer said:
1. To pull user data USB-debugging must got enabled. May be this method works for you to enable it:
2. Once you unlock device's bootloader - what is required to flash TWRP - all user data get lost.
Click to expand...
Click to collapse
Thanks for the reply,
Ok so my only option is the "blind" method.
I have the app installed via Google Play Store on my PC to the device however when I hold down the home button to ask google I hear no reply from her, is there any hotkey to use for this device to ask google or any alternative methods to open this app?
I can see the S7 Edge is connected to my WIFI as it shows on the Sky Hub and IPScanner.
Also is there a way to tell what android interface version I have so I can follow someone on Youtube going into Settings or Apps etc to open the app.
I feel like I am so close to getting these photos off the phone but its just a blind guess at the moment.
I managed to get a hold of a friends S7 Edge, using this I mapped out some keyboard functions to turn on developers options then usb debuggings.
What I have noticed is now when I connect the phone via USB to the PC and run ADB DEVICES it shows up the ID then unauthorised as the status, so I can only assume this means I have USB DEBUGGING ENABLED.
Is this correct?
If so why when I open the Samsung Galaxy in Windows does it still not show the folders, is there another setting I need to turn on/off?
Rowan88 said:
I managed to get a hold of a friends S7 Edge, using this I mapped out some keyboard functions to turn on developers options then usb debuggings.
What I have noticed is now when I connect the phone via USB to the PC and run ADB DEVICES it shows up the ID then unauthorised as the status, so I can only assume this means I have USB DEBUGGING ENABLED.
Is this correct?
If so why when I open the Samsung Galaxy in Windows does it still not show the folders, is there another setting I need to turn on/off?
Click to expand...
Click to collapse
you are confuse you want to view phone content and sd card? you need to change from charging to MTP connection from drop-down notification bar of your device
ineedroot69 said:
you are confuse you want to view phone content and sd card? you need to change from charging to MTP connection from drop-down notification bar of your device
Click to expand...
Click to collapse
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Rowan88 said:
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Click to expand...
Click to collapse
Followed steps again and changed to PTP and FILES ARE NOW SHOWING!!
Happy man!
Thanks for all the help
Rowan88 said:
I want the internal storage contents of DCIM on the phone.
I followed the steps on my "donor" phone to go into Developer Options > USB Configuration > MTP but all that happens is the phone detects on Windows but wont show me the contents of it.
I also tried changing to PTP but same issue.
I know there is a pop-up that shows on the phone asking to ALLOW THE PC TO ACCESS FILES but I cannot have the USB DATA CABLE and OTG/KEYBOARD plugged in at the same time (and I also tried two OTG adapters both came up MOISTURE DETECTED when using).
So unless anyone knows of a OTG SPLITTER that 100% works with S7 EDGE then I need to find a way to either bypass the ALLOW MESSAGE or manually add my PC to its allow list.
Click to expand...
Click to collapse
fully charge your phone and hopefully the heat generated from charging process remove the moisture detected warning or you can also use hair blower to heat your charging port area
also don't put your device on microwave oven unless you want to see some fireworks

Categories

Resources