Android下am和pm命令简介

am start -W 命令详解-可以测量应用启动时间的命令 是一个 Android am命令的参数子集,用于启动应用程序并等待应用程序启动完成。这个命令非常有用,特别是当你需要测量应用程序启动时间或者调试应用程序的启动过程时。 阅读详情

1、am命令浅析

1.1am启动指定Activity

am startpackageName/packageName.activityName

示例:adb shell am startcom.android.browser/.BrowserActivity

1.2加参数-S,实现先强制关掉目标app再启动Activity

am start -SpackageName/packageName.activityName

示例:adb shell am start -Scom.android.browser/.BrowserActivity

2、pm命令浅析

2.1列出已安装应用的包

pm list package

2.2列出安装包的信息信息

pm list package -f

2.3查看系统应用包

pm list package -s

2.4查看系统非应用包

pm list package -3

2.5查看应用报及对应的安装者信息

pm list package -i

2.6查看包的安装位置

pm pathpackageName

2.7安装包

pm installapkName(注意apk路径必须是shell中的路径)

2.8卸载包

pm uninstallpackageName

pm uninstallpackageName -k(保留数据卸载)

2.9清除应用的所有的数据

pm clearpackageName

2.10列出危险权限

pm listpermissions -d

2.11列出测试包的信息

pm listinstrumentation

cadence Virtuoso ADE原理图库中的VCVS(压控电压源)使用 Symbol: vcvs (Voltage Controlled Voltage Source) Vop−Von=egain⋅(Vip−Vin)V_{op}-V_{on}=egain\cdot(V_{ip}-V_{in})Vop​−Von​=egain⋅(Vip​−Vin​) 所以可以得出 ⟹Vop=egain⋅(Vip−Vin)+Von\Longrightarrow V_{op}=egain\cdot(V_{ip}-V_{in})+V_{on}⟹Vop​=egain⋅(Vip​−Vin​)+Von​ 使 阅读详情

相关推荐

学术报告系列(二) - 智能自主作业机器人感知与控制技术及发展趋势

收集整理于2022年模式识别高峰论坛湖南大学王耀南院士报告(报名题目:智能自主作业机器人感知与控制技术及发展趋势)

Make something people want. 4696

am start

测试中经常会用到am start命令去进行操作,基本上也只用到 am start -n 和 am start -a ** -d **,后来测试activity启动用到了am start -W,才惊觉这个命令的功能还是很强大的,所以总结了一下,存档以备以后查看。 1. am start -n    解释:启动一个activity    e.g. am start -n com.and

rechanel的博客 1万+

开启虚拟人物互动新时代:探索相芯Avatar SDK驱动功能(Android)

相芯SDK提供了男孩和女孩Avatar驱动模型,这些模型具备半身驱动和全身驱动的功能,使得虚拟角色能够根据用户的面部表情和动作实时模仿和响应。半身驱动功能: 相芯SDK的男孩和女孩Avatar驱动模型具备上身驱动功能,即能够通过用户的面部表情和动作来驱动虚拟角色的上半身行为。这意味着用户的面部表情、头部转动和上半身姿态等动作可以直接映射到虚拟角色上,使得虚拟角色能够栩栩如生地模仿用户的动作。例如,用户微笑时,虚拟角色会展现出笑容;用户转动头部时,虚拟角色也会相应地转动头部。

Faceunity2023的博客 631

am start 命令详解

在 Android 中,am start 命令是一个强大的工具,用于启动应用程序的活动、服务或广播接收器。它是 Android Debug Bridge (ADB) 工具的一部分,允许开发者和测试人员在命令行中启动应用程序的组件、进行调试以及进行测试。本文将详细介绍 am start 命令的使用、参数、进阶技巧和调试方法。

netwalk的专栏 6027

保姆级教程:手把手教你下载和配置Waymo自动驾驶数据集(附百度网盘链接)

本文提供了一份详细的Waymo自动驾驶数据集下载和配置指南,特别针对国内研究者优化了数据获取方案,包括百度网盘链接和Google Cloud CLI配置。文章还涵盖了环境配置、数据处理实战、可视化分析以及进阶技巧,帮助开发者高效利用这一业界黄金标准数据集进行自动驾驶研究。

weixin_42651281的博客 360

MATLAB算法实战应用案例精讲-【数模应用】梯度提升决策树(GDBT)(附python代码)

