Skip to content

Instantly share code, notes, and snippets.

View mmtrt's full-sized avatar

Taqi Raza mmtrt

  • Pakistan
  • 09:29 (UTC +05:00)
View GitHub Profile
From 4c6ae32cb264e38a61ca57e7177e17bd13d7d1dc Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Thu, 9 Nov 2023 12:33:55 +0100
Subject: [PATCH 1/9] gmscompat: Change attestation and instrumentation to pass
SafetyNet and Play Integrity API.
Original work by @kdrag0n.
Updated by many people like @dereference23, @Stallix, @dyneteve, @neobuddy89 and @jhenrique09.
Adapted by @iceows for his own AOSP A13 GSI.
Adapted by @ponces based on the work of @chiteroman to pass newest Play Integrity API.
diff --git a/AppDir/bin/winetricks b/AppDir/bin/winetricks
index 7bff730b8..b0fd6734d 100755
--- a/AppDir/bin/winetricks
+++ b/AppDir/bin/winetricks
@@ -5053,8 +5053,10 @@ winetricks_set_wineprefix()
if test -d "${W_DRIVE_C}/windows/syswow64"; then
# Check the bitness of wineserver + wine binary, used later to determine if we're on a WOW setup (no wine64)
# https://github.com/Winetricks/winetricks/issues/2030
- _W_wineserver_binary_arch="$(winetricks_get_file_arch "${WINESERVER}")"
- _W_wine_binary_arch="$(winetricks_get_file_arch "${WINE}")"
diff --color -ru a/Panel.qml b/Panel.qml
--- a/Panel.qml 2021-01-14 18:25:16.111002000 +0200
+++ b/Panel.qml 2021-01-18 01:02:19.474405133 +0200
@@ -333,7 +333,8 @@
id: panelTitleHolder
anchors {
left: parent.left
- leftMargin: units.gu(1)
+ // HAX: extra margin for left side of curved screen corners
+ leftMargin: units.gu(1.2)
@Pref;1;1
show_cursor=true;btn_background_color=-1;btn_txt_color=-16777216;sidebar_color=-16777216;btn_width=176;btn_height=-2;custom_btn_pos=true;mouse_move_relative=true;btn_alpha=255;mouse_move_sensitivity=80;mouse_off_distance=0;btn_text_size=4;btn_round_shape=false
@KeyCodes2;1;2
$mLeftSide;0
$mRightSide;0
@KeyCodes3;1;326
$mKeyList;324
@OneKey;1;2
name=esc
code=1;mIsShow=true;marginLeft=72;marginTop=6;mIsTrigger=false;subCodes=
@Pref;1;1
show_cursor=true;btn_background_color=-1;btn_txt_color=-16777216;sidebar_color=-16777216;btn_width=160;btn_height=-2;custom_btn_pos=true;mouse_move_relative=true;btn_alpha=255;mouse_move_sensitivity=80;mouse_off_distance=0;btn_text_size=4;btn_round_shape=false
@KeyCodes2;1;2
$mLeftSide;0
$mRightSide;0
@KeyCodes3;1;326
$mKeyList;324
@OneKey;1;2
name=esc
code=1;mIsShow=true;marginLeft=157;marginTop=225;mIsTrigger=false;subCodes=
@Pref;1;1
show_cursor=true;btn_background_color=-1;btn_txt_color=-16777216;sidebar_color=-16777216;btn_width=160;btn_height=-2;custom_btn_pos=true;mouse_move_relative=true;btn_alpha=255;mouse_move_sensitivity=80;mouse_off_distance=0;btn_text_size=4;btn_round_shape=false
@KeyCodes2;1;2
$mLeftSide;0
$mRightSide;0
@KeyCodes3;1;326
$mKeyList;324
@OneKey;1;2
name=esc
code=1;mIsShow=true;marginLeft=42;marginTop=120;mIsTrigger=false;subCodes=
@mmtrt
mmtrt / deploy-ubuntu-rootfs.md
Last active August 30, 2023 09:33
Deploy Ubuntu Core Image.

Note

This guide installs KDE Neon like minimal setup with custom stuff on Ubuntu 23.10 (mantic) Dev rootfs tarball with Grub bootloader as MBR partition install which can be changed by user.

Requirements

For this guide you will need to livebooted debain based linux.
Ubuntu Core rootfs tarball file.
Some patience.

Download rootfs tar of your choice version from here

https://partner-images.canonical.com/core

SCRIPT_PATH=$(dirname $0)
handle_error(){
echo $@
exit 2;
}
#flash images
fastboot $* erase boot || handle_error erase boot error
fastboot $* erase metadata || handle_error erase metadata error
#
# Uses Intel GPU as Primary and NVIDIA as Secondary
#
Section "ServerLayout"
Identifier "Layout0"
Screen "Screen0"
Screen "Screen1"
Option "AllowNVIDIAGPUScreens"
EndSection
@ECHO OFF
@SETLOCAL EnableDelayedExpansion
set LF=^& ECHO.
CD INI
for /F "delims=" %%G in ('findstr /n "=Maps" MPMaps.ini') do set "lastoccur=%%G"
set lastnum=%lastoccur:~4,3%
set lastmap=%lastoccur:~7,100%
set lastmapap=%lastoccur:~4,100%
set /a mpn1=%lastnum%+1