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 kernel.img --ramdisk ramdisk.cpio.gz --base 0x40000000 --cmdline='console=ttyS0,115200 rw init=/init loglevel=4 vmalloc=384M ion_reserve=128M' -o boot.img --pagesize 2048 --kernel_offset 0x8000 --ramdisk_offset 0x1000000 --tags_offset 0x100 |
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
LOCAL_PATH := $(my-dir) | |
include $(CLEAR_VARS) | |
$(foreach t,$(call find-subdir-files, *.apk), \ | |
$(eval include $(CLEAR_VARS)) \ | |
$(eval LOCAL_MODULE_PATH := $(TARGET_OUT_APPS)) \ | |
$(eval LOCAL_SRC_FILES := $(t)) \ | |
$(eval LOCAL_MODULE := $(basename $(notdir $(t)))) \ | |
$(eval LOCAL_MODULE_CLASS := APPS) \ | |
$(eval LOCAL_CERTIFICATE := PRESIGNED) \ |
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
#define PA_NR 28 | |
#define PB_NR 8 | |
#define PC_NR 28 | |
#define PD_NR 28 | |
#define PE_NR 17 | |
#define PF_NR 6 | |
#define PG_NR 19 | |
#define PH_NR 31 | |
#define PL_NR 9 | |
#define PM_NR 8 |
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 |
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
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
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
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
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
#!/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 |
OlderNewer