Tripp396
Posts: 12
Joined: Sat Apr 04, 2020 11:20 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Mon Apr 13, 2020 1:04 am

Konsta wrote:
Wed Apr 08, 2020 3:44 pm
Tripp396 wrote:
Tue Apr 07, 2020 5:12 pm
If there's any way I can help, let me know. Not sure if any sort of logs would help out.
Logs always help but in cases where I can reproduce the issue I rather grab the logs myself.
I did read the pi 3 supports Bluetooth but not handsfree protocol. (HFP) Not sure if it’s the same deal here, but I read people get around it by buying a usb Bluetooth dongle. Not sure how you would bypass the built in Bluetooth and connect to the Bluetooth dongle instead within Android, though.

User avatar
procount
Posts: 2247
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Thu Apr 16, 2020 7:09 pm

Hi Konsta,
I've just installed your LineageOS16.0 for the Pi4 (using PINN of course) and successfully installed gapps so that I can install zoom video conferencing from the play store.
Mostly it works quite well (see viewtopic.php?f=63&t=254367&start=25) but if the main display showing the video is hidden (for example to view the participants or change meeting settings etc.) then the local video tends to freeze when the display returns. The remote video and both audios seem to continue. Restarting the meeting or the App does not restart the video and the Pi needs to be powered down to restart the video. That suggests it could be something to do with the Android video camera driver to me, rather than zoom, but I'm just speculating.
Any ideas? I was using the Pi4 4GB with RPF Camera and a USB sound card (USB 0x8086:0808).
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri Apr 17, 2020 8:32 am

procount wrote:
Thu Apr 16, 2020 7:09 pm
Hi Konsta,
I've just installed your LineageOS16.0 for the Pi4 (using PINN of course) and successfully installed gapps so that I can install zoom video conferencing from the play store.
Mostly it works quite well (see viewtopic.php?f=63&t=254367&start=25) but if the main display showing the video is hidden (for example to view the participants or change meeting settings etc.) then the local video tends to freeze when the display returns. The remote video and both audios seem to continue. Restarting the meeting or the App does not restart the video and the Pi needs to be powered down to restart the video. That suggests it could be something to do with the Android video camera driver to me, rather than zoom, but I'm just speculating.
Any ideas? I was using the Pi4 4GB with RPF Camera and a USB sound card (USB 0x8086:0808).
Thanks for the report. Someone asked this elsewhere as well.

Could be camera HAL issue. I need to check some logs when I get around. I think someone reported similar issues with Skype/Whatsapp video calls.

One easy thing to test would be to increase gpu_mem to 256 in /boot/config.txt to see if it makes any difference.
KonstaKANG.com

User avatar
procount
Posts: 2247
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri Apr 17, 2020 11:04 am

I tried gpu_mem=256, but it made no difference. It still froze after viewing the participants window, even without an active connection.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

User avatar
procount
Posts: 2247
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri Apr 17, 2020 5:15 pm

I got zoom working on the RPi3 version as well, but it also suffers from the same video freezing.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

fruitoftheloom
Posts: 24084
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri Apr 17, 2020 5:45 pm

procount wrote:
Fri Apr 17, 2020 5:15 pm
I got zoom working on the RPi3 version as well, but it also suffers from the same video freezing.

Maybe try jitsi-meet, it can run in web browser or Android App ??

https://meet.jit.si
Thinking outside the box is better than burying your head in the sand...

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri Apr 17, 2020 6:09 pm

procount wrote:
Fri Apr 17, 2020 5:15 pm
I got zoom working on the RPi3 version as well, but it also suffers from the same video freezing.
OK, that would rather indicate some issue with the camera HAL than something with e.g. graphics drivers. Still need to grab some logs when I get around.
KonstaKANG.com

Tripp396
Posts: 12
Joined: Sat Apr 04, 2020 11:20 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri Apr 24, 2020 6:00 pm

I have noticed that any time I shut down and turn back on the media volume resets to about 25%

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri Apr 24, 2020 6:58 pm

Tripp396 wrote:
Fri Apr 24, 2020 6:00 pm
I have noticed that any time I shut down and turn back on the media volume resets to about 25%
Can't reproduce such issue. Make sure you're powering off your device properly instead of just cutting the power.
KonstaKANG.com

mornejdp
Posts: 7
Joined: Fri Apr 24, 2020 11:56 am

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sat Apr 25, 2020 6:18 pm

Hi there. I would like if someone could please help me.

I've flashed my 32GB sd card with Konstakang's Lineage OS 16 20200212.

But when I try to boot my Pi 4 it only boots to TWRP, and won't boot to lineage os. I have tried typing in the terminal 'rpi4-recovery.sh boot', but when I restart the device it shows the rainbow screen and then goes black for about 5 seconds, then reboots the pi again and shows the rainbow screen, then black screen for 5seconds ect.

Can someone please help me to fix this issue?

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 6:02 am

mornejdp wrote:
Sat Apr 25, 2020 6:18 pm
Hi there. I would like if someone could please help me.