GBDT(Gradient Boosting Decision Tree) 又叫 MART(Multiple Additive Regression Tree),是一种迭代的决策树算法,该算法由多棵决策树组成,它在被提出之初就和SVM一起被认为是泛化能力(generalization)较强的算法。近些年更因为被用于搜索排序的机器学习模型而引起大家关注。.........

qq_36130719的博客 2077

Android adb shell am start命令总结

1.adb shell am start [options] <INTENT> 作用:启动一个activity adb shell am start com.android.settings/com.android.settings.Settings(com.android.settings/.Settings) 举例:adb shell am start -a com.e.u...

Jimmy的专栏 4万+

Open3D——RANSAC拟合球面【2026最新版】

RANSAC三维点云球面拟合,博客长期更新,本文最新更新时间为:2026年3月5日。

点云侠的博客 4084

android am start的使用方法

最近研究pc与Android应用程序通过usb通信,顺带研究了一下怎么通过adb启动Android应用程序,于是乎看到了am命名(activity manager)。 先附上谷歌开发文档中的描述文档路径,里面比我这里讲得详细。 http://developer.android.com/tools/help/adb.html#IntentSpec 虽然里面讲得很详细,不过对于我这种菜鸟来说,还

奇点世界的专栏 3万+

AISBench benchmark评测工具实操-精度评测场景-采用命令行指定模型和数据集的方式

搭建AISBench benchmark测试环境,包括创建conda环境、安装AISBench benchmark、处理ceval数据集,并修改相关配置文件以适配测试需求。最终,通过启动精度测评,验证了模型在指定环境下的性能。

m0_50105717的博客 2040

点云数据处理:体素滤波算法

体素滤波是一种简单而有效的点云数据处理方法,可用于去除离群点和平滑点云表面。体素滤波是一种常用的点云数据处理算法,用于去除离群点并平滑点云表面。在本文中,我们将介绍CloudCompare和PCL(Point Cloud Library)中的体素滤波算法,并提供相应的源代码示例。PCL是一个专门用于点云处理的开源库,提供了一系列高效的点云处理算法和工具。然后,我们创建了一个。方法执行体素滤波,并将滤波后的点云保存为"filtered_cloud.ply"文件。方法来执行体素滤波,指定体素大小为0.01。

ZyqfCss的博客 388

adb shell中的am pm命令、常用命令总结

am全称activity manager,你能使用am去模拟各种系统的行为,例如去启动一个activity,强制停止进程,发送广播进程,修改设备屏幕属性等等。 am 你也可以在adb shell前执行am命令: adb shell am start -a android.intent.action.VIEW 关于一些am命令的介绍: start [options] :启动activity通过指定的intent参数。具体intent参数参照官方表。 startservice [options] : 启动

七七的博客 2万+

SerDes电路的PCB仿真设计规则及策略

SerDes的PCB设计中,重点工作是使用3D 电磁 (EM) 场求解器,进行过孔结构优化,包括 BGA的扇入和扇出区域以及布线的过孔区域,并且,利用连接器供应商提供加密的 3D 模型,进行连接器和 PCB 的级联仿真,最终获取系统级的通道性能参数,如插入损耗、回波损耗、串扰和模式转换、阻抗曲线等,如果发现任何缺陷,再进行进一步优化,这一过程中,推荐进行拆分仿真,以提高设计效率。

一只豌豆象的博客 2190

adb之am、pm命令

PM命令 pm即package manager,使用pm命令可以去模拟android行为或者查询设备上的应用信息等 1、命令格式:pm 2、命令列表: 命令 功能 实现方法 dump dump信息 AM.dumpPackageStateStatic clear 清空App数据 AMS.clearApplicationUserData uninstall

Picasso_L的专栏 8171

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Android SDK: adb shell 命令的使用(am、pm、wm、screencap、monkey等)

通过 Android SDK 的 adb shell 命令可以向已连接的 Android 设备或模拟器发送 shell 命令。am 是 Activity 管理命令,启动Activity、强行停止进程、开启服务、发送广播等。pm 是包管理命令,即应用管理器,可以使用该命令对设备的软件包(APP)进行管理,例如安装、查看、卸载等。wm 窗口管理命令获取和修改屏幕的分辨率、像素密度,screencap 屏幕截图,screenrecord 屏幕录制,getprop 获取设备属性信息,monkey 自动化测试。

谢TS的博客 1万+

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

android am pm命令

今天看了下adb shell中的am pm命令,一些自己的见解和大多数官网的翻译。 先说下am命令,am全称activity manager,你能使用am去模拟各种系统的行为,例如去启动一个activity,强制停止进程,发送广播进程,修改设备屏幕属性等等。当你在adb shell命令下执行am命令: am <command> 你也可以在adb shell前执行am命令: ad...

