Skip to content

Instantly share code, notes, and snippets.

View Mirenk's full-sized avatar
😍
Chino

Mirenk Mirenk

😍
Chino
View GitHub Profile
@Mirenk
Mirenk / test_frame.py
Created July 8, 2022 14:09
gdb extention prototype
import gdb
import pprint
# 継承でコマンド作成
# invokeで呼び出し時の動作を定義
class Test(gdb.Command):
def __init__(self):
gdb.Command.__init__(self, 'test-cmd', gdb.COMMAND_USER)
@Mirenk
Mirenk / mkkernel4CPad2.py
Created May 7, 2022 11:33
make padding kernel for ChallengePad2(TAB-A03-BS/TAB-A03-BR*)
#!/usr/bin/env python3
import argparse
from pathlib import Path
import shutil
from typing import Optional
class DTBSizeError(Exception):
pass
@Mirenk
Mirenk / lzma.patch
Created May 20, 2020 15:20
for android_build(omnirom/android-5.1 branch)
diff --git a/core/Makefile b/core/Makefile
index 753727e27..c2b77e628 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -484,6 +484,18 @@ endif
# -----------------------------------------------------------------
# the ramdisk
+BOOT_RAMDISK_COMPRESSOR := $(MINIGZIP)
+RECOVERY_RAMDISK_COMPRESSOR := $(MINIGZIP)
@Mirenk
Mirenk / last_kmsg
Created February 9, 2020 14:32
なんもわからん
<4>#1[ 7.546894] Skip TWRP
<0>#0[ 7.862933] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
<0>#0[ 7.862933]
<4>#0[ 7.863116] [<c0014e24>] (unwind_backtrace+0x0/0x11c) from [<c07198e0>] (panic+0x84/0x1ec)
<4>#0[ 7.863238] [<c07198e0>] (panic+0x84/0x1ec) from [<c006f73c>] (do_exit+0x320/0x784)
<4>#0[ 7.863360] [<c006f73c>] (do_exit+0x320/0x784) from [<c006fe4c>] (do_group_exit+0x84/0xc0)
<4>#0[ 7.863451] [<c006fe4c>] (do_group_exit+0x84/0xc0) from [<c006fe98>] (__wake_up_parent+0x0/0x18)
<2>#1[ 7.863543] CPU1: stopping
<4>#1[ 7.863665] [<c0014e24>] (unwind_backtrace+0x0/0x11c) from [<c0013894>] (handle_IPI+0x100/0x1d4)
<4>#1[ 7.863726] [<c0013894>] (handle_IPI+0x100/0x1d4) from [<c00085ec>] (gic_handle_irq+0x58/0x60)
@Mirenk
Mirenk / kernel.diff
Last active December 9, 2018 07:23
がめんにもじがでる
diff --git a/arch/arm/configs/imx5_android_defconfig b/arch/arm/configs/imx5_android_defconfig
index a7866a5e960..49b5d5f3152 100644
--- a/arch/arm/configs/imx5_android_defconfig
+++ b/arch/arm/configs/imx5_android_defconfig
@@ -1782,7 +1782,20 @@ CONFIG_BACKLIGHT_PWM=y
#
# CONFIG_VGA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y
-# CONFIG_FRAMEBUFFER_CONSOLE is not set
+CONFIG_FRAMEBUFFER_CONSOLE=y
@Mirenk
Mirenk / ActivityManager.java
Created November 24, 2015 10:04
そふとうえあれんだりんぐ
/*
* Copyright (C) 2007 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
@Mirenk
Mirenk / su.c
Created November 24, 2015 09:52
ごめんねsuたん、いい子になるからもう怒らないで
/*
**
** Copyright 2008, 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
**
@Mirenk
Mirenk / CTab.xml
Last active April 3, 2023 15:12
CTab manifest(<Build Tree>/.repo/local_manifests/CTab.xml)
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="0di"
fetch="https://github.com/zero-digital"/>
<project name="android_device_sanyo_40TL04" path="device/sanyo/40TL04" remote="0di" revision="ics-testing" />
<project name="android_vendor_sanyo" path="vendor/sanyo" remote="0di" revision="ics-testing" />
<project name="android_kernel_sanyo_imx53" path="ctab/kernel" remote="0di" revision="ics" />
<project name="u-boot-imx53" path="ctab/uboot" remote="0di" revision="ics" />