PINE64
Install Playstore on Android 9 image - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: Android on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=100)
+--- Thread: Install Playstore on Android 9 image (/showthread.php?tid=8655)

Pages: 1 2


Install Playstore on Android 9 image - ddimension - 12-31-2019

Hi!

It took me a bit to find why playstore does not work on the android 9 image out of the box. Here's a way to install:


download arm64 pico gapps, extract and convert with attached script:
# cd open_gapps...
# ../gapps2tar.sh


Now install gapps
# adb push gapps.tar /sdcard/
# adb root
# adb remount
# adb shell :

Code:
tar -xvf /sdcard/gapps.tar -C /
rm /sdcard/gapps.tar
rm -rf /system/priv-app/PackageInstaller /data/system/package_cache/1/PackageInstaller-16 /data/dalvik-cache /cache/dalvik-cache
reboot

After Reboot
  • add all perms to google packages in system app config.
  • disable androidsetup if crashing.
Have fun.


RE: Install Playstore on Android 9 image - boplinger - 07-22-2020

(12-31-2019, 03:01 PM)ddimension Wrote: Hi!

It took me a bit to find why playstore does not work on the android 9 image out of the box. Here's a way to install:


download arm64 pico gapps, extract and convert with attached script:
# cd open_gapps...
# ../gapps2tar.sh


Now install gapps
# adb push gapps.tar /sdcard/
# adb root
# adb remount
# adb shell :

Code:
tar -xvf /sdcard/gapps.tar -C /
rm /sdcard/gapps.tar
rm -rf /system/priv-app/PackageInstaller /data/system/package_cache/1/PackageInstaller-16 /data/dalvik-cache /cache/dalvik-cache
reboot

After Reboot
  • add all perms to google packages in system app config.
  • disable androidsetup if crashing.
Have fun.

How do I do any of this???  I am brand new to Android development.  This is LITERALLY the first thing I am attempting.
1.  How and where do I enter these commands?
2.  Do I need to make a physical connection between my PC and the Rock64?  If so, what type of cable do I need.
3.  What apps or programs do I need?
4.  I'm not sure what other questions I even need to ask, but an hour of googling has taken me round in circles, so I back here asking the "dumb" questions.
Thanks.


RE: Install Playstore on Android 9 image - tophneal - 07-22-2020

(07-22-2020, 10:17 AM)boplinger Wrote: How do I do any of this???  I am brand new to Android development.  This is LITERALLY the first thing I am attempting.
1.  How and where do I enter these commands?
2.  Do I need to make a physical connection between my PC and the Rock64?  If so, what type of cable do I need.
3.  What apps or programs do I need?
4.  I'm not sure what other questions I even need to ask, but an hour of googling has taken me round in circles, so I back here asking the "dumb" questions.
Thanks.

