Skip to content

Instantly share code, notes, and snippets.

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

Sooraj sooorajjj

🏠
Working from home
View GitHub Profile
@sooorajjj
sooorajjj / build:soong:diff.txt
Last active October 9, 2020 07:43
Allow using prebuilt flex and bison
diff --git a/ui/build/paths/config.go b/ui/build/paths/config.go
index d17b9f77..6c124066 100644
--- a/ui/build/paths/config.go
+++ b/ui/build/paths/config.go
@@ -110,6 +110,8 @@ var Configuration = map[string]PathConfig{
"xz": Allowed,
"zip": Allowed,
"zipinfo": Allowed,
+ "flex": Allowed,
+ "bison": Allowed,
@sooorajjj
sooorajjj / history_page.dart
Created July 31, 2020 08:29
reverse datepicker in Flutter
import 'package:flutter/material.dart';
import 'package:date_picker_timeline/date_picker_timeline.dart';
import 'package:route_map/constants.dart';
class HistoryPage extends StatefulWidget {
@override
_HistoryPageState createState() => _HistoryPageState();
}
class _HistoryPageState extends State<HistoryPage> {
@sooorajjj
sooorajjj / auto_msm8953_qfil_local_out.sh
Created July 23, 2020 20:35
LA.UM.5.6.r1-05400-89xx Qfil flashable firmware generation for msm8953
#########################################################################
# File Name: auto_out.sh
# Author:
# mail:
# Created Time: 2016年11月22日 星期二 16时41分09秒
#########################################################################
#!/bin/bash
PROJECT_DT1=$(date +%Y%m%d)
PROJECT_DT2=$(date +%Y%m%d%H%m)
@sooorajjj
sooorajjj / add_ssh-key.sh
Last active March 4, 2020 11:05
add gerrit ssh-key
$ git config --global user.email "[email protected]"
$ git config --global user.name "blah"
$ ssh-keygen -t rsa -C "[email protected]"
$ eval `ssh-agent`
$ ssh-add ~/.ssh/id_rsa_e_blah
#Identity added: /home/${USER}/.ssh/id_rsa_e_blah ([email protected])
$ ssh -p 29418 [email protected]
@sooorajjj
sooorajjj / build_twrp.sh
Last active March 3, 2020 12:33
Fairphone 3 build and flash TWRP
mkdir twrp
cd twrp
repo init --depth=1 -u git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-9.0
mkdir .repo/local_manifests/
tee .repo/local_manifests/FP3.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="chaosmaster/android_device_fairphone_fp3" path="device/fairphone/FP3" remote="github" revision="android-9.0" />
<project name="chaosmaster/android_kernel_fairphone_sdm632" path="kernel/fairphone/sdm632" remote="github" revision="twrp-9.0" />
</manifest>
@sooorajjj
sooorajjj / STM32MP157
Last active December 31, 2022 23:01
Stinger96
#STM32MP1
source /home/ssd/STM/STM32MP1/Developer-Package/SDK/environment-setup-cortexa7t2hf-neon-vfpv4-openstlinux_weston-linux-gnueabi
set | grep CROSS
# CROSS_COMPILE=arm-openstlinux_weston-linux-gnueabi-
############################### Build kernel #################################
cd /home/ssd/STM/STM32MP1/Developer-Package/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux/
# This configuration file is dynamically generated every time
# set_bb_env.sh is sourced to set up a workspace. DO NOT EDIT.
#--------------------------------------------------------------
LCONF_VERSION = "7"
export WORKSPACE := "${@os.path.abspath(os.path.join(os.path.dirname(d.getVar('FILE', True)),'../../..'))}"
OEROOT := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)))}/../.."
# These layers hold recipe metadata not found in OE-core, but lack any machine or distro content
@sooorajjj
sooorajjj / qcom_common_gps_remove.patch
Created November 22, 2018 14:42
qcom_common_gps_remove
diff --git a/base.mk b/base.mk
index 03c2fd1..85e2c3a 100644
--- a/base.mk
+++ b/base.mk
@@ -115,13 +115,13 @@ FASTPOWERON := FastBoot
#GPS
-GPS_HARDWARE := gps.conf
-GPS_HARDWARE += gps.default
@sooorajjj
sooorajjj / qcom_msm8909_gps_remove.patch
Last active November 22, 2018 15:07
qcom_msm8909_gps_remove.patch
diff --git a/msm8909w.mk b/msm8909w.mk
index 03bde3c..cba1429 100644
--- a/msm8909w.mk
+++ b/msm8909w.mk
@@ -5,7 +5,7 @@ BOARD_SEPOLICY_8909W_DIR := device/qcom/msm8909w/sepolicy
BOARD_OPENSOURCE_DIR := device/qcom/msm8909w/opensource
BOARD_DLKM_DIR := device/qcom/msm8909w/common/dlkm
-BOARD_GPS_HAL := hardware/qcom/gps/msm8909
+# BOARD_GPS_HAL := hardware/qcom/gps/msm8909
diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c
index d714f18..dea4064 100644
--- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c
+++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c
@@ -339,18 +339,14 @@ int board_mmc_get_env_dev(int devno)
* need ubstract 1 to map to the mmc3 device id
* see the comments in board_mmc_init function
*/
- if (devno == 2)
- devno--;