Today I able to achieve running Openwrt on real Android Phone (Using OnePlus 9R Android 11). I tested below things
- Running openwrt on Android
- Using Wifi Hostapd of android and using bridge in Openwrt, using this anyone can connect to Wifi HostSpot and Openwrt will act as router for them (instead of Android Defualt network process) to be used as LAN
- Use usb ethernet directly in Openwrt to be used as WAN.
Story:
- I started running Android 14 on OnePlus 9R spends approx. 2-3 days and not able to root it (which is main requirnment).
- After that I tried running Android 13 on OnePlus 9R, and was easily able to root the phone.
- On Android 13 I was not able to use usb-host in qemu due to some issue of lib_usb_release (OTHER) and lib_usb_release(BUSY), what I see that when libusb try to lock usb, it is disabled and re-enabled again which again triggers lib_usb_release(BUSY).
- I nearly spent 4-5 days and broking whole phone software by pushing the wrong boot.img for rooting I nearly quit the idea of using usb ethernet directly on openwrt .
- But then I thought why not try Android 11. When I ran in then didn't get lib_usb_release issue.
- After spending a day, I able to identify how to use android hostapd to be triggered from CLI without dhcp server and then creating bridge. I can use wifi of android in QEMU
I had achieved what I wanted but still see some performance problems with network speed, like on iperf3 test from external system, speed is not going beyond 120 Mbps (but my wifi support 800 Mbps) which is due to utilization of 100% single core by iperf3 process.
Now I will focus my work towards tuning for speed