failed to set system property

在Android5.0及以后版本中,由于引入了SELinux,即使系统级应用也不能随意设置系统属性。本文分析了SystemProperties.set()失败的原因,并提供了解决方案,包括如何为自定义属性添加权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Android SystemProperties


概述

  在对Android操作系统进行开发的过程中,经常需要使用到Android的隐藏API SystemProperties.set(String key, String value) 这个接口,写入一些属性值存放到系统共享内存,配合SystemProperties.get(String key) 这个接口可以很方便的实现某些功能。由于是android:sharedUserId=“android.uid.system” 的系统级应用,有权限操作类似的隐藏接口。比如可以定义一个persist.test.meid 的属性来保存系统的MEID号,以方便第三方应用开发者获取。

  在Android5.0之前,系统级应用可以很方便的写入规范(比如属性key、value的长度有一定限制等)的属性,在这之后,Android系统引入了SELinux,所有的操作都有相应的权限组,任意写入一个属性也会抛出错误,即使是系统级应用。

  关于Android SystemProperty 的分析文章,网上一搜一大堆,推荐一篇分析的很全的博客:https://blog.youkuaiyun.com/yangwen123/article/details/8936555 ,这里我只分析SystemProperties.set(String key, String value) 失败的原因以及解决办法。

错误信息

就以persist.test.meid 这个属性做实验,在android:sharedUserId=“android.uid.system” 的进程中调用接口:

import android.os.SystemProperties;

SystemProperties.set("persist.test.meid", "test value");

运行程序,写入属性失败,查看log发现抛出如下异常:

12-06 14:22:19.254  2870  2887 W libc    : Unable to set property "persist.test.meid" to "test value": error code: 0x18
12-06 14:22:19.255  2870  2887 E JavaBinder: *** Uncaught remote exception!  (Exceptions are not yet supported across processes.)
12-06 14:22:19.255  2870  2887 E JavaBinder: java.lang.RuntimeException: failed to set system property
12-06 14:22:19.255  2870  2887 E JavaBinder: 	at android.os.SystemProperties.native_set(Native Method)
12-06 14:22:19.255  2870  2887 E JavaBinder: 	at android.os.SystemProperties.set(SystemProperties.java:155)
12-06 14:22:19.255  2870  2887 E JavaBinder: 	at com.action.tool.mdm.provider.ActionMdmProvider.tv(:251)
12-06 14:22:19.255  2870  2887 E JavaBinder: 	at com.action.tool.mdm.provider.ActionMdmProvider.call(:109)
12-06 14:22:19.255  2870  2887 E JavaBinder: 	at android.content.ContentProvider$Transport.call(ContentProvider.java:401)
12-06 14:22:19.255  2870  2887 E JavaBinder: 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:272)
12-06 14:22:19.255  2870  2887 E JavaBinder: 	at android.os.Binder.execTransact(Binder.java:697)
12-06 14:22:19.256  3882  3882 D AndroidRuntime: Shutting down VM
原因分析

错误日志中提示Uncaught remote exception! (Exceptions are not yet supported across processes.),这是一个常见的跨进程通讯失败信息,没什么卵用。后来发现系统中工厂测试这个系统级应用能写persist.sys.xxx这样的属性,于是在我的应用中也写了这条属性,发现是能成功的,而persist.test.meid 还是写入失败。
那么这两条属性有什么区别呢?唯一的却别就是persist.sys.xxx这样的属性是系统里预先定义好的,而persist.test.meid 是自己随手定义的,那么persist.sys.xxx肯定是在系统某个地方做了某些设定。
有了这个推测后就是查找了,使用grep “persist.sys.” -rn . 搜索整个代码,最后定位到SELinux
property_contexts文件中的代码片段:

persist.netd.stable_secret      u:object_r:netd_stable_secret_prop:s0
persist.sys.            u:object_r:system_prop:s0
persist.sys.safemode    u:object_r:safemode_prop:s0
解决方案

只需要在property_contexts文件中添加权限声明即可

persist.test.       u:object_r:system_prop:s0

