Fixed
Status Update
Comments
ja...@gmail.com <ja...@gmail.com> #2
What steps will reproduce the problem?
I can’t record screen using Media Projection API for my android app on Chrome OS (ver. 98.0.4758.51 (Platform version: 14388.27.0)) which is a fixed version.
The recording result is always black image.
Confirmation environment
Chromebook: Lenovo IdeaPad Flex550i Chromebook 82B80018JP
Chrome OS ver. 98.0.4758.51 (Platform version: 14388.27.0) (beta channel)
Android OS ver. 11
What is the expected behavior?
The entire screen of Chromebook can be recorded using the Media Projection API.
What went wrong?
The recording result is always black image.
In what version will it be fixed?
I can’t record screen using Media Projection API for my android app on Chrome OS (ver. 98.0.4758.51 (Platform version: 14388.27.0)) which is a fixed version.
The recording result is always black image.
Confirmation environment
Chromebook: Lenovo IdeaPad Flex550i Chromebook 82B80018JP
Chrome OS ver. 98.0.4758.51 (Platform version: 14388.27.0) (beta channel)
Android OS ver. 11
What is the expected behavior?
The entire screen of Chromebook can be recorded using the Media Projection API.
What went wrong?
The recording result is always black image.
In what version will it be fixed?
pu...@google.com <pu...@google.com>
pu...@google.com <pu...@google.com> #3
That version includes the feature, but to confirm: when your app requests a MediaProjection, you should see a permission dialog where you can preview/select the screen to share. In previous versions, the dialog was a text-only prompt.
Can you reproduce the black capture with the Media > MediaProjection activity of the ApiDemos APK?
Can you reproduce the black capture with the Media > MediaProjection activity of the ApiDemos APK?
he...@outlook.com <he...@outlook.com> #4
> That version includes the feature, but to confirm: when your app requests a MediaProjection, you should see a permission dialog where you can preview/select the screen to share. In previous versions, the dialog was a text-only prompt.
I made a sample using MediaProjection API and confirmed that permission dialog where you can preview / select the screen to share.
I will provide the sample.
This is the project link:https://drive.google.com/file/d/16mDbIpwW_J-rD4KPF7fWcuCYeVc7Ozim/view?usp=drivesdk
Please check the video to see how it was confirmed.
This is the operation.
1. Launch the ScreenCapture app
2. Allow storage access.
3. Press the START button to display the permissions dialog.
4. Press the SHARE button to start the screen capture and display the captured image.
5. It will continue to be saved as a jpeg file until you press the stop button.
6. Press the stop button to check the saved file.
Storage location
case Android OS ver. 9: Downloads folder
case Android OS ver. 11: Picture folder
◆Expected result
・ChromeOS ver. 97.0.4692.102, Android OS ver. 9
Video:「osver_9704692102_android9.webm」
The above video is the operation on Android 9 chromebook.
Please make it possible to capture the entire screen even on an Android 11 chromebook, as in the video above.
◆The following are both bad cases.
・ ChromeOS ver.97.0.4692.102, Android OS ver. 11
Video:「osver_9704692102_android11.webm」
I can only capture the screen of the Android app.
・ ChromeOS ver.98.0.475867 beta channel, Android OS ver. 11
Video:「osver_980475867_android11.webm」
I can't capture anything.
> Can you reproduce the black capture with the Media > MediaProjection activity of the ApiDemos APK?
I installed the below ApiDemos APK and checked the operation, but there was no corresponding function.
https://github.com/appium/appium/blob/master/sample-code/apps/ApiDemos-debug.apk
I reviewed the below source code of ApiDemos ’s MediaProjection API.
https://github.com/aosp-mirror/platform_development/blob/master/samples/ApiDemos/src/com/example/android/apis/media/projection/MediaProjectionDemo.java
I think the usage of MediaProjection API is wrong.
Android 10 and above requires the MediaProjection API to be used in the service.
The ApiDemos code wasn't using the service.
Therefore, it cannot be confirmed on the Chromebook(Android11).
Please tell me the correct sample.
Or, check out the sample source code we provided and tell us how to capture the entire screen on your Android 11 Chromebook.
The sample is in mediaprojectionsample.zip.
I made a sample using MediaProjection API and confirmed that permission dialog where you can preview / select the screen to share.
I will provide the sample.
This is the project link:
Please check the video to see how it was confirmed.
This is the operation.
1. Launch the ScreenCapture app
2. Allow storage access.
3. Press the START button to display the permissions dialog.
4. Press the SHARE button to start the screen capture and display the captured image.
5. It will continue to be saved as a jpeg file until you press the stop button.
6. Press the stop button to check the saved file.
Storage location
case Android OS ver. 9: Downloads folder
case Android OS ver. 11: Picture folder
◆Expected result
・ChromeOS ver. 97.0.4692.102, Android OS ver. 9
Video:「osver_9704692102_android9.webm」
The above video is the operation on Android 9 chromebook.
Please make it possible to capture the entire screen even on an Android 11 chromebook, as in the video above.
◆The following are both bad cases.
・ ChromeOS ver.97.0.4692.102, Android OS ver. 11
Video:「osver_9704692102_android11.webm」
I can only capture the screen of the Android app.
・ ChromeOS ver.98.0.475867 beta channel, Android OS ver. 11
Video:「osver_980475867_android11.webm」
I can't capture anything.
> Can you reproduce the black capture with the Media > MediaProjection activity of the ApiDemos APK?
I installed the below ApiDemos APK and checked the operation, but there was no corresponding function.
I reviewed the below source code of ApiDemos ’s MediaProjection API.
I think the usage of MediaProjection API is wrong.
Android 10 and above requires the MediaProjection API to be used in the service.
The ApiDemos code wasn't using the service.
Therefore, it cannot be confirmed on the Chromebook(Android11).
Please tell me the correct sample.
Or, check out the sample source code we provided and tell us how to capture the entire screen on your Android 11 Chromebook.
The sample is in mediaprojectionsample.zip.
ad...@google.com <ad...@google.com> #5
Please tell us about the progress of your response to this issue.
The Android 11 chrome book is on the market, so this issue is bothering users of our product.
Specifically, there is the problem that the Chromebook screen cannot be mirrored to some display in the education market.
Please resolve this issue as soon as possible.
The Android 11 chrome book is on the market, so this issue is bothering users of our product.
Specifically, there is the problem that the Chromebook screen cannot be mirrored to some display in the education market.
Please resolve this issue as soon as possible.
jr...@gmail.com <jr...@gmail.com> #6
+1, We can reproduced the problem in Android 11 based Chromebook. Has this problem been fixed? We tested the latest version 103 and it can still reproduce.
Model: Acer Spin CP713-2W
Chrome OS version: 103.0.5060.114
Model: Acer Spin CP713-2W
Chrome OS version: 103.0.5060.114
tj...@gmail.com <tj...@gmail.com> #7
(Sorry about the delay; lots of competing priorities.)
Thanks for the sample code. It appears our M98 fixes were partial in that they fixed the case where the virtual display is piped to an output surface for scanning out (which is what ApiDemos
does), but not to an ImageReader
or video encoder. The problem is that, on some devices, ARCVM allocates buffers with opaque metadata (DRM format modifier, e.g. tiled or compressed) that cannot be decoded in Android.
IIUC, Gralloc should guarantee linear RGBA_8888
for non-planar HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED
. Tao, does that sound right? More context in
yo...@google.com <yo...@google.com> #8
Is this expected to be fixed? Google Meet / Facebook Messenger seems to be able to screen record, but most of the more smaller apps are struggling with a black screen when recording.
ni...@gmail.com <ni...@gmail.com> #9
Yiwei know more about the gralloc question than me. @zz...@google.com, could you help answer the question in #7?
he...@outlook.com <he...@outlook.com> #10
(in related issue 259508084 #comment36 we had bisect it and found ag/16548851 may related, please help to take a look, thanks)
ps...@google.com <ps...@google.com> #11
Comment has been deleted.
mt...@gmail.com <mt...@gmail.com> #12
This issue may be related: https://issuetracker.google.com/issues/215402572
MadiaProjection API produces black screen on some ChromeOS / Chromebooks when called from inside an Android App.
MadiaProjection API produces black screen on some ChromeOS / Chromebooks when called from inside an Android App.
he...@outlook.com <he...@outlook.com> #13
Update: some fixes have been landed since R112-15348.0.0 and I confirmed apps like AnyDesk/ScreenShot X works correctly now. Let me know if there are still some other apps broken on this.
yo...@google.com <yo...@google.com> #14
Thank you very much for the update.
The app "Screen Mirroring for Roku" on Google Play is still broken on Chromebooks with Android 11.
More specific: ImageReader.OnImageAvailableListener->onImageAvailable(ImageReader reader) produces a black image which leads to a black screen displayed on the connected Roku device.
It does not matter if the app is in "phone", "tablet" or "resizable" window mode on the chromebook.
Here is a video. You will need a Roku device to reproduce the issue:https://www.dropbox.com/s/33fun08zes276e2/Mirroring_from_Chromebook_to_RokuStick__for_google_issuetracker.mov?dl=0
The app is available on Google Play as free or pro version. Both versions are affected:
Free:https://play.google.com/store/apps/details?id=de.twokit.screen.mirroring.app.roku
Pro:https://play.google.com/store/apps/details?id=de.twokit.screen.mirroring.app.roku.pro
I am not sure if AnyDesk/ScreenShot X use a different approach to capture the android screen.
Please note that the same app is working without any issues on Chromebooks with Android 9.
The app "Screen Mirroring for Roku" on Google Play is still broken on Chromebooks with Android 11.
More specific: ImageReader.OnImageAvailableListener->onImageAvailable(ImageReader reader) produces a black image which leads to a black screen displayed on the connected Roku device.
It does not matter if the app is in "phone", "tablet" or "resizable" window mode on the chromebook.
Here is a video. You will need a Roku device to reproduce the issue:
The app is available on Google Play as free or pro version. Both versions are affected:
Free:
Pro:
I am not sure if AnyDesk/ScreenShot X use a different approach to capture the android screen.
Please note that the same app is working without any issues on Chromebooks with Android 9.
Description
- Build Number: google/panther_beta/panther:VanillaIceCream/AP31.240322.018/11679535:user/release-keys
(Note: It is the build when sending this report. For exact build reference, please see the attached bugreport.)
What type of Android issue is this?
Calls / Voice / Mobile Network
When did this happen?
Apr 17, 2024 11:53 AM GMT-04:00
What steps would let us observe this issue?
1. Navigate to the Cellular Network Security page
2. Toggle on settings for requiring encryption
3. Hit the back button, either through the app or with the 3-button navigation
4. Enter the Cell network security page again
5. Marvel at the toggles having been reset to the off position
What did you expect to happen?
The toggles should remain on
What actually happened?
The toggles are always in the off position after leaving the cell Network security page.
How often has this happened?
Every time
What was the effect of this issue on your device usage, such as lost time or work?
Slight
Additional comments
The toggles persist in the "on" position if you leave the settings app and return without navigating away from the cell Network page, such as by hitting the "home" button.
Debugging information
Google Play services
com.google.android.gms
Version 241313039 (24.13.13 (190408-620944181))
System App (Bundled)
Android System WebView
com.google.android.webview
Version 635550032 (124.0.6355.0)
System App (Updated)
Network operator: T-Mobile
SIM operator: T-Mobile
Filed by Android Beta Feedback. Version (Updated): 2.41-betterbug.external_20240221_RC01 (DOGFOOD)
To learn more about our feedback process, please visit