Skip to content

Instantly share code, notes, and snippets.

@hanetzer
hanetzer / $ strings param.img |head -27;
Created January 21, 2020 14:50
$ strings param.img |head -27;
$ strings param.img |head -27
PRODUCT
19861
001986109B06032100001735
CONFIG
TP_KPD
CAMERA
SENSORS
BATTERY
CRASH_RECORD
@hanetzer
hanetzer / $ cat mclaren_TMO_5G_TEKHDvendoretcinithwinit.target.rc;
Created January 17, 2020 20:38
$ cat mclaren_TMO_5G_TEKHD/vendor/etc/init/hw/init.target.rc;
$ cat mclaren_TMO_5G_TEKHD/vendor/etc/init/hw/init.target.rc
# Copyright (c) 2013-2019, 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
# copyright notice, this list of conditions and the following
@hanetzer
hanetzer / $ adb shell dmesg;
Created January 14, 2020 00:43
$ adb shell dmesg;
$ adb shell dmesg
[ 0.000000] [ 0.000000]@0 Booting Linux on physical CPU 0x0
[ 0.000000] [ 0.000000]@0 Linux version 4.14.117-perf-gb03e460799e2-dirty (nobody@android-build) (Android (5484270 based on r353983c) clang version 9.0.3 (https://android.googlesource.com/toolchain/clang 745b335211bb9eadfa6aa6301f84715cee4b37c5) (https://android.googlesource.com/toolchain/llvm 60cf23e54e46c807513f7a36d0a7b777920b5881) (based on LLVM 9.0.3svn)) #10 SMP PREEMPT Sun Jan 12 18:52:14 CST 2020
[ 0.000000] [ 0.000000]@0 Boot CPU: AArch64 Processor [51df805e]
[ 0.000000] [ 0.000000]@0 Machine: Qualcomm Technologies, Inc. SM8150P v2 PM8150 SDX55M MTP 19861 53 54
[ 0.000000] [ 0.000000]@0 OF: reserved mem: OVERLAP DETECTED!\x0adisp_rdump_region (0x000000009c000000--0x000000009e400000) overlaps with cont_splash_region (0x000000009c000000--0x000000009e400000)
[ 0.000000] [ 0.000000]@0 Reserved memory: created CMA memory pool at 0x00000000fd400000, size 40 MiB
[ 0.000000] [ 0.000000]@0 O
@hanetzer
hanetzer / $ repo status;
Created January 12, 2020 20:45
$ repo status;
$ repo status
project art/ (*** NO BRANCH ***)
-m build/apex/art_apex_test.py
project build/make/ (*** NO BRANCH ***)
-m core/main.mk
project device/oneplus/sm8150-common/ (*** NO BRANCH ***)
-m Android.mk
-m proprietary-files.txt
-m sepolicy/vendor/file_contexts
-- sepolicy/vendor/mdm_helper.te
@hanetzer
hanetzer / stdin
Created January 12, 2020 03:13
stdin
@ECHO OFF
:: Copyright 2012 The Android Open Source 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
@hanetzer
hanetzer / stdin
Created January 9, 2020 01:47
stdin
(typetransition mdm_helper tmpfs_29_0 file mdm_helper_tmpfs)
(allow mdm_helper oem_block_device (blk_file (ioctl read write getattr lock append map open)))
(allow mdm_helper mdm_helper_tmpfs (file (read write getattr map)))
(allow mdm_helper tmpfs_29_0 (dir (getattr search)))
@hanetzer
hanetzer / patch
Last active January 8, 2020 22:09
$ git format-patch -1 --stdout;
From 53487660655aebe04832f47406bf007ce93fbdb4 Mon Sep 17 00:00:00 2001
From: "Marty E. Plummer" <[email protected]>
Date: Wed, 8 Jan 2020 16:07:14 -0600
Subject: [PATCH] sm8150-common: set SSR9-10 restart_level in init.qcom.rc
Change-Id: Ic0da5fec9734be8b92e8a2868f0bc1b16ff34acf
Signed-off-by: Marty E. Plummer <[email protected]>
---
rootdir/etc/init.qcom.rc | 2 ++
1 file changed, 2 insertions(+)
@hanetzer
hanetzer / $ cat liveboot.log;
Created January 7, 2020 22:03
$ cat liveboot.log;
This file has been truncated, but you can view the full file.
$ cat liveboot.log
-BOC-
-BOC-
uid=0(root) gid=0(root)
uid=0(root) gid=0(root)
6,0,0,-;[ 0.000000]@0 Booting Linux on physical CPU 0x0
5,1,0,-;[ 0.000000]@0 Linux version 4.14.117-perf+ (OnePlus@rd-build-91) (clang version 8.0.8 for Android NDK) #1 SMP PREEMPT Wed Dec 4 20:44:37 CST 2019
6,2,0,-;[ 0.000000]@0 Boot CPU: AArch64 Processor [51df805e]
6,3,0,-;[ 0.000000]@0 Machine: Qualcomm Technologies, Inc. SM8150P v2 PM8150 SDX55M MTP 19861 53 54
3,4,0,-;[ 0.000000]@0 OF: reserved mem: OVERLAP DETECTED!\x0adisp_rdump_region (0x000000009c000000--0x000000009e400000) overlaps with cont_splash_region (0x000000009c000000--0x000000009e400000)
@hanetzer
hanetzer / $ adb shell dmesg | grep -i firmware_mnt -C3;
Created January 7, 2020 22:00
$ adb shell dmesg | grep -i firmware_mnt -C3;
$ adb shell dmesg | grep -i firmware_mnt -C3
adb server version (40) doesn't match this client (41); killing...
* daemon started successfully
[ 0.000000] [ 0.000000]@0 pcpu-alloc: s53912 r8192 d32104 u94208 alloc=23*4096
[ 0.000000] [ 0.000000]@0 pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
[ 0.000000] [ 0.000000]@0 Built 1 zonelists, mobility grouping on. Total pages: 2992881
[ 0.000000] [ 0.000000]@0 Kernel command line: rcupdate.rcu_expedited=1 rcu_nocbs=0-7 cgroup.memory=nokmem,nosocket androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 androidboot.vbmeta.avb_version=1.0 buildvariant=userdebug androidboot.verifiedbootstate=orange androidboot.keymaster=1 androidboot.bootdevice=1d84000.ufshc androidboot.boot_devices=s
@hanetzer
hanetzer / stdin
Created January 5, 2020 00:50
stdin
abl.img
aop.img
bluetooth.img
boot.img
cmnlib64.img
cmnlib.img
devcfg.img
dsp.img
dtbo.img
hyp.img