adb

adb command for getting ip address assigned by operator

半城伤御伤魂 提交于 2019-12-29 10:27:11
问题 I need to fetch the IPaddress assigned by the operator after a successful 3G or LTE data call. $adb shell netcfg >> doesnt have the assigned IP address. I tried adb shell dumpsys and grep ip address, but in vain. Any help/pointers? 回答1: Try this command, it will help you to get ipaddress $ adb shell ifconfig tiwlan0 tiwlan0 is the name of the wi-fi network interface on the device. This is generic command for getting ipaddress, “adb shell netcfg” It will output like this usb0 DOWN 0.0.0.0 0.0

ADB Command to set volume?

偶尔善良 提交于 2019-12-29 09:05:41
问题 Is there any Adb command to set the volume to a particular value? I know that we can do adb shell input keyevent for volume up and down but i want to set it to a particular value. If I change it it DB then I have to reboot the device for the changes to be reflected so i do not want to go that path. Isn't there any API where I can change the value without having to restart it and having to be dependent on Volume up and Down? 回答1: media shell command can also be used: media volume: the options

ADB Command to set volume?

女生的网名这么多〃 提交于 2019-12-29 09:05:18
问题 Is there any Adb command to set the volume to a particular value? I know that we can do adb shell input keyevent for volume up and down but i want to set it to a particular value. If I change it it DB then I have to reboot the device for the changes to be reflected so i do not want to go that path. Isn't there any API where I can change the value without having to restart it and having to be dependent on Volume up and Down? 回答1: media shell command can also be used: media volume: the options

Android studio logcat not working

烂漫一生 提交于 2019-12-29 06:35:19
问题 There is very awkward thing I am facing logcat is shown in debugging application but while running(not debugging) application it is not showing logcat . I tried restart it but nothing is happening. 回答1: In my case in Android 2.2, for some reason, Firebase was selected by default in the dropdown box marked above. So logs didn't drop. I just needed to change it to No Filters . Then it worked. I even tried restarting the logcat, that didn't work too. No Filters did the magic. Hope this helps

Why is Eclipse and ADB not recognizing my Android Device?

こ雲淡風輕ζ 提交于 2019-12-29 04:14:07
问题 My device is Alcatel OneTouch 890 with Android 2.1. I configured in 51-android.rules in rules.d of /etc/udev folder. My operation system is Ubuntu. I enabled the usb debugging mode in my device. HTC and Samsung devices are detecting, but not my Alcatel, Here is my 51-android.rules file. #HTC SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666" #samsung SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666" SUBSYSTEM=="usb_device"

Eclipse, adb, and ddms not detecting Android Emulator

左心房为你撑大大i 提交于 2019-12-29 03:36:26
问题 I wanted to try my hand at programming android devices, so I followed the directions from the android website, installed the sdk, the java sdk, and eclipse. My computer is Windows 7 64-Bit, but I have the 32-bit Java SDK and Eclipse installed since hearing that there are issues with the 64-bit versions. I am running the most recent version of the Android sdk, 4.0 R15. I believe followed all of the instructions for installation, but when I load up a sample (Lunar Lander in this case), it loads

Adb shell commands to change settings or perform tasks on a phone

喜夏-厌秋 提交于 2019-12-29 03:11:48
问题 How do I use adb to perform some automated tasks on my android phone? I need to find commands that I can issue from the command line (ideally, using a .bat file) that will be capable of more than simply opening an application or sending an input keyevent (button press). For instance, I want to toggle Airplane Mode on or off from the command line. Currently, the best I can do is launch the Wireless & network settings menu and then use input keyevents to click Airplane mode: adb shell am start

adb启动activity、service、发送broadcast

扶醉桌前 提交于 2019-12-28 23:23:31
一、adb启动activity: $ adb shell $ am start -n {包(package)名}/{包名}.{活动(activity)名称} 如:启动浏览器 # am start -n com.android.browser/com.android.browser.BrowserActivity 二、adb启动service: $ adb shell $ am startservice -n {包(package)名}/{包名}.{服务(service)名称} 如:启动自己应用中一个service # am startservice -n com.android.traffic/com.android.traffic.maniservice 三、adb发送broadcast: $ adb shell $ am broadcast -a <广播动作> 如:发送一个网络变化的广播 # am broadcast -a android.net.conn.CONNECTIVITY_CHANGE 来源: https://www.cnblogs.com/guanghma/p/10987770.html

Android Debug Bridge(adb)

有些话、适合烂在心里 提交于 2019-12-28 17:39:44
Adb google官方文档翻译,源文档地址如下 https://developer.android.google.cn/studio/command-line/adb Android Debug Bridge(adb) Android调试桥(adb)是一种多功能的命令行工具,可让您与设备进行通信。adb命令可促进各种设备操作,例如安装和调试应用程序,并提供对Unix shell的访问,您可使用该shell在设备上运行各种命令。它是一个客户端服务器程序,包括三个组件: 客户端 ,发送命令。客户端在您的开发计算机上运行。您可以通过发出adb命令从命令行终端调用客户端。 守护程序(adbd) ,它在设备上运行命令。守护程序在每个设备上作为后台进程运行。 服务器 ,管理客户端和守护程序之间的通信。服务器在开发计算机上作为后台进程运行。 adb 包含在Android SDK平台工具包中。您可以使用 SDK Manager 下载该软件包,然后将其安装在 android_sdk/platform-tools/ 。或者,如果您需要独立的Android SDK平台工具包,则可以 在此处下载 。 有关连接设备以在ADB上使用的信息,包括如何使用连接助手解决常见问题的信息,请参阅 在硬件设备上运行应用程序 。 adb 如何工作 启动adb客户端时,客户端首先检查是否已在运行adb服务器进程。如果没有

Sony DPT-RP1 解锁

孤者浪人 提交于 2019-12-28 16:24:36
骚尼有可能在2019年12月后进行一次升级,并从软件层面禁止破解,所以1.6.03.09261版本可能是目前可破解的最高版本!!! 至于将来的升级问题,HappyZ在其github中也有提及,如法炮制即可。解锁后如果继续使用PC客户端对电子纸进行升级,可能后将电子纸恢复出厂设置,请务必注意!!! 研究了两天,终于还是决定破解了,以下是操作过程: 设备: 1.Sony DPT-RP1 一部 (2019年9月份之前生产的) 2.Macbook pro / Windows 10 一台 3.Micro USB 数据线 一条 准备工作: 1.电子纸版本是1.6.03.09261或早于此版本的任意版本 2.电脑 按照以下步骤完成软件安装: (1)安装 Homebrew $ ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” 然后 export PATH="/usr/local/opt/python/libexec/bin:$PATH" (2)安装 Python 3 $ brew install python 安装完成后,在 Terminal 打入命令 python3 -V 如果安装成功,会看到 Python 的版本号 (3)安装 pip pip install