Skip to content

Instantly share code, notes, and snippets.

<Target Name="PackIncremental" AfterTargets="Build">
<PropertyGroup>
<!-- if version is greater than MAX_VALUE then version gets reset to 0 -->
<!-- set max value to uint16.MaxValue which is the limit of the assembly metadata format-->
<MAX_VALUE>65534</MAX_VALUE>
</PropertyGroup>
<!-- create file if it does not exist-->
<WriteLinesToFile Condition="!Exists('VERSION_MAJOR.txt')" File="VERSION_MAJOR.txt" Lines="0" Overwrite="true" Encoding="Unicode" />
<WriteLinesToFile Condition="!Exists('VERSION_MINOR.txt')" File="VERSION_MINOR.txt" Lines="0" Overwrite="true" Encoding="Unicode" />
@mgood7123
mgood7123 / MotionEventSerializer.cpp
Last active June 6, 2021 21:10
MotionEvent Java->JNI
//
// Created by Matthew Good on 7/6/21.
//
#include "MotionEventSerializer.h"
MotionEventSerializer::IndexInfo::IndexInfo() {}
MotionEventSerializer::IndexInfo::IndexInfo(int pointerIndex, int segment_length, int reserved) {
idx_pointerId = (pointerIndex*segment_length)+reserved;
@mgood7123
mgood7123 / $ git checkout -b Total-Control_11; git remote add Total-Control_11 git@github.com:Total-Control-9985android_vendor_samsung_dreamlte.git; git push Total-Control_11 HEAD:Total-Control_11;
Created April 22, 2021 07:25
$ git checkout -b Total-Control_11; git remote add Total-Control_11 git@github.com:Total-Control-9985/android_vendor_samsung_dreamlte.git; git push Total-Control_11 HEAD:Total-Control_11;
$ git checkout -b Total-Control_11
Switched to a new branch 'Total-Control_11'
$ git remote add Total-Control_11 git@github.com:Total-Control-9985/android_vendor_samsung_dreamlte.git
$ git push Total-Control_11 HEAD:Total-Control_11
Warning: Permanently added the RSA host key for IP address '13.237.44.5' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
@mgood7123
mgood7123 / devicesamsungdreamltelineage_dreamlte.mk
Created April 22, 2021 01:00
device/samsung/dreamlte/lineage_dreamlte.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@mgood7123
mgood7123 / $ ls vendor;
Created April 21, 2021 03:34
$ ls vendor;
$ ls vendor
codeaurora
gapps
havoc
nxp
qcom
samsung
support
@mgood7123
mgood7123 / $ . buildenvsetup.sh; print_lunch_menu; lunch 9;
Created April 21, 2021 03:30
$ . build/envsetup.sh; print_lunch_menu; lunch 9;
$ . build/envsetup.sh; print_lunch_menu; lunch 9
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_x86-eng
4. aosp_x86_64-eng
5. arm_krait-eng
@mgood7123
mgood7123 / $ cat devicesamsungdreamlteAndroidProducts.mk; . .buildenvsetup.sh; print_lunch_menu;
Created April 21, 2021 03:26
$ cat device/samsung/dreamlte/AndroidProducts.mk; . ./build/envsetup.sh; print_lunch_menu;
$ cat device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@mgood7123
mgood7123 / $ cat devicesamsungdreamlteAndroidProducts.mk; . .buildenvsetup.sh ; print_lunch_menu;
Created April 21, 2021 03:25
$ cat device/samsung/dreamlte/AndroidProducts.mk; . ./build/envsetup.sh ; print_lunch_menu;
$ cat device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@mgood7123
mgood7123 / $ cat devicesamsungdreamlteAndroidProducts.mk; ls ; . .buildenv_setup.sh ; lunch;
Created April 21, 2021 03:24
$ cat device/samsung/dreamlte/AndroidProducts.mk; ls ; . ./build/env_setup.sh ; lunch;
$ cat device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#