yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi Original Development] kiai72:
it's a SD-card. I flashed it as ususal with win32diskimager. Besides this i didn't change anything, but since it doesn't work i tried other HDMI_modes (but i also checked another monitor) and i took off the overclock settings.

no luck so far. Isn't there a log ? or can i boot into recovery maybe ?

just to rule things out:

- can someone confirm, that my bootloader is ok ?

- should it be possible to boot without monitor (and plug in later) - just to make sure it's not a monitor issue.

i already tried without - from the way the LED flashes - it think it behaves the same.
[Raspberry Pi Original Development] risant:
if there's no HW video playback ... how it could implement 4k video playback thru software accelaration?
[Raspberry Pi Original Development] maxwen:
LOOL - good luck if it already starts stuttering at 720p
[Raspberry Pi Original Development] maxwen:
there is no recovery yet - you can only try adb logcat if its already up

yes - wrong firmware wont even get you past rainbow screen

no - monitor must be connected on boot
[Raspberry Pi Original Development] kiai72:
so my main problem is the firmware. I assume my firmware is "to new" ?

will you support this soon ?
[Raspberry Pi Original Development] maxwen:
you got that wrong - NO your firmware is NOT the problem
[Raspberry Pi Original Development] kiai72:
so what is the problem. i just tried konstakang-android-rom: works. Isn't it similar? - at least the boot-process ?
[Raspberry Pi Original Development] Esialam-:
That's great ! Is there a way to use GPIO with this ROM ? I'd love to use Android and send some signals when alarms ring.
[Raspberry Pi Original Development] Zanyar_B:
Thanks for good work.
[Raspberry Pi Original Development] maxwen:
Make it your project and do it
[Raspberry Pi Original Development] Esialam-:
I have no idea how to do this. But I could try. Do you have any idea where I could start ? Do you know some online ressources ?
[Raspberry Pi Original Development] maxwen:
Does not sound like you have a developer background - so I link this here for others that might know what to do with it :)

https://evmanic.com/monitoring-raspberry-pi-gpios-when-running-android/
[Raspberry Pi Original Development] pragmatik225:
Bootloop issue

Hello,

Thank you for your work. It's amazing. However I got a bootloop issue with my setup. I flashed a 64Gb sd card with the last 'omni-11-20201028-rpi4-MICROG.zip' but when I turn on my rpi4 I get the loading screen until the message "The tablet is starting..." and then my device reboot. Can you help to setup correctly my rpi ? How can I debug that ?
[Raspberry Pi Original Development] maxwen:
Did you modify the userdata parition after flashing e.g. resize?

if yes did you make sure to reenable project quotas again?
[Raspberry Pi Original Development] pragmatik225:
No, I started my pi immediatly after flashing my sd card with BalenaEtcher
[Raspberry Pi Original Development] risant:
When will the hw video encoding and decoding be fix?
[Raspberry Pi Original Development] Chublets:
has anyone figured out how to get this working with the offical pi 7" touchscreen yet? personally i dont know enough about them to know where to start
[Raspberry Pi Original Development] AndroidFileHost:
Hooked it up to a 21.5" touchscreen 1080p monitor. Display has a .5-1" black border and touch is about half an inch off. So to click something I have to be half an inch lower than the actual button. Still tinkering and will post some results once I get it working properly. Thanks for the rom :)
[Raspberry Pi Original Development] griz.droidx:
So awesome that you made a microg version! I just found it Can't wait to try this!

Thanks a BUNCH!
[Raspberry Pi Original Development] Saftpresse99:
Hi,

is it possible to create a rpi3 build?

Thanks
[Raspberry Pi Original Development] maxwen:
no - konsta will be happy to serve you on this
[Raspberry Pi Original Development] maxwen:
touch calibration is something that you might be able to adjust using an idc file

https://source.android.com/devices/input/input-device-configuration-files
[Raspberry Pi Original Development] AndroidFileHost:
Yeah was actually about to try that before I got sidetracked. I'll let you know how it goes :)
[Raspberry Pi Original Development] mikeharris123:
Did you get any progress on this as I have a 27" touchscreen with the same problem, with both the border and touchpoints.

It's so close to being amazing

Regards

Mike
[Raspberry Pi Original Development] maxwen:
New build 20201105 is up

Please make sure to read the important notices about it in post #2
[Raspberry Pi Original Development] maxwen:
Might be you need some kind of calibration script. Does the screen works without issues in eg raspberry os? Or does or need some kind of eg xorg config
[Raspberry Pi Original Development] mikeharris123:
Hi Maxwen

Yes it works on normal Raspian and also on Android 9 that I have been using for the last month or two.

It looks like the screen does not fit properly to the full screen frame and leaves a large gap around the edges.

Did you used to make the CyanogenMod builds for the Oppo Find 5?

Regards

Mike
[Raspberry Pi Original Development] maxwen:
If the screen resolution is already wrong then this is a different problem
[Raspberry Pi Original Development] mikeharris123:
Hi Maxwen I will try the latest build just to see what the resolution is, I assume there are no calibration tools that are not there at build time?

Regards

Mike
[Raspberry Pi Original Development] maxwen:
After booting use Matlog app and create a logcat zip for me
[Raspberry Pi Original Development] mikeharris123:
Hi Maxwen I have done that and while I could not work out how to attach it directly here, I have uploaded it to OneDrive and the link is below

https://1drv.ms/u/s!ArS907ftdAuIhc8T66yHcydJq8z09g?e=OssofT

Let me know if you want me to change this or do anything else

Regards

Mike
[Raspberry Pi Original Development] maxwen:
video=HDMI-A-1:1920x1080M@60,margin_left=48,margin_right=48,margin_top=48,margin_bottom=48

That is what you screen reports at

check e.g. https://www.raspberrypi.org/documentation/configuration/cmdline-txt.md

You can try adding your own video=<xyz> to cmdline.txt in the boot partiition e.g.

video=HDMI-A-1:1920x1080M@60,margin_left=0,margin_right=0,margin_top=0,margin_bottom=0

Also notice the comment

> By default the margin_* options are set from the overscan entries in config.txt, if present
[Raspberry Pi Original Development] wd4sgu:
Hello all,

First, many thanks to maxwen for his hard work.

Second, I'm trying to boot into TWRP. Where do I find the Advanced settings? I've looked high and low and can't find any way to do it.

I would like to install a minimal version of GApps so I can download a program from the app store.

Any and all help is appreciated!
[Raspberry Pi Original Development] maxwen:
You are officially declared as blind then :)

There is ONE app with the raspberry logo NAMED Advanced - or Settings -> OmniGears ->Device features
[Raspberry Pi Original Development] maxwen:
Use microG and the baked in Aurora store
[Raspberry Pi Original Development] mikeharris123:
Thanks Maxwen I will take a look at this.

Not sure what to do yet but I will try and work it out.

This Android is looking really good thanks, and answering many a request that people have been looking for for a long time.

Regards

Mike
[Raspberry Pi Original Development] wd4sgu:
So I looked further...

I couldn't figure out how to find the App drawer. I finally found it (swiping up from the bottom of the screen) and started poking around.

Thanks for the response!
[Raspberry Pi Original Development] Crypto hacker312:
I updated the build to the latest and backed up the userdata partition

And now it's stuck on a constant bootloop with the words "omni" just flashing on and off and it won't boot to the actual OS
[Raspberry Pi Original Development] maxwen:
Nobody said I tested it 😎

Just start with a fresh userdata then
[Raspberry Pi Original Development] maxwen:
Ok - did test it now (simulate by manual wipe of userdata with mkfs and tune2fs as it would be

if I just flashed the new image) and it went fine here.

Need to try a real update later but I am pretty confident that it works as it should

As always - if you have an adb connection get me a logcat (at least 1 minute of it)

that is the only way I can provide any help

PS: note to myself - stupid USB controller sometimes gets confused what device us sda and what sdb :)

So just as an advice - always plug and unplug your backup USB device only when needed and dont

keep it plugged on boot especially if you also use another USB device as boot device
[Raspberry Pi Original Development] rylando:
Headless operation

Has anyone tried Airdriod or any remote type connection to this once booted and setup? I don't have a monitor to dedicate full time.
[Raspberry Pi Original Development] Crypto hacker312:
I got it working

But what is the use of having android on a pi if it can't even run minecraft or among us? Minecraft just outright crashes and among us loads but with no noise support (you can't even click around in the menus) konstakangs build works just fine but it doesn't have usb support like this one does and I don't have another sd card but if I did I would use konstakangs build for now until this one gets more stable tbh I like android 11 runs on the pi but at this point what's the use? The only good game I got working was roblox and plauge inc
[Raspberry Pi Original Development] maxwen:
Use the VNC server that comes with the rom

Add:: forget that - we did not add back yet the property based start and stop method

Honestel;y never even tried booting without a screen connected :)
[Raspberry Pi Original Development] maxwen:
Not really a usage type I would consider useful so I doubt you should wait for it here

Especially not since you have an alternative that suits your needs already
[Raspberry Pi Original Development] stefan131:
Damn, this is running really smooth. I love it, thanks!

I'm trying to make an Android car radio using this image, it's definitely fast enough!

I'm using a 7 inch touchscreen display (from Aliexpress :P), but the touchscreen does not seem to work 100%

It does show the hover effect when I tap on items in settings, but I can't click on anything.

Any tips?
[Raspberry Pi Original Development] maxwen:
Heard such a reports now twice (both with screens from aliexpress but that is mostly just coincidence)

No I don't really have a ready answer on how to fix this. It obviously is some kind of calibration issue but I am not sure where to start looking without such a device to play with
[Raspberry Pi Original Development] stefan131:
Hmm, I'm not giving up yet but I have no idea where to start :P

It's already registering movement, just not clicks (so also no swiping)

Do you have any idea where I could start?

I'm studying IT so I should be able to work this out, just haven't really worked with Android (or Linux) yet.
[Raspberry Pi Original Development] maxwen:
Initially thought idc config would help but no longer sure about that

https://source.android.com/devices/input/input-device-configuration-files
[Raspberry Pi Original Development] maxwen:
please use MatLog app and create a zip with kernel dmesg after boot

and if you have time head over to telegram then we can do a live debug session
[Raspberry Pi Original Development] stefan131:
That would be awesome!

I've got an online lesson in a minute, but I'll let you know!

This is the progress I made so far:

I couldn't find any associated idc files with dumpsys input, I'm still trying to make it work with one.

I did find something interesting:

rpi4:/ $ getevent -il /dev/input/event4
add device 1: /dev/input/event4
bus: 0003
vendor 0483
product 5750
version 0110
name: "Fondar Fondar USB Touch"
location: "usb-0000:01:00.0-1.4/input0"
id: "00000000001A"
version: 1.0.1
events:
KEY (0001): BTN_TOUCH
ABS (0003): ABS_X : value 492, min 0, max 1024, fuzz 0, flat 0, resolution 0
ABS_Y : value 585, min 0, max 600, fuzz 0, flat 0, resolution 0
ABS_PRESSURE : value 0, min 0, max 255, fuzz 0, flat 0, resolution 0
ABS_MT_SLOT : value 0, min 0, max 4, fuzz 0, flat 0, resolution 0
ABS_MT_POSITION_X : value 0, min 0, max 1024, fuzz 0, flat 0, resolution 0
ABS_MT_POSITION_Y : value 0, min 0, max 600, fuzz 0, flat 0, resolution 0
ABS_MT_TRACKING_ID : value 0, min 0, max 65535, fuzz 0, flat 0, resolution 0
ABS_MT_PRESSURE : value 0, min 0, max 255, fuzz 0, flat 0, resolution 0
MSC (0004): MSC_TIMESTAMP
input props:
INPUT_PROP_DIRECT

I think the key BTN_TOUCH is my problem as the touchscreen has no physical buttons.

Is there any known idc file that works with 7 inch touchscreens? This one looks very similar to the Waveshare 7 inch touchscreens

Right now I'm trying if "Vendor_0483_Product_5750.idc" would work :)

EDIT: It did not :P, looking further

EDIT: BTN_TOUCH might not be the problem, I found this: https://www.raspberrypi.org/forums/viewtopic.php?t=164436

Will try to use evtest in Android later, or else test it with Raspbian on the same touchscreen, and see if it's calling the BTN_TOUCH event

The touchscreen is working on my Windows laptop btw, so it's not the touchscreen
[Raspberry Pi Original Development] maxwen:
AHAHAHA - thats exactly the sane thing I already have an report for

Yeah hit me on telegram at [MENTION=4683552]maxwen[/MENTION]
[Raspberry Pi Original Development] maxwen:
Name is correct - put it into vendor/usr/idc - in logcat you will see if it gets picked up under

EventHub - configuration e.g.

11-07 15:25:34.063 371 441 I EventHub: New device: id=1, fd=141, path='/dev/input/event1', name='HID 222a:0001', classes=0x80000014, configuration='/vendor/usr/idc/Vendor_222a_Product_0001.idc', keyLayout='', keyCharacterMap='', builtinKeyboard=false,
[Raspberry Pi Original Development] maxwen:
Or might simply be that fact that it reports pressure at all - mine does not

Edit: I might have 2 possible solutions here once we figure out a few details in a debug session
[Raspberry Pi Original Development] rylando:
Thank you.
[Raspberry Pi Original Development] maxwen:
As said - if that works I can add property based start and stop of the server so you just need a simple

