Lineage OS 14.1 for Raspberry Pi 3

39,421 views
Skip to first unread message

kons...@gmail.com

unread,
Apr 11, 2017, 5:27:23 AM4/11/17
to Android-rpi
I've released my Lineage OS 14.1 build for Raspberry Pi 3. It's based on android-rpi sources so it has similar functionality/issues.

Sahaj Sarup

unread,
Apr 11, 2017, 8:19:00 AM4/11/17
to Android-rpi, kons...@gmail.com
Awesome thnx for the update!

Sam Geyskens

unread,
Apr 11, 2017, 9:10:48 AM4/11/17
to Android-rpi, kons...@gmail.com
Ok this one is really nice!

I will try this evening or tomorrow that the official Raspberry Pi 7" touch screen is working fine with Lineage.
Now I'm trying to install Gapps on it with the script from RTAndroid, but the system partition is too small, can you make it 1GB please? (see nougat-tablet branch of android-rpi - https://github.com/android-rpi/device_brcm_rpi3/commit/9bd5d34541f8a671d548547972a15dfcd4c31702

Op dinsdag 11 april 2017 11:27:23 UTC+2 schreef kons...@gmail.com:

kons...@gmail.com

unread,
Apr 11, 2017, 10:16:39 AM4/11/17
to Android-rpi, kons...@gmail.com
Image already comes with 1GB system partition of which ~450MB is used. There should be plenty of room for gapps.

I haven't tried to install gapps myself or even yet looked into how the gapps installation script works. Did you enable root access for ADB from Settings -> Developer options -> Root access? You need to do for 'adb root' & 'adb remount' to work this being an userdebug build (vs. eng build).

Sahaj Sarup

unread,
Apr 11, 2017, 11:01:11 AM4/11/17
to Android-rpi


On Tuesday, April 11, 2017 at 2:57:23 PM UTC+5:30, kons...@gmail.com wrote:

kons...@gmail.com

unread,
Apr 11, 2017, 2:21:31 PM4/11/17
to Android-rpi, kons...@gmail.com
Yes, you're right. I've updated the image to have 1GB system partition. Installed today's gapps package using this script (https://github.com/RTAndroid/android_vendor_brcm_rpi3_scripts/blob/aosp-7.1/gapps.sh). Seems to work fine.


On Tuesday, April 11, 2017 at 4:10:48 PM UTC+3, Sam Geyskens wrote:

nathan....@collegeamerica.edu

unread,
Apr 12, 2017, 10:52:13 AM4/12/17
to Android-rpi, kons...@gmail.com
Wow!! Great job.  Very pretty. 

Could never RTandroiid to work with my Waveshare 10.1 in. usb touchscreen.  Just tried with your Lineage and no luck so far.  Thoughts?

Modified config.txt and build.prop but no response from touchscreen.  Now fiddling with developer options to change usb mode but it will not let me. 

kons...@gmail.com

unread,
Apr 12, 2017, 11:59:04 AM4/12/17
to Android-rpi, kons...@gmail.com, nathan....@collegeamerica.edu
Does it appear as input device ('cat /sys/class/input/input*/name')? What does 'dmesg' say when you connect it?

My guess is that required touchscreen drivers are not built into the kernel. Does it work with other OSes without any additional kernel driver?

nathan....@collegeamerica.edu

unread,
Apr 12, 2017, 12:53:24 PM4/12/17
to Android-rpi, kons...@gmail.com, nathan....@collegeamerica.edu

I will dmesg and see if it shows as input device when I get home today and let you know.


The touch works with Raspian and Ubuntu Mate but have not got it to work with any other OS's.

kons...@gmail.com

unread,
Apr 12, 2017, 12:59:55 PM4/12/17
to Android-rpi, kons...@gmail.com, nathan....@collegeamerica.edu
If there's a kernel driver and it shows up as input device, it's might just need an input device configuration file in Android. https://source.android.com/devices/input/input-device-configuration-files

Sam Geyskens

unread,
Apr 12, 2017, 3:14:05 PM4/12/17
to Android-rpi, kons...@gmail.com

I build your repo again with some changes for the official 7" touch screen (see my github repo for the changes https://github.com/dJos1991/device_brcm_rpi3), but there is still a bit offset:

on android-rpi we already trying to fix this, but we cannot find a fix for that: https://github.com/android-rpi/device_brcm_rpi3/issues/32



Op dinsdag 11 april 2017 15:10:48 UTC+2 schreef Sam Geyskens:

Sam Geyskens

unread,
Apr 12, 2017, 3:33:09 PM4/12/17
to Android-rpi, kons...@gmail.com
This is my config file https://gist.github.com/dJos1991/cb1c46373e74c89fce5b2bb4e36fce43

Op woensdag 12 april 2017 21:14:05 UTC+2 schreef Sam Geyskens:

kons...@gmail.com

unread,
Apr 13, 2017, 8:17:25 AM4/13/17
to Android-rpi, kons...@gmail.com
Difficult to say what's the problem. I don't have the hardware to test so it's not worth my time/effort to look into.

Does the workaroud ('echo "800x480" > /sys/devices/platform/soc/soc:gpu/graphics/fb0/virtual_size') work? You could add a simple script to /system/etc/init.d/ to automatically do that on every reboot.

nathan....@collegeamerica.edu

unread,
Apr 13, 2017, 10:57:27 AM4/13/17
to Android-rpi, kons...@gmail.com, nathan....@collegeamerica.edu

Here is what shows up with dmesg
[337501.109473] usb 6-1: new full-speed USB device number 14 using xhci_hcd
[337501.264932] usb 6-1: New USB device found, idVendor=0483, idProduct=5710
[337501.264950] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[337501.264959] usb 6-1: Product: Multi Media Development Board V1.0
[337501.264967] usb 6-1: Manufacturer: WWW.PowerMCU.COM
[337501.264975] usb 6-1: SerialNumber: 8D92255B5057e
[337501.282457] input: WWW.PowerMCU.COM Multi Media Development Board V1.0 as /devices/pci0000:00/0000:00:10.0/usb6/6-1/6-1:1.0/0003:0483:5710.0008/input/input18
[337501.338893] hid-generic 0003:0483:5710.0008: input,hidraw0: USB HID v1.00 Mouse [WWW.PowerMCU.COM Multi Media Development Board V1.0] on usb-0000:00:10.0-1/input0

It is showing up in /sys/class/input/input

Tried making .idc but I do not think it is right?  Still working on it.

Thank you for your help


On Wednesday, April 12, 2017 at 9:59:04 AM UTC-6, kons...@gmail.com wrote:

kons...@gmail.com

unread,
Apr 13, 2017, 2:17:40 PM4/13/17
to Android-rpi, kons...@gmail.com, nathan....@collegeamerica.edu
OK, that's reassuring.

Input device configuration file by vendor/product ids should be /system/usr/idc/Vendor_0483_Product_5710.idc.

Try with this first:
touch.deviceType=touchScreen
device.internal=1

gog...@appolonia.fr

unread,
Apr 14, 2017, 3:42:03 AM4/14/17
to Android-rpi, kons...@gmail.com, nathan....@collegeamerica.edu
Hi all,

Thanks for the job, Android turn very well on my Pi3... but I have a problem :(
I install GApps with gapps.sh script but I'm unable to sign in... I have always the "Google Play Service stop working".

I try the point 10 oh this link but it don't work anymore :

Anyone can help me ?
I just have to install one little Apps from the market :)

Have a good day

Sam Geyskens

unread,
Apr 14, 2017, 8:50:54 AM4/14/17
to Android-rpi, kons...@gmail.com
The workaround works in android-rpi builds when i open a shell trough ADB.

When i try to connect to my build, from your repo, I cannot connect trough adb for a security reasens:
error: device unauthorized. Please check the confirmation dialog on your device.

I've also created a script in the init.d folder, but that didn't work also.

Hopefully someone can help me with this!

Op donderdag 13 april 2017 14:17:25 UTC+2 schreef kons...@gmail.com:

kons...@gmail.com

unread,
Apr 14, 2017, 1:01:23 PM4/14/17
to Android-rpi, kons...@gmail.com
You should see a pop-up window to authorize adb when you connect your device. There's also a system property in default.prop in ramdisk (ro.adb.secure) to disable adb authentication. If you're building yourself, you can also just build an eng variant (instead of userdebug) which has more debugging enabled and some security features disabled.

init.d scripts should have executable permissions (755).

Tavo Tell

