Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" ?>
<recipe>
<!-- Backup partitions that contain per-device configuration -->
<backup name="cid"/>
<backup name="frp"/>
<backup name="hw"/>
<backup name="misc"/>
<backup name="persist"/>
<backup name="prodpersist"/>
<backup name="utags"/>
@junk-labs
junk-labs / ebook2cbz.cmd
Created October 21, 2021 02:07
画像で構成された電子書籍をばらしてzip(無圧縮リカバリーレコード付きrar)に変換するスクリプト
@echo off
set Calibre_HOME=D:\Tool\Calibre
set RAR_HOME=C:\Program Files\WinRAR
path %path%;%Calibre_HOME%;%RAR_HOME%;%~dp0%
for %%f in (in\*.*) do (
title 変換中 %%~nf
if /i "%%~xf"==".azw" (ebook-convert "%%f" "%~dp0%%~nf")
if /i "%%~xf"==".azw3" (ebook-convert "%%f" "%~dp0%%~nf")
@junk-labs
junk-labs / tegra20-ltna7.dts
Created February 6, 2020 05:04
NEC LifeTouch Note用のDeviceTree(超WIP現状動作不可)
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include <dt-bindings/input/input.h>
#include "tegra20.dtsi"
/ {
model = "NEC NT-NA75W / LifeTouch Note";
compatible = "nec,ltna7", "nvidia,tegra20";
@junk-labs
junk-labs / gist:f4b4d5ea56b3824ff7736832592dea80
Last active December 24, 2016 04:40
dlxjのGPUのドライバを最新にうpしよう計画
kbc-developers/android_kernel_htc_m7wljのGPU周りが陳腐化しており、
ROMで使用しているblob(adreno_nexus_may2016.zip)より古い状態になっています。
下記のパッチを drivers/gpu/msm2 に適用すると安定感が増します。
CM13にコミットされているパッチなのでCM13と14で効きます。
msm: kgsl: Fix spinlock recursion in destroy pagetable
https://github.com/CyanogenMod/android_kernel_google_msm/commit/533a71107c55360c48467090f92e2dee9d8d7b69
msm: kgsl: Fix Z180 memory leak
@junk-labs
junk-labs / 2016-11-10_14-23-11_rr_dlxj.log
Created November 10, 2016 05:30
Setting.apk壊れてる
e/main/src/android/rr/packages/apps/Settings/src/com/android/settings/fingerprint/FingerprintEnrollIntroduction.java:54: Duplicate local variable learnMoreButton
ERROR: /home/main/src/android/rr/packages/apps/Settings/src/com/android/settings/notification/ZenModePrioritySettings.java:156: ZEN_PRIORITY_VIBRATION_MODE cannot be resolved or is not a field
ERROR: /home/main/src/android/rr/packages/apps/Settings/src/com/android/settings/notification/ZenModePrioritySettings.java:161: ZEN_PRIORITY_VIBRATION_MODE cannot be resolved or is not a field
ERROR: /home/main/src/android/rr/packages/apps/Settings/src/com/android/settings/notification/NotificationBackend.java:175: The method getPackageNotificationSoundTimeout(String, int) is undefined for the type INotificationManager
ERROR: /home/main/src/android/rr/packages/apps/Settings/src/com/android/settings/notification/NotificationBackend.java:184: The method setPackageNotificationSoundTimeout(String, int, long) is undefined for the type INotificationManager
[32mCopyin
@junk-labs
junk-labs / apq8064_update-form-.dlxwl__4.09.605.1.diff
Last active November 4, 2016 05:06
dlxj向けのcm13orRRでゲーム等の音量調整に関する互換性を向上させるパッチ類。(完全に治るとは言っていない)
diff --git sound/soc/msm/apq8064.c sound/soc/msm/apq8064.c
index e8603a6..72288e5 100644
--- sound/soc/msm/apq8064.c
+++ sound/soc/msm/apq8064.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
#!/bin/bash
# YOUR_ACCESS_TOKEN には https://www.pushbullet.com/#settings/account から取得したトークンを使用
PUSHBULLET_TOKEN=YOUR_ACCESS_TOKEN
# CCacheを使う
export USE_CCACHE=1
workdir=`pwd`
mkdir -p $workdir/log/success $workdir/log/fail $workdir/rom
dlx: update blobs https://github.com/TheMuppets/proprietary_vendor_htc/commit/86ee994d82e91089c70cc87b4738dee1972c1a18
vendor/htc/dlxj/proprietary/vendor/lib/libOpenCL.so
vendor/htc/dlxj/proprietary/vendor/lib/libqc-opt.so
@junk-labs
junk-labs / gist:bb896393fff4d79911cc
Created September 29, 2015 04:17
Wifiが動かないNexus6のdmesg これは無理そうだ
<6>[ 0.000000] Booting Linux on physical CPU 0x0
<6>[ 0.000000] Initializing cgroup subsys cpu
<6>[ 0.000000] Initializing cgroup subsys cpuacct
<5>[ 0.000000] Linux version 3.10.40-gc16a3c6 (android-build@wpiy2.hot.corp.google.com) (gcc version 4.8 (GCC) ) #1 SMP PREEMPT Tue Jul 28 17:58:25 UTC 2015
<4>[ 0.000000] CPU: ARMv7 Processor [513f06f1] revision 1 (ARMv7), cr=10c5387d
<4>[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
<6>[ 0.000000] Machine: Qualcomm APQ 8084 (Flattened Device Tree), model: Motorola APQ 8084 Shamu
<6>[ 0.000000] Node qcom,mdss_fb_primary memblock_reserve memory 3200000-5000000
<6>[ 0.000000] Node qcom,msm-mem-hole removed memory d400000-fe00000
<6>[ 0.000000] Node qcom,wdt@f9017000 memblock_reserve memory 3eae0000-3eaeb000
@junk-labs
junk-labs / add_htx21.patch
Created August 11, 2015 20:43
[動作未確認] https://github.com/kbc-developers/android_kernel_htc_m7wlj をHTX21に対応させるためのパッチ
diff --git arch/arm/configs/cyanogenmod_impression_j_defconfig arch/arm/configs/cyanogenmod_impression_j_defconfig
new file mode 100644
index 0000000..bf77416
--- /dev/null
+++ arch/arm/configs/cyanogenmod_impression_j_defconfig
@@ -0,0 +1,3745 @@
+#
+# Automatically generated file; DO NOT EDIT.
+# Linux/arm 3.4.10 Kernel Configuration
+#