Skip to content

Instantly share code, notes, and snippets.

Avatar

Nolen Johnson npjohnson

View GitHub Profile
View gist:b81a08f034181bdbb7bedf0ee4cd6cbd
This file has been truncated, but you can view the full file.
--------- beginning of main
09-13 16:29:42.957 3111 3111 W auditd : type=2000 audit(0.0:1): initialized
09-13 16:29:45.664 3111 3111 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
09-13 16:29:46.540 2523 2523 I init : type=1400 audit(0.0:3): avc: denied { write } for name="watermark_scale_factor" dev="proc" ino=2684 scontext=u:r:vendor_init:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=1
09-13 16:29:46.548 3112 3112 I lowmemorykiller: Using psi monitors for memory pressure detection
09-13 16:29:46.550 3112 3112 I lowmemorykiller: Process polling is supported
--------- beginning of kernel
09-13 16:29:46.580 0 0 I : [ 0.000000@0]d Booting Linux on physical CPU 0x0
View gist:53adea56661ebd7f475705663b1f5467
#!/usr/bin/env python2
## Build servers use python2, and python3 actually changes the results
### LineageOS Build Day Calculator
## Imports
import calendar
import random
## Variables
# We use 7 for W, 28 for M, but we currently use W
buckets=7
@npjohnson
npjohnson / lineage-build-day.py
Created Jan 24, 2021
LineageOS Build Server Day Calulator
View lineage-build-day.py
#!/usr/bin/env python2
## Build servers use python2, and python3 actually changes the results
### LineageOS Build Day Calculator
## Imports
import calendar
import random
## Variables
# We use 7 for W, 28 for M, but we currently use W
buckets=7
View vendor_fw_merge
#!/bin/bash
#
URL=${1}
ZIP=$(basename "${URL}")
BUILD_ID=$(echo "${ZIP}" | awk -F- '{print $3}')
DEVICE=$(echo "${ZIP}" | awk -F- '{print $1}')
# Make the tmp directory
mkdir -p "${HOME}/tmp/${DEVICE}-images"
View vendor_fw_merge
#!/bin/bash
#
URL=${1}
ZIP=$(basename "${URL}")
BUILD_ID=$(echo "${ZIP}" | awk -F- '{print $3}')
DEVICE=$(echo "${ZIP}" | awk -F- '{print $1}')
# Make the tmp directory
mkdir -p "${HOME}/tmp/${DEVICE}-images"
View gist:8ba4a7a1ea1938578f838ea330409d19
#!/usr/bin/env python2
## Build servers use python2, and python3 actually changes the results
### LineageOS Build Day Calculator
## Imports
import calendar
import random
## Variables
# We use 7 for W, 28 for M, but we currently use W
buckets=7
View How to upgrade BKL to Pie
Download:
- https://kremowka.xyz/files/recovery_ramdisk_BKL-L04_nocheck.img
- http://update.hicloud.com:8180/TDS/data/files/p3/s15/G3536/g1699/v216624/f1/full/update.zip
- http://update.hicloud.com:8180/TDS/data/files/p3/s15/G3536/g1699/v216624/f1/full/BKL-L04_hw_usa/update_full_BKL-L04_hw_usa.zip
Run the following (this can either be from your current ROM, Stock, or TWRP) on your PC:
adb root
adb push recovery_ramdisk_BKL-L04_nocheck.img /sdcard/
adb push update.zip /data/update/HWOTA/update.zip
adb push update_full_BKL-L04_hw_usa.zip /data/update/HWOTA/update_all_hw.zip
View Yellowstone - KOT49H.161129 - libtango_device.java JADX Output
/*** Begin libtango_device[|2].java - split to BuildConfig.java, DummyFile.java, C0000R.java ***/
/** --- Begin BuildConfig.java --- **/
package com.google.atap.tango;
public final class BuildConfig {
public static final boolean DEBUG = true;
}
/** --- End BuildConfig.java --- **/
@npjohnson
npjohnson / com.nvidia.graphics.java
Created Jan 1, 2019
Yellowstone - KOT49H.161129 - com.nvidia.graphics.jar JADX Output
View com.nvidia.graphics.java
package com.nvidia.graphics;
import android.graphics.RectF;
import android.graphics.SurfaceTexture;
public class NvBlit {
public static final int AbsColorSpace_AdobeRGB = 3;
public static final int AbsColorSpace_DeviceRGB = 1;
public static final int AbsColorSpace_Rec709 = 5;
public static final int AbsColorSpace_WideGamutRGB = 4;
@npjohnson
npjohnson / gist:7c6292dfb899ce27255face0610a0d67
Created Jan 1, 2019
Yellowstone - KOT49H.161129 - com.nvidia.graphics.jar JADX Output
View gist:7c6292dfb899ce27255face0610a0d67
package com.nvidia.graphics;
import android.graphics.RectF;
import android.graphics.SurfaceTexture;
public class NvBlit {
public static final int AbsColorSpace_AdobeRGB = 3;
public static final int AbsColorSpace_DeviceRGB = 1;
public static final int AbsColorSpace_Rec709 = 5;
public static final int AbsColorSpace_WideGamutRGB = 4;