Flutter missed permission? what is permission name? - android

I had an app with flutter. the log bellow, I saw error is miss permission but I didn't find it. Do you know it? please help me. I registered WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE in androidMainifest.xml file.
/zygote64(28918): Do partial code cache collection, code=60KB, data=45KB I/zygote64(28918): After code cache collection, code=60KB, data=45KB I/zygote64(28918): Increasing code cache capacity to 256KB E/libc (28918): Access denied finding property "persist.camera.cfa.packagelist" W/data_extraction(28918): type=1400 audit(0.0:204): avc: denied { read } for name="u:object_r:camera_prop:s0" dev="tmpfs" ino=6716 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0 ppid=3602 pcomm="main" pgid=3602 pgcomm="main"

did you use the device camera?
try add this to your AndroidManifest <uses-permission android:name="android.permission.CAMERA" />

Related

failure in android application for pairing bluetooth hearing aids

type=1400 audit(0.0:227002): avc: denied { getattr } for comm=6C696233635F75695F7461736B2023 path="/proc/stat" dev="proc" ino=4026532136 scontext=u:r:untrusted_app:s0:c84,c257,c512,c768 tcontext=u:object_r:proc_stat:s0 tclass=file permissive=0 app=ccc71.at.free
I already looked for permissions that are denied to the app and I allowed the ones that could, I followed the recommendations that are provided in the app but I still cannot pair the hearing aids

anyone with a solution to this error, type=1400 audit: avc: denied { read write }

My Android application is saving data on SQLite and working fine on various android versions, but when installed from playstore some users cannot use the application, after debugging I get this error
type=1400 audit: avc: denied { read write }
I have added permissions for WRITE EXTERNAL STORAGE, READ EXTERNAL STORAGE but has not solved

LogCat - E/SELinux: avc: denied { find }

LogCat shows me this message every second
Any ideas on how to repair this error?
2021-01-17 17:41:08.905 174-174/? E/SELinux: avc: denied { find } for pid=25449 uid=2000 name=car_service scontext=u:r:shell:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0
2021-01-17 17:41:09.903 174-174/? E/SELinux: avc: denied { find } for pid=25455 uid=2000 name=car_service scontext=u:r:shell:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0
This is a SELinux denial. You can ignore it as it won't affect your app. There isn't anything you can do about it (at a user level).
If you are using a custom ROM, the maintainer needs to update their sepolicy.
If you are the maintainer, there are detailed guides on how to understand the denials and write the appropriate the rules for them. One such guide is https://msfjarvis.dev/posts/understanding-and-resolving-selinux-denials-on-android/
If you have any specific doubts in writing the correct rule for this, you can update the question
I had a lot of such errors on my Realme 8i with Android 11 (on a stock firmare) but for another name - tethering:
2023-01-01 15:34:33.134 501 501 system E SELinux : avc: denied { find } for pid=22576
uid=10219 name=tethering scontext=u:r:permissioncontroller_app:s0:c219,c256,c512,c768
tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0
Disabling Tethering hardware acceleration in Developer options immediately stopped such spam.

Socket IO not working Android 8.0 due to SELinux

I'm getting an error when using socketIO on Android
W/TcmReceiver: type=1400 audit(0.0:136495): avc: denied { write } for name="tcm" dev="tmpfs" ino=30445 scontext=u:r:untrusted_app:s0:c242,c256,c512,c768 tcontext=u:object_r:dpmtcm_socket:s0 tclass=sock_file permissive=0
Android Code:
socket = IO.socket("http://192.168.0.101:3000");
socket.connect();
After some research it seems to be related to access permission with the SELinux enforcement in Android. This causes the underlying socket in the SocketIO library to not be able to open or read.
As a note
I do have the Internet permissions enabled. So that does nos seem to be the problem
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Any Solutions?
The only known solution is to disable it or rebuild the ROM after have whitelisted your App to allow access to "IO.socket" (that whitelist file cannot be modified AFTER a build action)

Access denied finding property "acodec.video.buflogging" on HMD Global phones

I am using INDExOS/media-for-mobile for ovelaying video in my android app.
It is working fine at Motorola, Samsung, Nexus and Pixel Devices. But I am getting following error in case of HMD Global(Nokia) Devices,
Access denied finding property "acodec.video.buflogging"
W/MediaCodec_loop: type=1400 audit(0.0:2659): avc: denied { read } for name="u:object_r:mtk_em_video_log_acodec_prop:s0" dev="tmpfs" ino=6644 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:mtk_em_video_log_acodec_prop:s0 tclass=file permissive=0
Any help will be appreciated.

Categories

Resources