For a Rock64 you will need a USB-a to USB-A cable, to connect your ROKC64 to you computer. On that computer you will need to install adb tools. (The package name can vary based on the OS you're using on your computer.) On the ROCK64 Android install, you will need to go to Settings > Developer Options and enable USB Debugging.

Once you've done those things, connect your computer and ROCK64, using the USB-A cable, you should be setup to follow the instructions given, from your computer's terminal. (You will likely need to run 'adb devices' or 'adb start-server' to start adb and let your computer see the ROCK64.)


RE: Install Playstore on Android 9 image - boplinger - 07-22-2020

(07-22-2020, 10:25 AM)tophneal Wrote:
(07-22-2020, 10:17 AM)boplinger Wrote: How do I do any of this???  I am brand new to Android development.  This is LITERALLY the first thing I am attempting.
1.  How and where do I enter these commands?
2.  Do I need to make a physical connection between my PC and the Rock64?  If so, what type of cable do I need.
3.  What apps or programs do I need?
4.  I'm not sure what other questions I even need to ask, but an hour of googling has taken me round in circles, so I back here asking the "dumb" questions.
Thanks.

For a Rock64 you will need a USB-a to USB-A cable, to connect your ROKC64 to you computer. On that computer you will need to install adb tools. (The package name can vary based on the OS you're using on your computer.) On the ROCK64 Android install, you will need to go to Settings > Developer Options and enable USB Debugging.

Once you've done those things, connect your computer and ROCK64, using the USB-A cable, you should be setup to follow the instructions given, from your computer's terminal. (You will likely need to run 'adb devices' or 'adb start-server' to start adb and let your computer see the ROCK64.)
Thanks for these instructions. 
I am running into the following issue:
I have a USB A/USB C cable with a USB C to USB A adapter plugged into an USB A extension cable from my PC to the Rock64.  I have installed and am running "Platform Tools".  I launch a PowerShell terminal and type "./adb devices", hit Enter, and get the following back: "List of devices attached", but nothing is listed.
Any ideas???
Thanks!


RE: Install Playstore on Android 9 image - tophneal - 07-23-2020

(07-22-2020, 01:27 PM)boplinger Wrote: Thanks for these instructions. 
I am running into the following issue:
I have a USB A/USB C cable with a USB C to USB A adapter plugged into an USB A extension cable from my PC to the Rock64.  I have installed and am running "Platform Tools".  I launch a PowerShell terminal and type "./adb devices", hit Enter, and get the following back: "List of devices attached", but nothing is listed.
Any ideas???
Thanks!

If you've verified that USB Debugging is enabled, next verify that your usb cable is plugged into the correct USB port on the ROCK64.

You may also want to use the actual USB-A side of your cable on the ROCK64 side, and ditch the adapter if your computer has USB-C. The USB-A is most important for the ROCK64 side, as the OTG port is the top-most one next to the NIC port, IIRC.

If you computer is running linux, you can also try using lsusb to verify that your computer is seeing the ROCK64 attached.

If worst comes to worst, you can check Develop options for ADB over Networking. That should allow you to use the ROCK64's IP to call it with adb.


RE: Install Playstore on Android 9 image - boplinger - 07-24-2020

(07-23-2020, 06:21 AM)tophneal Wrote:
(07-22-2020, 01:27 PM)boplinger Wrote: Thanks for these instructions. 
I am running into the following issue:
I have a USB A/USB C cable with a USB C to USB A adapter plugged into an USB A extension cable from my PC to the Rock64.  I have installed and am running "Platform Tools".  I launch a PowerShell terminal and type "./adb devices", hit Enter, and get the following back: "List of devices attached", but nothing is listed.
Any ideas???
Thanks!

If you've verified that USB Debugging is enabled, next verify that your usb cable is plugged into the correct USB port on the ROCK64.

You may also want to use the actual USB-A side of your cable on the ROCK64 side, and ditch the adapter if your computer has USB-C. The USB-A is most important for the ROCK64 side, as the OTG port is the top-most one next to the NIC port, IIRC.

If you computer is running linux, you can also try using lsusb to verify that your computer is seeing the ROCK64 attached.

If worst comes to worst, you can check Develop options for ADB over Networking. That should allow you to use the ROCK64's IP to call it with adb.
I have all the ports correct, so it must be the cable.  I ordered one that doesn't require the use of any adapters or extension cables.  I'll be back if I run into the same issue...


RE: Install Playstore on Android 9 image - boplinger - 07-28-2020

So I'm still encountering the same issue...
Brand new USB A to USB A, plugged into my Win 10 PC and the top USB port next to the NIC on the Rock64.
Type ".\adb devices", response "List of devices attached", but no devices are listed.
Debugging on the Rock64 is on.
Any other ideas...


RE: Install Playstore on Android 9 image - tophneal - 07-28-2020

(07-28-2020, 06:53 AM)boplinger Wrote: So I'm still encountering the same issue...
Brand new USB A to USB A, plugged into my Win 10 PC and the top USB port next to the NIC on the Rock64.
Type ".\adb devices", response "List of devices attached", but no devices are listed.
Debugging on the Rock64 is on.
Any other ideas...

Does the ROCK64 show in Device Manager? If not, you may want to try reinstalling the Android USB drivers in Windows.


RE: Install Playstore on Android 9 image - boplinger - 07-28-2020

(07-28-2020, 07:26 AM)tophneal Wrote:
(07-28-2020, 06:53 AM)boplinger Wrote: So I'm still encountering the same issue...
Brand new USB A to USB A, plugged into my Win 10 PC and the top USB port next to the NIC on the Rock64.
Type ".\adb devices", response "List of devices attached", but no devices are listed.
Debugging on the Rock64 is on.
Any other ideas...

Does the ROCK64 show in Device Manager? If not, you may want to try reinstalling the Android USB drivers in Windows.
I appreciate the continued help....
I downloaded and installed the Rock64 ADB Drivers.  I added legacy hardware withing Windows and now have "Android ADB Interface" and "Android Composite ADB Interface" listed in my Device Manager.  But both have the Yellow Triangular Caution sign in the icon indicating there is an issue.
I have uninstalled and reinstalled the drivers but am still getting no where...
Any other ideas?


RE: Install Playstore on Android 9 image - tophneal - 07-28-2020

Do you have the power cable plugged into the ROCK64, along with the USB-A cable? I wasn't sure earlier if it was necessary, since some boards can pull power from OTG. Just started looking through the ROCK64 Android docs and the question came to mind.