I've flashed my 32GB sd card with Konstakang's Lineage OS 16 20200212.

But when I try to boot my Pi 4 it only boots to TWRP, and won't boot to lineage os. I have tried typing in the terminal 'rpi4-recovery.sh boot', but when I restart the device it shows the rainbow screen and then goes black for about 5 seconds, then reboots the pi again and shows the rainbow screen, then black screen for 5seconds ect.

Can someone please help me to fix this issue?
If you've connected GPIO21 to ground (or something is drawing power from it) your device will always boot directly to TWRP.
KonstaKANG.com

mornejdp
Posts: 7
Joined: Fri Apr 24, 2020 11:56 am

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 11:44 am

Konsta wrote:
Sun Apr 26, 2020 6:02 am

If you've connected GPIO21 to ground (or something is drawing power from it) your device will always boot directly to TWRP.
I have nothing connected, so what can possibly drain power from it?

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 11:50 am

mornejdp wrote:
Sun Apr 26, 2020 11:44 am
Konsta wrote:
Sun Apr 26, 2020 6:02 am

If you've connected GPIO21 to ground (or something is drawing power from it) your device will always boot directly to TWRP.
I have nothing connected, so what can possibly drain power from it?
Hardware failure?

You can edit /boot/config.txt under Ramdisk section and edit which ramdisk (Android or TWRP recovery) is loaded.
KonstaKANG.com

mornejdp
Posts: 7
Joined: Fri Apr 24, 2020 11:56 am

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 12:05 pm

Konsta wrote:
Sun Apr 26, 2020 11:50 am
mornejdp wrote:
Sun Apr 26, 2020 11:44 am
Konsta wrote:
Sun Apr 26, 2020 6:02 am

If you've connected GPIO21 to ground (or something is drawing power from it) your device will always boot directly to TWRP.
I have nothing connected, so what can possibly drain power from it?
Hardware failure?

You can edit /boot/config.txt under Ramdisk section and edit which ramdisk (Android or TWRP recovery) is loaded.
What exactly must I change under Ramdisk section?

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 12:09 pm

mornejdp wrote:
Sun Apr 26, 2020 12:05 pm
Konsta wrote:
Sun Apr 26, 2020 11:50 am
mornejdp wrote:
Sun Apr 26, 2020 11:44 am

I have nothing connected, so what can possibly drain power from it?
Hardware failure?

You can edit /boot/config.txt under Ramdisk section and edit which ramdisk (Android or TWRP recovery) is loaded.
What exactly must I change under Ramdisk section?
It's currently:

Code: Select all

# Ramdisk
gpio=21=ip,pu
[gpio21=1]
initramfs ramdisk.img followkernel
[gpio21=0]
initramfs ramdisk-recovery.img followkernel
[all]
You can e.g. change it to:

Code: Select all

# Ramdisk
initramfs ramdisk.img followkernel
This will remove the option to use DIY power button to boot to recovery. You can only use the rpi4-recovery.sh script method to boot TWRP after this.
KonstaKANG.com

mornejdp
Posts: 7
Joined: Fri Apr 24, 2020 11:56 am

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 12:21 pm

Konsta wrote:
Sun Apr 26, 2020 12:09 pm
mornejdp wrote:
Sun Apr 26, 2020 12:05 pm
Konsta wrote:
Sun Apr 26, 2020 11:50 am


Hardware failure?

You can edit /boot/config.txt under Ramdisk section and edit which ramdisk (Android or TWRP recovery) is loaded.
What exactly must I change under Ramdisk section?
It's currently:

Code: Select all

# Ramdisk
gpio=21=ip,pu
[gpio21=1]
initramfs ramdisk.img followkernel
[gpio21=0]
initramfs ramdisk-recovery.img followkernel
[all]
You can e.g. change it to:

Code: Select all

# Ramdisk
initramfs ramdisk.img followkernel
This will remove the option to use DIY power button to boot to recovery. You can only use the rpi4-recovery.sh script method to boot TWRP after this.
I've tried this, but it's still only booting into TWRP. Is there any other option I can try?

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 1:42 pm

mornejdp wrote:
Sun Apr 26, 2020 12:21 pm
I've tried this, but it's still only booting into TWRP. Is there any other option I can try?
That's not even theoretically possible unless you've renamed the ramdisk files yourself (i.e.running rpi4-recovery.sh). You should have ramdisk.img (Android) and ramdisk-recovery.img (TWRP) on the boot partition.
KonstaKANG.com

mornejdp
Posts: 7
Joined: Fri Apr 24, 2020 11:56 am

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 5:25 pm

Konsta wrote:
Sun Apr 26, 2020 1:42 pm
mornejdp wrote:
Sun Apr 26, 2020 12:21 pm
I've tried this, but it's still only booting into TWRP. Is there any other option I can try?
That's not even theoretically possible unless you've renamed the ramdisk files yourself (i.e.running rpi4-recovery.sh). You should have ramdisk.img (Android) and ramdisk-recovery.img (TWRP) on the boot partition.
I got it to work.