Zhanganliu的博客 757

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

android工具am的用法,Android am/pm命令用法

am命令的参数介绍:usage: am [subcommand] [options]start an Activity: am start [-D] -D: enable debugging send a broadcast Intent: am broadcast start an Instrumentation: am instrument [flags] -r: print raw r...

weixin_35025136的博客 1591

android工具am的用法,Android中AM、PM、dumpsys命令使用总结

在平时开发中,通过命令行有时候能够快速的帮我们实现一些功能,这里对常用的命令做一些总结。1、AM命令用法1.1、简单介绍am指令是 activity manager的缩写,可以启动Service、Broadcast,杀进程,监控等功能,这些功能都非常便捷调试程序。可以通过adb shell 进入Android 的Linux命令界面,输入am -help查看详细命令,先介绍几个简单用法,//使用Ac...

weixin_28870939的博客 2459

Android开发片段–命令行安装,卸载,启动,程序(AM,PM)

http://zzh.iteye.com/ Android AM命令行启动程序的方法 usage: am [subcommand] [options]     start an Activity: am start [-D]         -D: enable debugging     send a broadcast Intent: am broadcast

bigapple88的专栏 5235

Android am与pm命令详解

前言:am全称为Activity Manager,活动管理器,可以用来控制activity、service; pm全称Package Manager 包管理器,用以管理系统中安装的应用。 adb shell进入android的命令界面后可执行am与pm命令 am命令大全 启动Activity start-activity [-D] [-N] [-W] [-P <FILE>] [--start-profiler <FILE>] [--sampling INTER.

pigdreams的博客 7082

adb shell am和pm命令参数详解

am全称activity manager,你能使用am参数去模拟各种系统的行为,例如去启动一个activity,强制停止进程,发送广播进程,修改设备屏幕属性等等。pm全称package manager,你能使用pm命令去模拟android行为或者查询设备上的应用等。adb shell am和pm命令参数详解。

码点 1104

android时间格式am pm,pm时间(am.pm正确时间书写格式)

12制的时间,am代表00:00:00--12:59:59时间段,pm代表13:00:00-24:59:59时间段,如am9:00就是上午9点,pm9:00就是21:00:00pm是下午 am是上午是下午时间!AM是白天,PM是晚上,按午夜12点到中午12点区分,午夜12点用12M,中午12点用12N 回答不易,如有帮助记得采纳!1,pm是下午的意思,am是上午的意思。2,可以在手机“设置”中去设...

weixin_35778245的博客 2万+

android常用的一些UI调试命令am,pm

android在开发者模式下,我们能够使用adb执行andorid手机上system/bin/目录下的几乎所有命令。这些命令有的和linux的原始命令功能一样,有些是android独有的,有些是MTK添加的。但他们无一例外,功能都相当强大。熟练使用这些命令,可以有效的减少程序调试的工作量。 am指令可以发送广播,可以启动activity,可以启动服务,同时还能在特定的窗口关闭他们。因

617

Android am/pm命令用法

am命令的参数介绍:usage: am [subcommand] [options] start an Activity: am start [-D] <INTENT> -D: enable debugging am使用方法:

菜包子的专栏 6964

adb 之android的神器am

命令窗口通过adb shell 进入android 的Linux命令界面,输入am -help看到如下信息:     我们可以通过命令启动android中的Activity,Service,BroadcastReceiver 等组件   1. 拨打一个电话:       am start -a android.intent.action.CALL

不只是写代码的程序员 5575

安卓调试进阶:adb shell中am与pm命令的深度解析与应用

在安卓开发与调试领域,掌握系统级命令行工具是提升效率与理解系统运行机制的关键。从基础概念上讲,Android Debug Bridge (ADB) 提供了与安卓设备通信的桥梁,而adb shell则是进入设备底层Linux环境的入口。其核心原理在于通过命令行直接调用系统服务,绕过图形界面,实现对应用生命周期和软件包管理的精准控制。这一技术的核心价值在于实现了操作的自动化与脚本化,能够大幅提升开发、测试和系统管理的效率。典型的应用场景包括自动化测试脚本编写、批量应用管理、深度问题排查以及系统性能调优。本文将聚

weixin_33853827的博客 395
上一篇: 命令行运行Android Robotium自动化用例或单元测试用例
下一篇: 用shell脚本模拟用户按键、触摸操作
和技术赛跑
博客等级 码龄11年 80粉丝 35原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值