Android Studio – ADB Error – “…device unauthorized. Please check the confirmation dialog on your device.”

you have missed the Fingerprint Certificate Authorization dialog in your phone when you connected it, try to change the USB mode to Media, or another different than the one you have in and then reconnect your device, or go to Developer Options -> Revoke USB Debugging and reconnect, watch for the dialog and click on … Read more

Retrieve database or any other file from the Internal Storage using run-as

By design user build of Android (that’s what you have on your phone until you unlock the bootloader and flash the phone with userdebug or eng software) restricts access to the Internal Storage – every app can only access its own files. Fortunately for software developers not willing to root their phones Google provides a … Read more

adb update a non-market apk?

adb install -r is the closest you get, that is actually an update as it keeps the database and stored preferences. If you uninstall/re-install both the app database and preferences is deleted. What exactly are you trying to update about the app that -r option does not help you with ?

Trying to add adb to PATH variable OSX

Add to PATH for every login Total control version: in your terminal, navigate to home directory cd create file .bash_profile touch .bash_profile open file with TextEdit open -e .bash_profile insert line into TextEdit export PATH=$PATH:/Users/username/Library/Android/sdk/platform-tools/ save file and reload file source ~/.bash_profile check if adb was set into path adb version One liner version Echo … Read more

How to exclude certain messages by TAG name using Android adb logcat?

You can do this from within DDMS Monitor (and also Eclipse or Android Studio) with the regular expression input box and negative look-ahead assertions, for example I am excluding a lot of noise from my log with the following: tag:^(?!(WifiMulticast|WifiHW|MtpService|PushClient)) (The “tag:” isn’t part of the regular expression, but tells LogCat to only apply the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)