ServiceManager添加的系统服务汇总

本文列举了Android系统中多个关键服务的注册过程,包括TelephonyRegistry、Vibrator、InputManager、WindowManager、LocationManager等。这些服务涉及电话、输入、显示、位置、网络管理和硬件等方面,构成了Android系统核心功能的重要组成部分。
摘要由CSDN通过智能技术生成

SystemServer.java

ServiceManager.addService("sec_key_att_app_id_provider", new KeyAttestationApplicationIdProviderService(context));

ServiceManager.addService("scheduling_policy", new SchedulingPolicyService());

telephonyRegistry = new TelephonyRegistry(context);

ServiceManager.addService("telephony.registry", telephonyRegistry);

vibrator = new VibratorService(context);

ServiceManager.addService("vibrator", vibrator);

consumerIr = new ConsumerIrService(context);

ServiceManager.addService(Context.CONSUMER_IR_SERVICE, consumerIr);

inputManager = new InputManagerService(context);

ServiceManager.addService(Context.INPUT_SERVICE, inputManager, /* allowIsolated= */ false, DUMP_FLAG_PRIORITY_CRITICAL);

wm = WindowManagerService.main(context, inputManager, !mFirstBoot, mOnlyCore, new PhoneWindowManager(), mActivityManagerService.mActivityTaskManager);

ServiceManager.addService(Context.WINDOW_SERVICE, wm, /* allowIsolated= */ false, DUMP_FLAG_PRIORITY_CRITICAL | DUMP_FLAG_PROTO);

statusBar = new StatusBarManagerService(context, wm);

ServiceManager.addService(Context.STATUS_BAR_SERVICE, statusBar);

networkManagement = NetworkManagementService.create(context);

ServiceManager.addService(Context.NETWORKMANAGEMENT_SERVICE, networkManagement);

ipSecService = IpSecService.create(context);

ServiceManager.addService(Context.IPSEC_SERVICE, ipSecService);

networkStats = NetworkStatsService.create(context, networkManagement);

ServiceManager.addService(Context.NETWORK_STATS_SERVICE, networkStats);

networkPolicy = new NetworkPolicyManagerService(context, mActivityManagerService, networkManagement);

ServiceManager.addService(Context.NETWORK_POLICY_SERVICE, networkPolicy);

connectivity = new ConnectivityService(context, networkManagement, networkStats, networkPolicy);

ServiceManager.addService(Context.CONNECTIVITY_SERVICE, connectivity, /* allowIsolated= */ false, DUMP_FLAG_PRIORITY_HIGH | DUMP_FLAG_PRIORITY_NORMAL);

wigigP2pService = ctor.newInstance(context);

ServiceManager.addService("wigigp2p", (IBinder) wigigP2pService);

Class wigigClass = wigigClassLoader.loadClass("com.qualcomm.qti.server.wigig.WigigService");
ctor = wigigClass.getConstructor(Context.class);
wigigService = ctor.newInstance(context);

ServiceManager.addService("wigig", (IBinder) wigigService);

serviceDiscovery = NsdService.create(context);

ServiceManager.addService(Context.NSD_SERVICE, serviceDiscovery);

ServiceManager.addService(Context.SYSTEM_UPDATE_SERVICE, new SystemUpdateManagerService(context));

ServiceManager.addService(Context.UPDATE_LOCK_SERVICE, new UpdateLockService(context));

location = new LocationManagerService(context);

ServiceManager.addService(Context.LOCATION_SERVICE, location);

countryDetector = new CountryDetectorService(context);

ServiceManager.addService(Context.COUNTRY_DETECTOR, countryDetector);

serial = new SerialService(context);

ServiceManager.addService(Context.SERIAL_SERVICE, serial);

hardwarePropertiesService = new HardwarePropertiesManagerService(context);

ServiceManager.addService(Context.HARDWARE_PROPERTIES_SERVICE, hardwarePropertiesService);

ServiceManager.addService("diskstats", new DiskStatsService(context));

ServiceManager.addService("runtime", new RuntimeService(context));

ServiceManager.addService("network_time_update_service", networkTimeUpdater);

ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE, new GraphicsStatsService(context));

ServiceManager.addService(CoverageService.COVERAGE_SERVICE, new CoverageService());

mediaRouter = new MediaRouterService(context);

ServiceManager.addService(Context.MEDIA_ROUTER_SERVICE, mediaRouter);

EuiccCardController.java

ServiceManager.addService("euicc_card_controller", this);

EuiccController.java

ServiceManager.addService("econtroller", this);

SmsController.java

ServiceManager.addService("isms", this);

UiccPhoneBookController.java

ServiceManager.addService("simphonebook", this);

PhoneSubInfoController.java

ServiceManager.addService("iphonesubinfo", this);

SubscriptionC

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值