I put Android Things SO in my intel Edison with Arduino breakout board. I run this example enter link description here and everything worked ok. But when I try run other code using IO13 I have this issue:
E/HomeActivity: Error on PeripheralIO API
com.google.android.things.pio.PioException: android.os.ServiceSpecificException: IO13 is already in use But I can not do it.
I need use adb commands to uninstall packages
Can someone help me there?
From the release notes:
Known Issues
You have to uninstall the previous app (or close it) because it is holding an open connection to that pin.
You could uninstall that specific app like this:
adb uninstall com.example.androidthings.simplepio
Bu you could also use a script to uninstall all other AndroidThings apps (which is handy when you have been playing with a lot of samples).
https://gist.github.com/blundell/7c0c3bb17898b28fe8122b0dc230af50
download and run this script like: ./clear-android-things-apps.sh
and it will uninstall everything