OnePlus 6T Android Emulator Screen Configuration Hardware Profile - android-emulator

Has anyone been able to properly setup OnePlust 6T android emulator with regards to the screen profile?
I set it up according to the official specs, 6.41" & 2340 x 1080:
But the emulator doesn't reflect the screen of the actual device; see below:

After some trial & error, it seems that the emulator's resolution of 2643 x 1220 reflects the actual device.

Related

Android studio error - Cannot read property 'update' of undefined

Emulator error
emulator: INFO: QtLogger.cpp:68: Critical: Uncaught TypeError: Cannot read property 'update' of undefined (qrc:/html/js/location-mock-web-channel.js:130, (null))
If you're trying to build your app to an emulated Android device, it might need to be cold-booted. Go to Tools -> AVD Manager, and on the Virtual Device you're trying to use, click the drop-down arrow to the far right and select "Cold Boot Now".
Give the emulator a few moments to start, and if it does so without error, try building your app again and see if it now loads properly.
I Spent 4 to 5 HOURS to solve this issues and tried my possible solution, but no Luck, but FINALLY, I did it from myself, So may be it will help anybody in future.
What i did :
i Changed My Emulator Targeting Hardware/Phone From Pixels to Nexus 5x (Not Any Pixel hardware/Phone worked for me.
i Changed System Image From R (Api Level 30) to Q (Api Level 29). And its Done!!
i am attaching some reference screenshots to better understand.
Selecting Hardware Image
Selecting System Image, Under x86 Image Tab
Final Result, After Emulator Created Sucessfully
There are times when i also suffer from the same problem. Cold Reboot has always worked for me. Go to your AVD manager then select the device you have to reboot. Then click on the drop down icon and select cold reboot. Wait for a while your VD should work fine now. In case it doesn't create another VD that should do the trick.

The android emulator remains unlocked after I insert the pin code

Out of blue the android emulator with google play services API 27 did not unlock its screen. After I insert the password on Mac Mojave I get back the lock screen instead of accessing to the device. I try to swipe up but does not work.
I tried without success to uninstall the emulator, to wipe data, as I found in this other post My Emulator won't unlock. Is this a known bug? I cannot find official google list where people complain about this issue, so I am wondering what I did wrong. I have also tried to activate the camera, but does not work as suggested in the above mentioned post.
I expect that when I insert the just password the emulator is unlocked, the just password is 0000 and I do not get a wrong pin message, but a black screen for 800 milliseconds and then the lock screen with some notification.
Can you try wiping the data and reboot. Or try creating a new emulator with Nexus5X with Android28 or other.
When you try to start the emulator from Android Studio, in the AVD manager, select the drop down and Wipe Data.

Running google-vr unity daydream app on google pixel

Im trying to run the sample app provided in the daydream page on the google pixel phone.
1) I chnaged the build settings to android.
2) Went to player settings enabled Virtual reality support and selected google daydream as the platform.
3) I changed the Minumum API to API level 24.
4) I added the folder containing my adb to the path variable in windows.
5) I also set the path of the android SDk.
6) I enabled USB debuggin on Pixel
However when I run my app , I get the following errors:
Device daydream not supported in Editor Mode. Please run on target device.
And..
Failed to read from controller emulator app event socket.
Verify that the controller emulator app is running.
build the apk and start it on your device. build and play requires adb.
As I suppouse, you want to DEBUG your Daydream app on your Programming Environment (Unity in this case).
Note:This solution allows you to debug on your PC but you'll need one Pixel Phone connected to your PC, and one Daydream Controller.
First of all I recommend you to download the samples provided by Google on Github if you have not done it yet:
https://github.com/googlevr/gvr-unity-sdk/releases
When you load any scene you'll see that the Daydream basic set is composed for a hierarchy like:
The two selected components are key for your porpouse cause if you want to debug Daydream from your PC you'll need to "link" your daydream controller with InstantPreview App. Instant preview will downloaded instantly on your phone if you got in your scene the "GvrInstantPreviewMain".
InstanPreview Google Info: https://developers.google.com/vr/develop/unity/instant-preview
When the app has been opened, can happen 3 things on your pixel phone:
Everything works as it should.
Daydream Instant Preview infom to correct the device by USB.
Kind of Grey screen with some text.
If you're on 2.
This seems to happen when your Unity Project is desynchronized from your phone and you'll see something like:
Close InstantPreviewApplication on your phone, close your unity project (remember to save your progress), and open again your unity project. That has almost always solved me.
If you're on 3.
This seems to happens when instan preview is waiting for Unity Play Mode.
You only need to press Play on you Unity Poject.
Remember to press (and mantain) synchronize button on your Daydream controller if you can move the headset camera but can't find your controller reticle.
This works for me.
I also append my own Unity project with this scheme that works bought for Daydream and GearVR in case helps someone else to test my solution:
https://github.com/ls29322/VR_GalleryApp

GoogleTV Builtin skin missing

I developed an app on GoogleTV some time ago using API Level12 Emulater.
Just updated by ADT to ADT 21.0 and now if i try to create new AVD , I got following options
Device
Target
CPU
Skin with CheckBox
I can select target and choose the device and it works okay for mobile devices.
If I select
Target - GoogleTV Addon , In device section i don't get any compatible device and i can;
choose skin of 720p or 1080p. ( Previously option was there to choose skin for GoogleTV)
Please provide me, how i can define GoogleTv device with GoogleTV Addon as target.
You need to first create a “Device Definition” and then use that for a new “Android Virtual Device”. The device definition needs to have the right screen resolution and hardware specs configured: DPad, landscape orientation, large screen size and xhdpi density. I would recommend having both a 720p and a 1080p device configured for testing your layouts and bitmap resources.
Here is a link that has the steps to follow: http://waynemay.com/installing-and-configuring-the-google-tv-emulator/

Captivate's ID coming up as "?????????" in manual emulator selector in Android Eclipse Manager

Solution: Why is Eclipse's Android Device Chooser not showing my Android device?
THis is getting annoying. My device shows up in eclipse on all
platforms.. Except when I am on my Ubuntu laptop.. when I "run
configurations" with it set to Manual.. I can see that there is an
Emmulator running that I can Install the App to.
Problem is, the Emulator is a pile of horse crap when it comes to
testing on real devices like my Samsung Captivate.
When the Captivate is plugged in via USB.. it shows via ICON, except
the ID is set to ??????????? and nothing else seems to be registering.
I can highlight it, but I can't launch it.
The captivate I am using is Rooted and running the LagFix Kernal..
However this has never hindered me on Windows or OSX.
Help.. I am trying to go completely Linux.. if it kills me.
See screenshot below: http://img265.imageshack.us/i/sdkbugeclipse.png/
UPDATE: Device is showing in the manager even when not connected?!?!
This has to be some weird Eclipse bug.. PLEASE HELP!
Solution (in case you missed my edit) need to add the correct Samsung Device ID when using the SDK with Ubuntu: link