国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

adb shell dumpsys 使用命令和來源

這篇具有很好參考價值的文章主要介紹了adb shell dumpsys 使用命令和來源。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

一、概述

? ? ? ? adb shell dumpsys 在Android開發(fā)中經(jīng)常要用到,平時都是零碎的積累,用到什么的時候就

記錄下來,最近看了一些資料,發(fā)現(xiàn)可以匯總所有的命令,當帶某個參數(shù)的時候,就可以查看具體

的信息, 本篇文章中還講解了如何去找命令的源碼和源頭,供參考!

二、支持dumpsys命令的服務

1. 列出系統(tǒng)所有支持的dumpsys命令的服務


adb shell dumpsys | grep -i "DUMP OF SERVICE"

2. 支持dumpsys命令的服務

?adb shell service list
Found 203 services:
0	DockObserver: []
1	SurfaceFlinger: [android.ui.ISurfaceComposer]
2	VideoCallEngineService: []
3	accessibility: [android.view.accessibility.IAccessibilityManager]
4	account: [android.accounts.IAccountManager]
5	activity: [android.app.IActivityManager]
6	activity_task: [android.app.IActivityTaskManager]
7	adb: [android.debug.IAdbManager]
8	alarm: [android.app.IAlarmManager]
9	android.hardware.light.ILights/default: []
10	android.hardware.power.IPower/default: []
11	android.hardware.rebootescrow.IRebootEscrow/default: []
12	android.hardware.vibrator.IVibrator/default: []
13	android.os.UpdateEngineService: []
14	android.security.identity: [android.security.identity.ICredentialStoreFactory]
15	android.security.keystore: [android.security.keystore.IKeystoreService]
16	android.service.gatekeeper.IGateKeeperService: []
17	app_binding: []
18	app_integrity: [android.content.integrity.IAppIntegrityManager]
19	appops: [com.android.internal.app.IAppOpsService]
20	appwidget: [com.android.internal.appwidget.IAppWidgetService]
21	audio: [android.media.IAudioService]
22	auth: [android.hardware.biometrics.IAuthService]
23	autofill: [android.view.autofill.IAutoFillManager]
24	backup: [android.app.backup.IBackupManager]
25	battery: []
26	batteryproperties: [android.os.IBatteryPropertiesRegistrar]
27	batterystats: [com.android.internal.app.IBatteryStats]
28	binder_calls_stats: []
29	biometric: [android.hardware.biometrics.IBiometricService]
30	blob_store: [android.app.blob.IBlobStoreManager]
31	bluetooth_manager: [android.bluetooth.IBluetoothManager]
32	broadcastradio: [android.hardware.radio.IRadioService]
33	bugreport: [android.os.IDumpstate]
34	cacheinfo: []
35	carrier_config: [com.android.internal.telephony.ICarrierConfigLoader]
36	clipboard: [android.content.IClipboard]
37	color_display: [android.hardware.display.IColorDisplayManager]
38	companiondevice: [android.companion.ICompanionDeviceManager]
39	connectivity: [android.net.IConnectivityManager]
40	connmetrics: [android.net.IIpConnectivityMetrics]
41	consumer_ir: [android.hardware.IConsumerIrService]
42	content: [android.content.IContentService]
43	country_detector: [android.location.ICountryDetector]
44	cpuinfo: []
45	crossprofileapps: [android.content.pm.ICrossProfileApps]
46	dataloader_manager: [android.content.pm.IDataLoaderManager]
47	dbinfo: []
48	device_config: []
49	device_identifiers: [android.os.IDeviceIdentifiersPolicyService]
50	device_policy: [android.app.admin.IDevicePolicyManager]
51	deviceidle: [android.os.IDeviceIdleController]
52	devicestoragemonitor: []
53	diskstats: []
54	display: [android.hardware.display.IDisplayManager]
55	dnsresolver: []
56	dreams: [android.service.dreams.IDreamManager]
57	drm.drmManager: [drm.IDrmManagerService]
58	dropbox: [com.android.internal.os.IDropBoxManagerService]
59	dynamic_system: [android.os.image.IDynamicSystemService]
60	emergency_affordance: []
61	ethernet: [android.net.IEthernetManager]
62	external_vibrator_service: [android.os.IExternalVibratorService]
63	face: [android.hardware.face.IFaceService]
64	file_integrity: [android.security.IFileIntegrityService]
65	fingerprint: [android.hardware.fingerprint.IFingerprintService]
66	gfxinfo: []
67	gpu: [android.graphicsenv.IGpuService]
68	graphicsstats: [android.view.IGraphicsStats]
69	hardware_properties: [android.os.IHardwarePropertiesManager]
70	imms: [com.android.internal.telephony.IMms]
71	ims_doze_manager: [com.android.ims.internal.IImsDozeManager]
72	ims_ex: [com.android.ims.internal.IImsServiceEx]
73	ims_ut_ex: [com.android.ims.internal.IImsUtEx]
74	incident: []
75	incidentcompanion: [android.os.IIncidentCompanion]
76	incremental: [android.os.incremental.IIncrementalService]
77	input: [android.hardware.input.IInputManager]
78	input_method: [com.android.internal.view.IInputMethodManager]
79	inputflinger: [android.input.IInputFlinger]
80	installd: []
81	ions: [com.android.internal.telephony.IOns]
82	ions_ex: [com.android.unisoc.telephony.aidl.IOperatorNameHandler]
83	iphonesubinfo: [com.android.internal.telephony.IPhoneSubInfo]
84	ipsec: [android.net.IIpSecService]
85	irit: [com.android.unisoc.telephony.aidl.IRadioInteractor]
86	isms: [com.android.internal.telephony.ISms]
87	ismsEx: [com.android.internal.telephony.ISmsEx]
88	isub: [com.android.internal.telephony.ISub]
89	jobscheduler: [android.app.job.IJobScheduler]
90	launcherapps: [android.content.pm.ILauncherApps]
91	ledsrv: [android.os.ILedService]
92	lights: [android.hardware.lights.ILightsManager]
93	linkturbonative: []
94	location: [android.location.ILocationManager]
95	lock_settings: [com.android.internal.widget.ILockSettings]
96	looper_stats: []
97	manager: [android.os.IServiceManager]
98	media.audio_flinger: [android.media.IAudioFlinger]
99	media.audio_policy: [android.media.IAudioPolicyService]
100	media.camera: [android.hardware.ICameraService]
101	media.camera.proxy: [android.hardware.ICameraServiceProxy]
102	media.extractor: [android.IMediaExtractorService]
103	media.metrics: [android.media.IMediaMetricsService]
104	media.player: [android.media.IMediaPlayerService]
105	media.resource_manager: [android.media.IResourceManagerService]
106	media_projection: [android.media.projection.IMediaProjectionManager]
107	media_resource_monitor: [android.media.IMediaResourceMonitor]
108	media_router: [android.media.IMediaRouterService]
109	media_session: [android.media.session.ISessionManager]
110	meminfo: []
111	midi: [android.media.midi.IMidiManager]
112	mount: [android.os.storage.IStorageManager]
113	netd: []
114	netd_listener: [android.net.metrics.INetdEventListener]
115	netpolicy: [android.net.INetworkPolicyManager]
116	netstats: [android.net.INetworkStatsService]
117	network_adapter: [android.os.INetworkAdapterService]
118	network_management: [android.os.INetworkManagementService]
119	network_score: [android.net.INetworkScoreService]
120	network_stack: [android.net.INetworkStackConnector]
121	network_time_update_service: []
122	network_watchlist: [com.android.internal.net.INetworkWatchlistManager]
123	notification: [android.app.INotificationManager]
124	oem_lock: [android.service.oemlock.IOemLockService]
125	otadexopt: [android.content.pm.IOtaDexopt]
126	overlay: [android.content.om.IOverlayManager]
127	package: [android.content.pm.IPackageManager]
128	package_native: [android.content.pm.IPackageManagerNative]
129	performance_fw: [android.app.IPerformanceManagerInternal]
130	performancemanager: []
131	permission: [android.os.IPermissionController]
132	permissionmgr: [android.permission.IPermissionManager]
133	persistent_data_block: [android.service.persistentdata.IPersistentDataBlockService]
134	phone: [com.android.internal.telephony.ITelephony]
135	pinner: []
136	platform_compat: [com.android.internal.compat.IPlatformCompat]
137	platform_compat_native: [com.android.internal.compat.IPlatformCompatNative]
138	power: [android.os.IPowerManager]
139	power_ex: [android.os.sprdpower.IPowerManagerEx]
140	powerguru: [android.app.sprdpower.IPowerGuru]
141	print: [android.print.IPrintManager]
142	processinfo: [android.os.IProcessInfoService]
143	procstats: [com.android.internal.app.procstats.IProcessStats]
144	recovery: [android.os.IRecoverySystem]
145	restrictions: [android.content.IRestrictionsManager]
146	role: [android.app.role.IRoleManager]
147	rollback: [android.content.rollback.IRollbackManager]
148	runtime: []
149	scheduling_policy: [android.os.ISchedulingPolicyService]
150	search: [android.app.ISearchManager]
151	sec_key_att_app_id_provider: [android.security.keymaster.IKeyAttestationApplicationIdProvider]
152	sensor_privacy: [android.hardware.ISensorPrivacyManager]
153	sensorservice: [android.gui.SensorServer]
154	serial: [android.hardware.ISerialManager]
155	servicediscovery: [android.net.nsd.INsdManager]
156	settings: []
157	shortcut: [android.content.pm.IShortcutService]
158	simphonebook: [com.android.internal.telephony.IIccPhoneBookEx]
159	slice: [android.app.slice.ISliceManager]
160	soundtrigger: [com.android.internal.app.ISoundTriggerService]
161	soundtrigger_middleware: [android.media.soundtrigger_middleware.ISoundTriggerMiddlewareService]
162	sprd_power: []
163	sprdssense: [android.os.sprdpower.ISSense]
164	stats: [android.os.IStatsd]
165	statscompanion: [android.os.IStatsCompanionService]
166	statsmanager: [android.os.IStatsManagerService]
167	statusbar: [com.android.internal.statusbar.IStatusBarService]
168	storaged: [android.os.IStoraged]
169	storaged_pri: [android.os.storaged.IStoragedPrivate]
170	storagestats: [android.app.usage.IStorageStatsManager]
171	suspend_control: []
172	system_config: [android.os.ISystemConfig]
173	system_update: [android.os.ISystemUpdateManager]
174	telecom: [com.android.internal.telecom.ITelecomService]
175	telephony.registry: [com.android.internal.telephony.ITelephonyRegistry]
176	telephony_ims: [android.telephony.ims.aidl.IImsRcsController]
177	testharness: []
178	tethering: [android.net.ITetheringConnector]
179	textclassification: [android.service.textclassifier.ITextClassifierService]
180	textservices: [com.android.internal.textservice.ITextServicesManager]
181	thermalservice: [android.os.IThermalService]
182	time_detector: [android.app.timedetector.ITimeDetectorService]
183	time_zone_detector: [android.app.timezonedetector.ITimeZoneDetectorService]
184	trust: [android.app.trust.ITrustManager]
185	uimode: [android.app.IUiModeManager]
186	uni_carrierconfig: [com.android.internal.telephony.IUniCarrierConfigLoader]
187	uni_telephony: [com.android.internal.telephony.IUniTelephony]
188	updatelock: [android.os.IUpdateLock]
189	uri_grants: [android.app.IUriGrantsManager]
190	usagestats: [android.app.usage.IUsageStatsManager]
191	usb: [android.hardware.usb.IUsbManager]
192	user: [android.os.IUserManager]
193	vibrator: [android.os.IVibratorService]
194	voiceinteraction: [com.android.internal.app.IVoiceInteractionManagerService]
195	vold: []
196	wallpaper: [android.app.IWallpaperManager]
197	webviewupdate: [android.webkit.IWebViewUpdateService]
198	wifi: [android.net.wifi.IWifiManager]
199	wifinl80211: []
200	wifip2p: [android.net.wifi.p2p.IWifiP2pManager]
201	wifiscanner: [android.net.wifi.IWifiScanner]
202	window: [android.view.IWindowManager]

