how to automatically run a file off usb in windows 8.1? - windows-8.1

I've been trying to automatically run an application off USB in windows 8.1. I thought of trying Autorun but windows has removed that feature. Can anyone help me out?

Related

How to create an android 10 VM and have it communicate with my Ubuntu VM?

I need to setup an android 10 VM on virtual box (so it can communicate with my ubuntu VM), but I couldn't find anything above version 9.0 on https://www.android-x86.org/download .
I thought I'd get it from https://dl.google.com/android/repository/sys-img/android/x86_64-29_r08-windows.zip , which is the link used by android studio for installing an android 10 emulator.I expected it to be an .iso image, but it's actually a folder with muliple files in it, and no iso file.
Do you know any other way ? Or an alternative solution to creating a virtualbox vm ? Is there any way to have the android studio emulator communicate with my ubuntu VM for example ?
Any help will be greatly appreciated, thank you !
You can use the Android 10 Emulator in the Android Studio IDE to create an Android 10 virtual machine (VM). You can then use the Android Debug Bridge (ADB) to connect the VM to your Ubuntu VM and transfer data between them.
Or
First, you need to create an Ubuntu VM. You can do this using VirtualBox or another virtualization tool.
Once you have created the VM, you will need to install the Android SDK on it. You can do this by following the instructions here:
https://developer.android.com/sdk/index.html
Once the Android SDK is installed, you will need to create an AVD (Android Virtual Device) for your VM. You can do this by following the instructions here:
https://developer.android.com/tools/devices/manage-avds.html
Once you have created the AVD, you can boot it up and it should appear in your VM. You can then access it from your Ubuntu VM using the adb tool.

why I can not open my Android Device Monitor on Mac?

I read the solution from
Mac - I cann't open my Android Device Monitor on Mac
and followed the steps also.
But still now I am getting this kind of pop up window.
Is there any one who knows the possible solution of this problem?

How to use real emulator

I am using lenovo k3 note smartphone and running android studio on Windows 7. I want my phone to run my app. I have enabled usb debugging option. But I couldn't find my device in emulator window.
In device manager of win7 when I am trying to install the driver it says:
Windows was unable to install your MTP.
Windows couldn't find driver software for your device.
Any suggestions?

Android Studio doesnt recognize my device - Nexus 6P [duplicate]

