PSA: Android AVD's with Play Store won't let you execute ADB commands (version 28.0.2 or greater)

Mobile Testing, Android App Testing.
User avatar
Aracknid
Posts: 363
Joined: Tue Aug 10, 2010 3:23 pm
Location: Toronto, Ontario, Canada

PSA: Android AVD's with Play Store won't let you execute ADB commands (version 28.0.2 or greater)

Post by Aracknid » Thu May 23, 2019 9:41 pm

Hello, and welcome to this Public Service Announcement (PSA) :P

I thought I'd share something with everyone that I just discovered. I wasted a bunch of time on this....

I create an Android AVD using Android Studio (My SDK platform tools is version 28.0.2 ) and the phone image I based it off of was a Pixel 2 with the Play Store. Turns out there is a bug with Play Store in 28.0.2 (and also 28.0.3 which is the current version updated to). If you try to execute ADB commands it won't let you get in as root, so you cannot do many things. For example, I was trying to copy my apps database files, but it was giving permission denied errors because of this bug.

A solution is here: https://www.reddit.com/r/androiddev/com ... _with_the/

Or you can create a new AVD without the Play Store as well.

Hope this saves someone a bunch of time....I wasted about a day on this. :x

Aracknid.