首页 > 其他分享 >Android原生库和架构层通信的socket

Android原生库和架构层通信的socket

时间:2023-09-06 14:02:19浏览次数:35  
标签:服务 socket 通信 zygote qmux thermal 架构 Android


Android为原生库和架构层之间的通信提供了socket机制,在系统中为其提供了/dev/socket节点。/dev/socket节点是在init.rc文件初始化时生成的,

 $ ls /dev/socket
adbd
cnd
dnsproxyd
dpmd
dpmwrapper
fwmarkd
ims_datad
ims_qmid
ims_rtpd
installd
ipacm_log_file
lmkd
logd
logdr
logdw
mdbd
mdns
netd
netmgr
nims
pps
property_service
qmux_audio
qmux_bluetooth
qmux_gps
qmux_radio
rild
rild-debug
rild-debug2
rild2
sensor_ctl_socket
ss
thermal-recv-client
thermal-recv-passive-client
thermal-send-client
vold
wpa_wlan0
zygote
zygote_secondary


其中vold 服务通信socket,负责通过socket通信来接受内核发送的SD,USB等存储类设备的挂载和删除信息。

netd 网络服务通信socket

installd 安装apk应用程序包服务通信socket

zygote zygote服务通信socket

dbus 蓝牙服务通信socket,提供蓝牙功能服务

property_service 系统服务通信socket,是android系统属性服务,有key和value组成


标签:服务,socket,通信,zygote,qmux,thermal,架构,Android
From: https://blog.51cto.com/u_16248677/7386492

相关文章

  • Android官方资料--Adoptable Storage
    AdoptableStorageINTHISDOCUMENTSecurityPerformanceandstabilityAndroidhasalwayssupportedexternalstorageaccessories(suchasSDcards),buttheseaccessorieswerehistoricallylimitedtosimplefilestorage,duetotheirexpectedimpermanence......
  • Android官方资料--OTA Package Tools
    OTAPackageToolsINTHISDOCUMENTFullupdatesIncrementalupdatesUpdatepackagesThe ota_from_target_files toolprovidedinbuild/tools/releasetools canbuildtwotypesofpackage: full andincremental.Thetooltakesthe target-files .zipfileproduc......
  • android编译报错:error: ro.build.fingerprint cannot exceed 91 bytes
    http://stackoverflow.com/questions/28776970/android-build-error-ro-build-fingerprint-cannot-exceed-91-bytesbuild/tools/post_process_props.py.Changelinesasfollows:PROP_NAME_MAX=31#PROP_VALUE_MAX=91PROP_VALUE_MAX=128PROP_NAME_MAX=31#PROP_V......
  • Android官方资料--Reducing OTA Size
    ReducingOTASizeINTHISDOCUMENTThebuilddifftoolChangestoreduceOTAsizeFileOrderBuildDirectoryTimestampsVersionStringsConsistentbuildtoolsAcommonproblemwithAndroidover-the-airupdates(OTAs)isthattheycontainchangedfilesthatdo......
  • Android Recovery UI浅析1——概览
    最近在作一个在recovery中显示文字的工作,所以对这块研究较多,现在把研究的一点新的结果分享出来,如果有什么错误也欢迎大家在下面评论。 Android的Recovery中,利用 boottable/recovery下的minui库作为基础,采用的是直接存取framebuffer的方式,来完成recovery中所需的各种UI的绘制。......
  • Android官方资料--Storage
    StorageINTHISDOCUMENTPermissionsRuntimepermissionsAndroidhasevolvedovertimetosupportawidevarietyofstoragedevicetypesandfeatures.AllversionsofAndroidsupportdeviceswithtraditionalstorage,whichincludesportableandemulateds......
  • Android官方资料--A/B System Updates
    A/BSystemUpdatesINTHISDOCUMENTOverviewBootloaderstateexamplesUpdateEnginefeaturesLifeofanA/BupdatePost-installstepImplementationKernelpatchesKernelcommandlineargumentsRecoveryBuildvariablesPartitionsFstabKernelslotargumentsOTApacka......
  • Android官方资料--Device-Specific Code
    Device-SpecificCodeINTHISDOCUMENTPartitionmapRecoveryUIHeaderanditemfunctionsCustomizingCheckKeyScreenRecoveryUIDeviceClassStartRecoverySupplyingandmanagingrecoverymenuBuildandlinktodevicerecoveryRecoveryUIimagesAndroid5.xAndroid......
  • vue使用socket.io
    Vue项目使用socket.io使用librarysocket.io-client或者vue-socket.ionpminstallsocket.io-client||npminstallvue-socket.io使用socket.io-clientsocket.io-client是socket.io原配插件在对应的组件内使用import{io}from'socket.io-client'this.socket=......
  • Android官方资料--Block-Based OTAs
    Block-BasedOTAsINTHISDOCUMENTRecommendationsFilevs.BlockOTAsUpdatingunmodifiedsystemsUpdatingmodifiedsystemsYoucanenableblock-basedover-the-air(OTA)updatesfornewdevicesrunningAndroid5.0.OTAisthemechanismbywhichOEMsremote......