Status Update
Comments
ja...@google.com <ja...@google.com> #2
It looks like you are raising an issue as an Android user, rather than an Android Open Source Developer.
For user support, please see the
For Pixel phone support, please see the
Support for other devices is provided by the device manufacturers or by the carriers selling those devices,
ch...@verizonconnect.com <ch...@verizonconnect.com> #3
Added the scree recording named "Camera_crash_recording.mov"
ch...@verizonconnect.com <ch...@verizonconnect.com> #4
Expected Result : Camera should take the picture and attached there. observed Result : Camera crashed while click on the "Capture".
ja...@google.com <ja...@google.com> #5
Thank you for the update.
Note: Please share the folder to
The google drive link is not accessible.
ch...@verizonconnect.com <ch...@verizonconnect.com> #6
ja...@google.com <ja...@google.com> #7
Unfortunately the folder is still not accessible.
Just to be sure:
- Right click the folder
- click Share
- add
android-bugreport@google.com - click done
- right click folder
- click Get Link
- click Copy Link
And try pasting the link here. Thank you.
ch...@verizonconnect.com <ch...@verizonconnect.com> #8
--------------------------------------------------------------------------------------------------------------------------------------------
PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
VERIZON CONNECT CONFIDENTIALITY NOTICE
This message is intended for the addressee only and may contain confidential and/or privileged material. Any review, re-transmission, dissemination, reliance upon or other use of this information by persons or entities other than the addressee is prohibited. If you receive this in error, please contact the sender and delete this message. Thank you.
ja...@google.com <ja...@google.com> #9
Still no access.
ch...@verizonconnect.com <ch...@verizonconnect.com> #10
--------------------------------------------------------------------------------------------------------------------------------------------
PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
VERIZON CONNECT CONFIDENTIALITY NOTICE
This message is intended for the addressee only and may contain confidential and/or privileged material. Any review, re-transmission, dissemination, reliance upon or other use of this information by persons or entities other than the addressee is prohibited. If you receive this in error, please contact the sender and delete this message. Thank you.
ch...@verizonconnect.com <ch...@verizonconnect.com> #11
Hi, If you are still not able to get the link accessible from your end. Please try the below link?
this the Google's play store link. you can download the app and follow the steps shown on the shared video.
ja...@google.com <ja...@google.com> #12
Unfortunately, the the google drive link is still not accessible.
Just to be sure, within Google Drive:
- Right click the folder you want to share with us
- click Share
- add
android-bugreport@google.com - click done
- right click folder
- click Get Link
- click Copy Link
Also, unfortunately we cannot follow the reproduction steps using the public Play Store app as "You must be a Fleetmatics WORK customer to use this app."
ch...@verizonconnect.com <ch...@verizonconnect.com> #13
ja...@google.com <ja...@google.com> #14
Hello. Thank you for the update. I was able to successfully view the link.
- username and password are required to proceed forward. Do you have an approved test account?
If you plan to post the info, please do so in a text document and Note: Please upload to google drive and share the folder to android-bugreport@google.com, then share the link here.
for privacy reasons.
Thank you.
ch...@verizonconnect.com <ch...@verizonconnect.com> #15
-Please find the docs regarding step to reproduce the bug.The attached document contain username and password too.
-Video to produce the bug.
ch...@verizonconnect.com <ch...@verizonconnect.com> #16
Please find attached the crash report from a Pixel 5 device with Android 11 installed which was created after the app crashed when trying to add a picture through Work Classic.
ch...@verizonconnect.com <ch...@verizonconnect.com> #17
02-04 11:33:04.508 E/AndroidRuntime(20206): FATAL EXCEPTION: main
02-04 11:33:04.508 E/AndroidRuntime(20206): Process: c2f.pkg.c2f_fw, PID: 20206
02-04 11:33:04.508 E/AndroidRuntime(20206): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {c2f.pkg.c2f_fw/c2f.pkg.c2f_fw.C2F_AppActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.ActivityThread.deliverResults(ActivityThread.java:5015)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.ActivityThread.handleSendResult(ActivityThread.java:5056)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.os.Handler.dispatchMessage(Handler.java:106)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.os.Looper.loop(Looper.java:223)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.ActivityThread.main(ActivityThread.java:7656)
02-04 11:33:04.508 E/AndroidRuntime(20206): at java.lang.reflect.Method.invoke(Native Method)
02-04 11:33:04.508 E/AndroidRuntime(20206): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
02-04 11:33:04.508 E/AndroidRuntime(20206): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
02-04 11:33:04.508 E/AndroidRuntime(20206): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:514)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:138)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:52)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.database.CursorWrapper.getString(CursorWrapper.java:141)
02-04 11:33:04.508 E/AndroidRuntime(20206): at com.foregroundcameraplugin.ForegroundCameraLauncher.getRealPathFromURI(ForegroundCameraLauncher.java:376)
02-04 11:33:04.508 E/AndroidRuntime(20206): at com.foregroundcameraplugin.ForegroundCameraLauncher.onActivityResult(ForegroundCameraLauncher.java:228)
02-04 11:33:04.508 E/AndroidRuntime(20206): at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:148)
02-04 11:33:04.508 E/AndroidRuntime(20206): at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:348)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.Activity.dispatchActivityResult(Activity.java:8310)
02-04 11:33:04.508 E/AndroidRuntime(20206): at android.app.ActivityThread.deliverResults(ActivityThread.java:5008)
02-04 11:33:04.508 E/AndroidRuntime(20206): ... 11 more
ja...@google.com <ja...@google.com> #18
Thank you for the update.
Just to confirm, since I am unable to see the original code:
- What dependency implementation are you using for the camera? Is it
androidx.camera...
for example?
Thank you so much for all the info you have provided as well so far, we are getting closer to being able to route this to the correct team.
ch...@verizonconnect.com <ch...@verizonconnect.com> #19
Hi, We are using android.hardware.camera2.
ja...@google.com <ja...@google.com> #20
Have you tried implementing the
Taken from the Camera
Note: This page describes the Camera class, which has been deprecated. We recommend using the CameraX Jetpack library or, for specific use cases, the camera2, class. Both CameraX and Camera2 work on Android 5.0 (API level 21) and higher.
ch...@verizonconnect.com <ch...@verizonconnect.com> #21
Till date we have not decided to upgrade our library to CameraX not even any other libraries too . I debug the app and I found that after capturing the image from camera, we are not receiving the "Image-PAth" as a callback on Android-11 whereas Android-10 is perfectly fine. have a look the log below : this line have the issue.
FATAL EXCEPTION: main Process: c2f.pkg.c2f_fw, PID: 8197 java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {c2f.pkg.c2f_fw/c2f.pkg.c2f_fw.C2F_AppActivity}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 at android.app.ActivityThread.deliverResults(ActivityThread.java:5015) at android.app.ActivityThread.handleSendResult(ActivityThread.java:5056) at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 at android.database.AbstractCursor.checkPosition(AbstractCursor.java:514) at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:138) at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:52) at android.database.CursorWrapper.getString(CursorWrapper.java:141) at com.foregroundcameraplugin.ForegroundCameraLauncher.getRealPathFromURI(ForegroundCameraLauncher.java:376) at com.foregroundcameraplugin.ForegroundCameraLauncher.onActivityResult(ForegroundCameraLauncher.java:228) at org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:148) at org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:348) at android.app.Activity.dispatchActivityResult(Activity.java:8310) at android.app.ActivityThread.deliverResults(ActivityThread.java:5008) at android.app.ActivityThread.handleSendResult(ActivityThread.java:5056) at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
ch...@verizonconnect.com <ch...@verizonconnect.com> #22
ja...@google.com <ja...@google.com> #23
Thank you for reporting this issue. We’ve shared this with our product and engineering teams and will continue to provide updates as more information becomes available.
- It is possible more info will be needed, like sample code, in order to see exactly how things are working, but for now, it will be investigated as is.
Thank you.
ch...@verizonconnect.com <ch...@verizonconnect.com> #24
Crash on Pixel 3 Android Emulator API 30 . Here I am not able to capture Image as Camera object is null
D/CameraPreview: Error setting camera preview: Attempt to invoke virtual method 'void android.hardware.Camera.setPreviewDisplay(android.view.SurfaceHolder)' on a null object reference D/CameraPreview: Error starting camera preview: Attempt to invoke virtual method 'void android.hardware.Camera.setPreviewDisplay(android.view.SurfaceHolder)' on a null object reference V/FA: Inactivity, disconnecting from the service W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.hardware.Camera.autoFocus(android.hardware.Camera$AutoFocusCallback)' on a null object reference W/System.err: at com.foregroundcameraplugin.CameraActivity$2.onClick(CameraActivity.java:139) W/System.err: at android.view.View.performClick(View.java:7448) W/System.err: at android.view.View.performClickInternal(View.java:7425) W/System.err: at android.view.View.access$3600(View.java:810) W/System.err: at android.view.View$PerformClick.run(View.java:28305) W/System.err: at android.os.Handler.handleCallback(Handler.java:938) W/System.err: at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err: at android.os.Looper.loop(Looper.java:223) W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7656) W/System.err: at java.lang.reflect.Method.invoke(Native Method) W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
ch...@verizonconnect.com <ch...@verizonconnect.com> #25
More information : Below method of file "ActivityThread.java" is throwing exception on Android-11 (API-30). As I debugged the same with "Android-10" all parameter are having same data while excuting this method.
private void deliverResults(ActivityClientRecord r, List<ResultInfo> results, String reason) { final int N = results.size(); for (int i=0; i<N; i++) { ResultInfo ri = results.get(i); try { if (ri.mData != null) { ri.mData.setExtrasClassLoader(r.activity.getClassLoader()); ri.mData.prepareToEnterProcess(); } if (DEBUG_RESULTS) Slog.v(TAG, "Delivering result to activity " + r + " : " + ri); r.activity.dispatchActivityResult(ri.mResultWho, ri.mRequestCode, ri.mResultCode, ri.mData, reason); } catch (Exception e) { // this is the place where Exception is caught on Android-11 if (!mInstrumentation.onException(r.activity, e)) { throw new RuntimeException( "Failure delivering result " + ri + " to activity " + r.intent.getComponent().toShortString() + ": " + e.toString(), e); } } } }
ja...@google.com <ja...@google.com> #26
Please provide the requested information to proceed further. Unfortunately the issue will be closed within 7 days if there is no further update.
ch...@verizonconnect.com <ch...@verizonconnect.com> #27
Hi,
Now we are receiving more cases from our customers regarding Android-11 crash . Listed below few of them with device make and model as well as Android OS version.

1. Mobile device details:
OS + Version: Android OS 11
 , Make and model: S21
, Carrier: Verizon.
- Mobile device details:
OS + Version: Android OS 11 ,
 Make and model: Samsung Galaxy S10
 , Carrier: Verizon.
3. Mobile device details:
OS + Version: Android os 11 , 
Make and model: Note 10
 , Carrier: Verizon.
Can we have a technical discussion with the team which are looking to this issue.We are ready to do code walk through as well as explain and debug the things in the code level.
ja...@google.com <ja...@google.com> #28
We’ve shared this with our product and engineering teams and will continue to provide updates as more information becomes available.
sa...@google.com <sa...@google.com>
sa...@google.com <sa...@google.com> #29
This seems to be an issue with the content URI you get delivered in the activity result; it's not guaranteed to have a real file path for you to access, and you shouldn't assume it does. The URI may be pointing to a file your app has no access to via the filesystem; you should use the URI itself to access the file data via a content resolver.
That said, since we don't know what your function com.foregroundcameraplugin.ForegroundCameraLauncher.getRealPathFromURI(ForegroundCameraLauncher.java:376)
does, I can't be sure if the above is relevant to you - but it certainly seems like you're trying to extract a file path from the URI, which doesn't exist.
ch...@verizonconnect.com <ch...@verizonconnect.com> #30
thanks for the update. I will be trying to implement the suggestion given by you. I will update the same here .
Description
My app is based on sencha touch and cordova. it's a hybrid app where We use camera to take a picture and attached it as a document. Recently one of our customer update his Android phone to Android-11 and tried to upload a doc using camera.while taking the picture the app crashed . As a developer when I tested the app on Android-Emulator Pixel2 and Pixel Xl-3 (API-30 and Android 11) its crashed. I tried to debug the but when app is crashed its disconnected from developer tools.
App can be found here :