上面兩條命令的結(jié)果相差不大,代表系統(tǒng)中可以通過adb shell dumpsys 服務名 去獲取相應信息的命令

三、常用dumpsys命令

1.?查看AMS中所有信息

adb shell dumpsys activity

2.?查看內(nèi)存信息

adb shell dumpsys meminfo

3.?查看電池信息

adb shell dumpsys battery

4.?顯示alarm信息

adb shell dumpsys alarm

5.?顯示內(nèi)存狀態(tài)

adb shell dumpsys procstats

6.?查看Window的相關信息

adb shell dumpsys window

7. 查看CPU相關信息

adb shell dumpsys cpuinfo

有些服務還可以帶參數(shù),如果不是很清楚細節(jié),就加上 -h? 參數(shù)

比如:

home@ubuntu:~$ adb shell dumpsys activity -h
Activity manager dump options:
  [-a] [-c] [-p PACKAGE] [-h] [WHAT] ...
  WHAT may be one of:
    a[ctivities]: activity stack state
    r[recents]: recent activities state
    b[roadcasts] [PACKAGE_NAME] [history [-s]]: broadcast state
    broadcast-stats [PACKAGE_NAME]: aggregated broadcast statistics
    i[ntents] [PACKAGE_NAME]: pending intent state
    p[rocesses] [PACKAGE_NAME]: process state
    o[om]: out of memory management
    perm[issions]: URI permission grant state
    prov[iders] [COMP_SPEC ...]: content provider state
    provider [COMP_SPEC]: provider client-side state
    s[ervices] [COMP_SPEC ...]: service state
    allowed-associations: current package association restrictions
    as[sociations]: tracked app associations
    exit-info [PACKAGE_NAME]: historical process exit information
    lmk: stats on low memory killer
    lru: raw LRU process list
    binder-proxies: stats on binder objects and IPCs
    settings: currently applied config settings
    service [COMP_SPEC]: service client-side state
    package [PACKAGE_NAME]: all state related to given package
    all: dump all activities
    top: dump the top activity
  WHAT may also be a COMP_SPEC to dump activities.
  COMP_SPEC may be a component name (com.foo/.myApp),
    a partial substring in a component name, a
    hex object identifier.
  -a: include all available server state.
  -c: include client state.
  -p: limit output to given package.
  --checkin: output checkin format, resetting data.
  --C: output checkin format, not resetting data.
  --proto: output dump in protocol buffer format.
  --autofill: dump just the autofill-related state of an activity

