android emulation with plain android SDK

Costas

Administrator
Staff member
1-

Java JRE must be installed

2-

made a new dir
c:\sdk

3-

extract the the tools.zip, so will be
c:\sdk\tools


declare environment variable
ANDROID_SDK_ROOT


to
c:\sdk

4-

fire up c:\sdk\tools\android.bat


Intel : check the needed 3 only, accept & download


5Dox8YA.png



needed to install (HAXM Installer)
C:\SDK\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe



if you are on AMD and API hasn't ARM image, you get the following error :

<blockquote style="padding-left: 30px;">

CPU acceleration status: Android Emulator requires an Intel processor with VT-x and NX support. Your CPU: 'AuthenticAMD'
x86 emulation currently requires hardware acceleration!

[/QUOTE]
<div style="padding-left: 30px;">ref
https://developer.android.com/studio/run/emulator-acceleration#vm-windows
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html</div><br>

gvm could not make it work,


AMD : only solution is to use an API has armeabi-v7a as :


NKUvya5.png



close & restart the android.bat

5-

go to Tools > Manage AVDs

for Intel use

vEUJhWh.png


for AMD use

f4KavBQ.png



once created, lives at
JavaScript:
C:\Users\%username%\.android

--


to install any APK

copy it to
C:\SDK\platform-tools

execute
JavaScript:
adb install apkname

//ex adb install opengapps-app-v16.apk


Install Google Play (only for Intelx86? or rooted?)
Download and install http://opengapps.org/app/opengapps-app-v16.apk. And select nano pack

More info http://opengapps.org/app/

src - https://stackoverflow.com/a/45896496

2017 - Installing the Google Play Store App (APK) on the Android Emulator
https://infosectrek.wordpress.com/2017/01/17/installing-the-google-play-store-app-apk-on-the-android-emulator/
JavaScript:
emulator.exe -avd dsfdf -writable-system

or use a Google Play ARM 64 (??)
https://androidsdkmanager.azurewebsites.net/GoogleAPIwithPlaystoreSystemImages

more
https://androidsdkmanager.azurewebsites.net/SDKPlatform

https://androidsdkmanager.azurewebsites.net/AndroidSystemImages

push files to an emulator

API24 - Cost about 4.5gb

JavaScript:
//src https://ostoday.org/other/your-question-how-do-i-view-logs-on-android-emulator.html

//shows all type logs for the current android system
adb logcat

//it will include date and time
adb logcat -v threadtime

//Store logs in logfile.txt
adb logcat -v threadtime > logfile.txt

//logging kernel messages
adb shell dmesg

--

Versus download the freeware bluestacks costs about 5gb


or old releases.

;)
 
Top