[メモ] らずぱい３で、Android 7 + PlayStore

![RPi3_A7_PlayStore.jpg](https://qiita-image-store.s3.amazonaws.com/0/75594/143b7df1-aa57-bdc8-fb16-5665cda6ee27.jpeg)



## 概要
- [RTAndroid](https://git.embedded.rwth-aachen.de/rtandroid/)というところで、ラズパイ向けのイメージを公開してくれている。
- 使ってると、`Evaluation Vesion`というのがでてくる<br>![RPi3_A7_PlayStore02.JPG](https://qiita-image-store.s3.amazonaws.com/0/75594/313e4a17-f0b1-27d3-649b-795115a8c4e7.jpeg)

    > This fully functional version of RTAndroid may be used only for non-commercial evaluation and personal purposes. The running time is limited to 48 hours, after which a reboot will be enforced. ...<br>RTAndroidのこの完全に機能するバージョンは、非商業的な評価と個人的な目的のためにのみ使用することができます。実行時間は48時間に制限されています。その後、再起動が実施されます。

    だそうです。(感謝: ぐぅぐる先生翻訳)

- Linuxで、インストールスクリプトや、(adbで)PlayStoreインストールをしないといけない<br>=>別のラズパイで、やろう。
- アングリーバードがうごいたよ。
- 関連: [Raspberry Pi ３で、Android-6.0.1](http://qiita.com/mt08/items/1cef63cf9ed804d0f237)

## 環境
- Raspberry Pi 3 :Android実行用
- Raspberry Pi 2 :Android microSD作成、PlayStoreインストール用 (2016-05-27-raspbian-jessie-lite)
- USBカードリーダ : Android microSD作成用

## 手順

### rtandroid起動microSD作成
1. Raspbianで、起動
2. USBカードリーダに、AndroidをインストールするmicroSDをいれて、RPi2に挿す。<br>=> `/dev/sda`となるはず。
3. `sudo fdisk -l /dev/sda #確認.`
4. ファイル取得、解凍、インストールスクリプト実行.

    ```bash
cd
#ファイルダウンロード.
wget https://git.embedded.rwth-aachen.de/rtandroid/files/rtandroid-7.0-20160909-rpi3.zip
# 作業フォルダ.
mkdir a7
cd a7
# 解凍.
unzip ../rtandroid-7.0-20160909-rpi3.zip
# インストールディスク(/dev/sda)確認.
sudo fdisk -l /dev/sda
## インストール
./install.sh -p -f /dev/sda
```

### RPi3 でAndroid起動、Wifi設定して、IPアドレス確認




### PlayStoreインストール (gapps.shスクリプト)

1. RPi2のほうで、Andoidを起動しているRPi3に、adbで接続する
2. スクリプト実行

    ```bash:gapps.sh
# 必要なツール類. 
sudo apt-get install android-tools-adb android-tools-fastboot git rsync
# さきほどのフォルダに移動して、
cd
cd a7
# スクリプト実行。 IPアドレスは、上で調べたやつ。
./gapps.sh -a arm -i 192.168.22.57
```

3. 2回ほど再起動がかかる。<br>※再起動時にwifiに接続しなかったら、接続する。



## その他
- はやいmicroSD使ったほうがいいです。

<!-- - あとで、スクショをうぷする。 -->

### ログ
#### `install.sh`

```shell-session:install.sh
pi@raspberrypi:~ $ mkdir a7
pi@raspberrypi:~ $ cd a7
pi@raspberrypi:~/a7 $ unzip ../rtandroid-7.0-20160909-rpi3.zip 
Archive:  ../rtandroid-7.0-20160909-rpi3.zip
  inflating: install.sh              
  inflating: system.img              
   creating: boot/
  inflating: boot/bcm2710-rpi-3-b.dtb  
  inflating: boot/cmdline.txt        
  inflating: boot/ramdisk.img        
  inflating: boot/start.elf          
   creating: boot/overlays/
  inflating: boot/overlays/vc4-kms-v3d.dtbo  
  inflating: boot/zImage             
  inflating: boot/config.txt         
  inflating: boot/bootcode.bin       
  inflating: boot/fixup.dat          
  inflating: gapps.sh                
pi@raspberrypi:~/a7 $ time ./install.sh -p -f /dev/sda
Installation script for RPi started.
Target device: /dev/sda
Perform partitioning: true
Perform formatting: true

 * Checking access permissions...
 * Checking the device in /dev/sda...
 * Validating the device's size...
  - minimum size: 4096 MB
  - detected size: 7600 MB
 * Unmounting mounted partitions...
 * Listing all available partitions...

/dev/sda1        8192 15564799 15556608  7.4G  b W95 FAT32

 * Detected 1 partitions on /dev/sda
  - ignoring this count due to upcoming partitioning
 * Destroying old partition table...
 * Create a new partition table...
 * Start partitioning...

  - creating 'boot'

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x2a4f3097.

Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-15564799, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-15564799, default 15564799): 
Created a new partition 1 of type 'Linux' and of size 512 MiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - creating 'system'

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (1050624-15564799, default 1050624): Last sector, +sectors or +size{K,M,G,T,P} (1050624-15564799, default 15564799): 
Created a new partition 2 of type 'Linux' and of size 2 GiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - creating 'cache'

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition type
   p   primary (2 primary, 0 extended, 2 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (3,4, default 3): First sector (5244928-15564799, default 5244928): Last sector, +sectors or +size{K,M,G,T,P} (5244928-15564799, default 15564799): 
Created a new partition 3 of type 'Linux' and of size 512 MiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - creating 'userdata'

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition type
   p   primary (3 primary, 0 extended, 1 free)
   e   extended (container for logical partitions)
Select (default e): 
Selected partition 4
First sector (6293504-15564799, default 6293504): Last sector, +sectors or +size{K,M,G,T,P} (6293504-15564799, default 15564799): 
Created a new partition 4 of type 'Linux' and of size 4.4 GiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - setting correct partition type

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition number (1-4, default 4): Hex code (type L to list all codes): 
If you have created or modified any DOS 6.x partitions, please see the fdisk documentation for additional information.
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - setting bootable flag

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition number (1-4, default 4): 
The bootable flag on partition 1 is enabled now.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


 * Printing the new partition table...

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Disk /dev/sda: 7.4 GiB, 7969177600 bytes, 15564800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2a4f3097

Device     Boot   Start      End Sectors  Size Id Type
/dev/sda1  *       2048  1050623 1048576  512M  c W95 FAT32 (LBA)
/dev/sda2       1050624  5244927 4194304    2G 83 Linux
/dev/sda3       5244928  6293503 1048576  512M 83 Linux
/dev/sda4       6293504 15564799 9271296  4.4G 83 Linux


Command (m for help): 

 * Validating partition sizes...
  - boot) available: 512 MB, required: 512 MB
  - system) available: 2048 MB, required: 2048 MB
  - cache) available: 512 MB, required: 512 MB
  - data) available: 4527 MB, required: 1024 MB
 * Unmounting mounted partitions...
 * Formatting data partitions...
  - formatting 'cache'

mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 131072 4k blocks and 32768 inodes
Filesystem UUID: 43f48ea2-3f73-4a85-85fb-484bb98a8862
Superblock backups stored on blocks: 
	32768, 98304

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

  - formatting 'userdata'

mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 1158912 4k blocks and 289728 inodes
Filesystem UUID: dfd01991-5851-4c0b-a4c2-0292721c6e7b
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                     
pi@raspberrypi:~ $ mkdir a7
pi@raspberrypi:~ $ cd a7
pi@raspberrypi:~/a7 $ unzip ../rtandroid-7.0-20160909-rpi3.zip 
Archive:  ../rtandroid-7.0-20160909-rpi3.zip
  inflating: install.sh              
  inflating: system.img              
   creating: boot/
  inflating: boot/bcm2710-rpi-3-b.dtb  
  inflating: boot/cmdline.txt        
  inflating: boot/ramdisk.img        
  inflating: boot/start.elf          
   creating: boot/overlays/
  inflating: boot/overlays/vc4-kms-v3d.dtbo  
  inflating: boot/zImage             
  inflating: boot/config.txt         
  inflating: boot/bootcode.bin       
  inflating: boot/fixup.dat          
  inflating: gapps.sh                
pi@raspberrypi:~/a7 $ ./install.sh -p -f /dev/sda
Installation script for RPi started.
Target device: /dev/sda
Perform partitioning: true
Perform formatting: true

 * Checking access permissions...
 * Checking the device in /dev/sda...
 * Validating the device's size...
  - minimum size: 4096 MB
  - detected size: 7600 MB
 * Unmounting mounted partitions...
 * Listing all available partitions...

/dev/sda1        8192 15564799 15556608  7.4G  b W95 FAT32

 * Detected 1 partitions on /dev/sda
  - ignoring this count due to upcoming partitioning
 * Destroying old partition table...
 * Create a new partition table...
 * Start partitioning...

  - creating 'boot'

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x2a4f3097.

Command (m for help): Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-15564799, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-15564799, default 15564799): 
Created a new partition 1 of type 'Linux' and of size 512 MiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - creating 'system'

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (1050624-15564799, default 1050624): Last sector, +sectors or +size{K,M,G,T,P} (1050624-15564799, default 15564799): 
Created a new partition 2 of type 'Linux' and of size 2 GiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - creating 'cache'

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition type
   p   primary (2 primary, 0 extended, 2 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (3,4, default 3): First sector (5244928-15564799, default 5244928): Last sector, +sectors or +size{K,M,G,T,P} (5244928-15564799, default 15564799): 
Created a new partition 3 of type 'Linux' and of size 512 MiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - creating 'userdata'

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition type
   p   primary (3 primary, 0 extended, 1 free)
   e   extended (container for logical partitions)
Select (default e): 
Selected partition 4
First sector (6293504-15564799, default 6293504): Last sector, +sectors or +size{K,M,G,T,P} (6293504-15564799, default 15564799): 
Created a new partition 4 of type 'Linux' and of size 4.4 GiB.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - setting correct partition type

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition number (1-4, default 4): Hex code (type L to list all codes): 
If you have created or modified any DOS 6.x partitions, please see the fdisk documentation for additional information.
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


  - setting bootable flag

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Partition number (1-4, default 4): 
The bootable flag on partition 1 is enabled now.

Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


 * Printing the new partition table...

Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Disk /dev/sda: 7.4 GiB, 7969177600 bytes, 15564800 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2a4f3097

Device     Boot   Start      End Sectors  Size Id Type
/dev/sda1  *       2048  1050623 1048576  512M  c W95 FAT32 (LBA)
/dev/sda2       1050624  5244927 4194304    2G 83 Linux
/dev/sda3       5244928  6293503 1048576  512M 83 Linux
/dev/sda4       6293504 15564799 9271296  4.4G 83 Linux


Command (m for help): 

 * Validating partition sizes...
  - boot) available: 512 MB, required: 512 MB
  - system) available: 2048 MB, required: 2048 MB
  - cache) available: 512 MB, required: 512 MB
  - data) available: 4527 MB, required: 1024 MB
 * Unmounting mounted partitions...
 * Formatting data partitions...
  - formatting 'cache'

mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 131072 4k blocks and 32768 inodes
Filesystem UUID: 43f48ea2-3f73-4a85-85fb-484bb98a8862
Superblock backups stored on blocks: 
	32768, 98304

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

  - formatting 'userdata'

mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 1158912 4k blocks and 289728 inodes
Filesystem UUID: dfd01991-5851-4c0b-a4c2-0292721c6e7b
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done 

 * Formatting system partitions...
  - formatting 'boot'

mkfs.fat 3.0.27 (2014-11-12)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows

  - formatting 'system'

mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 524288 4k blocks and 131072 inodes
Filesystem UUID: c1df8659-b848-45dd-8272-25a7b2a90049
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 

 * Copying new system files...
   - mounting the boot partition to /media/rpi-sd-boot
   - copying boot files
   - unmounting the boot partition
   - writing the system image
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 202.62 s, 10.6 MB/s

Installation successful. You can now put your sdcard in the RPi.

real	2m44.952s
user	0m0.830s
sys	0m16.970s
pi@raspberrypi:~/a7 $ 
```

#### `gapps.sh`
```shell-session
pi@raspberrypi:~/a7 $./gapps.sh -h
ERR:  is not a valid architecture!
USAGE:
  ./gapps.sh [-h] -a ARCH -i IP
OPTIONS:
  -a  Device architecture: x86, x86_64, arm, arm64
  -h  Show help
  -i  IP address for ADB
pi@raspberrypi:~/a7 $ time ./gapps.sh -a arm -i 192.168.22.57
GApps installation script
Used package: open_gapps-arm-7.0-pico-20160827.zip
ADB IP address: 192.168.22.57

 * Checking available devices...
 * Enabling root access...
restarting adbd as root
 * Remounting system partition...
remount succeeded
 * Downloading OpenGApps package...

--2016-09-12 04:52:06--  https://github.com/opengapps/arm/releases/download/20160827/open_gapps-arm-7.0-pico-20160827.zip
github.com (github.com) をDNSに問いあわせています... 192.30.253.112
github.com (github.com)|192.30.253.112|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 302 Found
場所: https://github-cloud.s3.amazonaws.com/releases/35777460/e1e8d87a-6c1a-11e6-97fc-3517b0cf6677.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160911%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160911T195206Z&X-Amz-Expires=300&X-Amz-Signature=129975ef915c9af45d2a1af01e50c146180be6c5cfeb8495182607f1918b522c&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopen_gapps-arm-7.0-pico-20160827.zip&response-content-type=application%2Foctet-stream [続く]
--2016-09-12 04:52:06--  https://github-cloud.s3.amazonaws.com/releases/35777460/e1e8d87a-6c1a-11e6-97fc-3517b0cf6677.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160911%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160911T195206Z&X-Amz-Expires=300&X-Amz-Signature=129975ef915c9af45d2a1af01e50c146180be6c5cfeb8495182607f1918b522c&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dopen_gapps-arm-7.0-pico-20160827.zip&response-content-type=application%2Foctet-stream
github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com) をDNSに問いあわせています... 54.231.81.144
github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.81.144|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 96420697 (92M) [application/octet-stream]
`gapps/open_gapps-arm-7.0-pico-20160827.zip' に保存中

gapps/open_gapps-arm-7.0-pico-20160827.zip         100%[=================================================================================================================>]  91.95M  1.87MB/s 時間 28s    

2016-09-12 04:52:34 (3.34 MB/s) - `gapps/open_gapps-arm-7.0-pico-20160827.zip' へ保存完了 [96420697/96420697]

 * Unzipping package...

Archive:  gapps/open_gapps-arm-7.0-pico-20160827.zip
signed by SignApk
 extracting: gapps/pkg/Core/configupdater-all.tar.xz  
 extracting: gapps/pkg/Core/defaultetc-common.tar.xz  
 extracting: gapps/pkg/Core/defaultframework-common.tar.xz  
 extracting: gapps/pkg/Core/extservices-all.tar.xz  
 extracting: gapps/pkg/Core/extshared-all.tar.xz  
 extracting: gapps/pkg/Core/gmscore-arm.tar.xz  
 extracting: gapps/pkg/Core/googlebackuptransport-all.tar.xz  
 extracting: gapps/pkg/Core/googlecontactssync-all.tar  
 extracting: gapps/pkg/Core/googlefeedback-all.tar.xz  
 extracting: gapps/pkg/Core/googleonetimeinitializer-all.tar.xz  
 extracting: gapps/pkg/Core/googlepartnersetup-all.tar.xz  
 extracting: gapps/pkg/Core/gsfcore-all.tar.xz  
 extracting: gapps/pkg/Core/gsflogin-all.tar.xz  
 extracting: gapps/pkg/Core/setupwizarddefault-all.tar.xz  
 extracting: gapps/pkg/Core/setupwizardtablet-all.tar.xz  
 extracting: gapps/pkg/Core/vending-all.tar.xz  
 extracting: gapps/pkg/GApps/calsync-all.tar.xz  
 extracting: gapps/pkg/GApps/dialerframework-common.tar.xz  
 extracting: gapps/pkg/GApps/googletts-arm.tar.xz  
 extracting: gapps/pkg/GApps/packageinstallergoogle-all.tar.xz  
 extracting: gapps/pkg/LICENSE       
 extracting: gapps/pkg/META-INF/com/google/android/update-binary  
 extracting: gapps/pkg/META-INF/com/google/android/updater-script  
 extracting: gapps/pkg/app_densities.txt  
 extracting: gapps/pkg/app_sizes.txt  
 extracting: gapps/pkg/bkup_tail.sh  
 extracting: gapps/pkg/busybox-arm   
 extracting: gapps/pkg/g.prop        
 extracting: gapps/pkg/gapps-remove.txt  
 extracting: gapps/pkg/installer.sh  
 extracting: gapps/pkg/xzdec-arm     
 extracting: gapps/pkg/zip-arm       
  inflating: gapps/pkg/META-INF/com/android/otacert  
  inflating: gapps/pkg/META-INF/MANIFEST.MF  
  inflating: gapps/pkg/META-INF/CERT.SF  
  inflating: gapps/pkg/META-INF/CERT.RSA  

 * Extracting supplied packages...
 * Creating local system partition...
  - including gapps/tmp/calsync-all/nodpi
  - including gapps/tmp/configupdater-all/nodpi
  - including gapps/tmp/defaultetc-common/common
  - including gapps/tmp/defaultframework-common/common
  - including gapps/tmp/dialerframework-common/common
  - including gapps/tmp/extservices-all/nodpi
  - including gapps/tmp/extshared-all/nodpi
  - including gapps/tmp/gmscore-arm/240
  - including gapps/tmp/googlebackuptransport-all/nodpi
  - including gapps/tmp/googlefeedback-all/nodpi
  - including gapps/tmp/googleonetimeinitializer-all/nodpi
  - including gapps/tmp/googlepartnersetup-all/nodpi
  - including gapps/tmp/googletts-arm/nodpi
  - including gapps/tmp/gsfcore-all/nodpi
  - including gapps/tmp/gsflogin-all/nodpi
  - including gapps/tmp/packageinstallergoogle-all/nodpi
  - including gapps/tmp/setupwizarddefault-all/nodpi
  - including gapps/tmp/setupwizardtablet-all/nodpi
  - including gapps/tmp/vending-all/nodpi
 * Waiting for ADB...
 * Removing old package installer...
 * Pushing system files...
push: gapps/sys/etc/sysconfig/whitelist_com.android.omadm.service.xml -> /system/etc/sysconfig/whitelist_com.android.omadm.service.xml
push: gapps/sys/etc/sysconfig/google.xml -> /system/etc/sysconfig/google.xml
push: gapps/sys/etc/sysconfig/google_build.xml -> /system/etc/sysconfig/google_build.xml
push: gapps/sys/etc/sysconfig/google_vr_build.xml -> /system/etc/sysconfig/google_vr_build.xml
push: gapps/sys/etc/preferred-apps/google.xml -> /system/etc/preferred-apps/google.xml
push: gapps/sys/etc/permissions/com.google.android.media.effects.xml -> /system/etc/permissions/com.google.android.media.effects.xml
push: gapps/sys/etc/permissions/com.google.android.maps.xml -> /system/etc/permissions/com.google.android.maps.xml
push: gapps/sys/etc/permissions/com.google.android.dialer.support.xml -> /system/etc/permissions/com.google.android.dialer.support.xml
push: gapps/sys/etc/permissions/com.google.widevine.software.drm.xml -> /system/etc/permissions/com.google.widevine.software.drm.xml
push: gapps/sys/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk -> /system/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk
push: gapps/sys/app/GoogleExtShared/GoogleExtShared.apk -> /system/app/GoogleExtShared/GoogleExtShared.apk
push: gapps/sys/app/GoogleTTS/GoogleTTS.apk -> /system/app/GoogleTTS/GoogleTTS.apk
push: gapps/sys/priv-app/GoogleExtServices/GoogleExtServices.apk -> /system/priv-app/GoogleExtServices/GoogleExtServices.apk
push: gapps/sys/priv-app/SetupWizard/SetupWizard.apk -> /system/priv-app/SetupWizard/SetupWizard.apk
push: gapps/sys/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk -> /system/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk
push: gapps/sys/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk -> /system/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk
push: gapps/sys/priv-app/GooglePackageInstaller/GooglePackageInstaller.apk -> /system/priv-app/GooglePackageInstaller/GooglePackageInstaller.apk
push: gapps/sys/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk -> /system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk
push: gapps/sys/priv-app/GoogleLoginService/GoogleLoginService.apk -> /system/priv-app/GoogleLoginService/GoogleLoginService.apk
push: gapps/sys/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk -> /system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
push: gapps/sys/priv-app/GoogleFeedback/GoogleFeedback.apk -> /system/priv-app/GoogleFeedback/GoogleFeedback.apk
push: gapps/sys/priv-app/Phonesky/Phonesky.apk -> /system/priv-app/Phonesky/Phonesky.apk
push: gapps/sys/priv-app/ConfigUpdater/ConfigUpdater.apk -> /system/priv-app/ConfigUpdater/ConfigUpdater.apk
push: gapps/sys/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk -> /system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk
push: gapps/sys/framework/com.google.android.dialer.support.jar -> /system/framework/com.google.android.dialer.support.jar
push: gapps/sys/framework/com.google.widevine.software.drm.jar -> /system/framework/com.google.widevine.software.drm.jar
push: gapps/sys/framework/com.google.android.maps.jar -> /system/framework/com.google.android.maps.jar
push: gapps/sys/framework/com.google.android.media.effects.jar -> /system/framework/com.google.android.media.effects.jar
28 files pushed. 0 files skipped.
408 KB/s (121209916 bytes in 289.519s)
 * Enforcing a reboot, please be patient...
 * Waiting for ADB...
error: device not found
error: device not found
error: device not found
error: device not found
error: device not found
error: device not found
 * Applying correct permissions...
 * Waiting for ADB...
All done. The device will reboot once again.

real	10m18.864s
user	0m48.320s
sys	0m11.600s
pi@raspberrypi:~/a7 $ 
```