Skip to content

Instantly share code, notes, and snippets.

ifeq ($(QCOM_HARDWARE_VARIANT),)
ifeq ($(filter msm8084,$(TARGET_BOARD_PLATFORM),)
QCOM_HARDWARE_VARIANT := msm8084
else ifeq ($(filter msm8974 msm8226 msm8610,$(TARGET_BOARD_PLATFORM),)
QCOM_HARDWARE_VARIANT := msm8974
else
QCOM_HARDWARE_VARIANT := msm8960
endif
endif
diff --git a/Android.mk b/Android.mk
index f72ac60..b4336b6 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,4 +1,4 @@
-ifeq ($(call my-dir),$(call project-path-for,qcom-display)/$(TARGET_BOARD_PLATFORM))
+ifeq ($(call my-dir),$(call project-path-for,qcom-display))
display-hals := libgralloc libgenlock libcopybit libvirtual
display-hals += libhwcomposer liboverlay libqdutils libexternal libqservice
#
##
# diffing platform/build
##
#
diff --git a/core/build_id.mk b/core/build_id.mk
index f404c81..73a3313 100644
--- a/core/build_id.mk
+++ b/core/build_id.mk
@@ -18,4 +18,4 @@
#
##
# diffing platform/art
##
#
diff --git a/runtime/mirror/class.cc b/runtime/mirror/class.cc
index 5b8eb82..c10e8b1 100644
--- a/runtime/mirror/class.cc
+++ b/runtime/mirror/class.cc
@@ -499,7 +499,9 @@ ArtMethod* Class::FindDeclaredVirtualMethod(const DexCache* dex_cache, uint32_t
@antdking
antdking / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
diff --git a/manifest_xml.py b/manifest_xml.py
index fdc3177..05d4f3c 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -90,12 +90,15 @@ class _XmlRemote(object):
# and then replacing them with the original when we are done.
# gopher -> <none>
# wais -> persistent-https
if manifestUrl.find(':') != manifestUrl.find('/') - 1:
manifestUrl = 'gopher://' + manifestUrl
@antdking
antdking / designer.html
Last active August 29, 2015 14:05
designer
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
from urllib import urlretrieve
import xml.etree.ElementTree as ET
import json
urlretrieve("http://otaslim.slimroms.net/ota.xml", "ota.xml")
root = ET.parse('ota.xml').getroot()
stable = root.find('Stable')
data = {}
for device in stable:
@antdking
antdking / BoardConfig.mk
Created July 14, 2014 12:38
for boot image building
BOARD_KERNEL_SEPARATED_DT := true
BOARD_CUSTOM_BOOTIMG_MK := device/motorola/condor/mkbootimg.mk
TARGET_KERNEL_SOURCE := kernel/motorola/msm8610
TARGET_KERNEL_CONFIG := msm8610_defconfig
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags vmalloc=400M
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
# Copyright (C) 2013 Cybojenix
# This may not be distirubuted or modified without concent from the author
__AUTHOR__ = "Cybojenix"
__COPYRIGHT__ = "Cybojenix"
__LICENSE__ = "None"
from watchdog.observers import Observer
from watchdog.tricks import Trick
from re import sub