Android - Reddit
1.52K subscribers
17 photos
2 videos
35.3K links
Stay up-to-date with everything Android!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
LineageOS 24 (Android 17) for PC (With Googlebook interface)

I've been working on a LineageOS build for x86_64 PCs, somewhat like Android-x86 or BlissOS, but using Google's Android desktop interface from Googlebook.

Screenshots: https://imgur.com/a/asxGcln

ISO: https://sourceforge.net/projects/capivaos/files/android-17/ (Still uploading. SourceForge is painfully slow from where I live)



Current state

\- Boots from a live ISO on both UEFI and legacy BIOS. Secure Boot is supported through shim using your own MOK key. It also works with Ventoy.

\- There's an installer app included in the live session. It installs Android into a folder on an existing partition, without repartitioning or touching your other files. You can install it as a single image file or extract the system into a folder. Updates replace only the system files and keep the previous version, which you can still boot from GRUB if something goes wrong.

\- The desktop has freeform windows with title bars, a taskbar, an app launcher, quick settings, notifications, a calendar, regional screenshots, screen recording and keyboard shortcuts.

\- There's a proper login screen with multiple users, including a headless system user mode, similar to Googlebook.

\- Kernel 7.2, built with AOSP's clang, and Mesa 26.1 with support for radeonsi, iris, nouveau, virgl, RADV and ANV.

\- Graphics stack uses minigbm with Mesa GBM and drm_hwcomposer.

\- The boot screen displays the actual boot log instead of a pointless animation. There's also a capybara in there. That part was non-negotiable.

\- microG and F-Droid are included. For Google Play, the installer can integrate a Google apps package generated from an image you provide. I can't redistribute Google's proprietary apps, so you'll have to supply those yourself.

I also ended up writing several apps because the existing Android ones either don't exist or aren't particularly useful on a desktop:



\- Task manager

\- System diagnostics covering CPU, RAM, storage, network, input devices, audio and camera

\- Text editor

\- File viewer

\- File manager with tabs and a sidebar, closer to Nautilus than Android's usual Files app

\- Installer

\- Custom clock faces for the lock screen



What's next

One of the things I'm currently working on is running regular Linux applications alongside Android apps, with each Linux application opening in its own Android window.

The plan is to use LXC containers sharing the host kernel, without a VM. On the Android side, a small Wayland compositor will handle the Linux application surfaces and pass their buffers to SurfaceFlinger. This should allow Linux apps to behave like normal desktop windows. X11 applications will run through XWayland.

I'm also working on a Terminal app for managing the containers, opening shells, installing different distributions and checking resource usage.

This is still a work in progress and isn't included in the ISO yet.



Known issues and limitations

\- Most of my testing has been done in QEMU/KVM. I'm only starting to test on physical hardware, so GPU and Wi-Fi compatibility will probably vary.

\- SELinux is currently permissive.

\- The first boot after installation takes a few minutes because Android needs to unpack its system modules. Subsequent boots are normal.

\- Suspend is disabled in VMs for now. QEMU's virtio-gpu doesn't properly recover after waking up.



If you decide to give it a try, let me know what hardware you're running and what doesn't work. Bug reports are very welcome, especially with logs.

There's a debug entry in the GRUB menu that sends the boot output to the serial console, which should help with troubleshooting.



Source code

Device tree, ISO and installer scripts:

https://github.com/mateusseiboth/android\_device\_pc\_x86\_64



Desktop UI (overlays, flags and design
FOSS DuressPassword triggers that can work in safe mode

1st:

SecureSimpleKeyboard - app this is a fork of Simple Keyboard that in lock screen looks like ordinary Simple Keyboard and that have "Simple Keyboard" name in keyboard settings and lock screen select keyboard menu.

This trigger reacts to password lenght (any that you set): For exmaple if your real password have 4 characters you may set 8 as duress. You can say any password that have 8 charaters when you under duress.

It works even in safe mode cas if you select another keyboard and enter incorrect password that longer than 4, android system wipes your data, as this app sets incorect attemps limit as 1, and change it to 10 (to save you data when you enter incorrect without reason) only when used and when entered lenght not your duress lenght.

Source Code:

https://github.com/SecureSimpleKeyboard/SecureSimpleKeyboard

2nd:

I know other apps like this (works in safe mode too), for example DuressUltimate:


Source Code:

https://github.com/pofesk0/DuressUltimate

But that not better, cas system can kill accessibility service and you cannot see this as it without any UI. And you may lose data without reason

3rd:

https://f-droid.org/en/packages/me.lucky.sentry/

You can set only fixed limit for example 3 attempts to wipe data ater incorrect password entry, but you cannot change it right on the lock screen for exmaple to 1 or 10.

4: You also need to know about GrapheneOS.

https://grapheneos.org/install/web

GrapheneOS have DuressPassword trigger without false positives. It runs without Google Play Services and developer verification. It have real security, and not stupid Google verification. It have exploit protection against physical expoits. You can disable USB port and Cellebrite cannot hack your device. Also in exploit protection you can protect your apps: block dynamic code loading via memory, webView JIT and other features that can use malvare apps to bypass android sandbox.

https://redd.it/1y775bl
@reddit_android
Why does Android not support 180 degree screen rotation?

This may be a silly question, but why doesn't it? Is there a technical reason for it?

There are some good use cases for it. One of them is when you're in bed charging your phone. You are probably resting the charging cable against yourself, which puts strain on the port and risks breaking it. But if you could turn your phone upside down, the cable would run from the top, which would make it safer to use.

https://redd.it/1y79ltz
@reddit_android