adb

adb授予安卓手机应用权限

ぐ巨炮叔叔 提交于 2019-12-28 03:58:02
参考连接: https://greenify.uservoice.com/knowledgebase/articles/749142-how-to-grant-permissions-required-by-some-features https://stackoverflow.com/questions/52079343/how-can-i-use-adb-to-grant-permission-without-root eg: 授予权限命令: adb -d shell pm grant package android.permission.CAMERA 移除权限命令: adb -d shell pm revoke package android.permission.CAMERA 有可能发生的问题: 无法获取权限,并报错:Security exception: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS. 问题原因: 有些具有侵略性的权限无法直接被申请,但是一般手机有个设置可以规避这个问题,以realMe为例 解决方法: realme:打开禁止权限监控 华为手机暂时未发现此项设置,但是可以直接使用

Error running systrace tool in ADB using a Jelly Bean 4.1 emulator on Windows 7

▼魔方 西西 提交于 2019-12-28 02:52:31
问题 How can I run systrace to show its html output? After watching the Google I/O 2012 talk "For Butter or Worse" I am having trouble getting systrace to work on Windows 7 using the emulator running Jelly Bean 4.1. I did the following: Installed Python 2.7, and added the install folder to my PATH Ran the following: C:\android-sdk\platform-tools\systrace>python systrace.py (with older SDKs: C:\android-sdk\tools\systrace>python systrace.py ) But I get the following error in cmd: Traceback (most

adb got two same serial numbers when connected to two smart phones

筅森魡賤 提交于 2019-12-27 14:24:42
问题 I have two smart phones ( ZTEV788d , system Android 2.3.6 ) connected to a computer ( Ubuntu 11.10 ) at the same time, using command: adb devices I got this: List of devices attached P753A12D device P753A12D device The serial numbers are the same! I wrote an application in the computer side to communicate with these two phones, for example install app and push files. I used these commands: adb -s P753A12D install XXX.apk adb -s P753A12D push XXX /sdcard Now these two phones have the same

adb got two same serial numbers when connected to two smart phones

无人久伴 提交于 2019-12-27 14:19:35
问题 I have two smart phones ( ZTEV788d , system Android 2.3.6 ) connected to a computer ( Ubuntu 11.10 ) at the same time, using command: adb devices I got this: List of devices attached P753A12D device P753A12D device The serial numbers are the same! I wrote an application in the computer side to communicate with these two phones, for example install app and push files. I used these commands: adb -s P753A12D install XXX.apk adb -s P753A12D push XXX /sdcard Now these two phones have the same

ADB root is not working on emulator (cannot run as root in production builds)

情到浓时终转凉″ 提交于 2019-12-27 12:19:06
问题 I have just updated emulator 26.0.3, now I cannot run adb root command for new created emulator. the error shown is below: adbd cannot run as root in production builds I have killed and restart adbd like: adb kill-server adb devices Nothing helps, any ideas? I am not sure what is the difference and how to select different build but, if following settings are enabled while creating, then it has root. 回答1: [Credit belongs to @Merk but this should be posted as an answer rather than a comment.]

Why do I get a “sqlite3: not found” error on a rooted Nexus One when I try to open a database using the adb shell?

余生颓废 提交于 2019-12-27 11:01:10
问题 # sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3: not found 回答1: On the Android emulator, sqlite3 is in /system/xbin . There is no /system/xbin on a Nexus One (Android 2.2). Hence, I suspect that sqlite3 is not installed on the Nexus One. 回答2: As an alternative (may not be secure or even good idea though) you can always upload the sqlite3 binary to /system/bin this worked for me: First lets mount /system/ to allow read

Why do I get a “sqlite3: not found” error on a rooted Nexus One when I try to open a database using the adb shell?

我与影子孤独终老i 提交于 2019-12-27 11:00:31
问题 # sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3: not found 回答1: On the Android emulator, sqlite3 is in /system/xbin . There is no /system/xbin on a Nexus One (Android 2.2). Hence, I suspect that sqlite3 is not installed on the Nexus One. 回答2: As an alternative (may not be secure or even good idea though) you can always upload the sqlite3 binary to /system/bin this worked for me: First lets mount /system/ to allow read

shell延时循环执行

試著忘記壹切 提交于 2019-12-26 12:30:26
#!/bin/bash i=0; while [ true ]; do let i++; /bin/sleep 2 echo "start $i " adb root adb remount echo "--------------------------" done 来源: CSDN 作者: codefarmboy 链接: https://blog.csdn.net/Internet_t/article/details/103710915

adb wifi 连接

喜夏-厌秋 提交于 2019-12-26 01:30:46
1.win10 开热点 2.配置热点,手机连接热点 3.手机下载开发者助手(需要软件可网上自行下载,或者留言我私发) 运行软件, 点击悬浮窗 ----找开发者选项----adb wifi调试 打开(下面有显示adb 要连接的命令) 4.adb进行连接 adb connect adb connect 192.168.137.191:5555 来源: CSDN 作者: 贺文轩 链接: https://blog.csdn.net/NaShiWoMenHuanXiao/article/details/103704224

adb命令介绍与使用

倾然丶 夕夏残阳落幕 提交于 2019-12-26 00:18:47
ADB的概念 adb的全称为Android Debug Bridge,是起到调试桥的作用。通过adb,我们可以在ecplise中方便的通过DDMS来调试Android程序,其实他就是一个debug工具。但它的工作当时比较特殊,采用监听socket TCP 5554等端口的方式让IDE和Qemu通讯,默认情况下adb会daemon相关的网络端口,所以当我们运行ecplise的时候adb的进程就会自动运行 ADB的作用 借助adb工具,我们可以管理设备或手机模拟器的状态。还可以进行很多手机操作,比如安装软件、系统升级、运行shell命令等等。 ADB的特点 1).运行设备的shell(命令行) 2).管理模拟器或设备的端口映射 3).计算机和设备之间上传/下载文件 4).将apk软件安装至模拟器或android设备 5).ADB是一个 客户端-服务器端 程序, 其中客户端是你用来操作的电脑, 服务器端是android设备. ADB操作命令 1. 查看在线设备    adb devices 这个命令是查看当前连接的设备, 连接到计算机的android设备或者模拟器将会列出显示 其中标红的表示设备的状态,其有三个状态:   Devices:这个状态表示设备或者模拟器已经连接到adb服务器上。   Offline:这个状态表明设备或者模拟器没有连接adb服务去或者没有响应。   No