Fix USB mount issue after GOTA upgrade
After upgrading GOTA, the Netlink buffer size was too small to receive all uevents, resulting in the "NetlinkListener: recvmsg failed (No buffer space available)" error and increasing the chance of USB mount failure. Increased the Netlink buffer size to resolve this issue.
Test Steps:
1. Upgrade with GOTA.
2. Reboot the system with the USB connected.
3. Verify that the USB device is detected correctly.
Bug:355586244
TEST: NA
Change-Id: Ic2e01a44025868c1b2c0c72b9d3091bb2a356be2
diff --git a/NetlinkManager.cpp b/NetlinkManager.cpp
index 56d9df6..ee0c2f8 100644
--- a/NetlinkManager.cpp
+++ b/NetlinkManager.cpp
@@ -46,7 +46,7 @@
int NetlinkManager::start() {
struct sockaddr_nl nladdr;
- int sz = 64 * 1024;
+ int sz = 256 * 1024;
int on = 1;
memset(&nladdr, 0, sizeof(nladdr));