adb

Android adb shell am startservice: Error not found

我的梦境 提交于 2021-02-06 16:32:31
问题 I am trying to start the service from adb shell. There already is similar question: How to start and stop android service from a adb shell? However, when I start service with: adb shell am startservice com.mypackage/com.mypackage.service.MyService I receive this message: Starting service: Intent { act=android.intent.action.VIEW dat=com.mypackage/com.mypackage.service.MyService } Error: Not found; no service started. I declare service in AndroidManifest.xml: <application> ... <service android

Android adb shell am startservice: Error not found

吃可爱长大的小学妹 提交于 2021-02-06 16:28:45
问题 I am trying to start the service from adb shell. There already is similar question: How to start and stop android service from a adb shell? However, when I start service with: adb shell am startservice com.mypackage/com.mypackage.service.MyService I receive this message: Starting service: Intent { act=android.intent.action.VIEW dat=com.mypackage/com.mypackage.service.MyService } Error: Not found; no service started. I declare service in AndroidManifest.xml: <application> ... <service android

android emulator sdk 10 api 29 won't start after remount and reboot

百般思念 提交于 2021-02-06 11:22:28
问题 I'm running into strange behaviour when trying to remount device with SDK 10 and API 29, after the remount the emulator hang (device offline) To reproduce: OS: MacOs Using android studio define new device: pixel 2 (or pixel 3/nexus 5), Android 10.0 x86, API 29 start the emulator using command line: emulator -avd Pixel_2_API_29_SDK10 -writable-system -verbose run adb -s emulator-5554 root run adb -s emulator-5554 remount The adb remmount result failure as follow: adb remount Skip mounting

android emulator sdk 10 api 29 won't start after remount and reboot

我的未来我决定 提交于 2021-02-06 11:22:25
问题 I'm running into strange behaviour when trying to remount device with SDK 10 and API 29, after the remount the emulator hang (device offline) To reproduce: OS: MacOs Using android studio define new device: pixel 2 (or pixel 3/nexus 5), Android 10.0 x86, API 29 start the emulator using command line: emulator -avd Pixel_2_API_29_SDK10 -writable-system -verbose run adb -s emulator-5554 root run adb -s emulator-5554 remount The adb remmount result failure as follow: adb remount Skip mounting

android emulator sdk 10 api 29 won't start after remount and reboot

旧城冷巷雨未停 提交于 2021-02-06 11:22:25
问题 I'm running into strange behaviour when trying to remount device with SDK 10 and API 29, after the remount the emulator hang (device offline) To reproduce: OS: MacOs Using android studio define new device: pixel 2 (or pixel 3/nexus 5), Android 10.0 x86, API 29 start the emulator using command line: emulator -avd Pixel_2_API_29_SDK10 -writable-system -verbose run adb -s emulator-5554 root run adb -s emulator-5554 remount The adb remmount result failure as follow: adb remount Skip mounting

How do I run adb on a mac terminal?

[亡魂溺海] 提交于 2021-02-05 20:24:32
问题 adb shell run-as /data/data/com.mypackagename returns adb command not found though I see adb in the directory ( /Users/me/Library/Android/sdk/platform-tools ) 回答1: You just need to add this path to your bash profile and source it: echo 'export PATH=$PATH:~/Library/Android/sdk/platform-tools/' >> ~/.bash_profile source ~/.bash_profile adb devices 回答2: If you are in that directory, you can run it with a leading dot-slash, i.e. ./adb shell run-as /data/data/com.mypackagename . In general, you

How do I run adb on a mac terminal?

落爺英雄遲暮 提交于 2021-02-05 20:16:54
问题 adb shell run-as /data/data/com.mypackagename returns adb command not found though I see adb in the directory ( /Users/me/Library/Android/sdk/platform-tools ) 回答1: You just need to add this path to your bash profile and source it: echo 'export PATH=$PATH:~/Library/Android/sdk/platform-tools/' >> ~/.bash_profile source ~/.bash_profile adb devices 回答2: If you are in that directory, you can run it with a leading dot-slash, i.e. ./adb shell run-as /data/data/com.mypackagename . In general, you

Stop buffering of adb shell output

99封情书 提交于 2021-02-04 19:47:25
问题 I observed this new behavior in adb v1.0.39. The command: adb shell getevent -l gives the output below: Observe that the last line is incomplete. This happens on many different devices. The same command is working without buffering in adb v1.0.32. How do I stop adb shell output buffering in adb v1.0.39? 回答1: Use adb exec-out instead of adb shell command to force the new adb to use the raw mode and avoid stdout buffering. For more info read comments in adb/daemon/shell_service.cpp 回答2: I don't

Automatically installing multiple apps on Android devices when connected to a linux system

流过昼夜 提交于 2021-02-04 16:45:37
问题 I had written some scripts using Ubuntu 14.04 and adb to automatically configure 100´s of Android smartphones. To achieve that I used an udev rule to identify if an USB device is attached to the pc and if that's the case I call my scripts to install some apps onto the devices. So far, so good but there are some problems. At the moment we are connecting 5 devices at the same time, but it happens quite often that on one of the devices one ore more apps are not being installed. It does not

Is it possible to debug an app with a device connected on a remote network? [duplicate]

时光毁灭记忆、已成空白 提交于 2021-01-29 19:06:03
问题 This question already has answers here : How can I deploy and execute an application on a device connected to a remote system? (4 answers) Closed 2 years ago . There's an app my team is developing in Android Java using Android Studio. The app works alright on all our test devices, however it shows some bugs on the client's device. Is it possible to somehow connect the client's device to his network and make this device available on a developer machine for debugging over the internet? It was