Skip to content

Instantly share code, notes, and snippets.

View rajatgupta1998's full-sized avatar
💻
Blessing your screen.

Rajat Gupta rajatgupta1998

💻
Blessing your screen.
View GitHub Profile
@rajatgupta1998
rajatgupta1998 / proprietary-files.txt
Created March 14, 2020 18:49
Proprietary Files Athene O
# ADSP
vendor/bin/adsprpcd
vendor/lib/libadsprpc.so
vendor/lib/libadsp_default_listener.so
vendor/lib/libfastcvadsp_stub.so
vendor/lib/libfastcvopt.so
vendor/lib/libmdsprpc.so
vendor/lib/libsdsprpc.so
@rajatgupta1998
rajatgupta1998 / gist:03e87fb98d795c96d5316e9e18be53ac
Last active January 28, 2020 12:07
To do OnePlus 7 (guacamoleb)
LineageOS 16.0:
CAF/Linux/AOSP upstream to kernel
To do for Realme X SDM710
for LineageOS 16.0:
Proximity Sensor
CAF/AOSP/kernel.org Upstream
clang/llvm
LTO ? (if u hab that RAM on your system)
@rajatgupta1998
rajatgupta1998 / dtbtool.py
Created August 18, 2019 12:08
python dtbtool for montana
#! /usr/bin/env python
#
# Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
@rajatgupta1998
rajatgupta1998 / snake_xenia.cpp
Created June 5, 2019 13:19
Snake Xenia Game in C++ for Windows. Compile: g++ snake_xenia.cpp -o snake.exe . Run: dblclick snake.exe
#include<iostream>
#include<cstdlib>
#include<vector>
#include<ctime>
#include<queue>
#include<list>
#include<fstream>
#include<Windows.h> //Sleep(500) ...500 milliseconds delay
using namespace std;
@rajatgupta1998
rajatgupta1998 / snake_xenia.cpp
Created June 5, 2019 13:19
Snake Xenia Game in C++ for Windows. Compile: g++ snake_xenia.cpp -o snake.exe . Run:
#include<iostream>
#include<cstdlib>
#include<vector>
#include<ctime>
#include<queue>
#include<list>
#include<fstream>
#include<Windows.h> //Sleep(500) ...500 milliseconds delay
using namespace std;
@rajatgupta1998
rajatgupta1998 / custom_module.c
Created May 31, 2019 11:44
custom kernel module
#include <linux/module.h>
#include <linux/kernel.h>
int init_module(void)
{
printk(KERN_INFO "Module was loaded successfully...\n");
return 0;
}
void cleanup_module(void)
{
printk(KERN_INFO "Going away...\n");
If anyone wants to clone GCC 4.9 from AOSP master, do it with --depth=6 and then checkout to specific revision before deprecation notice were appended to python wrapper and binaries of C and C++ compilers:
AArch64: e54105c9f893a376232e0fc539c0e7c01c829b1e
ARM: b91992b549430ac1a8a684f4bfe8c95941901165
git checkout <sha-1>
@rajatgupta1998
rajatgupta1998 / errors-los15.1-athene.txt
Created March 2, 2019 12:03
LineageOS 15.1 32 bit Errors athene
D AudioTrack: Client defaulted notificationFrames to 7350 for frameCount 22050
E EffectFactoryHAL: Error querying effect descriptor for bce61ec2-eca4-445c-9dcb-91cc7cce01ae: No such file or directory
W AudioFlinger: createEffect() error -2 from EffectGetDescriptor
AudioEffect: set(): AudioFlinger could not create effect / bce61ec2-eca4-445c-9dcb-91cc7cce01ae, status: -2
E AudioPolicyEffects: addOutputSessionEffects(): failed to create Fx notification_helper on session 49
ADSP: Done updating, few errors.
Alarm: Updated
Audio: Updated 90%
Bluetooth: Updated 100%
aptX: Updated 100%
CNE: Pending
Camera: Updated 99%, but is slow :(
DRM: Updated 90%
Display/Graphics: Updated 80%
Fingerprint: Updated 100%