Skip to content

Instantly share code, notes, and snippets.

View Demon000's full-sized avatar
😴
nothin

Cosmin Tanislav Demon000

😴
nothin
  • Cluj-Napoca, România
View GitHub Profile
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include <sys/stat.h>
using namespace std;
From b988c9c51d3c7bc7ab276ec3f214520a4298b24f Mon Sep 17 00:00:00 2001
From: Demon000 <demonsingur@gmail.com>
Date: Fri, 1 Sep 2017 18:10:52 +0300
Subject: [PATCH] wifi_hal_common: add back WIFI_FIRMWARE_LOADER support
This allows the WiFi HAL to wait for a maximum of 20 seconds
for the executable defined in the WIFI_FIRMWARE_LOADER board config
to set the "wlan.driver.status" to "ok".
Change-Id: If76f7dba52a1cf8127fa34120d40db1c65ce19b8
@Demon000
Demon000 / gist:dd880ccdee1f70d9cbe36dce3f3a59a3
Last active September 20, 2017 13:43
lineage_repopicks
# repopick updates
repopick 188834;
# bionic
repopick 185640;
# bootable/recovery
repopick -c 40 186286 186268-186285 186287-186299 187717 188093 188094;
# build/make
DUMP OF SERVICE sensorservice:
Sensor Device:
Total 31 h/w sensors, 31 running:
0x00000001) active-count = 1; sampling_period(ms) = {20.0}, selected = 20.00 ms; batching_period(ms) = {2147483.8}, selected = 2147483.75 ms
Sensor List:
0x00000001) LSM6DB0 Accelerometer Sensor | STMicroelectronics | ver: 1 | type: android.sensor.accelerometer(1) | perm: n/a
continuous | minRate=5.00Hz | maxRate=100.00Hz | FIFO (max,reserved) = (1024, 0) events | non-wakeUp |
0x00000002) LSM6DB0 Magnetometer Sensor | STMicroelectronics | ver: 1 | type: android.sensor.magnetic_field(2) | perm: n/a
continuous | minRate=5.00Hz | maxRate=100.00Hz | FIFO (max,reserved) = (910, 0) events | non-wakeUp |
0x00000003) LSM6DB0 Magnetometer Sensor | STMicroelectronics | ver: 1 | type: android.sensor.magnetic_field_uncalibrated(14) | perm: n/a
#!/usr/bin/env python
from urllib.parse import urlparse, urlunparse, parse_qs
def parse_url_git_kernel_org(parseResult):
parameters = parse_qs(parseResult.query)
return 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=' + parameters['id'][0]
def parse_url_github_com(parseResult):
return urlunparse(parseResult) + '.patch'
#!/usr/bin/python3
import hashlib
import json
import os
import sys
from github import Github
vendor/lib/libssc_default_listener.so
vendor/lib/libxtwifi_ulp_adaptor.so
vendor/lib/libsi.so
vendor/lib/liblocationservice.so
vendor/lib/libqtikeymaster4.so
vendor/lib/libsettings.so
vendor/lib/libSecureUILib.so
vendor/lib/libhwc2onfbadapter.so
vendor/lib/libSubSystemShutdown.so
vendor/lib/libsurround_3mic_proc.so
#!/usr/bin/node
const DEBUG = false;
const relativeFilesDirectory = process.argv[2];
const relativeFileStart = process.argv[3];
const filesDirectory = path.resolve(relativeFilesDirectory);
const fileStart = path.join(filesDirectory, relativeFileStart);
Only in boot_stock: dt.img
diff -ur boot_stock/img_info boot_built/img_info
--- boot_stock/img_info 2019-04-18 18:31:44.543150242 +0300
+++ boot_built/img_info 2019-04-18 18:31:52.826483376 +0300
@@ -1,13 +1,11 @@
kernel=kernel
ramdisk=ramdisk
-dt=dt.img
page_size=4096
-kernel_size=14963245
Only in boot_stock: dt.img
diff -ur boot_stock/img_info boot_built/img_info
--- boot_stock/img_info 2019-04-18 18:31:44.543150242 +0300
+++ boot_built/img_info 2019-04-18 18:31:52.826483376 +0300
@@ -1,13 +1,11 @@
kernel=kernel
ramdisk=ramdisk
-dt=dt.img
page_size=4096
-kernel_size=14963245