Danny Lin Profile picture
building a better docker @OrbStack · dev exploring new things · @stanford
Save Iranian Live Profile picture 1 subscribed
Mar 30 11 tweets 3 min read
The xz backdoor is, well, setting a fire under the entire Linux ecosystem... but I'm also so impressed with how it was set up: 2-yr maintainership, oss-fuzz, etc.

...and who knows how long it would've stayed undetected if the injected sshd code ran faster (<600ms)

Highlights: 2 years of contributions. What if there's a more covert backdoor or subtle C bug? Image
Oct 23, 2022 7 tweets 2 min read
Pixel 7 has KVM on by default, and I finally got a chance with play with it. Here's a Linux VM running *without root* Gonna try to make something like WSL 2 (easy-to-use containers on a managed VM), w/o root
Mar 2, 2022 6 tweets 2 min read
Pixel 6 Pro display power usage at different brightness levels, tested at 60 and 120 Hz (with 10 Hz idle) under low and high ambient light on the February 2022 security patch. • 120 Hz drops to 10 Hz (saves ~270 mW power) when content is static, EXCEPT under low ambient light (<5 lux) *and* low brightness (<16%), where it uses more power (1.8x). This is most likely to avoid flickering.
Ambient light doesn't matter above 15% brightness.
Feb 13, 2022 5 tweets 2 min read
Full-blown virtual machines with the KVM hypervisor (near-native performance) on Pixel 6 + Android 13 DP1


Image
Image
Image
Image
As far as I can tell, we can pretty much get full EL2 on production devices now. Protected KVM is optional and can be enabled on a per-VM basis, but for non-protected VMs, it looks like full KVM functionality is available.
Jun 24, 2021 4 tweets 2 min read
My theme engine also generates themes 34x faster than Google's (0.05 ms per theme), making it practical to change the UI theme every frame at 60 or 90 FPS.

Of course, I wouldn't actually recommend doing that, but here's a Jetpack Compose sample app modified for it on Android 11. Here's a slower, more practical version.
Jun 23, 2021 8 tweets 4 min read
Here's my implementation of dynamic colors for UI themes, similar to Google's Pixel-exclusive implementation in Android 12.

It's not perfect, but I think the results have surpassed Google's (as of Beta 2) by now :) ImageImageImageImage It follows Material You color targets, so:
A-1: main accent color (most colorful)
A-2: secondary (less colorful)
A-3: tertiary, used for emphasis (different hue, shifted on the color wheel)

N-1: neutral background/text color (subtle color)
N-2: secondary (slightly more colorful) Image