Sign in to follow this  
Followers 0
FLdtL9

Weird problem on API 24 Nougat android?

2 posts in this topic

Posted (edited)

I have made a simple app. It uses the imports: process and apache.commons.io (FileUtils).

When the user runs the app, it does set the permission using supersu (this works). But when it tries to delete a file or open it with FileUtils It will go to my catch function so it fails (while the code works on my android 4.4.4 phone). It should only catch if permissions are wrong, and if the file isn't in the file-system. Both are not the case.
This is confusing, because this points to a root problem (not properly rooted device), but why would the permission runtime.exec for su work?!

Any of you had similar problems? By the way It's LineageOS nightly build Maybe it's a bug. 

Edited by FLdtL9

Share this post


Link to post
Share on other sites

Strange, on android 4.4.4 the folder containing those files did not needed chmodding, but on Android 7 it must be chmodded.
That was the actual problem.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0