Skip to content

Instantly share code, notes, and snippets.

@phhusson
phhusson / gist:662af3573ad4fc91bb62e5fe7cde7250
Created March 14, 2022 13:12
Add rickroll Dialer option. Add rick.webm in assets
From f07ca2a26dcb0cc797dcc6fc0d2d4f16b89c481e Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <[email protected]>
Date: Mon, 14 Mar 2022 09:09:28 -0400
Subject: [PATCH] Add a rickroll button in heads-up notification to rickroll
caller
Change-Id: Ibe72535fb3e93f69a531723dc96ede05663ee251
---
assets/rick.webm | Bin 0 -> 1232413 bytes
.../NotificationBroadcastReceiver.java | 145 ++++++++++++++++++
Encoders:
id crtc type possible crtcs possible clones
48 0 TMDS 0x00000003 0x00000001
50 37 DSI 0x00000003 0x00000002
Connectors:
id encoder status name size (mm) modes encoders
49 0 disconnected DP-1 0x0 0 48
props:
1 EDID:
mkdir /config
mount -t configfs none /config
# Init USB gadget
g=/config/usb_gadget/g1
mkdir $g
echo > $g/UDC
rm -Rf $g/configs
rm -Rf $g/configs
echo 0x18d1 > $g/idVendor
echo 0x4ee0 > $g/idProduct
@phhusson
phhusson / dv.diff
Created February 15, 2021 22:44
NOVA/AVOS Dolby Vision support
project native/avos/
diff --git a/native/avos/Include/av.h b/native/avos/Include/av.h
index 9a78d87..4ff3df5 100644
--- a/native/avos/Include/av.h
+++ b/native/avos/Include/av.h
@@ -462,6 +462,8 @@ typedef enum {
#define VIDEO_FOURCC_LAVC mmioFOURCC('L', 'A', 'V', 'C')
+#define VIDEO_FOURCC_DOLBY_VISION mmioFOURCC('D', 'V', 'V', 'C')
@phhusson
phhusson / dev-nova.diff
Created February 15, 2021 22:06
Make a developer version of NOVA Video Player
project MediaLib/
diff --git a/src/com/archos/mediaprovider/ArchosMediaCommon.java b/src/com/archos/mediaprovider/ArchosMediaCommon.java
index 8ec0596..1d132fc 100644
--- a/src/com/archos/mediaprovider/ArchosMediaCommon.java
+++ b/src/com/archos/mediaprovider/ArchosMediaCommon.java
@@ -51,8 +51,8 @@ public final class ArchosMediaCommon {
public static final long SCANNED_ID_OFFSET = 1000000000;
static {
- AUTHORITY_VIDEO = "com.archos.media.videocommunity";
@phhusson
phhusson / AppsOverADB.kt
Created February 2, 2021 21:33
Remote control apps running on a smartphone
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
diff --git a/frameworks/base/services/core/java/com/android/server/display/DisplayManagerService.java b/frameworks/base/services/core/java/com/android/server/display/DisplayManagerService.java
index 852868616af..e170a75d791 100644
--- a/frameworks/base/services/core/java/com/android/server/display/DisplayManagerService.java
+++ b/frameworks/base/services/core/java/com/android/server/display/DisplayManagerService.java
@@ -26,6 +26,7 @@ import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_C
import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC;
import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_SECURE;
import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS;
+import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_SUPPORTS_TOUCH;
import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_TRUSTED;
Hello,
This mail is about a new trend in smartphones, which is under-display fingerprint sensors, which lacks Treble HAL, and I believe it would be very useful to have one.
I believe it is possible for AOSP team to both define the HAL (well imo that's the minimum), and have a minimal implementation (though ugly from an UX point of view), without too much work. This would require cooperation from people handling biometrics, and people handling surfaceflinger.
There are currently two kinds of under-display fingerprint.
- Ultrasonic which basically just work, except that they require visual clues for the user
- Optical fingerprint sensor which requires cooperation from the display
First issue for both technologies is to show to the user the position of the fingerprint sensor.
[C] 'task_struct init_task' was changed at init_task.c:57:1:
size of symbol changed from 3776 to 3840,
its CRC (modversions) changed from 0xe2647996 to 0xde298bd4
type of variable changed:
type size changed from 30208 to 30720 (in bits)
2 data member insertions:
'sysv_sem task_struct::sysvsem', at offset 15168 (in bits) at sched.h:912:1
'sysv_shm task_struct::sysvshm', at offset 15232 (in bits) at sched.h:913:1
there are data member changes:
'fs_struct* task_struct::fs' offset changed from 15168 to 15360 (in bits) (by +192 bits)
Solicitation de ff02::2 (ff02::2) sur wlp0s20f3...
Limite de saut (TTL) : 64 ( 0x40)
Conf. d’adresse par DHCP : Non
Autres réglages par DHCP : Oui
Agent domestique (mobile) : Non
Préférence du routeur : élevé
Proxy (découverte voisin) : Non
Durée de vie du routeur : 600 (0x00000258) secondes
Temps d’atteinte : non indiqué (0x00000000)