Hi chiragdesai,
We have tried to set the static IP using an ethernet application (ethernet.apk) provided by NXP and we are able to set the static IP. It does not require root privileges. We have tried with "userdebug" as well as "user" build variant i.e. we have built the Android source with below commands.
- For user build-variant
- source build/envsetup.sh
- lunch evk_8mm-user
- make -j4
- For userdebug build-variant
- source build/envsetup.sh
- lunch evk_8mm-userdebug
- make -j4
So, the root privileges are not required to set the static IP using the ethernet application for both the build variants.
We have used Android Version 9.0.0.2.3.0. We are using the fsl_imx_demo ethernet application to set the static IP. (${ANDROID_SOURCE}/vendor/nxp-opensource/fsl_imx_demo/Ethernet)
Are you using the same ethernet application?
Can you please share the apk screenshot while setting the IP address? Are there any permissions or root accessed asked in GUI? If yes please share the screenshot of the same.
Regards,
Shivani