Export AOSP emulator files after build - android-emulator

After a successful build of the AOSP using a non GUI server run's Ubuntu, I want to download the files to my mac or windows and run it on the Android Studio emulator or any other emulator.
What files do I have to download and how to run it on my mac ?

Download link:https://source.android.com/setup/build/downloading
Build link: https://source.android.com/setup/build/building
after building source code successfully, run the below command:
emulator -verbose -show-kernel

Related

available devices and emulators in the Flutter project

I want to run Flutter but the emulation I installed is not available in vs code. When I run the emulator, the emulator comes up, but the program does not run in it, only the programs run in Android Studio run in it.
I suggest you delete your emulator from avd folder and then create one again.
Also, try to run the project after running the emulator in android studio. Completely delete the folder of the installed emulator.
The emulator's folder is generally: USER/USERNAME/.android/avd

Cannot open simulator in vs code

Hey I'm new at flutter can some one help me..?
I want to run flutter on UBUNTU 20.04 with Visual Studio Code
but when I run open -a simulator
it throws an error
Command 'open' not found, did you mean:
command 'wopen' from deb gworkspace.app (0.9.4-2)
command 'pen' from deb pen (0.34.1-1build1)
command 'gopen' from deb gnustep-gui-runtime (0.27.0-5build2)
Try: sudo apt install <deb name>
and I dont have Android Studio . some one help me to resolve this
Install android studio
From ADV manager in android studio, create a simulator.
After creation of a device, you can either run it from VScode without launching android studio, it'll be visible in device when you run your code. Or if you want to work with Android Studio, which I doubt you would want to do, it'll run from there out of the box also.
open -a simulator doesn't run on ubuntu, as the error says, open isn't defined.
On a MacOS, you can do that for an iOS emulator device, but it's Ubuntu, so no iOS.
I think you need Android studio to run the Android emulator or you can try to run it on a physical device

metro bundler packager terminal is missing in ubuntu 18.04 LTS while building react native app

I'm building a react native app for android in ubuntu 18.04.1 LTS. I used a physical device for building my react native app. Actually it behave like the app is being build but i can't find metro bundler terminal. I have build the app by running react-native run-android command. What can i do to open metro bundler terminal? can anyone help?
According to my knowledge metro bundler(patching app) not run when you use physical device to run application. only run when we use emulator.
You can execute =>
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
on terminal(project directory) and use android studio to build&run your app.Otherwise when u update ur index.js file and build apk for device that update not gonna apply. so when you do some update to index.js execute that code. it ll do metro bundler(patching app) manually.
try running react-native start --reset-cache in one terminal from your project directory and run react-native run-android from another terminal from the same directory

Nativescript project running with Visual Studio Emulator

I have a Nativescript application that I'm developing using VS Code and have no issues when I try to run it using the Nativescript launch configurations from the Nativescript extension, when I'm using a real device connected with USB or when I use one of the android-sdk emulators.
Now I need to run Hyper-V on the machine too and those emulators cannot run when hypervisor is on. So I downloaded and installed Visual Studio Android Emulator which runs fine when I launch it manually.
Problem is that the nativescript project doesn't recognize this device either with tns device or adb devices commands and if I try to launch the application from VS Code it tries to launch one of the other emulators, which obviously fails due to the hypervisor/Intel Haax incompatibility.
Did any of you had this problem before and have any solutions you can share?
Thanks.
Microsoft MSDN say :
If the emulator is running, but it does not appear to be connected to ADB or it does not appear in Android tools that make use of ADB (for example, Android Studio or Eclipse), you may need to adjust where the emulator looks for ADB.
The emulator uses a registry key to identify the base location of your Android SDK, and looks for the \platform-tools\adb.exe file under that directory.
Here We Go!! Step By Step ;)
Copy Your ANDROID SDK PATH for me it look like this :
To modify the Android SDK path used by the emulator:
Open Registry Editor by selecting Run from the Start buttons context menu, typing regedit in the dialog box, and choosing OK.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Android SDK Tools in the folder tree on the left.
Note : if Android SDK Tools folder doesn't exist, Create it under WOW6432Node, And open it, And Create a String Value name it Path:)
Modify the Path registry variable to match the path to your Android SDK.
Restart the emulator and you should now be able to see the emulator connected to ADB and associated Android tools.
Now! Open Your Terminal (CMD), and Run ADB command
adb devices -l
YES YES !! The Visual Studio Emulator is running, and connected to ADB!
HERE WE GOO !!
Now We Want To Create A Demo App (for example FIRSTZAKI) ZAKI is my nickname :p
On Terminal (CMD) :
tns create FIRSTZAKI
Choose Android Platform
cd FIRSTZAKI\
tns platform add android
Check if VS EMULATOR is ready!
tns devices
YES YES ^^
Finally Step (RUN/BUILD) :
tns run android
WOW ... Great :)
AND .. Good Luck ♥ — ZAKI

How to deploy the android application to emulator like Application Deployment of WP7

I have developed the Hello World Android application using Eclipse. I can run the application in the android emulator through this eclipse. But i want to run the apk files using Android emulator without opening the Eclipse(like WP7 xap files are running through Application Deployment Software without opening the VisualStudio). How to do this?
I have used the following procedure.
Procedure to run the apk files in Android Emulator without opening the Eclipse:
Check your installed directory(ex: C:\Program Files (x86)\Android\android-sdk\tools), whether it has the adb.exe or not).
If not present in this folder, then download the attachment here, extract the zip files. You will get adb files, copy and paste those three files inside tools folder
Run AVD manager from C:\Program Files (x86)\Android\android-sdk and start the Android Emulator.
Copy and paste the apk file inside the C:\Program Files (x86)\Android\android-sdk\tools
Go to Start -> Run -> cmd
Type cd “C:\Program Files (x86)\Android\android-sdk\tools”
Type adb install example.apk
After getting success command
Go to Application icon in Android emulator, we can see the your application
Thank you.