I'm trying to create a new java command-line utility based on java input command from AOSP: (https://github.com/android/platform_frameworks_base/tree/master/cmds/input)
I've compiled the jar using mmm and pushed it over to the android device over ADB. I then used ADB shell to execute the command:
export CLASSPATH = /sdcard/input2.jar
exec app_process / com.android.commands.input.Input
Using a rooted device, this work perfectly, But when I tried to run it on non-rooted device I got this exception on LOGCAT:
E/dalvikvm(31966): Dex cache directory isn't writable: /data/dalvik-cache
I/dalvikvm(31966): Unable to open or create cache for /sdcard/input2.jar (/data/dalvik-cache/sdcard@input2.jar@classes.dex)
E/appproc(31966): ERROR: could not find class 'com.android.commands.input.Input'
Any ideas?
Thanks