然后對照英文注釋,帶上不同的參數(shù)后,可以獲取具體的信息:

adb shell dumpsys activity activities----------查看Activity組件信息
adb shell dumpsys activity services-----------查看Service組件信息
adb shell dumpsys activity providers----------產(chǎn)看ContentProvider組件信息
adb shell dumpsys activity broadcasts--------查看BraodcastReceiver信息
adb shell dumpsys activity intents--------------查看Intent信息
adb shell dumpsys activity processes---------查看進程信息
adb shell dumpsys activity intents -------- 查看 PendingIntentRecord 信息

四、命令來源

上述的這些命令都涉及到adb shell 命令,我們看看系統(tǒng)源頭類

public abstract class BasicShellCommandHandler {

    //兩個重要的方法:
    public abstract int onCommand(String cmd);

    public abstract void onHelp();

???????}

onCommand方法 就是各個系統(tǒng)服務 adb shell 直接操作的方法:

比如 AMS 中的? 啟動一個activity

adb shell am start? -n com.DeviceTest/com.DeviceTest.VersionTestActivity

AMS 中的? 啟動一個service

adb shell am startservice -n com.tentent.mm/.plugin.acountsync.model.AcountAuthenticatorService
啟動微信

AMS 中的 停止一個服務

adb shell am stopservice -n? xxxx

