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: 177)
  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 9 drivers Firesped 0 684 05-18-2020, 06:24 PM
Last Post: Firesped
  Install Playstore on Android 8.1.0 Domo 13 6,198 05-13-2020, 12:16 PM
Last Post: Firesped
  I2C on Android? ameridroid 0 460 03-02-2020, 03:41 PM
Last Post: ameridroid
  How to create the img file to use with etcher once you build the android SDK? dazza5000 8 1,441 01-22-2020, 10:26 AM
Last Post: webgourou
  Android 9 SDK CRC errors ddimension 2 555 01-21-2020, 07:32 AM
Last Post: ChristianS
  Android 9 SDK not Booting hgarrison 1 1,055 01-05-2020, 08:06 AM
Last Post: ddimension
Exclamation Android 9: HDMI and PCI not working cetygamer 0 547 08-20-2019, 03:46 AM
Last Post: cetygamer
  Android Geekbench Results dazza5000 0 722 08-19-2019, 09:45 AM
Last Post: dazza5000
  Android 7.1.2 Source Code dazza5000 3 729 08-18-2019, 12:38 AM
Last Post: tllim
  Android 9 from eMMC with ayufan SPI uboot octavian 1 694 08-17-2019, 07:39 PM
Last Post: dazza5000

Forum Jump:


Users browsing this thread: 1 Guest(s)