Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Sooraj sooorajjj

🏠
Working from home
View GitHub Profile
@sooorajjj
sooorajjj / build:soong:diff.txt
Last active Oct 9, 2020
Allow using prebuilt flex and bison
View build:soong:diff.txt
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 Jul 31, 2020
reverse datepicker in Flutter
View history_page.dart
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 Jul 23, 2020
LA.UM.5.6.r1-05400-89xx Qfil flashable firmware generation for msm8953
View auto_msm8953_qfil_local_out.sh
#########################################################################
# 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 Mar 4, 2020
add gerrit ssh-key
View add_ssh-key.sh
$ git config --global user.email "blah@e.email"
$ git config --global user.name "blah"
$ ssh-keygen -t rsa -C "blah@e.email"
$ eval `ssh-agent`
$ ssh-add ~/.ssh/id_rsa_e_blah
#Identity added: /home/${USER}/.ssh/id_rsa_e_blah (blah@e.email)
$ ssh -p 29418 blah@gerrit.my.software
@sooorajjj
sooorajjj / build_twrp.sh
Last active Mar 3, 2020
Fairphone 3 build and flash TWRP
View build_twrp.sh
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>
View STM32MP157
#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/
View bblayers.conf
# 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
View qcom_common_gps_remove.patch
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 Nov 22, 2018
qcom_msm8909_gps_remove.patch
View 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
View changes_to_flash_and_boot_from_eMMC
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--;
You can’t perform that action at this time.