-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File not found on Xiaomi6, Android7.1.1, the solution in issue41 doesn't work #62
Comments
Hello~ |
I got root privilege, problem solved |
Excuse me , Have another solution? |
I think you should make it clear why "File not found". For my mobile phone, although I have opened the permission for the app in Setting, without root permission, file still cannot be access. |
If running on Android >= 6.0, you should be granting permissions in the code in addition to the manifest. Before you attempt to read the files, you need something like below. It's not perfect but it will check for the required permissions and log the result to console (0 for ok, -1 for not ok). It will also request the permissions from the user.
|
I've successfully run this demo both on cpu-mode and gpu-mode, the error you displayed above always exists. When running, it would call JNI functions packaged in dynamic library. Check the path and acquire root permission. |
Crashed in Xiaomi-6. The same problem in issue41 was solved. Although I adopt the this solution, allowing the permission of caffe-android-demo, the error still exists.
And the build.gradle is
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "com.sh1r0.caffe_android_demo"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
The text was updated successfully, but these errors were encountered: