1|walleye:/bin # ./svc
Available commands:
help Show information about the subcommands
power Control the power manager
data Control mobile data connectivity
wifi Control the Wi-Fi manager
usb Control Usb state
nfc Control NFC functions
bluetooth Control Bluetooth service
walleye:/bin # ./svc bluetooth
Control Bluetooth service
usage: svc bluetooth [enable|disable]
Turn Bluetooth on or off.
walleye:/bin # ./svc bluetooth enable
walleye:/bin # ./svc bluetooth disable
walleye:/bin # ./svc bluetooth disable
walleye:/bin # readelf
/system/bin/sh: readelf: not found
127|walleye:/bin # ./svc wifi
Control the Wi-Fi manager
usage: svc wifi [enable|disable]
Turn Wi-Fi on or off.
walleye:/bin # ./svc wifi on
Control the Wi-Fi manager
usage: svc wifi [enable|disable]
Turn Wi-Fi on or off.
walleye:/bin # ./svc wifi enable
walleye:/bin # ./svc wifi disable
walleye:/bin # file ./svc
./svc: /system/bin/sh script
walleye:/bin # cat svc
#!/system/bin/sh
# Script to start "am" on the device, which has a very rudimentary
# shell.
#
base=/system
export CLASSPATH=$base/framework/svc.jar
exec app_process $base/bin com.android.commands.svc.Svc $
walleye:/system/bin # ./service
Usage: service [-h|-?]
service list
service check SERVICE
service call SERVICE CODE [i32 N | i64 N | f N | d N | s16 STR ] ...
Options:
i32: Write the 32-bit integer N into the send parcel.
i64: Write the 64-bit integer N into the send parcel.
f: Write the 32-bit single-precision number N into the send parcel.
d: Write the 64-bit double-precision number N into the send parcel.
s16: Write the UTF-16 string STR into the send parcel.
walleye:/system/bin # ./service list
Found 148 services:
0 sip: [android.net.sip.ISipService]
1 nfc: [android.nfc.INfcAdapter]
2 secure_element: [android.se.omapi.ISecureElementService]
3 carrier_config: [com.android.internal.telephony.ICarrierConfigLoader]
4 phone: [com.android.internal.telephony.ITelephony]
5 isms: [com.android.internal.telephony.ISms]
6 iphonesubinfo: [com.android.internal.telephony.IPhoneSubInfo]
7 simphonebook: [com.android.internal.telephony.IIccPhoneBook]
8 isub: [com.android.internal.telephony.ISub]
9 telecom: [com.android.internal.telecom.ITelecomService]
10 contexthub: [android.hardware.location.IContextHubService]
11 netd_listener: [android.net.metrics.INetdEventListener]
12 connmetrics: [android.net.IIpConnectivityMetrics]
13 bluetooth_manager: [android.bluetooth.IBluetoothManager]
14 overlay: [android.content.om.IOverlayManager]
15 autofill: [android.view.autofill.IAutoFillManager]
16 imms: [com.android.internal.telephony.IMms]
17 statscompanion: [android.os.IStatsCompanionService]
18 media.camera.proxy: [android.hardware.ICameraServiceProxy]
19 slice: [android.app.slice.ISliceManager]
20 media_projection: [android.media.projection.IMediaProjectionManager]
21 crossprofileapps: [android.content.pm.ICrossProfileApps]
22 launcherapps: [android.content.pm.ILauncherApps]
23 shortcut: [android.content.pm.IShortcutService]
24 fingerprint: [android.hardware.fingerprint.IFingerprintService]
25 media_router: [android.media.IMediaRouterService]
26 media_resource_monitor: [android.media.IMediaResourceMonitor]
27 media_session: [android.media.session.ISessionManager]
28 restrictions: [android.content.IRestrictionsManager]
29 companiondevice: [android.companion.ICompanionDeviceManager]
30 print: [android.print.IPrintManager]
31 graphicsstats: [android.view.IGraphicsStats]
32 dreams: [android.service.dreams.IDreamManager]
33 commontime_management: []
34 network_time_update_service: []
35 diskstats: []
36 voiceinteraction: [com.android.internal.app.IVoiceInteractionManagerService]
37 appwidget: [com.android.internal.appwidget.IAppWidgetService]
38 backup: [android.app.backup.IBackupManager]
39 trust: [android.app.trust.ITrustManager]
40 soundtrigger: [com.android.internal.app.ISoundTriggerService]
41 jobscheduler: [android.app.job.IJobScheduler]
42 hardware_properties: [android.os.IHardwarePropertiesManager]
43 serial: [android.hardware.ISerialManager]
44 usb: [android.hardware.usb.IUsbManager]
45 midi: [android.media.midi.IMidiManager]
46 DockObserver: []
47 audio: [android.media.IAudioService]
48 wallpaper: [android.app.IWallpaperManager]
49 search: [android.app.ISearchManager]
50 country_detector: [android.location.ICountryDetector]
51 location: [android.location.ILocationManager]
52 devicestoragemonitor: []
53 notification: [android.app.INotificationManager]
54 updatelock: [android.os.IUpdateLock]
55 system_update: [android.os.ISystemUpdateManager]
56 servicediscovery: [android.net.nsd.INsdManager]
57 connectivity: [android.net.IConnectivityManager]
58 ethernet: [android.net.IEthernetManager]
59 wifip2p: [android.net.wifi.p2p.IWifiP2pManager]
60 wifiaware: [android.net.wifi.aware.IWifiAwareManager]
61 wifirtt: [android.net.wifi.rtt.IWifiRttManager]
62 wifiscanner: [android.net.wifi.IWifiScanner]
63 wifi: [android.net.wifi.IWifiManager]
64 netpolicy: [android.net.INetworkPolicyManager]
65 netstats: [android.net.INetworkStatsService]
66 network_score: [android.net.INetworkScoreService]
67 textclassification: [android.service.textclassifier.ITextClassifierService]
68 textservices: [com.android.internal.textservice.ITextServicesManager]
69 ipsec: [android.net.IIpSecService]
70 network_management: [android.os.INetworkManagementService]
71 clipboard: [android.content.IClipboard]
72 statusbar: [com.android.internal.statusbar.IStatusBarService]
73 device_policy: [android.app.admin.IDevicePolicyManager]
74 persistent_data_block: [android.service.persistentdata.IPersistentDataBlockService]
75 deviceidle: [android.os.IDeviceIdleController]
76 oem_lock: [android.service.oemlock.IOemLockService]
77 lock_settings: [com.android.internal.widget.ILockSettings]
78 uimode: [android.app.IUiModeManager]
79 storagestats: [android.app.usage.IStorageStatsManager]
80 mount: [android.os.storage.IStorageManager]
81 accessibility: [android.view.accessibility.IAccessibilityManager]
82 input_method: [com.android.internal.view.IInputMethodManager]
83 pinner: []
84 network_watchlist: [com.android.internal.net.INetworkWatchlistManager]
85 vrmanager: [android.service.vr.IVrManager]
86 input: [android.hardware.input.IInputManager]
87 window: [android.view.IWindowManager]
88 alarm: [android.app.IAlarmManager]
89 consumer_ir: [android.hardware.IConsumerIrService]
90 vibrator: [android.os.IVibratorService]
91 dropbox: [com.android.internal.os.IDropBoxManagerService]
92 settings: []
93 content: [android.content.IContentService]
94 account: [android.accounts.IAccountManager]
95 telephony.registry: [com.android.internal.telephony.ITelephonyRegistry]
96 scheduling_policy: [android.os.ISchedulingPolicyService]
97 sec_key_att_app_id_provider: [android.security.keymaster.IKeyAttestationApplicationIdProvider]
98 binder_calls_stats: []
99 webviewupdate: [android.webkit.IWebViewUpdateService]
100 media.sound_trigger_hw: [android.hardware.ISoundTriggerHwService]
101 media.aaudio: [IAAudioService]
102 media.audio_policy: [android.media.IAudioPolicyService]
103 usagestats: [android.app.usage.IUsageStatsManager]
104 sensorservice: [android.gui.SensorServer]
105 batteryproperties: [android.os.IBatteryPropertiesRegistrar]
106 battery: []
107 processinfo: [android.os.IProcessInfoService]
108 permission: [android.os.IPermissionController]
109 cpuinfo: []
110 dbinfo: []
111 gfxinfo: []
112 meminfo: []
113 procstats: [com.android.internal.app.procstats.IProcessStats]
114 activity: [android.app.IActivityManager]
115 user: [android.os.IUserManager]
116 otadexopt: [android.content.pm.IOtaDexopt]
117 package_native: [android.content.pm.IPackageManagerNative]
118 package: [android.content.pm.IPackageManager]
119 display: [android.hardware.display.IDisplayManager]
120 recovery: [android.os.IRecoverySystem]
121 power: [android.os.IPowerManager]
122 appops: [com.android.internal.app.IAppOpsService]
123 batterystats: [com.android.internal.app.IBatteryStats]
124 device_identifiers: [android.os.IDeviceIdentifiersPolicyService]
125 media.audio_flinger: [android.media.IAudioFlinger]
126 storaged_pri: [android.os.storaged.IStoragedPrivate]
127 storaged: [android.os.IStoraged]
128 media.resource_manager: [android.media.IResourceManagerService]
129 media.player: [android.media.IMediaPlayerService]
130 stats: [android.os.IStatsManager]
131 android.security.keystore: [android.security.IKeystoreService]
132 android.service.gatekeeper.IGateKeeperService: [android.service.gatekeeper.IGateKeeperService]
133 android.os.UpdateEngineService: [android.os.IUpdateEngine]
134 drm.drmManager: [drm.IDrmManagerService]
135 media.drm: [android.media.IMediaDrmService]
136 media.extractor.update: [android.media.IMediaExtractorUpdateService]
137 media.extractor: [android.media.IMediaExtractorService]
138 media.metrics: [android.media.IMediaAnalyticsService]
139 wificond: []
140 perfprofd: [android.os.IPerfProfd]
141 installd: [android.os.IInstalld]
142 incident: [android.os.IIncidentManager]
143 thermalservice: [android.os.IThermalService]
144 gpu: [android.ui.IGpuService]
145 SurfaceFlinger: [android.ui.ISurfaceComposer]
146 netd: [android.net.INetd]
147 vold: [android.os.IVold]
网友评论