adb

Android - Create shortcut from adb

余生长醉 提交于 2020-01-02 08:10:30
问题 I want to create a shortcut via adb for an application I'm developing. I have looked in Grepcode to see how the intent Android is expecting to be formatted. I also checked the AM documentation to try to create the intent required. So far I got a lot of variations of the line below, but this one seems the most appropriate. adb -d shell am broadcast \ -a com.android.launcher.action.INSTALL_SHORTCUT \ --es Intent.EXTRA_SHORTCUT_NAME "<shortcut-name>" \ --esn Intent.EXTRA_SHORTCUT_ICON_RESOURCE \

Change the permissions and ownership of tty port in android programmatically

China☆狼群 提交于 2020-01-02 04:09:17
问题 I need to change the permission of /dev/tty* file as I am writing data on that port. I am able to change the permission from the windows command prompt by entering the adb shell as root. But when I reboot the device, the permissions are not persisted. Instead, they are set to default values. So, every time I need to run my app after reboot, I need to change the permissions. I tried to run the adb commands from the app by using Runtime.exec() method but that does not change anything as the app

Change the permissions and ownership of tty port in android programmatically

五迷三道 提交于 2020-01-02 04:09:07
问题 I need to change the permission of /dev/tty* file as I am writing data on that port. I am able to change the permission from the windows command prompt by entering the adb shell as root. But when I reboot the device, the permissions are not persisted. Instead, they are set to default values. So, every time I need to run my app after reboot, I need to change the permissions. I tried to run the adb commands from the app by using Runtime.exec() method but that does not change anything as the app

Eclipse ADT Error: Cannot run program adb

两盒软妹~` 提交于 2020-01-02 03:39:08
问题 I'm on Ubuntu and just installed the Android SDK ("SDK Only") for 64-bit linux. I then installed the ADT plugin for Eclipse. When I restarted Eclipse it asked me to open the SDK Manager and install some OS SDKs, so I installed some Developer tools and the most recent (I believe it was 4.2.2) Android distro. I then restarted Eclipse and got no errors or console warnings. I then tried to open several Android views (Heap, LogCat, etc.) and got the following error: What is this and why am I

windows 7 adb driver Samsung galaxy S3

心不动则不痛 提交于 2020-01-02 01:09:11
问题 For app development purposes, I would like to access Samsung Galaxy S3 (ICS) phone through ADB interface on my Windows 7 32 bit laptop. Where can I find the ADB driver for the phone? 回答1: this worked for me. download the driver from: http://developer.samsung.com/android/tools-sdks/Samsung-Android-USB-Driver-for-Windows 回答2: adb shell --> 'error: device not found' Here is what worked for me with Win7 64 bits Install from http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB

Python编写ADB控制脚本(一)准备工作

时光毁灭记忆、已成空白 提交于 2020-01-01 23:07:09
Python编写ADB控制脚本(一) Python编写ADB控制脚本(一)准备工作 一、环境配置 ADB测试 Python编写ADB控制脚本(一)准备工作 一、环境配置 配置 Java环境变量 下载 ADB工具 ,并添加到环境变量中 至此,已经完成了环境变量的配置 ADB测试 打开手机的ADB调试模式,连接电脑 在cmd命令行中输入如下代码 adb devices 如若连接成功将显示已连接的设备 来源: CSDN 作者: Fragile了 链接: https://blog.csdn.net/qq_37917228/article/details/103796047

Essential Phone PH1官方刷机方法

a 夏天 提交于 2020-01-01 22:59:06
Essential Phone官方有两种包 一种是ota包,即sideload线刷使用的包。但此刷机方法只能ota升级,不能降级。 另一种是Images包,即fastboot线刷使用的包。这种方法可以实现降级,当然也可以升级。 注: *刷机前请备份,并退出谷歌账号。 **刷机包以及各种刷机需要的文件我会在评论区中放出链接。 链接: https://pan.baidu.com/s/1xQUUfoD2m_rWcvUGeRDuiQ 密码: kuan 两种刷机方式都需要的步骤: 1.安装Essential驱动.exe到电脑,下载后需要安装。 2.解压ADB.zip到电脑桌面备用。 3.用数据线将手机连接到电脑。 4.进入设置-系统-关于手机,然后连续点击七次版本号,直到看到弹出消息“您现在处于开发者模式”。 5.进入设置-系统-开发者选项打开USB调试(fastboot线刷需要解锁BL需要额外开启OEM解锁) 6.win10在ADB文件夹内选定空白处按住shift+鼠标右键选择powershell,打开后在powershell窗口(后文省略为窗口。窗口不要关闭,win7 方法相同shift+鼠标右键打开cmd窗口)输入 adb devices 并回车键入,出现device即为连接成功。没有出现请在窗口运行 adb kill-server,并关闭各种手机助手并去任务管理器手动结束adb

Service call isms with ADB shell (Android SDK)?

我是研究僧i 提交于 2020-01-01 12:22:10
问题 Do you know the command "service call isms" with adb shell on Android? Here is the complete command I use : service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText". There are some parameter but I don't know what it means (5, s16, i32, 0). Is there somewhere a manual ? The most important for me is to get an error when the sms doesn't send successfully (about 10% of the sms aren't send) => this question asked already but there isn't answer (https://stackoverflow.com/questions/17395546

Service call isms with ADB shell (Android SDK)?

情到浓时终转凉″ 提交于 2020-01-01 12:22:10
问题 Do you know the command "service call isms" with adb shell on Android? Here is the complete command I use : service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText". There are some parameter but I don't know what it means (5, s16, i32, 0). Is there somewhere a manual ? The most important for me is to get an error when the sms doesn't send successfully (about 10% of the sms aren't send) => this question asked already but there isn't answer (https://stackoverflow.com/questions/17395546

Android Studio is not recognising OnePlus2 on Mac/Linux

≡放荡痞女 提交于 2020-01-01 08:57:24
问题 My Android Studio (1.3.2) is not recognising my phone "OnePlus Two" I am having Mac (OS x Yosemite 10.10.5) with latest Android SDK. Update 1: The file transfer software installed on my mac "Android File Transfer" is able to recognise the phone as soon as I connect phone to mac. Update 2: While trying to look for all connected device through terminal, I even don't see my device their by executing command adb devices Update 3: I do tried killing adb and starting again but that too didn't work.