DiskioPi Community

The ultime Open Source tablet.

You are not logged in.

#1 2017-02-17 09:28:38

Gaara14
Administrator

How to install Android on Raspberry Pi (1920x1080 resolution)

This tutorial is available only for Raspberry Pi 3. To run with Raspberry Pi 2, see this link.

It explains how to install Android with 1920x1080 resolution, works with any full HD screen.

With time, a special image for Diskio Pi will be available.

The version choosen is RTAndroid, it's not an official version from the fundation, but works well and still in development. Thanks to Igor Kalkov for his development.
The touch screen is supported, and the USB DAC too.


Prerequies:
- A formated 8Gb SD card, with UHS speed class 4. Class 10 is recommended.
- A SD card adapter
- A linux PC host to burn the SD card. Windows users should use a Live-CD or VirtualBox.
- Gparted if you use Ubuntu, or other partition soft.

1: Download the image.

Go to this page: https://rtandroid.embedded.rwth-aachen. … pberry-pi/ to download the latest image file.

2: Unzip the downloaded package.

cd Downloads
unzip rtandroid-[VERSION]-[DATE]-rpi3.zip -d .

3: Edit the file "boot/config.txt" for desired resolution. You can find more informations here or here.
For DiskioPi, the screen is 1920x1080. You can run Android with this resolution:

hdmi_mode=82

If you prefer run android in 1280x720 resolution, keep

hdmi_mode=85

To enable USB sound, add these lines in config.txt:

hdmi_ignore_edid_audio=1
hdmi_ignore_edid=0xa5000080

4: Insert your SD card in your PC.

5: Find the device name of the SD card. Several methods can be used.

- Terminal method:

sudo fdisk -l
and find the letter correspond to your SD card.

- Graphical method:
You can check with Gparted the SD card name. You can also delete all partition already created before.

The name will be /dev/sdX (/dev/sde for example)

Be sure of this name, the next operation will delete all data of the device.

6: Burn the SD card:
On the terminal, run the install script:
Use the "-p" flag to partition your card.
Use the "-f" flag to format your card.

cd rtandroid-aosp-7.1-20170211-rpi3
./install.sh -p -f /dev/sdX

with X your specific letter found in step 5

The script will create 4 partitions and burn the system.
Finally, you should have this:

 * Copying new system files...
   - mounting the boot partition to /media/rpi-sd
   - copying boot files
   - unmounting the boot partition
   - writing the system image
2048+0 enregistrements lus
2048+0 enregistrements écrits
2147483648 bytes (2,1 GB, 2,0 GiB) copied, 234,006 s, 9,2 MB/s

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

7: If you have chosen 1280x720 resolution, you can remove your SD card from the PC and put it into the raspberry pi and power it on.
Next step is 9.

8: In the case of 1920x1080 resolution:

Mount the SD card. (I remove the card and re-plug, more easier)
Go to the system partition.

Comment (add #) before this line:
debug.drm.mode.force=1280x720

and add these lines:

debug.drm.mode.force=1792x1008
ro.sf.lcd_density=166

Find

ro.sf.lcd_density=213

and comment this line.

The file should be:

#debug.drm.mode.force=1280x720
debug.drm.mode.force=1792x1008
ro.sf.lcd_density=166
[...]
#ro.sf.lcd_density=213

Save and close gedit.

Then, the system will start with 1792x1008 resolution.
To have a real 1920x1080 resolution, there's a command to send when Android will be started (see step 10).

You can unmount & remove your SD card from the PC and put it into the raspberry pi and power it on.

9: Gapps Installation:
Gapps is a suite of Android software including Google Play Store.

Your Android is runing on your RPi. You must be connected (wifi or Ethenet)

Settings -> Wifi -> Wifi ON -> Add your passphrase

Then, get the IP adress:

Setting -> About tablet -> Statut

The IP adress is like 192.168.1.xx

With the host PC, open a terminal, then:

Edit the gapps.sh file and find the ADB_ADDRESS="" line.
add your IP adress like this:

ADB_ADDRESS="192.168.1.xx"

Save, close.

and execute the script:

./gapps.sh -a arm

You must maybe install some package (lzip or other)

Wait until the script end, the Raspberry must reboot.

All done, you should have Google Play Store installed!

10: Set the 1920x1080 resolution:

With the PC host, enter this (the Raspberry Pi must be connected)

To connect your PC with the Android RT,

adb connect 192.168.1.xx

and set the new resolution:

adb shell wm size 1920x1080

Limitations of this method:
At this time, we can not set the build.prop file with 1920x1080 resolution. The resolution is not reconized by the screen.

I will add corrections if I find a better method. (Or if I manage to modify/compile a custom image for Diskio Pi @RPi)

Have fun!

Guillaume

Sources: https://rtandroid.embedded.rwth-aachen. … pberry-pi/
https://www.td72pro.com/accueil/2017/2/ … hd-franais
RT Android Google group: https://groups.google.com/forum/#!forum/android-rpi

Offline

Users in this topic: 0 guests, 0 registered users

Board footer

Powered by FluxBB