Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 66abe4bc authored by sandeepbandaru's avatar sandeepbandaru Committed by Sandeep Bandaru
Browse files

Change file access return types to ParcelFileDescriptor

FileInputStream works well with Java code, but for this usecase files may need to be passed onto JNI layer which requires access to fd-int and
FileInputStream or the underlying FileDescriptor type do not expose a
getter to the FD int which causes a lot of back and forth.

Changing to PFD and add checks alongside other validations in
system-server to ensure read only behaviour.

Test: cts in this topic added
Bug: 329656165
Change-Id: Ic5aa0d49e04afc74ff97833f3bbc5eab4790ef5b
parent 311fc294
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment