This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Mediatek's LCM driver device tree | |
* | |
* Copyright (c) 2013 MediaTek Co., Ltd. | |
* (c) 2017 Bartosz Jankowski | |
* | |
* http://www.mediatek.com | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in {1..34}; do curl -v -H "Authorization: token XXXX" -H 'Accept: application/vnd.github.mercy-preview+json' "https://api.github.com/search/code?q=cmd+in:path+path:include/dt-bindings/lcm/+extension:dtsi&page=$i" >> test2.json; done | |
#then | |
cat test2.json | ack 'name.*dtsi' | sort -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
sed -ne "/$1/,\$p" $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# Check if needed tools are in path | |
which i2cget i2cset i2cdetect 1&>/dev/null || (echo "No i2ctools available!" && exit 0) | |
which seq 1&>/dev/null || (echo "Need seq tool to work!" && exit 0) | |
function into_fw_mode() | |
{ | |
DELAY_AA=0.01 | |
DELAY_55=0.03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import java.io.IOException; | |
import java.lang.invoke.WrongMethodTypeException; | |
import java.util.concurrent.TimeUnit; | |
import rx.Emitter; | |
import rx.Observable; | |
import rx.schedulers.Schedulers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package llt.test.main; | |
import java.math.BigInteger; | |
import java.security.MessageDigest; | |
public class QuickXorHash extends MessageDigest implements Cloneable | |
{ | |
private final static int BitsInLastCell = 32; | |
private final static byte Shift = 11; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkbootimg --kernel boot.img-kernel.img --ramdisk boot_unsecure.cpio.gz --kernel_offset 0x40080000 --base 0x0 --cmdline 'bootopt=64S3,32N2,64N2' --board '20150828' --ramdisk_offset 0x44000000 --second_offset 0x40f00000 --tags_offset 0x4e000000 -o new_boot.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From feb0e93c1ec4e980a01293ec418db25a25aded1f Mon Sep 17 00:00:00 2001 | |
From: Bartosz J <thug1337@gmail.com> | |
Date: Thu, 6 Aug 2015 16:01:57 +0200 | |
Subject: [PATCH] Fix Stagefright exploits | |
Signed-off-by: Bartosz J <thug1337@gmail.com> | |
diff --git a/media/libstagefright/ESDS.cpp b/media/libstagefright/ESDS.cpp | |
index 103105d..b008df1 100644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# dump_cubemain.rb | |
# | |
# Copyright 2015 Bartosz Jankowski | |
# | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^(?=.*?\bCONFIG_ARCH_SUN8IW.P.\b)((?!SUN8IW1P1).)*$ | |
will find lines that match CONFIG_ARCH_SUN8IWXPX except CONFIG_ARCH_SUN8IW1P1 |
NewerOlder