help wanted
Repository-Metriken
- Stars
- (43 Stars)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
https://developer.android.com/about/versions/10/privacy/changes#proc-net-filesystem
对
/proc/net文件系统的访问权限实施了限制
导致 get_uid 出错
type=1400 audit(0.0:13003): avc: denied { read } for name="tcp" dev="proc" ino=4026532086 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:proc_net_tcp_udp:s0 tclass=file permissive=0
需使用 getConnectionOwnerUid(Called from C code)
参考 https://stackoverflow.com/questions/58497492/acccess-to-proc-net-tcp-in-android-q