adb shell to start and stop it. So report back if that is something that you would use
[Raspberry Pi Original Development] wd4sgu:
Now that's resolved, so I've run into a new situation. When I try to reboot to TWRP, I just get a rainbow screen. I downloaded the RPi Imager and updated to the latest of everything, same result.

Any suggestions on what I might check? Thanks.
[Raspberry Pi Original Development] maxwen:
For TWRP screen MUST be connected to HDMI 1

Actually in the README just saying :)
[Raspberry Pi Original Development] Matt1103matt:
Hiya,

I too am wrangling with the Fondar screen. The kernel appears to be missing HID-multitouch or usb touchscreen modules. I've added the idc file but there still seems to be a problem with touch.
[Raspberry Pi Original Development] maxwen:
nothing is missing - your product is derped - maybe buying the cheapest bi... at aliexpress was not such a good idiea :)

Anyway - try build in here https://dl.omnirom.org/tmp/rpi4/staging/

AND get me the output of dumpsys input (adb shell)
[Raspberry Pi Original Development] Matt1103matt:
Apologies that wasn't a dig.

Unfortunately form factor is vital for my project as I too am trying to integrate a Pi android system to replace my atrocious in car sat nav. It is a "clone" of the waveshare screen but has rear rather than side connections and will have to be too far from the Pi to use the genuine screen. Also bezel size poses a issue as the original aperture is 7" and won't accommodate the bezel on the Pi screen.

On another note Omnirom is really slick and you're doing amazing work.

I'll do that and report back
[Raspberry Pi Original Development] Matt1103matt:
You sir are a genius!

Having installed the Staging MicroG build it works perfectly (apologies I was working with the weekly build). You have achieved the "impossible" as I think from my research that this particular issue has been plaguing Pi users for an incredibly long time.

Thank you so much.

Now to invert the display
[Raspberry Pi Original Development] maxwen:
Will explain later what the real problem is once I can create a smart fix that can be merged into our mainline source. But I can say that much that the problem is that the screen is reporting capabilities that it does not deliver which is a manufacturer flaw. And seems everyone but android is ignoring or working around that already.

I still need the output of dumpsys input I requested above from you!!!
[Raspberry Pi Original Development] maxwen:
Advanced - force rotation
[Raspberry Pi Original Development] maxwen:
In case you need inverted landscape

https://drive.google.com/file/d/1J_ZIkOUHMF0jSKKw-hpdkJcFlf-gwx3-/view?usp=sharing

replace and reboot
[Raspberry Pi Original Development] Matt1103matt:
I still need the output of dumpsys input I requested above from you!!![/QUOTE]

Working on it :)

Windows is misbehaving.
[Raspberry Pi Original Development] Matt1103matt:
I've been using terminal and TWRP to mess about. ADBsimply doesn't want to connect to my PC (not sure why).

edit: my HP x2 connected to Pi draws power and crashes pi and through hub will not connect at all.

I've been modifying config.txt on PC. The configs load/work but the file reverts on reboot to standard config?

I popped you a coffee donation because the work you are doing is fantastic! Sorry that I'm a little lame at all of this.
[Raspberry Pi Original Development] maxwen:
Please read the section about TWRP in README and how it works

DONT only change config.txt it will get overwritten by either config.txt.rom or config.txt.twrp depending on boot mode

So you MUST do the same change in all files if you want it to stick accross boot mode changes

Thanks - but will be invested in dog treats for my furry co workers instead :)
[Raspberry Pi Original Development] maxwen:
Dont worry - only info I actually really need now is USB vendor and product - so lsusb would also do the job

Just to be sure "your" fondar is the same that I already have another report for so I can catch all with the

same fix
[Raspberry Pi Original Development] Matt1103matt:
Ah that's easy! 0483:5750

All working great now. Just trying to implement Gpio-shutdown and I have an mcu to control the power supply and it should work a treat.

Hope your furry colleagues enjoy the treats!
[Raspberry Pi Original Development] Matt1103matt:
Screenshot
[Raspberry Pi Original Development] Matt1103matt:
Max,

I know you enabled external GPS on 10 is it included on this ROM? If so, is it chip specific and are mock locations required (most nav apps won't work with mock location)?

Also, I have found SSH on screen buttons but I'm a little lost as to how to implement reboot -p as a result of a GPIO pin change. Do you have any ideas?

Cheers,

Matt
[Raspberry Pi Original Development] changxiangzhong:
I was stuck in the same situation - with USB disk, the ONMI animation plays forever. Can you please share with me how did you fix it?
[Raspberry Pi Original Development] maxwen:
you most prolly did not correctly change config.txt to enable USB boot overlay
[Raspberry Pi Original Development] maxwen:
Did not test with 11 - will do and fix if needed
[Raspberry Pi Original Development] maxwen:
Still work fine - just remember

-NMEA only

-GPS must be connected during boot

-tty path must be set with property e.g. gps.device.path=/dev/ttyACM0

-if your GPS devices needs any special kernel module tell me then I can add
[Raspberry Pi Original Development] maxwen:
New build 20201115 is up
[Raspberry Pi Original Development] freddy0000:
I want to put this on my touchscreen setup in the kitchen that is mainly only used for Spotify and youtube etc. It's for the kids when their sitting doing homework but just wanted to know if can you get likes of the youtube app and their account to work on this build
[Raspberry Pi Original Development] maxwen:
Spotify works fine - regarding YouTube remember that everything above 720p is hardly watchable because of the missing

video acceleration. So it's currently not really usable for such things.
[Raspberry Pi Original Development] freddy0000:
it Installed YouTube ok it trying to register their Google account it won't do
[Raspberry Pi Original Development] maxwen:
But you did add your Google account in micro settings right?
[Raspberry Pi Original Development] freddy0000:
Sorry no how do I do this
[Raspberry Pi Original Development] maxwen:
Then use browser to visit YouTube :)
[Raspberry Pi Original Development] maxwen:
Adding some kind of easy support for gpio usage from the rom side is on my TODO list

but I have not yet started with that aside from doing some investigation what I can use as the base for it

So if anyone has some hints or pointers for that it would be very welcome
[Raspberry Pi Original Development] kkaram:
Camera support

Can the Pi Camera be accessed?
[Raspberry Pi Original Development] Matt1103matt:
My best guess so far is to map GPIO as a keystroke on an obsolete key allowing for a macro to run. ROOT is required to run shutdown command in android so prehaps mapping the keystroke in the kernel to act as a forced shutdown could be an option? The closest I got was map as volume button as android apks won't review keystrokes (disable volume change as not required in my build due to fixed volume level via Bluetooth) to run a macro shutdown command.
[Raspberry Pi Original Development] maxwen:
requiring root is not an option :)

I am thinking of a way more nice and comfortable way

To register for event and trigger actions based on that
[Raspberry Pi Original Development] maxwen:
I don't have one to test so I say no
[Raspberry Pi Original Development] freddy0000:
Sorted it now worked it out in the end
[Raspberry Pi Original Development] kakekeke:
Is there any way i can get the tv-out working ?
[Raspberry Pi Original Development] maxwen:
Will add a first version of libgpiod in next build
[Raspberry Pi Original Development] Matt1103matt:
That would be awesome!
[Raspberry Pi Original Development] aerobrain:
Graphics

Hi

New to the forum and Raspberry Pi in general. I'm very much not a techy so I apologise in advance for any stupid questions.

I bought a RPi4 recently and installed the Android 11 OmniROM mainly to see if I could get a specific app running. Got it all working but it's very stuttery which I believe is due to it mostly involving playing HD videos amongst other things. I knew up front this may happen as I saw HW accelerated graphics isn't supported so it was no surprise. I just wondered if it's a case of it not being there yet or more it'll be we happen. Also, if there's an older Android version that may have it that might work for this project. I think the app only needs something like Android 6+.

I actually really liked the ROM though, even if I can't get this particular app working it's been a fun introduction to Raspberry Pi :)

Thanks

Lee
[Raspberry Pi Original Development] YYC7:
Since USB port configured to peripheral, can we output adb shell to one of the usb only rather than serial
[Raspberry Pi Original Development] maxwen:
adb shell IS on USB so I dont understand your question
[Raspberry Pi Original Development] maxwen:
Its not about Android version but the mesa support for the v3d chip specific for the pi4

compared to vc4 in older pies. And since the raspberry foundation gives the middle finger

to Android we rely on other people to get a decent graphics support for Android
[Raspberry Pi Original Development] maxwen:
The non existing tv-out via HDMI .... :)
[Raspberry Pi Original Development] mispp:
Does this mean those improvements in mesa 20.3 will not have an impact here?
[Raspberry Pi Original Development] maxwen:
Dont know - I dont have the time to run after every update - did not even have the time to update to 20.2
[Raspberry Pi Original Development] mispp:
Was just curious if it caught some attention.

Seems that 20.3 has official vulkan driver for rpi4 (not sure if official is the right word)

https://www.phoronix.com/scan.php?page=news_item&px=V3DV-Raspberry-Pi4-Mesa-20.3