adb

Make two genymotion Android emulator work in one SAME WiFi work

不羁的心 提交于 2021-02-11 08:50:39
问题 I am developing an Android file sharing APP in WiFi LAN. Therefore I'd like to make my two genymotion emulator(in one host Windows PC) work in the same WiFi network, but in default these two emulator have both 10.10.3.15 as local IP, which means in different network. So is there any possibilities or solutions to make it? 回答1: You can setup your two Virtual Device in bridge mode as explained here https://docs.genymotion.com/Content/03_Virtual_Devices/Managing_virtual_devices/Configuring_a

How to build host static library with Android NDK?

旧城冷巷雨未停 提交于 2021-02-11 06:34:37
问题 I'm trying to build android adb tool from the sources. Since file Android.mk is presented i'm running ndk-build tool to build it. But unfortunately i'm having following errors: /Users/user/Documents/dev/tmp/adb/jni/Android.mk:95: /softdev/android-ndk-r10c/build/core/build-host-static-library.mk: No such file or directory /Users/user/Documents/dev/tmp/adb/jni/Android.mk:183: /softdev/android-ndk-r10c/build/core/build-host-executable.mk: No such file or directory Android NDK: Trying to define

Understand the time information of dumpsys gfxinfo

让人想犯罪 __ 提交于 2021-02-08 10:24:09
问题 I want to understand the time information on the dumpsys gfxinfo log. It looks like this: Applications Graphics Acceleration Info: Uptime: 16264702 Realtime: 28169900 Can anyone tell me how to associate these figures with System.currentTimeMillis()? 回答1: From ActivityManagerService.java: long uptime = SystemClock.uptimeMillis(); long realtime = SystemClock.elapsedRealtime(); pw.println("Applications Graphics Acceleration Info:"); pw.println("Uptime: " + uptime + " Realtime: " + realtime);

Understand the time information of dumpsys gfxinfo

青春壹個敷衍的年華 提交于 2021-02-08 10:23:15
问题 I want to understand the time information on the dumpsys gfxinfo log. It looks like this: Applications Graphics Acceleration Info: Uptime: 16264702 Realtime: 28169900 Can anyone tell me how to associate these figures with System.currentTimeMillis()? 回答1: From ActivityManagerService.java: long uptime = SystemClock.uptimeMillis(); long realtime = SystemClock.elapsedRealtime(); pw.println("Applications Graphics Acceleration Info:"); pw.println("Uptime: " + uptime + " Realtime: " + realtime);

debug bridge for iPhone / shell command prompt

可紊 提交于 2021-02-07 12:24:59
问题 For Android there is ADB (Android debug bridge) which allows to get a shell on the connected device: adb shell Is there something similar for iOS? I'd like to type some shell commands on my Mac that would be executed on the connected iPhone. Is there a built-in Terminal on iPhone? 回答1: There isn't anything for it built in, but if you are jailbroken or can sideload apps (a.k.a., you have a mac with XCode), you can run a local terminal with apps like MobileTerminal, which aren't available on

How to add android.hardware.usb.host.xml inside /system/etc/permissions in android

那年仲夏 提交于 2021-02-07 09:38:52
问题 I did a backup restore on my phone Cherry Mobile Infinix Pure XL (Model: X210) and I found out that USB-OTG is not working. So I take a look on the permissions folder (reference: Youtube video) and noticed that android.hardware.usb.host.xml is missing. I did a lot of research on how to add this file in that directory but nothing works. I just did this https://superuser.com/questions/126073/chmod-to-allow-read-and-write-permissions-for-directory this http://forum.xda-developers.com/showthread

How to add android.hardware.usb.host.xml inside /system/etc/permissions in android

家住魔仙堡 提交于 2021-02-07 09:37:27
问题 I did a backup restore on my phone Cherry Mobile Infinix Pure XL (Model: X210) and I found out that USB-OTG is not working. So I take a look on the permissions folder (reference: Youtube video) and noticed that android.hardware.usb.host.xml is missing. I did a lot of research on how to add this file in that directory but nothing works. I just did this https://superuser.com/questions/126073/chmod-to-allow-read-and-write-permissions-for-directory this http://forum.xda-developers.com/showthread

how to install busybox in android using adb

不问归期 提交于 2021-02-07 06:48:29
问题 I am trying to install busybox on an android emulator. I downloaded and compiled busybox and have the busybox binary on my pc. i then did adb push busybox /data/local/tmp then did adb shell , then #cd /data/local/tmp , then #chmod 777 busybox , then tried #./busybox --install it says busybox command not found. I also copied the file to /system/busybox . but ./busybox --install says busybox command not found . 回答1: First do adb push busybox /data/local/busybox to copy the busybox into the

Open Chrome with ADB

老子叫甜甜 提交于 2021-02-07 03:07:44
问题 I used to able to launch Chrome using ADB like this: adb shell am start -n com.android.chrome/com.android.chrome.Main But now when I try it, I get: Starting: Intent { cmp=com.android.chrome/.Main } Error type 3 Error: Activity class {com.android.chrome/com.android.chrome.Main} does not exist. It seems that the Main Class name has changed. If so, what's the new one? 回答1: Adb command for this adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main 回答2: To open the default

Android adb shell am startservice: Error not found

送分小仙女□ 提交于 2021-02-06 16:34:40
问题 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