android,adb,logcat,android-4.4-kitkat,reboot
Also, I don't think that logcat was enabled on my phone at the time when the error occurred Logging is always enabled. LogCat simply reports what's in the log. Is there a way to see an error that is 12 hours long? The logging area is a ring buffer....
java,android,shell,adb,getproperties
System.getProperties() does not return the same properties as getprop. To get getprop properties, try executing getprop using Runtime.exec() and reading its standard output....
android,intellij-idea,android-studio,adb
On of the running apps on your PC is preventing ADB from functioning properly. In my case, I shut off Norton, Bluestacks, Kies, and then ADB worked properly. In your case it looks like the Device Association Framework that seems to be interfering with ADB. ADB normally works well in...
From Lollipop, due to ART, the framework files are in /system/framework/arm/boot.oat file. Use 'java -jar oat2dex.jar boot boot.oat' and you will get a dex folder containing framework.dex and framework-classes2.dex....
Restart the adb connection with an adb kill-server then you should be able to reconnect and see your device with adb devices again. Sidenote: I like this app to use adb over wifi....
The adb.exe file will be located at your Android SDK folder, inside platform-tools ...\android-sdk-path\platform-tools\adb.exe The default location where Android SDK is installed is: C:\Users\<insert username here>\AppData\Local\Android\sdk\ So adb will be located at: C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\adb.exe To access it on a command line, open cmd.exe and type: cd C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\...
I run multiple linux systems configured to automatically run adb and fastboot commands on device enumeration which process hundreds of Android device connections per day without a hitch. Based on my experience I have the following advice for you: you should wait couple of seconds after device enumeration before sending...
I finally fixed it by deleting the adbkey and adbkey.pub files in my .android folder, killing the adb server, unplugging my nexus, revoking USB debugging permissions, plugging my device back in, and starting the server. A prompt asking me to confirm the computer's rsa key came up, I accepted, and...
android,adb,google-cast,android-tv,nexus-player
I just installed the Google USB Driver in Device Manager (Computer Management), and it worked. (The Google USB Driver is located in \extras\google\usb_driver.)
You need to quote the entire script you'd like executed: adb shell "echo \"hello\" > /sdcard/temp/hello.txt" ...
Dear all probably it can be done via (root privileges): /sys/devices/battery.XX/power_supply/battery/hv_charger_set 0 - Disable USB Charging 1 - Enable USB Charging
This is how adb handles the command: /* handle wait-for-* prefix */ if (!strncmp(argv[0], "wait-for-", strlen("wait-for-"))) { const char* service = argv[0]; if (!strncmp(service, "wait-for-device", strlen("wait-for-device"))) { if (ttype == kTransportUsb) { service = "wait-for-usb"; } else if (ttype == kTransportLocal) { service = "wait-for-local"; } else { service =...
You can check for running adbd process or query init.svc.adbd system property: $ ps adbd USER PID PPID VSIZE RSS WCHAN PC NAME root 14947 1 4596 208 ffffffff 00019358 S /sbin/adbd $ getprop init.svc.adbd running In Android the adb driver is implemented as a function of universal usb driver....
I am pretty sure that awk is not part of the default android installation. If you run linux you can use: adb shell cat /proc/uptime | awk ... ...
android,adb,command-prompt,android-permissions
You don't need to pull the file. adb provides shell acces, so you can do a cat: adb shell cat /sdcard/D_Permission/foo.txt If the file does not exist though, you'll still get "does not exists" error of course, which is normal....
Probable cause that remount fails is you are not running adb as root. Shell Script should be as follow. # Script to mount Android Device as read/write. # List the Devices. adb devices; # Run adb as root (Needs root access). adb root; # Since you're running as root su...
Type-casting a char array to have type LPCWSTR doesn't make it so. The former is an array of one-byte characters. The latter is (a pointer to) an array of two-byte characters. The type cast tells the compiler that the one is really the other, and the compiler trusts you. It...
First you have to download Google USB Driver Connect your Android-powered device to your computer's USB port. Right-click on Computer from your desktop or Windows Explorer, and select Manage. Select Devices in the left pane. Locate and expand Other device in the right pane. Right-click the device name and...
Not to say this can't change in the future (and of course, being open source any vendor could modify this if they choose), but tombstone files are written by debuggerd in the engrave_tombstone() function implemented in tombstone.cpp (formerly tombstone.c): https://android.googlesource.com/platform/system/core/+/master/debuggerd/tombstone.cpp This uses a hardcoded path using the macro: #define TOMBSTONE_DIR...
c#,winforms,cmd,adb,redirectstandardoutput
Use StandardOutput.ReadToEnd().
1. First ensure that the device is set up properly for USB debugging. Check that - you have installed the proper driver for your phone on your PC. - you have enabled USB debugging in Developer Settings. 2. After you have done the first step, when you connect your phone...
Please turn of the developers option then the input tap event works without restarts.
android,debugging,adb,android-tv
I directly hooked it up to a laptop and manually forced it to use port 4321 again via: "adb tcpip 4321" Now I can connect with my main dev computer from across the room again....
I had to down grade Platform-tools from 23.0.0 rc2 to 22.0.0
For anyone having this same issue, unfortunately the only solution that I could find was to downgrade my ROM version (to OA8). Once I did that, adb works perfectly. If anyone finds a better solution I'd be definitely like to know.
First, the message you posted does indicate something about the format: You can get a PNG file using the -p flag. You find find the source of screencap here. Apparently, screencap saves the data in a raw format (unless you tell it to save it as PNG). You can find...
Adb command for this adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main ...
android,shell,adb,android-developer-api
adbd is the adb daemon that runs on your devices, awaiting connection. issuing stop adbd should kill it - you may have to run this as root, should stop adb on the device, and disconnect your active shell. edit just tried this and it worked for me, running cyanogenmod. using...
For Android M you need to use the latest version of platform-tools - revision 23.0.0 rc1
Procrank is not installed on all devices, you will have to use the following command: "adb shell dumpsys meminfo", it won't give you the memory usage per app, but its an alternative.
You will need root access to do this from an app because ADB can access /system/bin/service but your app cannot (see GID of app and ADB). Process su = null; try { su = Runtime.getRuntime().exec("su"); String cmd = "service call activity 42 s16 com.android.systemui\n"; su.getOutputStream().write(cmd.getBytes()); String exit = "exit\n"; su.getOutputStream().write(exit.getBytes());...
android,adb,android-5.0-lollipop
I found a solution though I am not sure if others are willing to use it as it may harm the device and causes it to get useless In fact, as the answers that the question has received just sound to be copy and paste of other questions’ answers and...
android,android-studio,adb,avd
This can be caused by many reasons, some of them: Check if Google USB drivers is installed Check if developers options is enabled Check if USB debugging is enabled Check USB Connection in Device Settings (play with Media Device[MTP] and Camera[PTP]) Plug off/on usb cable Restart adb: kill [from console:...
it was way to easy :"( ./adb is one. Anyway, I decided to use the nvidia Tegra Android Development Pack which does the entire process so much easy to handle...
You can only execute /system/bin/input as the root or shell user; this will not work in an app. The command should not start with "adb shell" when running from the app. To run the command as root: Process su = null; try { su = Runtime.getRuntime().exec("su"); su.getOutputStream().write("input swipe 250 300...
To call WifiManager.startScan() do adb shell su 0 service call wifi 11
objective-c,cocoa,adb,nstask,nspipe
You should set the arguments use the method -[setArguments:] , like this example NSTask shell
android,adb,google-glass,fastboot
Found instructions to create a universal adb driver here: http://ktnr74.blogspot.com/2014/11/how-to-make-truly-universal-adb-and.html I modified my android_winusb.inf file as per the instructions on this blog, and after that I was able to update my driver software using the device manager. I directed the device manager to the usb_driver folder in my sdk for...
I got it working. I rooted the device. Downloaded wifi adb app which requires root and connected to adb over wireless. This allowed me to use the micro usb at the same time and click accept when the RSA dialogue popped up. Thank you for your comments.
android,python,linux,adb,systrace
I fixed the issues by changing my PATH export to be specified by absolute path instead of relative path. This means, I can't define my home directory using ~/..., I have to use /home/username/.... export PATH="/home/user1/Applications/android-studio/bin/:$PATH" export PATH="/home/user1/Android/Sdk/platform-tools/:$PATH" export PATH="/home/user1/Android/Sdk/tools/:$PATH" However, it is not clear to me why systrace.py won't...
screenshot worked directly with the framebuffer which is no longer supported in the recent Android versions screencap is the new version of the tool which works through the SurfaceComposer instead....
Go to Settings > Storage > USB Computer Condition. Two checkboxes: MTP and PTP. Uncheck both. You can see USB "Computer Condition" top right side after search box. ...
android,database,sqlite,adb,root
Place our database in assets folder in your project and call the below method. public void copyDataBase() throws IOException{ String package_name=context.getPackageName(); String DB_PATH = "/data/data/"+package_name+"/databases/"; try { InputStream myInput = context.getAssets().open(DATABASE NAME); File dbFile=new File(DB_PATH); dbFile.mkdirs(); String outputFileName = DB_PATH + DB_NAME; OutputStream myOutput = new FileOutputStream(outputFileName); byte[] buffer =...
I also faced this problem, but nothing went fine. which means it's impossible.
android,opengl-es,android-ndk,adb
The problem disappeared once I commented out EGL_ALPHA_SIZE setting: const EGLint attribs[] = { EGL_BLUE_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_RED_SIZE, 8, //EGL_ALPHA_SIZE, 8, EGL_NONE }; It looks like with alpha set to 8 bits, eglChooseConfig returned a problematic configuration object. Funnily enough, the "correct" EGLConfig specifies 0 bits for EGL_ALPHA_SIZE, so...
adb remount put /system partition in writable mode. By default /system is only readable. It could only be done one rooted device. It must be done before pushing file on /system partition....
Get the list of the packages available: adb shell pm list packages Get the path of the APK of the specified package name: adb shell pm path com.example.package Get the APK with the path returned from the previous command: adb pull <path_returned> ...
The content://contacts provider has been deprecated for awhile. You should be using content://com.android.contacts instead. To find the proper contact_id to android.intent.action.VIEW for your phone number do adb shell content query --uri content://com.android.contacts/data/phones/filter/<phone number> --projection contact_id For more consistent results make sure to use phone number in normalized E.164 format....
It sounds like there are two adb servers that conflict with each other. Either use Meteor's adb or make meteor use your existing adb: Use USE_GLOBAL_ADK=t meteor run.. to start your app instead of meteor run.. to run your app. This would require your ANDROID_SDK env variable to be set...
Use the Calabash-Android method press_user_action_button to simulate these interactions. Notice that your application should still handle enter keys (e.g. press_enter_button) as some phones will have a physical or bluetooth keyboard connected.
I finally find the reason: it is because when the Android device is attached, it does not use USB 2.0 protocol. In virtualbox, there is a place to set this option: But in order to enable USB 2.0, you have to install virtualbox extensions. ...
Solution: It works fine when replace kernel-qemu to new version
android,debugging,mobile,flash-builder,adb
Jan led me to the problem by making me look closer at the situation with those files. TL;DR If you're using Flash Builder 4.7, paste the files on that list to <Flash Builder root>\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\android\bin. If you're using Flash Builder 4.6, paste them into <Flash Builder root>\sdks\4.6.0\lib\android\bin. Elsewhere on the Internet,...
You can try below code : The next line of output of adb devices is separated by tabs, so we have to use "\t" as argument. List<String> deviceList = new ArrayList<String>(); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { if (line.endsWith("device")) { deviceList.add(line.split("\\t")[0]); } }...
I finally figured out the way to inspect the adb commands. When launching the app, we can inspect those commands in the Run tap at the bottom of the Android Studio, though these commands are mixed with some other logs.
android,adb,logcat,android-logcat
We can give the permission from ADB, The ADB command to grant an application permission to read the logs is: adb shell pm grant <pkg> android.permission.READ_LOGS We this permission will be persisted as long as you uninstall and install back the app....
Just use the following line in your batch file: adb shell am instrumentation that will connect to the shell on the Android device and run the am command....
ok, I just found a solution. I first have to enter the devices shell via adb shell and then execute am broadcast -a com.test.android.ACTION_TEST_FEATURE -n com.test.android/.receivers.TestsReceiver --es "notify" '{"debug": false, "title": "Application update!"}'
android,cordova,android-studio,adb
As you don't have a real nexus 10 you can use genymotion and download a nexus 10 image, it will behave like a real device and the steps in your links should work
javascript,android,cordova,adb,android-logcat
After try and retry and retry ... The solution was to mix my previous two attempts and fix a typo (missing letter 'e' in the word "Chrom" of "SystemWebChromeClient"). So this works adb logcat *:S SystemWebChromeClient:D ...
Yes, it is possible to launch an app via adb shell making use of the monkey tool. Using the command from this answer: adb shell monkey -p app.package.name -c android.intent.category.LAUNCHER 1 This command simulates the app icon click, so the intent implicit intent LAUNCHER is delivered to the specific receiver...
android,sed,adb,android-logcat
Wrapping sed into bash and then into python is bad karma. import subprocess def logcat_iterator(options, display_pattern, quit_pattern): popen = subprocess.Popen(['adb', 'shell', 'logcat {}'.format(options)], stdout=subprocess.PIPE) iterator = iter(popen.stdout.readline, b'') for line in iterator: if len(line) > 0: if line.find(quit_pattern) > 0: break elif line.find(display_pattern) > 0: yield line Use it like...
If the SOLE objectvie is to ZIP file, you may fetch a file using "adb pull" into your system. ZIP the file using Ubuntu's ZIP Utility, and then simply "adb push" (means send the file back into device) the Zipped file. Of course, in this case, you are using your...
android,android-emulator,adb,emulator
adb mostly consists of a client-server model. When you type adb in command line, you are using the adb-client to talk to the always-running adb-server. adb-server "talks to devices" over two different transport mechanisms. USB and TCP. If you put in the -e flag, the adb-client explicitly sets its transport...
I changed it to: adb shell am display-size 800x480 and it worked...
java,android,android-studio,adb,logcat
You may be hiding it, try pressing Alt + 6 to open Log tab. Look at the log level:- it must be verbose. Restart abd. If that doesn't works restart the android studio. ...
android,ubuntu,android-emulator,console,adb
Can we set emulator RAM size via console before we start emulator? Yes, please use -memory option; e.g.: emulator -memory 256 -avd Nexus_One_API_10 -scale 0.72 ...
android,android-studio,adb,nexus-7
There are many ways you can try: Install universal USB Driver Enable USB Debugging Connect your phone as camera MTP If this doesnt work for you, add some information what you tried!...
You can launch the app using the following command which only needs the package name of the app: adb shell monkey -p com.example.harvey.Sunshinea1app -c android.intent.category.LAUNCHER 1 As for why your command doesn't work, I can't tell from the information provided, but I suspect that the problem is where the MainActivity...
If you want to install an app via adb you should use: adb install myapp.apk These are the option flags available: adb install [-lrtsd] <file> adb install-multiple [-lrtsdp] <file...> - push this package file to the device and install it (-l: forward lock application) (-r: replace existing application) (-t: allow...
android,cordova,android-emulator,adb
Ok here is what I had to do when I migrated from cordova 3.6 to cordova 5. But first, I suggest you a little reading : Cordova Android 4 release notes Plugins switch to npm The white list plugin documentation And in addition the CSP documentation To sum-up, the security...
To get Android version you can use: adb shell getprop ro.build.version.release to get API level: adb shell getprop ro.build.version.sdk You can see all available properties with this command: adb shell getprop ...
In my phone, after type passcode, i should press OK to unlock. So this command will unlock my phone: adb shell input text 0000 && adb shell input keyevent 66 66 is keycode of key Enter....
Assuming that your app do have an Activity from where you can navigate into other parts of your app. Try using below command: $ adb shell am start -n com.example.yourpackagename/.YourMainActivity or $ adb shell am start -n com.package.yourpackagename/com.example.yourpackagename.YourMainActivity This am start command, is a command-line interface to the ActivityManager....
I have the same problem with my Huawei G600 phone. Despite being unable to return a valid ID/serial number when my phone's connected via USB, adb seems to communicate with the device just fine. Still, the invalid ID reported by adb trips up AndroidStudio. Here's a workaround, if you don't...
android,adb,android-contentprovider,android-shell
There is a content command: usage: adb shell content [subcommand] [options] usage: adb shell content insert --uri <URI> [--user <USER_ID>] --bind <BINDING> [--bind <BINDING>...] <URI> a content provider URI. <BINDING> binds a typed value to a column and is formatted: <COLUMN_NAME>:<TYPE>:<COLUMN_VALUE> where: <TYPE> specifies data type such as: b -...
As you pointed out, that command is only available in KitKat and via ADB only. I'd say your best option is recording the portion of the screen of an emulator (either AVD or Genymotion)....
maybe I can help you, this issue I encounter and resolved. first, you should change the device id, using adb shell command: 1. adb shell 2. cd /sys/class/android_usb/android0/ 3. echo -n xxx > iSerial (the xxx is the device id you want) 4. cat iSerial (check the new device id)...
How is it possible to run an android application in one device from two different eclipses? You cannot connect one device to multiple pc through port but you can connect your device through Wifi and run application from two different pc. This link explains how to connect through wifi...
With the universal ADB driver should work. Dont forget to enable the debug on the device. The github page of the universal ADB driver: https://github.com/koush/UniversalAdbDriver...
Certainly using the command from shell : dumpsys telephony.registry or directly from adb : adb shell dumpsys telephony.registry The values of mServiceState or mDataConnectionState will help you. I tried in Plane mode mServiceState=3 / mDataConnectionState=0 and connected to the cellular network : mServiceState=0 / mDataConnectionState=2 PS: I'm using an Android...
android,shell,android-activity,adb
Easy solution. Decompile the app and take a look at the AndroidManifest.xml Actually most developers forget about this option that you can infect start a specific Activity skipping Activities like Login. Make sure you handle stuff like that in your app. Intentionally throwing unhanded IllegalStatExceptions for example, effectively crashing it...
android,command-line,adb,android-5.0-lollipop,android-externalstorage
Formatting an external NTFS hard drive to use on a CHT RVP mkfs -t ext4 /location/of/hdd Edit platform.xml in /system/etc/permisssions: reference http://technofaq.org/posts/2014/04/fixing-external-sd-card-write-issue-on-android-kitkat/ Add an additional group definition for the external storage permissions : <group gid="media_rw" /> save the changes to the file restart the device Mount the formatted hard drive...
android,cordova,adb,ionic-framework,logcat
It seems that logcat can not properly parse tag names with whitespaces. So instead I suggest using grep on the device: adb shell "logcat | grep 'Web Console'" ...
android,adb,screen-size,nexus-4
Those are input device (i.e. touch screen) coordinates. Touch screen is a separate device which may have a different resolution from the display. To check the resolution of your touch screen do getevent -il /dev/input/event2 | grep ABS_MT_POSITION and look at the max values...
android,cordova,adb,ionic-framework
I had to replace the HTC device and its USB cable with a Samsung device and a generic cable. Searching the Internet I found that for some reason adb doesn't work well or at all with HTC. Plus, I had to constantly kill the adb process with adb kill-server, so...
it's impossible to overwrite hardware button. But you can create onLockListener. See http://chandan-tech.blogspot.com/2010/10/handling-screen-lock-unlock-in-android.html
android,android-intent,broadcastreceiver,adb
Finally got this fixed. Since Honeycomb, all the freshly installed apps will get into a STOP stage until they are launched for at least one time. Android adds a flag "FLAG_EXCLUDE_STOPPED_PACKAGES" for all broadcast intents, which stops them from reaching the stopped apps. http://droidyue.com/blog/2014/01/04/package-stop-state-since-android-3-dot-1/ To solve this issue, just simply...
Alex has a great answer. WARNING: Ugly code ahead I was able to get the signature in adb shell as root with the following code: package=com.test; b=false; while read line; do case $line in *\<package*${package}*) b=true ;; *\<cert*) if $b; then echo $line | sed -e 's|.*key="||' -e 's|".*||'; b=false;...