Skip to content
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

error=13, Permission denied #26

Closed
nowfalsalahudeen opened this issue Nov 21, 2019 · 14 comments
Closed

error=13, Permission denied #26

nowfalsalahudeen opened this issue Nov 21, 2019 · 14 comments

Comments

@nowfalsalahudeen
Copy link

Caused by: java.io.IOException: Cannot run program "/data/user/0/com.yausername.youtubedl_android_example/files/youtubedl-android/packages/usr/bin/python": error=13, Permission denied

tested both emulator and real device( android 10 ,s10)

@yausername
Copy link
Owner

Hi,
This seems to be related to the specific issue "Android Q blocks executing binaries in your apps private data directory".
I will look into how this can be fixed.
Thanks for reporting.

@nowfalsalahudeen
Copy link
Author

Hi,
This seems to be related to the specific issue "Android Q blocks executing binaries in your apps private data directory".
I will look into how this can be fixed.
Thanks for reporting.

Thanks for the reply..try to fix it if u can..am also doing some research about it.if i a found a properway.i will inform u

@yausername
Copy link
Owner

Hi,
Although I haven't fixed the issue yet, I found out that it can be suppressed by setting targetSdkVersion < 29.
I will update here when I put a proper fix for apps targeting sdkVersion 29 and above.
Thanks

@nowfalsalahudeen
Copy link
Author

any updates ?

@yausername
Copy link
Owner

Sorry, not anything yet.

@uditkarode
Copy link

"While exec() no longer works on files within the application home directory, it continues to be supported for files within the read-only /data/app directory. In particular, it should be possible to package the binaries into your application's native libs directory and enable android:extractNativeLibs=true, and then call exec() on the /data/app artifacts. A similar approach is done with the wrap.sh functionality, documented at https://developer.android.com/ndk/guides/wrap-script#packaging_wrapsh."

might help :)

@rcaselles
Copy link

Any updates?

@nowfalsalahudeen
Copy link
Author

Any updates?
exec() no longer works on files within the application home directory
new android policy denied it

@yausername
Copy link
Owner

Hi,
I have tried to fix this in #43
Test and let me know if it works.
Thanks

@superpowermanyob
Copy link

I have same problem...
youtube-dl 2020.05.03 <-- not fixed.
api level 23 version
CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced
libandroid-support.so

@yausername
Copy link
Owner

@jungyoungsoo you can try with the latest release 0.8.0 although I am not sure if it will work with android 6.0.

@superpowermanyob
Copy link

it's 0.8.0.
not working api level devices < 24
it show error log
Logger.e(e, "failed to download");
com.yausername.youtubedl_android.YoutubeDLException: WARNING: linker: /data/app/com.yausername.youtubedl_android_example-2/lib/arm/libpython.bin.so: unused DT entry: type 0x1d arg 0xae
CANNOT LINK EXECUTABLE: library "libpython3.8.so.1.0" not found
page record for 0xb6eef00c was not found (block_size=16)

@yausername
Copy link
Owner

@jungyoungsoo I have updated the apks in #44
Please test and post any problems on that issue. Don't post on this issue since this is unrelated.

@yausername
Copy link
Owner

Fixed in 0.8.0 or later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants