Hi,
I am new to this group.
I have a basic question.
To run the sample application like calculator, should the device be rooted?
From the documentation Qualcomm/Hexagon_SDK/3.2/docs/calculator_android.html:
adb shell mkdir -p /vendor/bin/ adb push android_Debug/ship/calculator /vendor/bin/ adb shell chmod 777 /vendor/bin/calculator adb push android_Debug/ship/libcalculator.so /system/lib/
I think without root access, the files cannot be pushed to /vendor/bin/ or /system/lib.
Sometimes even with the root access those files cannot be pushed.
I tried to specify /data/local/tmp path. but when I run calculator executable I gor below error:
you can push libcalculator.so to any path. but if the path is other than /system/lib you need to set LD_LIBRARY_PATH to that location.
adb shell LD_LIBRARY_PATH=/data/local/temp /data/calculator 0 1 1000
You'd better root the phone, otherwise the android OS may prevent your running binary according to security policy.
Is it not compulsory to push the files to /vendor/bin/ and /system/lib/,but you should push all the libs needed and set ADSP_LIBRARY_PATH before run the binary.(e.g.adb wait-for-device shell ADSP_LIBRARY_PATH=/data/local/ /data/local/calculator 0 0 100000)