Install Playstore on Android 9 image
#1
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.


Attached Files
.gz   gapps2tar.sh.gz (Size: 337 bytes / Downloads: 1,081)
  Reply
#2
(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.
  Reply
#3
(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.)
  Reply
#4
(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!
  Reply
#5
(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.
  Reply
#6
(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...
  Reply
#7
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...
  Reply
#8
(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.
  Reply
#9
(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?
  Reply
#10
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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Android images for RockPro64 BitAnnihilator 5 1,608 06-04-2024, 11:05 PM
Last Post: tllim
  Difficulty installing Android on Rockpro64 spammycheese 0 3,101 02-17-2023, 05:31 AM
Last Post: spammycheese
  Using Android and the Playstore grobbs 0 2,895 06-04-2022, 12:18 AM
Last Post: grobbs
  Android TV miguelangelaj 2 3,709 06-03-2022, 11:23 AM
Last Post: miguelangelaj
  Control Fan in Android miguelangelaj 2 3,094 06-03-2022, 11:22 AM
Last Post: miguelangelaj
  Slash TV Android for RockPro64 Wizzard 12 13,124 04-24-2022, 08:13 AM
Last Post: Rocklobster
  DRM support in Android Wizzard 2 3,203 02-03-2022, 09:16 PM
Last Post: Johnmo89
  Install Playstore on Android 8.1.0 Domo 14 27,284 04-16-2021, 02:13 AM
Last Post: Wizzard
  Install Playstore on Android 7.1.2 Domo 6 15,729 04-16-2021, 02:10 AM
Last Post: Wizzard
  Kodi crashing in Android 9 Wizzard 2 4,477 04-16-2021, 02:03 AM
Last Post: Wizzard

Forum Jump:


Users browsing this thread: 1 Guest(s)