由于我们应用进程是属于 system uid的系统级应用,所有声明的属性所属域为system_prop
当然也可以自定义一个域,然后将persist.test.定义到这个新的域中,最后自己的应用程序就不能是android:sharedUserId=“android.uid.system” 了,而是要定义成自己的所属域。


上一篇 一键设置DeviceOwner
06-17 03:01:00.882 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.882 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/kiwi_v2/power_stats 06-17 03:01:00.882 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.882 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.883 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.883 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/peach/power_stats 06-17 03:01:00.883 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.883 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.883 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.883 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/peach_v2/power_stats 06-17 03:01:00.883 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.884 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.884 3198 7415 D OplusWifiPowerStatsManager: strStartIndex = 36 strEndIndex= 74 06-17 03:01:00.884 3198 7415 D OplusWifiPowerStatsManager: wlan fw idle time from open wifi : -1525478740 06-17 03:01:00.884 3198 7415 D OplusWifiPowerService: mSoftApIface is null 06-17 03:01:00.885 3198 7415 V OplusWifiPowerMcsTrxInfor: *****---> map:{wlan0_on_time=3842, wlan0_idleTimeMillis=3223, wlan0_tx_time=339, wlan0_rx_time=280, wlan0_on_time_scan=2108, wlan0_on_time_nan_scan=0, wlan0_on_time_bg_scan=0, wlan0_on_time_roam_scan=0, wlan0_on_time_pno_scan=320, wlan0_on_time_hs20_scan=0} 06-17 03:01:00.892 3198 7415 D OplusBatteryManager: getPsyBatteryRm: 1402 06-17 03:01:00.892 3198 7415 D OplusWifiPowerService: mStartBatteryCapacity = 1402 06-17 03:01:00.892 3198 7415 D OplusWifiPowerLogCollect: diable wifi collect power log , mIsEnableQcomCollectLog = 0 06-17 03:01:00.899 3198 3198 D OplusTetheringNotification: onReceive: action: android.intent.action.SCREEN_OFF 06-17 03:01:00.903 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:00.932 3198 4624 W OplusStorageManagerFeature: mScreenReceiver action:android.intent.action.SCREEN_OFF 06-17 03:01:00.933 5775 7147 I metis_v2_AppSwitchStateManager: isScreenOn:false isScreenIsLock:true,deviceState:,deviceTypeName [base|com.oplus.metis|1.5.5-f48228a] 06-17 03:01:00.934 3198 4624 W OplusStorageManagerFeature: turn screenOff, maintPrepared:false 06-17 03:01:00.935 3198 4624 W OplusStorageManagerFeature: sendToTarget over,paramStr:4 06-17 03:01:00.944 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:00.946 3198 4624 I OplusStorageManagerFeature: FsReserveSpace data partition fstype:f2fs 06-17 03:01:00.947 3198 4624 I OplusStorageManagerFeature: FsReserveSpace data device path:/dev/block/dm-98 06-17 03:01:00.952 3198 7415 D OplusBatteryManager: getPsyBatteryRm: 1400 06-17 03:01:00.953 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.953 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/wifi/power_stats 06-17 03:01:00.953 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.953 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.954 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.954 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/qca6390/power_stats 06-17 03:01:00.954 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.954 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.954 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.954 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/qca6750/power_stats 06-17 03:01:00.954 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.955 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.955 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.955 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/qca6490/power_stats 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: FsReserveSpace read data label failed.java.nio.file.NotLinkException: /dev/block/dm-98 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at sun.nio.fs.UnixFileSystemProvider.readSymbolicLink(UnixFileSystemProvider.java:515) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at java.nio.file.Files.readSymbolicLink(Files.java:1432) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at com.android.server.storage.OplusStorageManagerFeature.onMessageFsReserveSpace(OplusStorageManagerFeature.java:2159) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at com.android.server.storage.OplusStorageManagerFeature.onStorageManagerMessageHandle(OplusStorageManagerFeature.java:1521) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at com.android.server.StorageManagerService$StorageManagerServiceHandler.handleMessage(StorageManagerService.java:790) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at android.os.Handler.dispatchMessage(Handler.java:107) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at android.os.Looper.loopOnce(Looper.java:282) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at android.os.Looper.loop(Looper.java:387) 06-17 03:01:00.966 3198 4624 E OplusStorageManagerFeature: at android.os.HandlerThread.run(HandlerThread.java:85) 06-17 03:01:00.966 3198 4624 I OplusStorageManagerFeature: FsReserveSpace data label:dm-98 06-17 03:01:00.966 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is POWER DEBUG STATS 06-17 03:01:00.966 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 4096 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is ================= 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 4078 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is cumulative_sleep_time_ms: -1525478678 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 4060 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is cumulative_total_on_time_ms: 317414745 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 4022 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is deep_sleep_enter_counter: 2178774 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3983 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is last_deep_sleep_enter_tstamp_ms: 0 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3949 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_register_fmt: 0 06-17 03:01:00.970 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3914 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is num_debug_register: 20 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3892 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[0]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3869 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[1]: 0x76a269e 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3845 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[2]: 0x68713 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3815 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[3]: 0x23513dc6 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3787 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[4]: 0xc2705 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3756 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[5]: 0x107784 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3728 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[6]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3699 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[7]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3675 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[8]: 0x8d354b65 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3651 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[9]: 0x84da 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3620 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[10]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3593 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[11]: 0xb303011 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3568 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[12]: 0xd14ab 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3537 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[13]: 0x3cc35b3a 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3508 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[14]: 0xd271b 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3476 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[15]: 0xd76f6 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3447 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[16]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3418 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[17]: 0x0 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3393 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[18]: 0x6ffed24b 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3368 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the buf of executeDriverCommand is debug_registers[19]: 0x51cf 06-17 03:01:00.971 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: , remain_len is 3336 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: getQcomFwActiviteTime = POWER DEBUG STATS 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: ================= 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: cumulative_sleep_time_ms: -1525478678 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: cumulative_total_on_time_ms: 317414745 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: deep_sleep_enter_counter: 2178774 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: last_deep_sleep_enter_tstamp_ms: 0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_register_fmt: 0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: num_debug_register: 20 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[0]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[1]: 0x76a269e 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[2]: 0x68713 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[3]: 0x23513dc6 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[4]: 0xc2705 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[5]: 0x107784 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[6]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[7]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[8]: 0x8d354b65 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[9]: 0x84da 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[10]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[11]: 0xb303011 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[12]: 0xd14ab 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[13]: 0x3cc35b3a 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[14]: 0xd271b 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[15]: 0xd76f6 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[16]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[17]: 0x0 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[18]: 0x6ffed24b 06-17 03:01:00.972 3198 7415 D OplusWifiPowerStatsManager: debug_registers[19]: 0x51cf 06-17 03:01:00.973 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.973 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/kiwi_v2/power_stats 06-17 03:01:00.973 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.973 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.973 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.973 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/peach/power_stats 06-17 03:01:00.973 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.973 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.974 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: filePath is /vendor/bin/cat 06-17 03:01:00.974 1875 1875 D vendor.oplus.hardware.wifi-aidl-service: the in_command is:/vendor/bin/cat /sys/kernel/peach_v2/power_stats 06-17 03:01:00.974 1875 1875 E vendor.oplus.hardware.wifi-aidl-service: wifiPopen error 06-17 03:01:00.975 3198 7415 E OplusWifiHalServiceAidlImpl: IOplusWifiService.executeDriverCommandWithResult failed: android.os.ServiceSpecificException: (code 0) 06-17 03:01:00.975 3198 7415 D OplusWifiPowerStatsManager: strStartIndex = 36 strEndIndex= 74 06-17 03:01:00.975 3198 7415 D OplusWifiPowerStatsManager: wlan fw idle time from open wifi : -1525478678 06-17 03:01:00.977 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:00.994 1248 1253 I android.system.suspend-service: Last release wakelock name = PowerManagerService.Broadcasts 06-17 03:01:00.994 1248 1253 I android.system.suspend-service: mAutosuspendEnabled=1 06-17 03:01:00.994 1248 15298 I android.system.suspend-service: Start checking autosuspend client... 06-17 03:01:00.995 1248 15298 I android.system.suspend-service: autosuspend client checking completed. 06-17 03:01:00.995 1248 15298 I android.system.suspend-service: Start checking autosuspend client... 06-17 03:01:00.995 1248 15298 I android.system.suspend-service: autosuspend client checking completed. 06-17 03:01:00.995 1248 15298 I android.system.suspend-service: Android start to suspend... 06-17 03:01:01.010 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:01.043 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:03.977 1249 12660 I keystore2: system/security/keystore2/watchdog/src/lib.rs:319 - Watchdog thread idle -> terminating. Have a great day. 06-17 03:01:03.980 1798 14927 I QC2Comp : [avcD_34552] Stats: Pending(0) i/p-done(0) Works: Q: 0/Done 0|Work-Rate: Q(0.0/s Avg=0.0/s) Done(0.000/s Avg=0.000/s)| Stream: 30.00fps 0.0Kbps 06-17 03:01:03.980 1798 14927 I QC2Comp : [avcD_34552] Mem-usage: | Total: 0.000 MB 06-17 03:01:03.980 1971 2397 D VRR [OTI]: handleIdle from 0 to 1 06-17 03:01:03.981 1971 2397 D VRR [OTI-HW]: isStateReady 0 06-17 03:01:03.981 1971 2397 D VRR [OTI-HW]: rate range: min {id=1, hwcId=1, resolution=1080x2412, vsyncRate=60.00 Hz, dpi=391.89x392.72, group=0, vrrConfig=N/A} cur {id=0, hwcId=0, resolution=1080x2412, vsyncRate=120.00 Hz, dpi=391.89x392.72, group=0, vrrConfig=N/A} max {id=0, hwcId=0, resolution=1080x2412, vsyncRate=120.00 Hz, dpi=391.89x392.72, group=0, vrrConfig=N/A} 06-17 03:01:03.981 1971 2397 D VRR [OTI-HW]: keep rate. 06-17 03:01:03.991 1629 1709 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 5d78 went down 06-17 03:01:03.992 3613 3617 E Diag_Lib: [IMS_AP]"ims-rtp-daemon ims_rtp_qmi_handler_thread_func waiting on select thread>" 06-17 03:01:03.996 7560 7764 W Looper : Slow delivery took 2901ms SysUiBg h=com.android.systemui.appops.AppOpsControllerImpl$H c=com.android.systemui.appops.AppOpsControllerImpl$H$1@88bc2b2 m=0 06-17 03:01:03.996 7560 7764 W Looper : Drained 06-17 03:01:03.996 10127 14685 D gaia-GaiaConnectChecker: start connect check++ 06-17 03:01:03.997 1001 6750 D CustomLogManagerService: WorkHandler msg.what :5 06-17 03:01:04.000 16127 8880 D QualityProtectService: handleMessage: 2 06-17 03:01:04.000 16127 8880 I QualityProtectService: mStartReason: performance_data_collect 06-17 03:01:04.000 16127 8880 I QualityProtectProcessorManager: already startMonitor, do nothing 06-17 03:01:04.000 16127 8880 D QualityProtectService: perfDataReportCheck not ok 06-17 03:01:04.001 10127 16667 D gaia-GaiaConnectChecker: start connect check++ 06-17 03:01:04.002 2162 2162 E AwakeServiceAnr4Main: [anrCheckRunnable],start execute check runnable. 06-17 03:01:04.008 7560 10306 I PluginSeedling--Origin: OSenseManager-->isMEMHighPressure oldState:false newState: false isMEMHighPressure:false 06-17 03:01:04.009 1629 1709 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 5d79 went down 06-17 03:01:04.009 3613 3617 E Diag_Lib: [IMS_AP]"ims-rtp-daemon ims_rtp_qmi_handler_thread_func waiting on select thread>" 06-17 03:01:04.011 3198 7464 E OplusUIFirst_TS: Failed to connect bpf bin: -1 06-17 03:01:04.011 12802 13808 E AwakeServiceAnr4UI: [linkToMainProcess],receive callback,isAwakeUIServiceInit=true 06-17 03:01:04.015 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:04.017 1629 1709 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 5d7a went down 06-17 03:01:04.017 3613 3617 E Diag_Lib: [IMS_AP]"ims-rtp-daemon ims_rtp_qmi_handler_thread_func waiting on select thread>" 06-17 03:01:04.020 3198 7438 D CompatChangeReporter: Compat change id reported: 151861875; UID 10125; state: ENABLED 06-17 03:01:04.020 7560 7567 I ndroid.systemui: gc_priority_optimize ctrlAppThreadUx sharedAppUxFd=892pid=7560tid=7567value=130 ret=2 06-17 03:01:04.024 1629 1709 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 5d7b went down 06-17 03:01:04.025 3613 3617 E Diag_Lib: [IMS_AP]"ims-rtp-daemon ims_rtp_qmi_handler_thread_func waiting on select thread>" 06-17 03:01:04.036 1001 6750 D CustomLogManagerService: curTemp:270 limit:390 06-17 03:01:04.036 1001 6750 D CustomLogManagerService: checkUploadStatus: isSceenOn=false activeNetType=1 isCharging=false isUploading:false temperatureLimit:false 06-17 03:01:04.036 1001 6750 D CustomLogManagerService: sys.log.customer=false 06-17 03:01:04.036 1001 6750 D CustomLogManagerService: isHaveCustomLogCollecting :false 06-17 03:01:04.037 3198 4624 W libc : Unable to set property "persist.sys.oppo.fsReservedBlocks" to "283438": PROP_ERROR_READ_DATA (0x8) 06-17 03:01:04.043 3198 7438 V GrammaticalInflectionUtils: AttributionSource: android.content.AttributionSource@c67bc4f2 does not have READ_SYSTEM_GRAMMATICAL_GENDER permission. 06-17 03:01:04.045 7560 7567 I ndroid.systemui: gc_priority_optimize ctrlAppThreadUx sharedAppUxFd=892pid=7560tid=7567value=768 ret=0 06-17 03:01:04.048 29625 29625 D StyleCardEventMonitor: onScrolled: dx = 0dy = 0 06-17 03:01:04.049 1561 30360 E TetherController: property_get sys.radio.data.modem_share_flag return 0, 1! 06-17 03:01:04.050 3198 3198 W Looper : Slow delivery took 2828ms main h=android.os.Handler c=com.android.server.theia.TheiaSystemJankDecteor$1@95930c8 m=0 06-17 03:01:04.050 3198 3502 D VRR [OPlusGameStatusManager]: handleMessage: 7004 06-17 03:01:04.050 3198 3502 D VRR [OPlusGameStatusManager]: handleBrightnessDone 06-17 03:01:04.050 3198 7437 D OplusOwmMonitorCenter: apName Sync to OWM in Helper: 06-17 03:01:04.050 3198 4624 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: StorageManagerService 06-17 03:01:04.050 3198 4624 E AndroidRuntime: java.lang.RuntimeException: failed to set system property "persist.sys.oppo.fsReservedBlocks" to "283438" (check logcat for reason) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.SystemProperties.native_set(Native Method) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.SystemProperties.set(SystemProperties.java:267) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at com.android.server.storage.OplusStorageManagerFeature.onMessageFsReserveSpace(OplusStorageManagerFeature.java:2229) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at com.android.server.storage.OplusStorageManagerFeature.onStorageManagerMessageHandle(OplusStorageManagerFeature.java:1521) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at com.android.server.StorageManagerService$StorageManagerServiceHandler.handleMessage(StorageManagerService.java:790) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:282) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.Looper.loop(Looper.java:387) 06-17 03:01:04.050 3198 4624 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:85) 06-17 03:01:04.050 3198 7365 I MR2ServiceImpl: Updating composite discovery preference | preference: RouteDiscoveryRequest{ preferredFeatures={}, activeScan=false }, active routers: [] 06-17 03:01:04.051 3198 7603 I Osense-PsiDetector: 1915,234,4581,7679,41,270,251,1807,1964,620,1141,0,8,7618
最新发布
07-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值