unread,
Apr 15, 2017, 8:53:40 AM4/15/17
to Android-rpi, kons...@gmail.com
Run fast! But Netflix still glitch to me. :(

Aaditya H.G

unread,
Apr 15, 2017, 10:41:12 AM4/15/17
to Android-rpi, kons...@gmail.com
Hello, I wanted to know if there is any way I can install Gapps, through windows?? I am not experienced in Linux so I would appreciate step by step instructions.

edwin...@gmail.com

unread,
Apr 15, 2017, 9:28:53 PM4/15/17
to Android-rpi, kons...@gmail.com
i can not get this to work on my rpi3 at all.

kons...@gmail.com

unread,
Apr 16, 2017, 10:13:54 AM4/16/17
to Android-rpi, kons...@gmail.com
New build.

-add support for wifi tethering
-add Widevine DRM
-improve Play Store compatibility
-Android 7.1.2 (merged)
-Android security patch level: 5 April 2017 (merged)

egom...@gmail.com

unread,
Apr 16, 2017, 2:04:37 PM4/16/17
to Android-rpi, kons...@gmail.com
for some odd reason i can not get this to work on my rpi 3.  i had retro pi on it and osmc but i can not get this or androidtv to work.  


On Tuesday, April 11, 2017 at 5:27:23 AM UTC-4, kons...@gmail.com wrote:

nathan....@collegeamerica.edu

unread,
Apr 16, 2017, 3:53:28 PM4/16/17
to Android-rpi, kons...@gmail.com, nathan....@collegeamerica.edu
Still cannot get the darn touchscreen to respond.  Flint OS works with touchscreen as well as Raspian and Ubuntu Mate. But these do not work well as touchscreen devices like Lineage does?  Tried creating an .idc file like you said but no joy.  The touchpad on my mini usb keyboard works fine but the screen just not recognized. 

I love this build and want to use it as a touchscreen. 

djr...@gmail.com

unread,
Apr 17, 2017, 8:32:35 AM4/17/17
to Android-rpi, kons...@gmail.com
I just installed Lineage OS 14.1 on my RPi 3 but it seems that I am having trouble installing playstore and kodi. Could someone point me directions on how to install the play store apk or the gapps? Also which kodi apk do I need for this release?
thanks.

evi...@gmail.com

unread,
Apr 20, 2017, 1:51:26 PM4/20/17
to Android-rpi, kons...@gmail.com
My tv msg video not suported on boot this lineage

On recalbox same tv works ok


Hary Ayala

unread,
Apr 21, 2017, 3:52:38 PM4/21/17
to Android-rpi, kons...@gmail.com
I can't install things like the google app because it "failed to extract native libraries, res=1113" it happoens with a couple apps from google, any ideas about  what I might be missing?
I installed gapps pico using RTAndroid's script.


On Tuesday, April 11, 2017 at 3:27:23 AM UTC-6, kons...@gmail.com wrote:

daniel...@googlemail.com

unread,
May 6, 2017, 12:35:05 PM5/6/17
to Android-rpi

Very nice! But am i the only one where this is EXTREMLY slow? On apps i install i for example can't click on any buttons. Settings and stuff work ok, just very slow.

Installed gapps.sh too

Sam Geyskens

unread,
May 6, 2017, 12:38:15 PM5/6/17
to Android-rpi
Do you use a class 10 SD card?

daniel...@googlemail.com

unread,
May 6, 2017, 1:46:39 PM5/6/17
to Android-rpi
yes it's a kingston class 10 card

edwin...@gmail.com

unread,
May 6, 2017, 2:07:10 PM5/6/17
to Android-rpi, kons...@gmail.com
i dont see anything on my screen when using this image

s.p.kilpa...@gmail.com

unread,
May 7, 2017, 2:50:09 PM5/7/17
to Android-rpi, kons...@gmail.com
Message has been deleted

mu021...@gmail.com

unread,
May 19, 2017, 7:16:15 AM5/19/17
to Android-rpi
Very nice and fast on my raspberry pi. The only major problem I have is that after each boot the wireless don't connect automatically to my network. I always need to connect manually. Any clue why it is like this?

Pavel Rekun

unread,
May 19, 2017, 7:25:44 AM5/19/17
to Android-rpi, kons...@gmail.com
How does it work with videos? 

I am interested in YouTube and MX Player, for example.

kons...@gmail.com

unread,
May 20, 2017, 2:40:12 AM5/20/17
to Android-rpi, kons...@gmail.com
Not very well. YouTube works via browser. LineageOS has FFMPEG for video dec/enc and I've added Widevine blobs so there's a bit more chances than with android-rpi. Issue is with display drivers not working properly.

sanjay.ra...@gmail.com

unread,
May 24, 2017, 3:26:39 AM5/24/17
to Android-rpi, kons...@gmail.com
Hi,

Thanks for the release.. may be stupid question but i wanted to know if there are any display issues as compared to Android TV port for RP3?

My only purpose is to connect my Pie to TV and make it smart. like use browser, youtube and basic office functionality.

pgab...@gmail.com

unread,
May 24, 2017, 11:17:42 PM5/24/17
to Android-rpi, kons...@gmail.com
Muy buen avance! pero bastante inestable, quisiera que funcione Netflix, Youtube, Kodi, WebBrowser, gmail, etc.
Estoy dispuesto a testear!
Gracias


El martes, 11 de abril de 2017, 6:27:23 (UTC-3), kons...@gmail.com escribió:
Message has been deleted

atanas...@gmail.com

unread,
May 28, 2017, 11:49:30 AM5/28/17
to Android-rpi, kons...@gmail.com
I tested it .. notihing on screen after boot ... 30 mins later  - nothing ... not working on mi Pi3 :)

mac...@gmail.com

unread,
Jun 23, 2017, 2:19:57 PM6/23/17
to Android-rpi, kons...@gmail.com, atanas...@gmail.com
My guess is you did something wrong and if you don't have the skills or know how to get it working this release is not intended for you.

simin...@gmail.com

unread,
Jun 24, 2017, 9:28:52 AM6/24/17
to Android-rpi, kons...@gmail.com
Thanks again for that...

I was wondering, has anybody had any issues with Netflix?

I get scrambled playback from time to time, (not always and not for the full episode).
The show works for a while, then it becomes 'scrambled', 

Not sure if it is related, but my Kodi also flickers from time to time... but nothing else.

Any suggestions?

Sims

elited...@gmail.com

unread,
Jun 27, 2017, 11:28:23 AM6/27/17
to Android-rpi, kons...@gmail.com
How do i configure It to outout via composite output. i tried with sdtv_mode=2. i got video output on the tv but it's messed up.

lizb...@gmail.com

unread,
Jul 26, 2017, 5:54:38 AM7/26/17
to Android-rpi, kons...@gmail.com, nathan....@collegeamerica.edu
Hey Nathan, just wondering if you ever found a solution to this as we're experiencing the exact same issue with the same hardware....