This question already has answers here:
Cannot see Nexus 6P for debugging
(5 answers)
Closed 4 years ago.
I am struggling to figure out the problem with my device not being recognized in Android Studio. However I do see it from file explorer and can browse the device files.
OS: Windows 10
Device: Nexus 6P
Yes, I did some research before posting this question, so I'll enumerate what I tried:
Enabled USB Debugging
Installed Google USB drivers from the SDK manager
Intalled HiSuite(apparently including some device drivers)
Switching between MTP/PTP
Restarting Android Studio several times
Restarting my computer several times
Every USB 2/3 ports of my computer
Tried updating drivers from device manager(however it did not suggest anything)
adb kill-server / start-server
Any suggestions would be greatly welcome!
Thanks in advance!
Apparently, installing 'Google USB Drivers' from the SDK Manager doesn't actually install them!
You have to go to:
'C:\Users\your_user\AppData\Local\Android\sdk\extras\google\usb_driver\'
right-click on 'android_winusb.inf' and install.
Try to use ADB over Network but it depends what Android version you have.
In Developer options you should see ADB over network section if not then sorry for this unhelpful advice.
check for SDK platforms in Android Studio whether you have installed the Android 6.x(N), Because Nexus got Android N updates, so it may be one of the issue you faced...
When I had this problem what I did was install the drivers manually. What you do is download the drivers from the google website NOT with Android Studio then you go into device manager and right click on your nexus. Then go to drivers tab and hit the update then manually find drivers on computer. Navigate to the downloaded drivers and click on them. Device manager will install your drivers and should fix the problem. Also for drivers you may want to try this or this driver Also please post these kinds of questions on the Android Stack Exchange Thanks!
If you have already tried all those steps , i would like you to install pdaNet software . This will automatically detect and repair the driver and you can find device in Android Studio.
This has worked for me
SO references :
Android studio doesn't list my phone under "Choose Device"
eclipse or android studio not recognize my phone on usb debugging mode
References for installing the drivers and enabling USB debugging is available here for reference , you could cross check with as well.
Reference 2 : Installing pdaNet
First of all I make sure that I've installed google's usb_driver. Either through the SDK or what SlashJ said:
Apparently, installing 'Google USB Drivers' from the SDK Manager doesn't actually install them!
You have to go to:
'C:\Users\your_user\AppData\Local\Android\sdk\extras\google\usb_driver\'
right-click on 'android_winusb.inf' and install.
- SlashJ
After that's done:
Insert your device into your PC
Open device management
Click start > run devmgmt.msc
Right click my PC > manage > devices in left panel
Check if there's a tab android device and look for your device or an ADB Interface, Otherwise just search for your device
Right click your device and Update Driver Software
Browse my computer for driver software
Let me pick from a list
Search for google or android in the left pane.
And select ADB Interface in the right.
Continue installation and it should work now.
You can try to unplug and re-plug your android device.
Maybe you also have to enable developer mode on the device.
Here's a walkthrough
I have a similar problem with my Wiko phone, I had installed the wrong usb driver and I could not do it manualy.
In developer mode, enable the usb debuging
Try to update your driver with apk installer for Windows 10 even if it is already installed:
APK DRIVER
This tool permits to install automaticaly the right driver.
Have a look to my previous question fo further details:
How can I run my ionic app on a physical device (Wiko phone) on Windows?
i just have that problem and anything works for me
what help me is to click a lot of time on the build number (setting-about phone-build number) and magic happens :)
Did you check in Android Studio Run tab->Edit Configurations->Target set to USB device.
if that doesn't work, try updating Android Studio, and/or device's firmware, also here is a similar question, involves a nexus and windows 10: https://stackoverflow.com/a/31938193/3817308
I hope this help.
I'm not sure how you installed adb driver. If your device is displayed in device manager but not as a ADB device, try these steps
Go to Control Panel and open Device Manager.
Find the device
Right click the device and select properties.
Select Driver tab, then click the Update Driver button.
Choose Browse my computer for driver software.
Let me pick from a list of device drivers on my computer
Browse for the .inf driver file. Open and Next.
Select ADB interface from device list (i can't remember the exact name)
Install
There's another another Stack post (Cannot see Nexus 6P for debugging) you might want to try.
You need to manually download the driver here (http://developer.android.com/sdk/win-usb.html)
Go to "Devices and Printers", right-click on "MTP", and choose properties.
Click "ADB interface", then click "Properties"
Go to "Driver" tab and update driver with the file you just downloaded. (Make sure you unzip them first)

Run appxbundle on a simulator

I have a maybe a small problem.
My task is to test a windows 8.1 tablet app. I have no tablet here, so I installed the Visual Studio 2013 Express and the Windows Phone SDK.
If I start the "windows phone application deployment" and try to start the *.appxbundle file, I get an error
a packaging error prevented this application from installing
I sent this back to the developer, he means the app is made for tablets and have to be tested on tablets.
So my question:
Is it somehow possible to simulate windows 8.1 tablet on a windows 8.1 system?
How to install the .appxbundle file?
Thanks.
If you want to test the app in a tablet then there is no need of a Windows Phone SDK or any simulator. You can install the app in your Windows 8.1 pc/desktop, and it will be the same as it will be on a tablet, because a windows store app is common for tablet and pc.
And to install the .appxbundle you can refer to this link (from step 6).
Found a solution, install the app with windows power shell
add-appxpackage C:\myapp.appx

Resources