- java.io.IOException, Permission denied #165
- Comments
- GunaseelanArumaikkannu commented Jul 30, 2020
- sertanta commented Jul 31, 2020
- GunaseelanArumaikkannu commented Jul 31, 2020
- shiv71 commented Aug 11, 2020
- alexcohn commented Aug 27, 2020
- namdhis commented Sep 3, 2020
- alexcohn commented Sep 3, 2020
- BilalAsif25 commented Oct 1, 2020
- dev-violet commented Oct 29, 2020
- alexcohn commented Oct 29, 2020
- java.io.IOException: Permission denied
java.io.IOException, Permission denied #165
Comments
GunaseelanArumaikkannu commented Jul 30, 2020
java.io.IOException: Cannot run program «/data/user/0/packagename/files/ffmpeg»: error=13, Permission denied
The text was updated successfully, but these errors were encountered:
sertanta commented Jul 31, 2020
I have the same error. The error occurs if you change on Build.gradle file targetSdkVersion 29
From Android Q onwards, you cannot execute binaries in your app’s private data directory.
See https://stackoverflow.com/questions/60370424/permission-is-denied-using-android-q-ffmpeg-error-13-permission-denied
Please, fix it
GunaseelanArumaikkannu commented Jul 31, 2020
Hi Sertanta, As we are forcing to set targetSdkVersion 29, this is very serious bug which should be fixed ASAP. Maybe the maintenance team have different perspective. But I wanted to give update with Android Q as well, so I moved to https://github.com/tanersener/mobile-ffmpeg, and it is working well for me.
shiv71 commented Aug 11, 2020
@Brianvdb @stanvanheumen @joshuapinter
Google is forcing the developers to update to target level 29. Could you guys look into a proper fix for this issue?
I am also facing the same issue
java.io.IOException: Cannot run program «/data/user/0/packagename/files/ffmpeg»: error=13, Permission denied
We are stuck at this point. we do not want to move to another library. Please fix it.
alexcohn commented Aug 27, 2020
@shiv71 See #130. I know that it’s easier to simply add implementation ‘nl.bravobit:android-ffmpeg:1.1.7’ to your dependencies , but if you download the library from https://github.com/alexcohn/FFmpeg-Android/tree/pull_request_Q, it will simply work with targetSdkVersion 29. If you want better support, migrate to https://github.com/tanersener/mobile-ffmpeg or some other library that offers ffmpeg as library, not executable.
namdhis commented Sep 3, 2020
@shiv71 See #130. I know that it’s easier to simply add implementation ‘nl.bravobit:android-ffmpeg:1.1.7’ to your dependencies , but if you download the library from https://github.com/alexcohn/FFmpeg-Android/tree/pull_request_Q, it will simply work with targetSdkVersion 29. If you want better support, migrate to https://github.com/tanersener/mobile-ffmpeg or some other library that offers ffmpeg as library, not executable.
alexcohn commented Sep 3, 2020
@namdhis No, the way I package this is not compatible with the current Google Play Store requirement to have 64-bit binaries for any app. But as I explained elsewhere, you can simply copy the 32-bit binaries (ffmpeg and/or ffprobe) to src/main/jniLibs/arm64-v8a before you build the APK, and everything will just work (at least for now, it can break in the future when Android arm64 drops its support for 32-bit binaries).
BilalAsif25 commented Oct 1, 2020
So i guess there is still no solution yet in premises of this library, Sad to see maintainers are not maybe looking into this anymore. If anyone still has it fixed help me out , my target is to run this library on android 29, 30 and release for 64 bit support in play store.
dev-violet commented Oct 29, 2020
I have tried with the other one mentioned above, https://github.com/tanersener/mobile-ffmpeg , but seems like it is less efficient especially in the output video size. Still waiting this library to support sdk 29 so badly
alexcohn commented Oct 29, 2020
@dev-violet what parameters did you use for video compression? There is not expected to be any difference in video size, unless you rely on a codec that is not included.
Источник
java.io.IOException: Permission denied
Having a bit of trouble out of a school project. I need to save information to an XML file and read from it and put those values into fields. Writing to the file is no big deal, however I get a Permission Denied error when I attempt to read the data back in. My code is attached:
private boolean readFile(String filename) throws IOException <
try <
XPathFactory factory=XPathFactory.newInstance();
XPath xPath=factory.newXPath();
//File xmlDocument = new File(filename);
System.out.println(«Here»);
FileInputStream in = new FileInputStream(filename);
System.out.println(«Here2»);
InputSource inputSource=new InputSource(in);
System.out.println(«Here3»);
String xmlShape = xPath.evaluate(«/Volume_Calculator/Shape»,inputSource);
String xmlLength = xPath.evaluate(«/Volume_Calculator/Length»,inputSource);
String xmlWidth = xPath.evaluate(«/Volume_Calculator/Width»,inputSource);
String xmlAvgDepth = xPath.evaluate(«/Volume_Calculator/Average_Depth»,inputSource);
String xmlVolume = xPath.evaluate(«/Volume_Calculator/Volume»,inputSource);
String xmlCustName = xPath.evaluate(«/Volume_Calculator/Customer_Name»,inputSource);
String xmlAddress1 = xPath.evaluate(«/Volume_Calculator/Address1»,inputSource);
String xmlAddress2 = xPath.evaluate(«/Volume_Calculator/Address2»,inputSource);
String xmlCity = xPath.evaluate(«/Volume_Calculator/City»,inputSource);
String xmlState = xPath.evaluate(«/Volume_Calculator/State»,inputSource);
String xmlZip = xPath.evaluate(«/Volume_Calculator/Zip»,inputSource);
String xmlPhone = xPath.evaluate(«/Volume_Calculator/Phone»,inputSource);
String xmlEmail = xPath.evaluate(«/Volume_Calculator/Email»,inputSource);
String xmlSalesPerson = xPath.evaluate(«/Volume_Calculator/Sales_Person»,inputSource);
String xmlOrderNo = xPath.evaluate(«/Volume_Calculator/Order_No»,inputSource);
String xmlDate = xPath.evaluate(«/Volume_Calculator/Date»,inputSource);
txtLength.setText(xmlLength);
txtWidth.setText(xmlWidth);
txtAvgDepth.setText(xmlAvgDepth);
txtVolume.setText(xmlVolume);
txtCustName.setText(xmlCustName);
txtAddress1.setText(xmlAddress1);
txtAddress2.setText(xmlAddress2);
txtCity.setText(xmlCity);
txtZip.setText(xmlZip);
txtPhone.setText(xmlPhone);
txtEmail.setText(xmlEmail);
txtSalesPerson.setText(xmlSalesPerson);
txtOrderno.setText(xmlOrderNo);
txtOrderDate.setText(xmlDate);
in.close();
>
catch (Throwable t) <
t.printStackTrace ();
>
My XML document is flat with no repeating nodes.
Any help is greatly appreciated, thank you.
Источник