Skip to content

Instantly share code, notes, and snippets.

View npjohnson's full-sized avatar
🏠
Working from home

Nolen Johnson npjohnson

🏠
Working from home
View GitHub Profile
sudo apt install policycoreutils
. build/envsetup.sh
lunch $romtag_$codename-$buildflavor
adb shell dmesg | audit2allow -p out/target/product/$codename/root/sepolicy
@ECHO OFF
:: Copyright 2012 The Android Open Source Project
::
:: Licensed under the Apache License, Version 2.0 (the "License");
:: you may not use this file except in compliance with the License.
:: You may obtain a copy of the License at
::
:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
#!/bin/sh
# Copyright 2012 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
From c89c0e55f900284842ed52fb7ab51b71869d2dbc Mon Sep 17 00:00:00 2001
From: Nolen Johnson <[email protected]>
Date: Fri, 2 Feb 2018 19:35:49 -0500
Subject: [PATCH] nash: Add Moto Mod hotplug support
* This is hackier than I'd like, but should do the job.
Change-Id: I7db290013782cfd280ab0fc2fae8dd17a29de186
---
rootdir/Android.mk | 8 ++++++++
$ adb shell getprop
[agpsd.dev_path]: [/dev/ttyACM4]
[agpsd.socket_path]: [/dev/socket/at_pal]
[ap.interface]: [wlan0]
[cci.persist.backup]: [T2]
[dalvik.vm.dexopt-flags]: [m=y]
[dalvik.vm.heapgrowthlimit]: [128m]
[dalvik.vm.heapsize]: [448m]
[dalvik.vm.heapstartsize]: [12m]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
@npjohnson
npjohnson / gist:7c6292dfb899ce27255face0610a0d67
Created January 1, 2019 02:28
Yellowstone - KOT49H.161129 - com.nvidia.graphics.jar JADX Output
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 / com.nvidia.graphics.java
Created January 1, 2019 02:31
Yellowstone - KOT49H.161129 - com.nvidia.graphics.jar JADX Output
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;
/*** 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 --- **/
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
#!/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