I had a ramdisk.img and a ramdisk-boot.img

So I changed it to the following:

Code: Select all

# Ramdisk
initramfs ramdisk-boot.img followkernel
And that seemed to solve the issue.

So i figured my config is:
Android - ramdisk-boot.img
TWRP - ramdisk.img

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 6:26 pm

mornejdp wrote:
Sun Apr 26, 2020 5:25 pm
Konsta wrote:
Sun Apr 26, 2020 1:42 pm
mornejdp wrote:
Sun Apr 26, 2020 12:21 pm
I've tried this, but it's still only booting into TWRP. Is there any other option I can try?
That's not even theoretically possible unless you've renamed the ramdisk files yourself (i.e.running rpi4-recovery.sh). You should have ramdisk.img (Android) and ramdisk-recovery.img (TWRP) on the boot partition.
I got it to work.

I had a ramdisk.img and a ramdisk-boot.img

So I changed it to the following:

Code: Select all

# Ramdisk
initramfs ramdisk-boot.img followkernel
And that seemed to solve the issue.

So i figured my config is:
Android - ramdisk-boot.img
TWRP - ramdisk.img
That's because you've run 'rpi4-recovery.sh'. If you run 'rpi4-recovery.sh boot' (or flash the recovery2boot zip) they are renamed back to the original like they should.
KonstaKANG.com

mornejdp
Posts: 7
Joined: Fri Apr 24, 2020 11:56 am

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 6:37 pm

Konsta wrote:
Sun Apr 26, 2020 6:26 pm
mornejdp wrote:
Sun Apr 26, 2020 5:25 pm
Konsta wrote:
Sun Apr 26, 2020 1:42 pm


That's not even theoretically possible unless you've renamed the ramdisk files yourself (i.e.running rpi4-recovery.sh). You should have ramdisk.img (Android) and ramdisk-recovery.img (TWRP) on the boot partition.
I got it to work.

I had a ramdisk.img and a ramdisk-boot.img

So I changed it to the following:

Code: Select all

# Ramdisk
initramfs ramdisk-boot.img followkernel
And that seemed to solve the issue.

So i figured my config is:
Android - ramdisk-boot.img
TWRP - ramdisk.img
That's because you've run 'rpi4-recovery.sh'. If you run 'rpi4-recovery.sh boot' (or flash the recovery2boot zip) they are renamed back to the original like they should.
Thanks very much for helping me to sort out this problem, I saw it changed back. Everything is working now.

Tripp396
Posts: 12
Joined: Sat Apr 04, 2020 11:20 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun Apr 26, 2020 8:18 pm

Konsta wrote:
Fri Apr 24, 2020 6:58 pm
Tripp396 wrote:
Fri Apr 24, 2020 6:00 pm
I have noticed that any time I shut down and turn back on the media volume resets to about 25%
Can't reproduce such issue. Make sure you're powering off your device properly instead of just cutting the power.
I installed an app to power off, but that doesn’t seem to save the volume levels. Assuming I may need to setup a power button?

Wilker
Posts: 2
Joined: Fri May 01, 2020 4:27 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Fri May 01, 2020 4:43 pm

Hello, excuse me first, I'm using translator assistance to write this message. I have a Pi4 model B of 4GB, I installed the 3 versions of android available, but, however, the system starts only on the TWRP recovery screen. I even tried to install it by PINN, but the same thing happens. Please, could someone help me solve this problem, I would love to test the android system on my pi4. Thanks for listening

Konsta
Posts: 281
Joined: Thu Aug 16, 2018 3:55 pm
Location: Finland
Contact: Website Twitter

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sat May 02, 2020 1:46 pm

Wilker wrote:
Fri May 01, 2020 4:43 pm
Hello, excuse me first, I'm using translator assistance to write this message. I have a Pi4 model B of 4GB, I installed the 3 versions of android available, but, however, the system starts only on the TWRP recovery screen. I even tried to install it by PINN, but the same thing happens. Please, could someone help me solve this problem, I would love to test the android system on my pi4. Thanks for listening
This was just discussed on this topic and I already gave you a direct link to it when you asked this on my site. Please read the discussion above.
KonstaKANG.com

Wilker
Posts: 2
Joined: Fri May 01, 2020 4:27 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Sun May 03, 2020 5:50 pm

I found the solution above for my problem, thank you very much for your help. The system looks great.

sjuniormachado
Posts: 6
Joined: Thu May 14, 2020 1:26 pm

Re: [DEV] LineageOS 16.0 (Android 9) for Raspberry Pi 4 B

Thu May 14, 2020 1:31 pm

Hey there.
First of all, best regards from Brazil and sorry for my english.
Your distro is awesome. I'm using this for a academic project.

I read about why you don't share the source code, it's ok.
I'm using the Raspberry PI 4 with a touch monitor of 15.6", everything is ok but when i rotate the screen with display_rotate = 3 the touch doesn't get rotated.
I read about this in many places but i can't get this working with your distro.

Can you help me ?
Where i can change the matrix of the display?

Thanks a lot.

Return to “Android”