AMS 發(fā)送一個廣播:

adb shell am broadcast? -a? ?android.intent.action.BOOT_COMPLETED? -n org.mazhuang.boottimemeasure/.BootCompletedReceiver
表示向 org.mazhuang.boottimemeasure/.BootCompletedReceiver 發(fā)送一個 BOOT_COMPLETED?

各系統(tǒng)服務中的?onShellCommand 方法:

adb shell dumpsys,Android 知識儲備,dumpsys命令使用

最終都會復寫onCommand 方法,比如AMS 中的 onCommand

public int onCommand(String cmd) {
        if (cmd == null) {
            return handleDefaultCommands(cmd);
        }
        final PrintWriter pw = getOutPrintWriter();
        try {
            switch (cmd) {
                case "start":
                case "start-activity":
                    return runStartActivity(pw);
                case "startservice":
                case "start-service":
                    return runStartService(pw, false);
                case "startforegroundservice":
                case "startfgservice":
                case "start-foreground-service":
                case "start-fg-service":
                    return runStartService(pw, true);
                case "stopservice":
                case "stop-service":
                    return runStopService(pw);
                case "broadcast":
                    return runSendBroadcast(pw);
                case "instrument":

到這里,就知道上述 adb shell? am 命令的是從哪里來的

我們在看看 PMS 相關的 命令:

adb shell pm uninstall com.example.MyApp? ? // 卸載一個應用

adb shell pm path :? ?查詢package的安裝位置

adb shell pm enable :使package或component可用。(如:pm enable "package/class")

adb shell pm disable :使package或component不可用。(如:pm disable "package/class")


adb shell pm list packages? ?:??查看所有應用列表

adb shell pm list packages -s? ?: 查看系統(tǒng)應用(system)列表

adb shell pm list packages -3? :??查看第三方應用


adb shell pm clear 包名? :? ?清除應用數(shù)據(jù)與緩存

同理,先進去 PMS中 看看?onShellCommand 方法, 然后最后也會復寫 onCommand 方法:

public int onCommand(String cmd) {
        if (cmd == null) {
            return handleDefaultCommands(cmd);
        }

        final PrintWriter pw = getOutPrintWriter();
        try {
            switch (cmd) {
                case "path":
                    return runPath();
                case "validate":
                    return runValidate();
                case "dump":
                    return runDump();
                case "list":
                    return runList();
                case "resolve-activity":
                    return runResolveActivity();
                case "query-activities":
                    return runQueryIntentActivities();
                case "query-services":
                    return runQueryIntentServices();
                case "query-receivers":
                    return runQueryIntentReceivers();
                case "install":
                    return runInstall();

這樣子,就找到命令的出處了,如果想知道原理,就繼續(xù)去看每個方法中的實現(xiàn)邏輯。

同理,dumpsys 命令相關的源頭,同樣也可以查看每個服務中的?onHelp() 方法:

【備注】:只有部分服務有幫助打印信息

比如 我們想看看 電池服務(BatteryService)相關的信息,通過adb shell service list

找到電池的服務名:battery

adb shell dumpsys??battery -h? ?查看該命令的幫助信息:

Battery service (battery) commands:
  help
    Print this help text.
  set [-f] [ac|usb|wireless|status|level|temp|present|invalid] <value>
    Force a battery property value, freezing battery state.
    -f: force a battery change broadcast be sent, prints new sequence.
  unplug [-f]
    Force battery unplugged, freezing battery state.
    -f: force a battery change broadcast be sent, prints new sequence.
  reset [-f]
    Unfreeze battery state, returning to current hardware values.
    -f: force a battery change broadcast be sent, prints new sequence.

然后我們?nèi)フ?BatteryService.java 中的 onHelp() 方法,可以找到對應的源碼,也就知道該命令的源頭了,代碼如下:文章來源地址http://www.zghlxwxcb.cn/news/detail-631497.html

 class Shell extends ShellCommand {
        @Override
        public int onCommand(String cmd) {
            return onShellCommand(this, cmd);
        }

        @Override
        public void onHelp() {
            PrintWriter pw = getOutPrintWriter();
            dumpHelp(pw);
        }
    }

    static void dumpHelp(PrintWriter pw) {
        pw.println("Battery service (battery) commands:");
        pw.println("  help");
        pw.println("    Print this help text.");
        pw.println("  set [-f] [ac|usb|wireless|status|level|temp|present|invalid] <value>");
        pw.println("    Force a battery property value, freezing battery state.");
        pw.println("    -f: force a battery change broadcast be sent, prints new sequence.");
        pw.println("  unplug [-f]");
        pw.println("    Force battery unplugged, freezing battery state.");
        pw.println("    -f: force a battery change broadcast be sent, prints new sequence.");
        pw.println("  reset [-f]");
        pw.println("    Unfreeze battery state, returning to current hardware values.");
        pw.println("    -f: force a battery change broadcast be sent, prints new sequence.");
    }

到了這里,關于adb shell dumpsys 使用命令和來源的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權(quán),不承擔相關法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

  • android 通過adb shell命令旋轉(zhuǎn)Android屏幕朝向方向

    注意: 默認0有的為橫向,有的為縱向 縱向返回結(jié)果: cur 的值 寬 短 x 高 長 init=1080x1920 420dpi cur=1080x1920 app=1080x1794 rng=1080x1017-1794x1731 橫向返回結(jié)果: cur 的值 寬 長 x 高 短 init=1080x1920 420dpi cur=1920x1080 app=1794x1080 rng=1080x1017-1794x1731

    2024年02月06日
    瀏覽(30)
  • adb shell date 命令修改Android系統(tǒng)時間

    1.關掉自動時間同步 settings put global auto_time 0 2.關掉自動時區(qū)同步 settings put global auto_time_zone 0 3.掛載 adb remount 4.adb shell date “時間格式”?? ?日期格式為 yyyymmdd.hhmmss 或者是 yyyy-mm-dd hh:mm:ss adb shell date \\\"2023-12-05 10:00:00\\\" 5.查看時間是否設置成功 adb shell date 6.設置時區(qū)。先將自動

    2024年02月01日
    瀏覽(23)
  • adb shell 命令打開android系統(tǒng)的開發(fā)者選項界面
  • Android系統(tǒng) adb shell auth授權(quán)使用

    Android系統(tǒng) adb shell auth授權(quán)使用

    adb shell是Android開發(fā)者常用的一個工具,它可以讓我們在電腦上通過USB或網(wǎng)絡連接到Android設備,并執(zhí)行一些命令或操作。但是,有時候我們可能不想讓任何人都能隨意使用adb shell,而是需要一些授權(quán)或驗證的機制,以保護我們的設備和數(shù)據(jù)。本文將介紹如何在基于rockchip rk35

    2024年02月07日
    瀏覽(24)
  • 【adb命令】Android實用技巧之a(chǎn)db命令:getprop,setprop命令使用

    一、getprop 1.1 getprop簡介 getprop命令的作用就是從系統(tǒng)的各種配置文件中讀取一些設備的信息。這些文件在我們的手機設備中是可以找到的。 1.2 查詢所有的配置 會列出所有的配置信息 這些配置中以ro開頭的是只讀屬性。 1.3 查看單個配置信息 可以在adb shell getprop后面加屬性名

    2024年02月04日
    瀏覽(28)
  • Android使用adb命令查看CPU信息

    Android使用adb命令查看CPU信息 在開發(fā)和調(diào)試Android應用程序的過程中,了解設備的硬件信息是非常重要的。而其中一個關鍵信息就是設備的CPU信息。通過使用adb命令,我們可以輕松地查看Android設備的CPU信息。本文將介紹如何使用adb命令來查看CPU信息,并附上相應的源代碼。 首

    2024年02月07日
    瀏覽(39)
  • 使用ADB命令查詢Android設備的安卓版本信息

    確保你已經(jīng)安裝了ADB并將其添加到系統(tǒng)的路徑中。 連接你的Android設備到計算機,并確保啟用了開發(fā)者選項和USB調(diào)試模式。你可以在設備的設置中找到這些選項。 打開終端(命令提示符或終端窗口)。 運行以下ADB命令來獲取Android設備的安卓版本信息: 如果你希望獲得更詳細

    2024年02月08日
    瀏覽(27)
  • adb shell命令

    前面給大家分享了Airtest,感興趣的小伙伴,可以前往:手機自動化測試IDE—–Airtest實戰(zhàn)篇、手機自動化測試IDE —– 手把手教你用Airtest模擬器來連接手機、手機自動化測試IDE—–Airtest基本操作方法、手機自動化測試IDE —– Airtest的安裝和IDE控件詳解,任君挑選。 ADB,中文名

    2023年04月18日
    瀏覽(28)
  • Android13 adb input 調(diào)試命令使用和源碼解析

    Android13 adb input 調(diào)試命令使用和源碼解析

    目錄 一、概述 二、常用命令 2.1 輸入文本 2.2 模擬按鍵 2.3 模擬點擊 2.4 模擬滑動 2.5 模擬長按 2.6 模擬滾動 三、進階用法 3.1 組合按鍵的用法 3.2 長按power鍵 3.3 輸入中文 3.4 代碼模擬發(fā)送按鍵 1. 方法1: 2. 方法2: 3. 方法3: 四、注意事項 五、源碼解析 六、總結(jié) 好了 本篇作為And

    2024年01月20日
    瀏覽(32)
  • adb shell下常見查看命令

    top查看進程信息 ls查看當前目錄結(jié)構(gòu) ls -a 查看當前目錄下所有文件 ps data 打印或設置當前系統(tǒng)時間 dumpsys 查看apk所在位置 pm list packages -f | grep apk包名 dumpsys package apk包名 查看棧頂activity dumpsys activity | grep “mFocusedActivity” dumpsys window | grep mCurrentFocus 查看window焦點的活動名稱和

    2024年02月09日
    瀏覽(27)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包