I'm trying to run my app with Gmail Login on genymotion emulator. But I keep getting a Failed to find DRM plugin error. I have added the ARM translation zip to the emulator and gApps for the given device. The app runs perfectly on real devices(HTC desire 500 and a Nexus 5). The emulator is a Nexus 5 with Lollipop 5.1.
02-20 05:27:13.292 1693-2186/? E/Drm: Failed to find drm plugin
02-20 05:27:13.292 3684-3868/? W/DG.WV: Widevine DRM not supported on this device
02-20 05:27:13.292 3684-3868/? W/DG.WV: android.media.UnsupportedSchemeException: Failed to instantiate drm object.
02-20 05:27:13.292 3684-3868/? W/DG.WV: at android.media.MediaDrm.native_setup(Native Method)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at android.media.MediaDrm.<init>(MediaDrm.java:180)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at com.google.android.gms.droidguard.q.run(SourceFile:99)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-20 05:27:13.292 3684-3868/? W/DG.WV: at java.lang.Thread.run(Thread.java:818)
02-20 05:27:13.300 2686-3863/? V/BaseAuthAsyncOperation: access token request successful
02-20 05:27:13.301 3684-3735/? I/GoogleURLConnFactory: Using platform SSLCertificateSocketFactory
02-20 05:27:13.742 3471-3471/? I/adfjksf: Status{statusCode=INTERNAL_ERROR, resolution=null}
02-20 05:27:13.814 3471-3492/? W/EGL_emulation: eglSurfaceAttrib not implemented
02-20 05:27:13.814 3471-3492/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xf3ee7840, error=EGL_SUCCESS
02-20 05:27:14.837 2279-3867/? W/GLSUser: [AppCertManager] IOException while requesting key:
DRM is not supported in emulators as the hardware is not capable of that . You can check the availability of drm by installing Drm info application and run it in the emulator. Please find the link https://play.google.com/store/apps/details?id=com.androidfung.drminfo
Related
I have an application where sometimes Bluetooth channels are crashing from OS layer and then Bluetooth channel not start working again until phone rebooted. As its a OS layer crash I can't detect/handle it from my application. Here is the crash:
02-20 05:32:45.751: I/BluetoothServiceJni(20779): SOCK FLAG = 3 ***********************
02-20 05:32:45.751: E/BluetoothServiceJni(20779): Socket listen failed: 2
02-20 05:32:45.751: E/BluetoothAdapterService(1918354448)(20779): Failed to create socket channel
02-20 05:32:45.751: E/BluetoothSocketThread(762): Failed to listen for Bluetooth server socket connect.
02-20 05:32:45.751: E/BluetoothSocketThread(762): java.io.IOException: Error: -1
02-20 05:32:45.751: E/BluetoothSocketThread(762): at android.bluetooth.BluetoothAdapter.createNewRfcommSocketAndRecord(BluetoothAdapter.java:1245)
02-20 05:32:45.751: E/BluetoothSocketThread(762): at android.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(BluetoothAdapter.java:1161)
02-20 05:32:45.751: E/BluetoothSocketThread(762): at com.google.glass.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(BluetoothAdapter.java:148)
02-20 05:32:45.751: E/BluetoothSocketThread(762): at com.google.glass.bluetooth.companion.BluetoothSocketThread.runInternally(BluetoothSocketThread.java:67)
02-20 05:32:45.751: E/BluetoothSocketThread(762): at com.google.glass.bluetooth.companion.CompanionServerThread.run(CompanionServerThread.java:61)
02-20 05:32:45.761: W/BluetoothAdapter(762): getBluetoothService() called with no BluetoothManagerCallback
My question, is there any way to detect Bluetooth channel OS related crash from my applicaiton.
Is it possible to detect the crash using fabric crashlytics native support or anything else?
I have an android emulator with Marshmallow and Google Apis.
For some reason the Google Play Services got stuck in release 8.1.85 and it doesn't get updated.
My app uses the 8.3 release in Android Studio Gradle:
compile 'com.google.android.gms:play-services:8.3.0'
When the app starts it detects it is out of date so the "update dialog" appears. Clicking on update it does nothing. I get this log:
12-21 12:21:46.369 3516-3516/app.pack.com W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8185470
12-21 12:21:46.548 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:46.548 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xabff10c0, error=EGL_SUCCESS
12-21 12:21:46.685 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:46.686 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3f09320, error=EGL_SUCCESS
12-21 12:21:47.065 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:47.065 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3f3f240, error=EGL_SUCCESS
12-21 12:21:50.302 3516-3541/app.pack.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab7980b0
12-21 12:21:56.326 3516-3516/app.pack.com E/SettingsRedirect: Can't redirect to app settings for Google Play services
12-21 12:21:56.333 3516-3541/app.pack.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab796d70
12-21 12:21:56.339 3516-3541/app.pack.com D/OpenGLRenderer: endAllStagingAnimators on 0xa19fa980 (RippleDrawable) with handle 0xb12c9ac0
12-21 12:21:56.366 3516-3516/app.pack.com W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8185470
12-21 12:21:56.432 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:56.432 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xad71b0c0, error=EGL_SUCCESS
12-21 12:21:56.793 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:56.793 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3f3f920, error=EGL_SUCCESS
12-21 12:22:00.027 3516-3541/app.pack.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab798e40
The solution I've tried for this issue before is to change:
compile 'com.google.android.gms:play-services:8.3.0'
to
compile 'com.google.android.gms:play-services:7.+'
Sometimes, what is reflected on the gradle is not the actual version and by putting + the app will automatically use the latest version available.
Here is solution: using AVD image with build-in Google Play Services. It will enable you to use Google Services including Google Play. Also you will be able update it without re-creating AVD image.
Open AVD manager and choose create new device. You should use device definition with play store icon.
Then choose system image for it. You should choose one with Google Play and NOT with Google API.
Then launch new device.
You can update Play Services as shown on screenshot, or manually on device..
I am encountering problems developing small apk to use with my ip camera. I am able to play test video from apple (http://devimages.apple.com/iphone/samples/bipbop/gear4/prog_index.m3u8), but I am unable to play .m3u8 from my cam.
The adress for file is ip_adress/web/list.m3u8 and i can reach it in chrome without authentication. List.m3u8 looks like this:
EXTM3U
EXT-X-TARGETDURATION:2
EXT-X-MEDIA-SEQUENCE:1581
EXTINF:2,
HLS-0001581.ts
EXTINF:2,
HLS-0001582.ts
EXTINF:2,
HLS-0001583.ts
From what i understand, error "can't play that video" is coming not from m3u8 but from .ts files. Is that correct? What can i do to play .ts files in my apk? Im using android 4.1.2 and MPEG-2 TS is supported.
Has anyone have an idea whats wrong?
01-05 04:19:15.223: E/Trace(16138): error opening trace file: No such file or directory (2)
01-05 04:19:15.223: D/ActivityThread(16138): setTargetHeapUtilization:0.25
01-05 04:19:15.223: D/ActivityThread(16138): setTargetHeapIdealFree:8388608
01-05 04:19:15.223: D/ActivityThread(16138): setTargetHeapConcurrentStart:2097152
01-05 04:19:17.153: D/libEGL(16138): loaded /system/lib/egl/libEGL_adreno200.so
01-05 04:19:17.303: D/libEGL(16138): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
01-05 04:19:17.303: D/libEGL(16138): loaded /system/lib/egl/libGLESv2_adreno200.so
01-05 04:19:17.303: I/Adreno200-EGL(16138): <qeglDrvAPI_eglInitialize:299>: EGL 1.4QUALCOMMbuild(Merge)
01-05 04:19:17.303: I/Adreno200-EGL(16138): Build Date: 07/09/13 Tue
01-05 04:19:17.303: I/Adreno200-EGL(16138): Local Branch: AU_41
01-05 04:19:17.303: I/Adreno200-EGL(16138): Remote Branch:
01-05 04:19:17.303: I/Adreno200-EGL(16138): Local Patches:
01-05 04:19:17.303: I/Adreno200-EGL(16138): Reconstruct Branch:
01-05 04:19:17.593: D/OpenGLRenderer(16138): Enabling debug mode 0
01-05 04:19:17.613: E/MediaPlayer(16138): Uri is <URL suppressed>
01-05 04:19:17.613: D/MediaPlayer(16138): Couldn't open file on client side, trying server side
01-05 04:19:17.623: I/Choreographer(16138): Skipped 37 frames! The application may be doing too much work on its main thread.
01-05 04:19:17.983: D/MediaPlayer(16138): getMetadata
01-05 04:19:17.983: D/MediaPlayer(16138): start() mUri is <URL suppressed>
01-05 04:19:18.083: E/MediaPlayer(16138): error (1, -1007)
01-05 04:19:18.083: E/MediaPlayer(16138): Error (1,-1007)
01-05 04:19:18.083: D/VideoView(16138): Error: 1,-1007
It says that the file is not there - files are in the same place as the playlist (ip/web/). I am able to "catch" them in chrome directly. The video codec is H264 MPEG-4 AVC, resolution is 640x352.
Camera webpage, gets the list like that:
img2345.src = "/list.m3u8?" + (new Date()).getTime();
Error -1007 is MEDIA_ERROR_MALFORMED.
Android supports only the Baseline profile of H.264 AVC. If your encoding doesn't use the Baseline profile it might not be able to play it.
To check the encoding take on of the .ts segments and look at it with ffprobe or MediaInfo or similar and check the profile.
Android Supported Media Formats
MediaInfo
Friends
I am facing this issue since so long but i am able to get any kind of solution to get working camera in emulator. I have gone through all the answer of the SO but none helped me uptill now.
If i create any emulator with any api but in none of my emulator camera application does not work. So i am not able to test any of the application which contains camera functionality. I guess may be its happening because of the hardware configuration of my system. But i am not sure about it.
I do not know why this issue occurs. Please help me to solve and find out the reason for the issue.
Here is the error which i get whenever i starts camera in emulator.
12-21 00:04:58.100: E/CameraService(55): CameraService::connect X (pid 2604) rejected (invalid cameraId 0).
12-21 00:04:58.110: W/CameraBase(2604): An error occurred while connecting to camera: 0
12-21 00:04:58.110: E/CameraHolder(2604): fail to connect Camera
12-21 00:04:58.110: E/CameraHolder(2604): java.lang.RuntimeException: Fail to connect to camera service
12-21 00:04:58.110: E/CameraHolder(2604): at android.hardware.Camera.native_setup(Native Method)
12-21 00:04:58.110: E/CameraHolder(2604): at android.hardware.Camera.<init>(Camera.java:350)
12-21 00:04:58.110: E/CameraHolder(2604): at android.hardware.Camera.open(Camera.java:309)
12-21 00:04:58.110: E/CameraHolder(2604): at com.android.camera.CameraHolder.open(CameraHolder.java:131)
12-21 00:04:58.110: E/CameraHolder(2604): at com.android.camera.Util.openCamera(Util.java:267)
12-21 00:04:58.110: E/CameraHolder(2604): at com.android.camera.Camera$4.run(Camera.java:1100)
12-21 00:04:58.110: E/CameraHolder(2604): at java.lang.Thread.run(Thread.java:841)
12-21 00:04:58.110: W/dalvikvm(2604): threadid=11: thread exiting with uncaught exception (group=0xb4a29b90)
12-21 00:04:58.120: E/AndroidRuntime(2604): FATAL EXCEPTION: Thread-117
12-21 00:04:58.120: E/AndroidRuntime(2604): Process: com.android.camera, PID: 2604
12-21 00:04:58.120: E/AndroidRuntime(2604): java.lang.RuntimeException: openCamera failed
12-21 00:04:58.120: E/AndroidRuntime(2604): at com.android.camera.Util.openCamera(Util.java:272)
12-21 00:04:58.120: E/AndroidRuntime(2604): at com.android.camera.Camera$4.run(Camera.java:1100)
12-21 00:04:58.120: E/AndroidRuntime(2604): at java.lang.Thread.run(Thread.java:841)
12-21 00:04:58.120: E/AndroidRuntime(2604): Caused by: com.android.camera.CameraHardwareException: java.lang.RuntimeException: Fail to connect to camera service
12-21 00:04:58.120: E/AndroidRuntime(2604): at com.android.camera.CameraHolder.open(CameraHolder.java:135)
12-21 00:04:58.120: E/AndroidRuntime(2604): at com.android.camera.Util.openCamera(Util.java:267)
12-21 00:04:58.120: E/AndroidRuntime(2604): ... 2 more
12-21 00:04:58.120: E/AndroidRuntime(2604): Caused by: java.lang.RuntimeException: Fail to connect to camera service
12-21 00:04:58.120: E/AndroidRuntime(2604): at android.hardware.Camera.native_setup(Native Method)
12-21 00:04:58.120: E/AndroidRuntime(2604): at android.hardware.Camera.<init>(Camera.java:350)
12-21 00:04:58.120: E/AndroidRuntime(2604): at android.hardware.Camera.open(Camera.java:309)
12-21 00:04:58.120: E/AndroidRuntime(2604): at com.android.camera.CameraHolder.open(CameraHolder.java:131)
12-21 00:04:58.120: E/AndroidRuntime(2604): ... 3 more
Below are the options which i get while i am trying to edit emulator.
Thanks.
I have resolved my issue by changing the emulators "Back Camera" property to Emulated as shown in screenshot.
Open Tools->Android->AVD Manager then click edit for your virtual device.Click Show Advanced Settings on your virtual device configuration window.Then camera settings field is turned on,select Emulated Front and Back.That is it.
There is no declaration about Camera in limitation of Emulator in doc.
You can Enable camera in Emulator.But emulator wont show a realtime camera regardless.
As of Android SDK version 14, the emulator supports webcams to simulate a camera:
General notes - Added webcam support to Android 4.0 or later platforms
to emulate rear-facing cameras when one webcam is present, and to
emulate both rear-facing and front-facing cameras when two webcams are
present. Webcam suport is for Windows and Linux only. Mac support will
come in a later release.
I'm using Android Studio 3.1.1 in ubuntu 16.04 and had the same issue.
So after couple of days googling, finally solved my problem by myself.
The Solution was:
Edit the AVD and set the Emulated Performance/Graphics from Automatic to Software - GLES 1.1.
Changed the SD Card size to 256 MB.
Set only one of camera (e.g. Front) to webcam0 and other one to none or emulated.
Hope this helps others with the same problem.
JUST DO THIS
use emulated in both Front and back and then chage sdcard size
From the android documentation:
Emulator Limitations
No support for camera/video capture
In other words, no, you cannot access or preview the camera in the emulator.
I am trying to run a simple OpenGL program in Android. I am running this in an Android 4.1 emulator. I switched on its GPU emulation and it worked fine yesterday. When I ran that today, initially it was hanging saying, OpenGL taking time to render - Wait or Close dialog box. After few runs again it was crashing saying
E/EGL_emulation(2637): Failed to establish connection with the host
followed by
11-30 11:48:10.787: E/AndroidRuntime(2637): FATAL EXCEPTION: main
11-30 11:48:10.787: E/AndroidRuntime(2637): java.lang.IllegalArgumentException: eglChooseConfig failed EGL_NOT_INITIALIZED
11-30 11:48:10.787: E/AndroidRuntime(2637): at android.view.HardwareRenderer$GlRenderer.chooseEglConfig(HardwareRenderer.java:852)
11-30 11:48:10.787: E/AndroidRuntime(2637): at android.view.HardwareRenderer$GlRenderer.initializeEgl(HardwareRenderer.java:804)
11-30 11:48:10.787: E/AndroidRuntime(2637): at android.view.HardwareRenderer$GlRenderer.initialize(HardwareRenderer.java:747)
11-30 11:48:10.787: E/AndroidRuntime(2637): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1505)
11-30 11:48:10.787: E/AndroidRuntime(2637): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
11-30 11:48:10.787: E/AndroidRuntime(2637): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4212)
I guess the emulator is not able to take control of the GPU of the system, so how do I avoid this error? How do I rectify this problem?
Thanks in advance. :)
This happens to me when my computer came out standby. Restart your virtual device.
I was having the same problem in my Genymotion emulator while running a webview based application,I have restarted the emulator and it worked fine