molnar....@gmail.com

unread,
Aug 4, 2017, 6:22:22 PM8/4/17
to Android-rpi
Hello nice jobb, i just find this project and i thinking about to give a try. I have some questions. Does picamera, gps(usb) and 3g dongle working if i connect them? (It is just a question)
Thank you for your answer :)

kons...@gmail.com

unread,
Aug 10, 2017, 12:19:58 PM8/10/17
to Android-rpi, kons...@gmail.com
New build.


-update to Linux 4.4.80 kernel
-merge AOSP kernel/common android-4.4 branch to have proper Android kernel
-enable sdcardfs
-add BFQ i/o scheduler and enable it by default
-Jelly browser (merged)
-Android security patch level: 5 August 2017 (merged)

r...@strikingwebsolutions.com

unread,
Sep 3, 2017, 2:17:37 PM9/3/17
to Android-rpi, kons...@gmail.com
I'm having an issue with an app that I sideloaded where I can't click anything within it.... I tried different mice, etc.  Any ideas? 

game...@gmail.com

unread,
Sep 13, 2017, 6:22:07 PM9/13/17
to Android-rpi
I am trying to rotate the screen to portrait. When I set display_rotate=1 it wont boot up. Any thoughts? Also using adb to rotate doesnt work either. Thanks!

kons...@gmail.com

unread,
Sep 15, 2017, 4:33:26 AM9/15/17
to Android-rpi

faak...@gmail.com

unread,
Oct 2, 2017, 8:06:52 AM10/2/17
to Android-rpi
Hi, Thanks for the build. Seems great. Im a noob in linux. I have just installed the build through the official guide, as you recommended. I just dont have a lot af space remaining in sd card. Even though i have a 32 gb card. The second thing is, that i dont know how to install g apps, when im on windows. Anyone?

kons...@gmail.com

unread,
Oct 2, 2017, 11:44:29 AM10/2/17
to Android-rpi
It's a 4GB image that holds the required Android partition structure (https://github.com/lineage-rpi/android_device_brcm_rpi3/blob/cm-14.1/README#L24). You can extend /data partition using e.g. GParted (Linux) or similar application after you've written the image to your sdcard.

I'm not aware of any Windows batch script for gapps installation (should be possible for someone to write one similar to https://github.com/RTAndroid/android_vendor_brcm_rpi3_scripts/blob/aosp-7.1/gapps.sh). I'm not a Windows user so I can't help you with that.

Marcos Silva Cunha

unread,
Oct 6, 2017, 6:16:34 PM10/6/17
to Android-rpi
Hi all,

I successfully managed to compile the sources from https://github.com/lineage-rpi/android_local_manifest, did these:

repo init -u git://github.com/LineageOS/android.git -b cm-14.1
curl --create-dirs -L -o .repo/local_manifests/manifest_brcm_rpi3.xml -O -L https://raw.githubusercontent.com/lineage-rpi/android_local_manifest/cm-14.1/manifest_brcm_rpi3.xml
repo sync

then built kernel first of all:

cd kernel/rpi
ARCH=arm make lineageos_rpi3_defconfig
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage dtbs -j16

once compiled kernel:

source build/envsetup.sh
lunch lineage_rpi3-userdebug
make -j16 ramdisk systemimage

when done i setup my sdcard as:

p1 128mb vfat
p2 1gb ext4
p3 the rest as ext4

mkfs.vfat -L BOOT /dev/sdh1
dd if=system.img of=/dev/sdh2 bs=1M
mkfs.ext4 -n userdata /dev/sdh3

copied all necessary files:

