Skip to content

Instantly share code, notes, and snippets.

View ma34s's full-sized avatar

Masashi ma34s

  • Sapporo Hokkaido Japan
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="confirmation_dlg_title">Confirmation</string>
<string name="error_dlg_title">Error!</string>
<string name="notifice_dlg_title">notifice!</string>
<string name="yes">YES</string>
<string name="no">NO</string>
<string name="ok">OK</string>
<string name="cancel">CANCEL</string>
shell@android:/ $ ls /dev/block/platform/
ls /dev/block/platform/
msm_sdcc.1
msm_sdcc.2
@ma34s
ma34s / fake.c
Created March 19, 2014 10:19
暗号化といえば暗号化 何のためにつくうのやら、、、くだらなすぎる・・・・
#include <stdio.h>
#include <fcntl.h>
#define KEY 0x34
#define BUFFER_SIZE 1024
int main(int argc,char* argv[])
{
int read_cnt;
<6>[ 1.099829 / 01-01 00:00:01.090] [LGE][MMC][mmc_add_card ( )] mmc_hostname:mmc1, type:MMC
<4>[ 1.099990 / 01-01 00:00:01.090] ------------[ cut here ]------------
<4>[ 1.100006 / 01-01 00:00:01.090] WARNING: at /home/ma34s/work/android_aojp_cm11.0/kernel/lge/msm8974/mm/page_alloc.c:1559 get_page_from_freelist+0x65c/0x69c()
<4>[ 1.100015 / 01-01 00:00:01.090] Modules linked in:
<4>[ 1.100038 / 01-01 00:00:01.090] [<c010d24c>] (unwind_backtrace+0x0/0x138) from [<c019c300>] (warn_slowpath_common+0x4c/0x64)
<4>[ 1.100051 / 01-01 00:00:01.090] [<c019c300>] (warn_slowpath_common+0x4c/0x64) from [<c019c334>] (warn_slowpath_null+0x1c/0x24)
<4>[ 1.100064 / 01-01 00:00:01.090] [<c019c334>] (warn_slowpath_null+0x1c/0x24) from [<c02318e8>] (get_page_from_freelist+0x65c/0x69c)
<4>[ 1.100077 / 01-01 00:00:01.090] [<c02318e8>] (get_page_from_freelist+0x65c/0x69c) from [<c02325c0>] (__alloc_pages_nodemask+0x15c/0x8d0)
<4>[ 1.100089 / 01-01 00:00:01.090] [<c02325c0>] (__alloc_pages_nodemask+
@ma34s
ma34s / gist:9857513
Created March 29, 2014 16:26
LGL22 Felcaログ
<4>[ 0.993897 / 01-01 00:00:00.980] isdbt_init DRV V1p12 20130701
<4>[ 0.993970 / 01-01 00:00:00.980] [1seg] A1-KDDI : 0, xtal_freq : 26000
<4>[ 0.994115 / 01-01 00:00:00.980] fc8150_spi_init : 0
<4>[ 0.994173 / 01-01 00:00:00.980] fc8150_spi_probe
<3>[ 0.994183 / 01-01 00:00:00.980] fci_spi_fc8150 spi8.0: [1seg]fc8150_spi_probe
<3>[ 0.994638 / 01-01 00:00:00.980] fci_spi_fc8150 spi8.0: [1seg] gpio [77] irq [612] gpio_irq [612] cs [0] CPHA [0] CPOL [0] CS_HIGH [0]
<3>[ 0.994650 / 01-01 00:00:00.980] fci_spi_fc8150 spi8.0: [1seg] Max_speed [19200000]
<4>[ 0.994790 / 01-01 00:00:00.980] kthread run
<4>[ 0.994895 / 01-01 00:00:00.980] isdbt_kthread enter
<4>[ 0.995068 / 01-01 00:00:00.980] [FELICA_CAL] felica_cal_init - start
@ma34s
ma34s / gist:9889379
Created March 31, 2014 10:20
LGL22 10a Default getprop result
[DEVICE_PROVISIONED]: [1]
[bluetooth.chip.vendor]: [brcm]
[bluetooth.pan]: [true]
[capp_media_audioeffect]: [true]
[dalvik.vm.heapgrowthlimit]: [128m]
[dalvik.vm.heapmaxfree]: [8m]
[dalvik.vm.heapminfree]: [2m]
[dalvik.vm.heapsize]: [256m]
[dalvik.vm.heapstartsize]: [8m]
[dalvik.vm.heaptargetutilization]: [0.75]
@ma34s
ma34s / gist:10006498
Created April 6, 2014 14:02
LGL22 init binary dump
This file has been truncated, but you can view the full file.
/home/ma34s/work/init: file format elf32-littlearm
DYNAMIC SYMBOL TABLE:
no symbols
Contents of section .text:
08100 00482de9 04b08de2 10d04de2 58309fe5 .H-.......M.X0..
08110 03308fe0 54209fe5 022093e7 14200be5 .0..T ... ... ..
@ma34s
ma34s / hexdecord.c
Last active August 29, 2015 13:58
バイナリのHex化された文字列を変換して表示 (エラー処理なし、文字列にならないものは排除)
#include <stdio.h>
#include <stdlib.h>
int main(int argc,char* argv[])
{
FILE* fp = fopen(argv[1],"rb");
char c[3] = {0,};
char* e;
int i;
#!/system/bin/sh
# device.dbを/system/etc/device.dbに
# unlock_security_moduleを/system/bin/unlock_security_moduleに置く想定
cp /system/etc/device.db /data/local/tmp/device.db
unlock_security_module
rm /data/local/tmp/device.db
@ma34s
ma34s / init.lge.rc
Created April 16, 2014 14:00
L-01Fのinit.lge.rc
#CAPP_CKERROR_REPORTER
import init.ckerror.rc
on post-fs-data
#CAPP_SECUREBOOT
# exec /sbin/wallpaper -ap
# wait /sbin/wallpaper
#CAPP_FONTS
mkdir /data/font 775 system system