How to write a file inside system/etc/wifi/wpa_supplicant.conf file using android program?
问题 I am working on wifi related app, which takes the user giving username password and need to write(edit/append)in a file which is located in system/etc/wifi/ path. I searched in stackoverflow and got some answers and then tried but there is no luck. This is rooted device. I did remount and su too. I can able to read the same file. I placed all the permissions in manifest too. What I missed? try { String[] command = new String[]{"/system/bin/ls", "-l", "/system/etc/wifi/wpa_supplicant.conf" };