GPIO and serial port on Rock PI 4 with Android Studio

Is there a possibility to control GPIO and serial port on Rock PI 4 with an Android java application?