Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Serial console enabled Performance is impacted. To disable, check bootloader

Tags:

android

I recently created an Android emulator with Android version R. It showing an Android system notification

"Serial console enabled Performance is impacted. To disable, check bootloader"

Can someone explain, what this notification means?

enter image description here,

like image 257
Lins Louis Avatar asked Feb 25 '20 05:02

Lins Louis


People also ask

How do I fix serial console enabled?

I fixed this problem by updating my Android Emulator version to latest version 31.2. 7 at the time of writing. If you folks still have this problem, try updating it by going to Tools -> SDK Manager -> SDK Tools , tick Android Emulator and select OK. Now my emulator is running buttery smooth.

How do I disable serial console?

The serial console can be disabled for a specific VM or virtual machine scale set by disabling the boot diagnostics setting. Turn off boot diagnostics from the Azure portal to disable the serial console for the VM or the virtual machine scale set.


2 Answers

As because it's been more than 5 months since I posted this question and no valid answers so far, I'm sharing my findings.

  1. What is a Serial Console?

The serial console is a connection over the RS-232 or serial port connection that allows a person access to a computer or network device console. And a serial port is a serial communication interface through which information transfers in or out sequentially one bit at a time.

  1. Why needed to enable serial console in emulator?

By enabling serial console in android emulator, developers can test serial port based applications in emulator.

  1. Why is it related with bootloader?

To disable or enable serial console we need to change the android kernel configuration. For know more about changing kernel configurations Refer these links, http://bootloader.wikidot.com/linux:android:serial https://gist.github.com/yan12125/78a9004acb1bed5faf2ffd442163e2ef

In conclusion, With Serial console enabled in android emulator, the developer can use emulator to develop and test serial port based devices or hardware. If you want to disable serial console, you need to download kernel source code google provided https://gist.github.com/yan12125/78a9004acb1bed5faf2ffd442163e2ef

Then change the configuration , recompile and change kernel by running command

emulator -avd (avd_name) -kernel /path/to/goldfish/arch/x86/boot/bzImage -show-kernel 

Documentation available in the above link...

like image 165
Lins Louis Avatar answered Sep 17 '22 13:09

Lins Louis


I fixed this problem by updating my Android Emulator version to latest version 31.2.7 at the time of writing.

If you folks still have this problem, try updating it by going to Tools -> SDK Manager -> SDK Tools, tick Android Emulator and select OK.

Now my emulator is running buttery smooth.

like image 26
flamyoad Avatar answered Sep 18 '22 13:09

flamyoad