Menu
  • HOME
  • TAGS

Does logcat log errors that are 12 hours old?

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....

How to read Android properties with Java

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....

ADB not responding with Android Studio on Windows 8

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...

Android /system/framework/*.jar files

android,adb

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....

Android ADB connect over TCPIP not working

android,adb

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....

adb.exe not found after installing Android Studio

android,adb

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\...

android - Problems installing apps on 100´s of devices using Ubuntu and ADB

android,ubuntu,adb

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...

Nexus 7 shows offline under adb linux

android,linux,adb,rsa

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...

adb I/O Error, possible corruption

android,database,sqlite3,calendar,adb

Huh, Turns out that if you uninstall the app, rename the folder containing the corrupted file and then re-install everything goes swimmingly. No idea what caused it or even what is wrong but hey, I have my calendar back....

How to Enable USB Debugging on Nexus Player? (Android TV)

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.)

ADB echo gives “No such file or directory”

android,echo,adb

You need to quote the entire script you'd like executed: adb shell "echo \"hello\" > /sdcard/temp/hello.txt" ...

How to disable battery charging during ADB connection?

android,usb,adb

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

Is there any difference between adb wait-for-device and adb wait-for-devices?

android,adb

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 =...

Detect if ADB server is running on Android?

android,adb

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....

Android uptime in hour

android,adb,android-shell

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 ... ...

How to read a text file from SD card in Android device through command prompt?

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....

How can I remount my Android/system as read-write in a bash script using adb?

android,bash,adb,mount

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...

Use CreateProcess to execute ADB command

c++,adb,createprocess

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...

adb devices - No device attached

android,eclipse,adb

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...

Default tombstones location in android

android,adb,android-logcat

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...

Getting single line from CMD response c# and put it into textbox

c#,winforms,cmd,adb,redirectstandardoutput

Use StandardOutput.ReadToEnd().

LG Device Android USB Driver Issue

android,adb

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...

Android shell commands not working (adb Ubuntu)

android,adb

Please turn of the developers option then the input tap event works without restarts.

Android TV ADT-1 adb connect port changed?

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....

Android keeps asking for adb permission

android,adb

I had to down grade Platform-tools from 23.0.0 rc2 to 22.0.0

Android Studio pm install aborted

android,android-studio,adb

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.

If I issue 'adb shell screencap /storage/sdcard/file. What type of file the result is?

android,adb

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...

Using ADB shell in C++ program

android,c++,linux,shell,adb

Thanks to Jiang YD I was able to solve it. I just called adb from it's absolute path and it worked.

Open Chrome with ADB

android,adb

Adb command for this adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main ...

Turning off ADB over WiFi through ADB shell?

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...

Android M Device loses authorization repeatedly

android,adb,usb-debugging

For Android M you need to use the latest version of platform-tools - revision 23.0.0 rc1

Trying to execute procrank from cmd promt, but not working

android,shell,adb,dumpsys

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.

Programatically disable System Bar (Have Root access)

android,adb

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());...

Unable to install apk using adb on device upgraded to Android Lollipop

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 Studio doesn't show my sony xperia tipo

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:...

Propper configuration of Android Studio on Ubuntu

ubuntu,android-studio,adb

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...

execute adb shell input swipe command from apk

android,shell,apk,adb

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...

Android ADB Wireless Scan

android,adb

To call WifiManager.startScan() do adb shell su 0 service call wifi 11

Run adb commands with NSTask

objective-c,cocoa,adb,nstask,nspipe

You should set the arguments use the method -[setArguments:] , like this example NSTask shell

Computer not finding Google Glass fastboot driver

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...

How to authorize and accept ADB RSA key with broken touch screen on Android

android,adb

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.

Error when trying to use Android systrace.py on Linux Ubuntu

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...

What is the difference between screenshot and screencap in adb shell?

android,adb,screenshot

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....

ADB doesn't see my tablet

android,adb,tablet

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 copy sqlite database from pc to device

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 =...

ADB Bluestack - Connect 2 PC

android,adb,bluestacks

I also faced this problem, but nothing went fine. which means it's impossible.

adb screencap output is different than on the device

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...

What does 'adb remount' do? When is it useful?

android,adb

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....

adb copy apk from system/app using pull command [closed]

android,apk,adb

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> ...

ADB - Open Contact Details by Phone Number

android,adb,contacts

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....

how to use adb and meteor at the same time

android,meteor,adb

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...

adb- Is there a way to simulate IME_ACTION _DONE?

android,adb,calabash-android

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.

adb push very slow from virtualbox ubuntu to android device

android,ubuntu,adb,virtualbox

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. ...

Android 5.1 on emulator always offline

android,build,adb,emulator

Solution: It works fine when replace kernel-qemu to new version

Flash Builder 4.7 shows Samsung Pro Tab 8.2 as offline when it's actually online

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,...

Extracting device name of a string

java,adb

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]); } }...

Command line Logs in Android Studio

android-studio,adb

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.

How to give root permission for Catlog on Android

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....

adb shell command from batch file

android,shell,adb

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....

Sending JSON as extra data in an android broadcast via ADB gets incorrectly formatted

android,json,bash,adb

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!"}'

Different screen sizes and resolutions on Nexus 10 emulator

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

How to use ADB to show javascript errors when programming with Apache Cordova?

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 ...

Launch App via adb without knowing Activity name

android,android-intent,adb

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...

sed does not quit when used along with adb logcat in a script

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...

Zip a file in Cyangenmod Android from adb shell [closed]

android,shell,zip,adb

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...

How does adb -e uninstall package detect emulators? In-depth emulator detection

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...

Error on running “adb shell wm density 240” for changing Android device density

android,resize,screen,adb

I changed it to: adb shell am display-size 800x480 and it worked...

Android studio logcat not working

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. ...

Can we set emulator RAM size via console before we start emulator?

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 studio not recognizing my device

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!...

cannot get this adb shell am start line to work

android,adb

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...

app show up only after reboot - adb push command

android,adb

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...

Getting a white screen with my installed app in Android emulator (however works in browser)

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...

get android OS version of device connected via adb [duplicate]

android,shell,adb

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 ...

How to unlock android phone through ADB

android,adb

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....

How to run an app when it does not show under Apps?

android,debugging,install,adb

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....

Android Device has no Serial Number

android,adb

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...

Query Android content provider from command line (adb shell)

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 -...

How to record Android device's screen on Android version below 4.4 (KitKat)

android,adb

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)....

Using adb with multiple devices with the same serial number

android,adb

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)...

adb connection in Android with multiple system

android,eclipse,adb

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...

Installing ADB interfaces

android,adb,hardware

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...

getting cellular network status via ADB shell

android,adb

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...

How to know various activities in an android application

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: Cannot read from external storage and cannot create folder in /storage/sdcard0

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...

Debugging a WebView (Ionic) app on Android via logcat

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'" ...

Adb shell getevent method returns twice the value for X and Y on Nexus 4

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...

Problems connecting Android device and running adb commands

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...

Programmatically change “Instant lock on power button” setting

android,configuration,adb

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

Static BroadcastReceiver not Working after Installation from ADB

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...

How to get Signature hash code of a phone app via adb on pc?

android,adb,signature

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;...