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


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

(07-28-2020, 02:06 PM)tophneal Wrote: 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.
Yes it is a separate barrel-type power connection and USB A connection.


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

:/ this sounds like a real headache so far. I wonder if you’d have better luck trying this booted from a Linux on usb.

I’m afraid I haven’t touched windows in some time, so my suggestions would be limited within that os


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

(07-28-2020, 02:38 PM)tophneal Wrote: :/ this sounds like a real headache so far. I wonder if you’d have better luck trying this booted from a Linux on usb.

I’m afraid I haven’t touched windows in some time, so my suggestions would be limited within that os
I appreciate the help.  Unfortunately, I don't have a Linux machine to work from.  I'll keep seeing what I can do. Thanks again.


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

(07-28-2020, 02:42 PM)boplinger Wrote:
(07-28-2020, 02:38 PM)tophneal Wrote: :/ this sounds like a real headache so far. I wonder if you’d have better luck trying this booted from a Linux on usb.

I’m afraid I haven’t touched windows in some time, so my suggestions would be limited within that os
I appreciate the help.  Unfortunately, I don't have a Linux machine to work from.  I'll keep seeing what I can do. Thanks again.


Sorry I couldn’t be off anymore help.

If it comes down to it, you can boot a live Linux from usb. You don’t have to install it on your computer.


RE: Install Playstore on Android 9 image - ender_saved - 08-11-2020

OK,

I'm on Windows (not really, linux users, but I decided to do this) and I'm sad that this platform seems to get zero attention.

1. Get the adb tools here:

https://dl.google.com/android/repository/platform-tools-latest-windows.zip

2. Enable the secret Developer Options. 
Open "Settings"
Scroll down to "System "
Select "About phone"
Tap Build number 7 times in quick succession 
You will see a message appear that says Developer Options are enabled
Now go back and you’ll see Developer Options listed
With that out of the way, we can enable USB debugging.
Open "Settings"
Go to "System" > "Developer options"
Scroll until you find USB debugging
Toggle the switch on

3. Connect the SBC to your Windows comp 

4. Navigate to the directory where you unzipped the platform tools and open a cmd window and check that the adb connection is working

Code:
adb devices

If you get a response you're ready.

5. Get the apks
===============================================
now ready to use "adb push" to copy the PlayStore, Google Play Services and
Google Services Framework apks to /system/priv-app
================================

files to download:
----------------------
[Google Services Framework 9-5272573 (Android 9.0+):
com.google.android.gsf_9-5272573-28_minAPI28(nodpi)_apkmirror.com.apk]
download here..
rename to : Gsf.apk
===================

[Google Play services 15.1.81 (100400-239627737) (100400):
com.google.android.gms_15.1.81_(100400-239627737)-15181037_minAPI28(arm64-v8a,armeabi-v7a)(nodpi)_apkmirror.com.apk]
download here..
rename to : Playservices.apk
============================

[Google Play Store 14.2.58-all [0] [PR] 239277684 (nodpi) (Android 4.1+):
com.android.vending_14.2.58-all_0_PR_239277684-81425800_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk]
download here..
rename to : Playstore.apk
=========================

6. Install the Google apps

Code:
adb device
adb root
adb remount
adb push Gsf.apk /system/priv-app/Gsf/Gsf.apk
adb install -g -r Gsf.apk
adb push Playstore.apk /system/priv-app/Playstore/Playstore.apk
adb install -g -r Playstore.apk
adb push Playservices.apk /system/priv-app/Playservices/Playservices.apk
adb install -g -r Playservices.apk

-g: Grant all permissions listed in the app manifest....
-r:  Replace existing application, keeping its data.
------------------------------------------------------------

7. Then reboot and go to the android settings, apps and give all the permissions to the apks installed.

8. The following commands should also be executed on the RockPro64 to prevent occasional Google Play Services errors: So run the beginning commands and get into adb shell and run these commands:

Code:
adb shell

pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION

pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION

9. Reboot again.

Finish


RE: Install Playstore on Android 9 image - Zngduong - 09-13-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...
I have the same problem as you.
I have tried to enable Internet adb in 
Developer Options.
Check ip address and  use command:

Code:
adb connect [ip address]



RE: Install Playstore on Android 9 image - Zngduong - 09-13-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.

Why I can't use amr64 TVstock?
Please help me install google play for TV


RE: Install Playstore on Android 9 image - Wizzard - 11-14-2020

@ddimension thank you very much, it works like a charm: Btw, it is not necessary to use USB A to A cable. I used ordinary USB A to C cable and it worked, even with the extension cable.


RE: Install Playstore on Android 9 image - chisteven - 02-13-2021

(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.
In Win10, Can I just extract the gapps.zip file and repackaging to gapps.tar using 7-zip?