I got my ClassPath from adb and used the following command :
su -c "CLASSPATH=/data/app/in.omerjerk.remotedroid.app/base.apk /system/bin/app_process32 /system/bin in.omerjerk.remotedroid.app.Main optionalArgs"
from Umar's Blog.(with the values replaced ofc)
However, I'm getting aborted instead of the uid being printed. Can someone please help?