How can I set the static IP 10.24.14.95 to eth0 instead of 192.168.0.2 by using adb in Android stuff?

I want to set another series (ie 10.24.14.95) as the static IP address for the rpi3 model b running Android Things. I tried ADB commands by adding route, but still no change in IP. I also used the ifconfig command, but it did not work either