Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to emulate perfectly a OnePlus device?

Tags:

I'm trying to debug a problem that seems to be happening only on OnePlus devices, unfortunately buying this device is not an option for me, so I've been looking on Google how to emulate an OnePlus device but without any success :(

Is there any way I can reproduce the hardware specs and software characteristics on a GOOD android emulator??

like image 281
Gabcvit Avatar asked Sep 14 '16 08:09

Gabcvit


People also ask

Can you emulate Android with Android Studio?

The Android Emulator enables you to test your app on many different devices, virtually. The emulator comes with Android Studio by default, so you shouldn't have to manually install it. The basic workflow with the emulator goes as follows: Verify that you have the system requirements.

What is the emulated device for Android?

An Android Virtual Device (AVD) is a configuration that defines the characteristics of an Android phone, tablet, Wear OS, Android TV, or Automotive OS device that you want to simulate in the Android Emulator. The Device Manager is an interface you can launch from Android Studio that helps you create and manage AVDs.


2 Answers

Short answer: No. You can not run a Cyanogen OS device on the Android Studio emulators. However, there is a workaround where you can make a oneplus one clone that works on android:

  • Click on the “Run ‘app’” button
  • In the dialog, click the button in the bottom left corner with the text “Create New Virtual Device”
  • Click the button with the text “New Hardware Profile” in the bottom left corner
  • Enter the specifications and the name (Some examples: OnePlus 1 specifications, OnePlus 2 specifications, and OnePlus 3 specifications)
  • Click Finish
  • Click Next
  • Choose the system image (It will show a dialog, if doesn’t then skip this step)
  • Click Next
  • Choose your preferences
  • Click Finish

Hope It Helps! Good Luck!

like image 123
Shreshth Kharbanda Avatar answered Sep 24 '22 05:09

Shreshth Kharbanda


There's no way to perfectly emulate any phone. Running Nexus 5 emulator would bring you a 'device' with some proper values like screen coordinates or Android system version, but it won't make you sure that if it works on an emulator of Nexus 5, it would work also on the real device.

As I know, OnePlus is using Cyanogen OS (so it's not the same as you would find on Nexuses or Samsung devices), so one opportunity is to find a cheaper option phone with this custom Android system like Willey Fox brand devices.

Also, check your app on Genymotion emulator - it also uses a custom Android system based on CyanogenMod, but as you already know, the best way is to check it on a real device.

Hope it will help

like image 23
piotrek1543 Avatar answered Sep 26 '22 05:09

piotrek1543