device/brcm/rpi3/boot/* to p1:/
  kernel/rpi/arch/arm/boot/zImage to p1:/
  kernel/rpi/arch/arm/boot/dts/bcm2710-rpi-3-b.dtb to p1:/
  kernel/rpi/arch/arm/boot/dts/overlays/vc4-kms-v3d.dtbo to p1:/overlays/vc4-kms-v3d.dtbo
  out/target/product/rpi3/ramdisk.img to p1:/

(i've stucked on rainbow splash for like hours bcuz I misplaced the overlay dtbo file)

now have a shiny android nougat on my rpi3 :)

thanks all maintainers : )

kons...@gmail.com

unread,
Oct 7, 2017, 4:06:08 AM10/7/17
to Android-rpi
Well done! There's also a script to create images that you can directly write to your sdcard. https://github.com/lineage-rpi/android_device_brcm_rpi3/blob/cm-14.1/mkimg.sh

John Wong

unread,
Oct 7, 2017, 4:25:16 AM10/7/17
to Android-rpi
try add ro.sf.hwrotation=0 in /system/build.prop

在 2017年9月14日星期四 UTC+8上午6:22:07,game...@gmail.com写道:

agenciab...@gmail.com

unread,
Nov 14, 2017, 5:16:59 AM11/14/17
to Android-rpi
Hello everyone,
I installed the latest version and I have a video problem.
I have a 43 "TV and it does not stay full screen, appearing small and in the center of the screen.
How can I configure this? I already tried to change the parameters in config.txt, but it did not work.

GuiPR

kons...@gmail.com

unread,
Nov 17, 2017, 6:30:13 AM11/17/17
to Android-rpi
New build. Added required kernel drivers/overlays for official rpi touchscreen. Someone who has touchscreen hardware could test if it works (still needs some modifications to config.txt & build.prop).


-fix wifi reconnect on boot (thanks to Google)
-update to Linux 4.4.97 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
-patch recently disclosed BlueBorne and KRACK vulnerabilities (merged)
-Android security patch level: 5 October 2017 (merged)

longda...@gmail.com

unread,
Nov 18, 2017, 11:21:30 AM11/18/17
to Android-rpi
Super excited about this, I just tried using it on my RPI touch screen and it didn't work correctly...I am going to test this hopefully today! :)

kons...@gmail.com

unread,
Nov 18, 2017, 11:45:32 AM11/18/17
to Android-rpi
It's not going to work as is. You still need to make modifications to config.txt and build.prop. Something like this maybe:

config.txt:
-config_hdmi_boost=4
-hdmi_group=1
-hdmi_mode=4
-disable_overscan=1
-framebuffer_width=1280
-framebuffer_height=720
+hdmi_group=2
+hdmi_mode=87
+hdmi_cvt=800 480 60 6 0 0 0

build.prop:
-debug.drm.mode.force=1280x720

donot...@gmail.com

unread,
Nov 18, 2017, 1:32:16 PM11/18/17
to Android-rpi
To enable touch in official 7" display what changes must be done sir

longda...@gmail.com

unread,
Nov 18, 2017, 2:54:30 PM11/18/17
to Android-rpi

I am having a hard time finding build.prop...am I blind?

kons...@gmail.com

unread,
Nov 18, 2017, 2:58:04 PM11/18/17
to Android-rpi

longda...@gmail.com

unread,
Nov 19, 2017, 11:29:59 AM11/19/17
to Android-rpi
I am new to this, I can not figure out how to get that portion of the file structure....is there method in Windows I can do to edit this or do I need to SSH into my Pi if that's possible with this build.

kons...@gmail.com

unread,
Nov 20, 2017, 3:36:23 AM11/20/17
to Android-rpi
ADB works just fine in WIndows as well.

See this discussion for ideas what you still need to change (https://github.com/android-rpi/device_brcm_rpi3/issues/32). Kernel drivers and overlays needed for official RPI display/touchscreen are already included in the latest build.

ulrich...@gmail.com

unread,
Nov 20, 2017, 4:15:18 PM11/20/17
to Android-rpi
 Is it possible to install lineage on an running NOOBS system? So that i can choose which OS should boot (android, raspbian, recal, librelec)?

kons...@gmail.com

unread,
Nov 21, 2017, 4:41:41 AM11/21/17
to Android-rpi
No, and no plans for it either. I haven't even looked into NOOBS whether this is even technically possible or not.

rudm...@gmail.com

unread,
Nov 28, 2017, 1:29:42 AM11/28/17
to Android-rpi
Hi there.

This build looks good. I have not yet had a change to try it out yet.
Have a problem with the zip file. Once I try and unzip the file it shows I need 750PB space to unzip it.
Even if I check the image file inside the zip file it shows over 800 PB.

I have tried about 4 mirrors to download and all shows the same. 

Please can you help.

kons...@gmail.com

unread,
Nov 28, 2017, 4:22:25 AM11/28/17
to Android-rpi
There's MD5 checksum to check file integrity for a reason.

Unzipped image is exactly 4GB (4,294,967,296 bytes) in size.

calis...@live.com

unread,
Dec 7, 2017, 11:34:40 PM12/7/17
to Android-rpi
why my rpi3 modle B first boot  14.1, it auto reboot and never login to system.

kons...@gmail.com於 2017年4月11日星期二 UTC+8下午5時27分23秒寫道:

jens...@gmail.com

unread,
Dec 10, 2017, 6:29:37 AM12/10/17
to Android-rpi
Hi all, I'm not a professional regarding to Raspberry and Android, but merging the changes, mentioned by RTAndroid,

(here: https://github.com/RTAndroid/android_vendor_brcm_rpi3_scripts/blob/aosp-7.1/video/raspberry-7inch-touchscreen)

did the trick for me. Everything (7" display and touch) is working perfectly and smooth! Just gapps causes a performance desaster, so I left it alone and switched to f-droid and yalp...

Especially the line
"debug.drm.mode.force=1280x720"
in the build.prop file caused the display to show more than it is able to... ;-) So REMOVE the line completely! Do NOT change it to "800x480" (again problems with alignment).

This is my current config.txt:
-------------snip---------------------
hdmi_force_hotplug=1
hdmi_drive=2
hdmi_group=2
hdmi_mode=87

hdmi_cvt=800 480 60 6 0 0 0
kernel=zImage
dtparam=audio=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=vc4-kms-v3d,cma-256
dtoverlay=i2c-rtc,ds3231
dtoverlay=rpi-backlight
dtoverlay=rpi-ft5406
initramfs ramdisk.img 0x01f00000
mask_gpu_interrupt0=0x400
avoid_warnings=2
enable_uart=1
-------------snap---------------------


build.prop:
-------------snip---------------------
REMOVE:   debug.drm.mode.force=1280x720
ADD:           ril.function.dataonly=1 (no idea what this one does, but however, it works... ;-))
-------------snap---------------------

This worked for ME. If you try it, I'm not responsible for any damages to your hardware...

Regards and good luck

Many thanks to you, konstakang, for your great job!

kons...@gmail.com

unread,
Dec 10, 2017, 7:23:32 AM12/10/17
to Android-rpi
Thanks for confirming that. That's pretty much exactly what I said after releasing the latest build. My post on November 18th still contains the exact diff that will work.

Can you/someone else with official RPI display test if writing value to this path changes the display backlight brightness? You can use adb shell/Terminal Emulator and you need to enable root access under developer options. Values from 0 to 255 should work.

su
echo "128" > /sys/class/backlight/rpi_backlight/brightness

I've already added a simple lights HAL so that you can control the display brightness from Android UI if/when there's another build. I might also make a separate build that's ready for devices with official RPI display.

jens...@gmail.com

unread,
Dec 10, 2017, 8:29:03 AM12/10/17
to Android-rpi
Doublechecked that and backlight dimming works like a charm... 
Value 0-10 no display, value 11 to 255 continuously brighter. 
(Via <adb connect IP> ) 

A special "touch-image" would be great, although the effort to get the standard image working on a 7" is not that much, as long as you know where and how to do the changes. most of the job has been already done by the creator of the image (whoever that might be ;-)), but honestly I was really glad that the f**%&!" display finally did what it was supposed to do... 

Right, your post from November 18th describes quite exactly what to do... Unfortunately I had no idea what that strange "build.prop" file does and where to find it, when I read that stuff. Droidwiki (German) helped here a lot.

kons...@gmail.com

unread,
Dec 11, 2017, 8:48:35 AM12/11/17
to Android-rpi
Thanks for confirming this also.

Did some reading and apparently there's different hardware revisions of the official RPI display and adjusting brightness only works on the newer ones (https://raspberrypi.stackexchange.com/questions/49822/official-touchscreen-brightness). I'll probably set the default brightness value to 128 (50% or on on the ver 1.0) and minimum brightness to ~20. This means users with ver 1.0 can switch off the display using the brightness slider which is of course not optimal. I don't know if there's any way to differentiate these hardware revisions in software.

prasadba...@gmail.com

unread,
Dec 12, 2017, 5:28:42 AM12/12/17
to Android-rpi
I am unable to get past the lineageos setup wizard. If i delete the setupwizard apk, im unable to use the home and recents button.
Message has been deleted

jf...@lusars.net

unread,
Dec 15, 2017, 6:07:17 PM12/15/17
to Android-rpi
So I finally got this up and running on my RPi 3 with the 7-inch "official" touch screen.  Thanks for the efforts!

Since I've seen the question asked a few times here and never -really- answered - there doesn't seem to be a simple way to edit build.prop on a Windows system.  It's on the second partition on the media, and Windows apparently only mounts the first partition on the SD card. 

Under Linux, you can either edit the image before writing it:

unzip lineage-14.1-20171117-UNOFFICIAL-KonstaKANG-rpi3.zip
sudo kpartx
-av lineage-14.1-20171117-UNOFFICIAL-KonstaKANG-rpi3.img            # You may need to 'sudo apt-get install kpartx' first
sudo mount
/dev/mapper/loop7p2 /mnt                                             # The kpartx command will tell you which devices it created.  
sudo vi
/mnt/build.prop
[make changes]
sudo umount
/mnt
sudo mount /dev/mapper/loop7p1 /mnt
sudo vi /mnt/config.txt
[make changes]
sudo kpartx
-d
lineage-14.1-20171117-UNOFFICIAL-KonstaKANG-rpi3.img

Now, that said, I'm having problems with a couple other things.  Mainly, it's booting up in landscape mode, with the Home button on the right side, and no Back or Task button.  I'm hoping for portrait mode (I tried ro.sf.hwrotation=0, which didn't work), but the missing back and task buttons are the bigger problem.   The "buttons" settings page shows all three - my hunch is that the button bar is displaying on the right (480px width) but the system thinks it's 800px wide, so I can't see the other two buttons. 

Also having problems getting google play services and store to work right after installing with the gapps.sh script, but that's not necessarily a build issue. 

Any help with either item would be great!

JF


On Tuesday, April 11, 2017 at 4:27:23 AM UTC-5, kons...@gmail.com wrote:

Jens Mayer

unread,
Dec 16, 2017, 5:53:54 AM12/16/17
to Android-rpi
Windows has no idea how to handle ext4 Partitions (and the second and third partition on the sd card are ext4 formatted). I'm not very familiar to Windows, but as far as I know, there are several tools to add the possibility to access this kind of file system (this one for example: http://www.ext2fsd.com/). But I never tested this software, so I have no idea how reliable it is.
As already mentioned earlier, the easiest way is, to use Linux as operating system (Maybe as a virtual machine:  https://www.virtualbox.org)...

regarding to your missing back and task buttons: Go to  "Settings", "Display" and change "Display size" to "Smaller" and the buttons should be, where they are supposed to be.

Regards 

--
You received this message because you are subscribed to a topic in the Google Groups "Android-rpi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-rpi/ri_yOnGcVkE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-rpi+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-rpi/9b741692-fb16-4dcf-8314-976082407dc7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Message has been deleted

jens...@gmail.com

unread,
Dec 16, 2017, 12:53:02 PM12/16/17
to Android-rpi
As far as I can see (after googlin' around for a while), there is no non-programming-possibility to get the orientation of the touch configured together with the display, but I found a workaround, which is not really nice, but works (at least on my raspi): 

https://stackoverflow.com/questions/25864385/changing-android-device-orientation-with-adb

make sure you can adb to your Raspi and enter the following commands:

adb shell settings put system accelerometer_rotation 0
adb shell settings put system user_rotation 3

these commands configure the user settings to portrait mode, which looks pretty ugly, because Android boots in landscape mode and switches automatically (animated) to portrait mode, but it does the job for now, I hope.

For more information see the link above...

Regards

jf...@lusars.net

unread,
Dec 16, 2017, 1:01:34 PM12/16/17
to Android-rpi
Yeah, that's definitely a bit ugly, but makes sense.   When I tried configuring ro.sf.hwrotation=90 it booted up in a weird, non-usable video mode.   I did finally get GApps working, but it's mostly so slow as to be unusable, and tells me Google Play Services and Google Play Music have stopped on a regular basis, so I'm not sure this is going to work for my needs, unfortunately.  Does this match with others' experiences (slowness), or did I screw something up?

Thanks for the tips on the screen size = smaller - I'm not sure why setting it to smaller moves the buttonbar from the side to the bottom, but definitely does the trick. 

JF

jens...@gmail.com

unread,
Dec 16, 2017, 1:14:27 PM12/16/17
to Android-rpi
Yep, same results on my raspi... Switched to f-droid.org / yalp. As long as you don't need gapps, the best solution, regarding to the performance. Meanwhile you need a 32-core-4Ghz-256GB  Ninja Turtle SOC, if you would call Gapps "usable" I guess...

Regards

myroot...@gmail.com

unread,
Dec 17, 2017, 9:37:08 AM12/17/17
to Android-rpi
Just tried this out and did a dd of the image to a microSD card and plugged the Rpi via HDMI to my TV. Neither seeing anything on the serial console, nor does the HDMI work. Is console=serial,115200 correct?

oldman...@gmail.com

unread,
Dec 20, 2017, 12:13:08 PM12/20/17
to Android-rpi
It's weird with gapps. I am going to try out lineageos on my rpi3 now that the touchscreen issues have been ironed out. I've been using rtandroid on it for a year now, with the official 7" screen, and gapps, with no issues aside from the Bluetooth hiccupping sometimes. I use it to control my rgb light strips in my apartment. Gapps installed fine, and I can use the store just fine as well, and don't have any issues. I wonder what is different with it on lineageos. It's kinda irrelevant information, but I find it weird that it would perform differently on lineageos.

I have a question though. I hear the pseye mic works well in Android, and I'm looking to add a mic to my pi android project. Do the other 4 usb ports work in lineageos, and can I use an external USB mic from said ports. I plan to use it for the buzzer system in my apartment building. It calls to a phone number, so I plan to see if it will work to an app on android. If it does, it will be nice to be able to answer my apartment door without pulling my phone out.

kons...@gmail.com

unread,
Dec 20, 2017, 12:26:31 PM12/20/17
to Android-rpi
You still need to manually edit some configs for the official display. Diff is in my post from Nov 18.

Never had any issue installing gapps but haven't even tried it since the first released builds. Latest gapps I've installed were 20170411. I wonder what gapps version people are trying to install (using what method) or has there been something relevant changed upstream LineageOS. I haven't seen any logs yet...

oldman...@gmail.com

unread,
Dec 25, 2017, 10:58:01 PM12/25/17
to Android-rpi
Ive been trying to install that version of gapps, but the file doesn't exist for that build on the gapps GitHub. hopefully a newer opne doesn't mess things up

oldman...@gmail.com

unread,
Dec 25, 2017, 11:49:00 PM12/25/17
to Android-rpi
Do you have a link where i can download that version of gapps? The newer ones messed up my rpi and it doesn't work...


On Wednesday, December 20, 2017 at 12:26:31 PM UTC-5, kons...@gmail.com wrote:

harf...@googlemail.com

unread,
Dec 25, 2017, 11:50:15 PM12/25/17
to Android-rpi
try yesterdays date for the timestamp variable in the gapps.sh script

oldman...@gmail.com

unread,
Dec 26, 2017, 12:34:24 AM12/26/17
to Android-rpi
yeah, i tried that, and it failed pretty badly. i'm going to try it again though, just in case it was an issue with the install.

oldman...@gmail.com

unread,
Dec 26, 2017, 2:23:26 AM12/26/17
to Android-rpi
Yup, same issue. the newer builds of opoen gapps do not install correc6tly on this build of lineage on the rpi3. google play service has crashed, and it essentially locks up the system so bad its next to unusable. the april 11 2017 gapps package seemed to work flawlessly. I don't know what the damn difference is. I've beenm pulling out my hair for 6 hours now trying to get this to work again. This rpi is a vital piece to my homes lighting and automation.......

alexs...@gmail.com

unread,
Dec 28, 2017, 4:08:42 PM12/28/17
to Android-rpi
Settings->Developer options->Smallest width -> 480 change to 600, and in display settings make font size to max.

суббота, 16 декабря 2017 г., 0:07:17 UTC+1 пользователь jf...@lusars.net написал:

kendall...@gmail.com

unread,
Jan 13, 2018, 3:36:46 PM1/13/18
to Android-rpi
Is this BootBerry compatible?
Message has been deleted

fullo...@gmail.com

unread,
Jan 16, 2018, 10:08:53 AM1/16/18
to Android-rpi
Has anyone figured out a way to get smooth video playback (aside from YouTube in-browser) on LineageOS RasPi builds? I've sideloaded apps like Mobdro, Show Box, and Terrarium TV - all have scrambled video playback. Is there a config file somewhere that I should edit and play around with?

On Friday, May 19, 2017 at 11:40:12 PM UTC-7, kons...@gmail.com wrote:
Not very well. YouTube works via browser. LineageOS has FFMPEG for video dec/enc and I've added Widevine blobs so there's a bit more chances than with android-rpi. Issue is with display drivers not working properly.

On Friday, May 19, 2017 at 2:25:44 PM UTC+3, Pavel Rekun wrote:
How does it work with videos? 

I am interested in YouTube and MX Player, for example.

kons...@gmail.com

unread,
Jan 18, 2018, 9:35:47 AM1/18/18
to Android-rpi
New build.

Added lights HAL for offical RPI display but it only works on the newer ones (version 1.1). If you have display version 1.0 and your device boots with display backlight off you need to remove /system/lib/hw/lights.rpi.so.

Also added a small script to change the properties for the offical RPI display. Use serial console/'adb shell'/Terminal Emulator and run:
su
/system/bin/rpi3-display.sh

I don't have any display hardware to test with so any feedback welcome.


-add support for I2C devices
-enable Android low-RAM configuration
-add lights HAL to control display brightness from Android on offical RPI display (version 1.1)
-update to Linux 4.4.112 kernel and patch known vulnerabilities (CVE-xxxx-xxxx, and more)
-Android security patch level: 5 January 2018 (merged)

silasmonte...@gmail.com

unread,
Jan 21, 2018, 10:56:00 PM1/21/18
to Android-rpi
when adding in build.prop

persist.demo.hdmirotation = portrait
ro.sf.hwrotation = 90

the screen remains in portrait mode but the touchscreen remains in landscape mode.

Does anyone have a solution?

oldman...@gmail.com

unread,
Jan 26, 2018, 2:49:19 AM1/26/18
to Android-rpi
I use an app caller rotation control. 

Does anyone else have Bluetooth problems at all? I have yet to update to the new build, but my Bluetooth constantly shuts down on my pri 3 with lineage on it. I thought it could be because I had wifi and Bluetooth enabled, as I have read some places thats touchy on the RPI 3 in general, so I am running it with an Ethernet cable right now. It doesn't move, it's mounted in a wall. I'm just wondering if it's just me, or if anyone else is experiencing these issues. Thank you in advance. I'll be installing the new build tomorrow onto the Pi

oldman...@gmail.com

unread,
Feb 3, 2018, 2:40:30 PM2/3/18
to Android-rpi
I got the Bluetooth sorted. It was a power issue. Next question, can you add support/or is there already support, for signature spoofing in your release of lineageos? Just for the use of f Droid or microg. 

kons...@gmail.com

unread,
Feb 3, 2018, 2:50:35 PM2/3/18
to Android-rpi
Not going to happen as discussed here. https://review.lineageos.org/#/c/64967/

You're of course welcome to make a build yourself (https://github.com/lineage-rpi/android_local_manifest/blob/cm-14.1/README.md) that includes this patch.

amaroro...@gmail.com

unread,
Feb 8, 2018, 9:21:28 PM2/8/18
to Android-rpi
Hello! Lineage OS is wrking on my raspberry pi 2B. But, my wifi adater can't read by this OS. How can I solve this? Please help me!

kons...@gmail.com

unread,
Feb 9, 2018, 2:05:55 AM2/9/18
to Android-rpi
External USB dongle is never going to work through Android settings. Should work from command line like in any other Linux distro.

Roland Kim S. Amaro

unread,
Feb 9, 2018, 4:51:02 AM2/9/18
to Android-rpi

What should I do so to fix this?

On Feb 9, 2018 10:21 AM, <amaroro...@gmail.com> wrote:
Hello! Lineage OS is wrking on my raspberry pi 2B. But, my wifi adater can't read by this OS. How can I solve this? Please help me!

--
You received this message because you are subscribed to a topic in the Google Groups "Android-rpi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-rpi/ri_yOnGcVkE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-rpi+unsubscribe@googlegroups.com.
It is loading more messages.
0 new messages