Hello All,
Greetings. I have just started explorling and learning to develop Android Applications. I have AM335x CPU Module and Development board that I recently purchased from MYIRTECH ( http://wwww.myirtech.com ) They have provided me with Kernel Source Code Android JB 4.2, RootFS and Uboot along with instructions to compile and load it to the NAND. Everything works fine except a few for which I am unable to get enough support from them and I finally landed here to seek some advise from experts.
Actually the Development baord has Ethernet Jack through which I can connect it to my LAN. When I asked them about changing the IP address, they suggested me to use the serial console (UART1) adb and use the IFCONFIG command to set the IP address. It works perfectly, but I actually want it to be changed from the android application. When I searched the internet, I learned about executing shell commands and I did something as indicated below, but it did not work out. I guess the application must not be having SU access. When I again asked them they suggested me to replace the SU binary with the binaries provided with Superuser.APK , use chmod in init.rc etc.....I did so, but ended up with no luck. I dont have any recompiled SU binaries that will allow me to execute shell commands. Please advise me on this. I am desperately trying this for days. Please advise.
Here is the piece of code that I tried to execute from android app.