Skip to content

Instantly share code, notes, and snippets.

View ma34s's full-sized avatar

Masashi ma34s

  • Sapporo Hokkaido Japan
View GitHub Profile
@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
@ma34s
ma34s / gist:10978213
Last active August 29, 2015 13:59
LGL22の/system以下をfelicaでgrepした結果
ma34s@build_bot:~/work/LGL22/stock$ grep -nr felica ./
Binary file ./lib/libc.so matches
Binary file ./lib/libnfc_sony.so matches
Binary file ./app/HiddenMenu.apk matches
Binary file ./app/LGATCMDService.odex matches
Binary file ./app/LGFlashlightWidget.odex matches
Binary file ./app/LGSystemServer.odex matches
Binary file ./app/MobileFeliCaMenuApp.apk matches
Binary file ./app/NfcLock.apk matches
Binary file ./app/LGSystemUI.odex matches
@ma34s
ma34s / gist:11368192
Created April 28, 2014 10:46
【参考】LGL22
$find /sys/devices | grep msm_sdcc.2 <
/sys/devices/msm_sdcc.2
/sys/devices/msm_sdcc.2/mmc_host
/sys/devices/msm_sdcc.2/mmc_host/mmc2
/sys/devices/msm_sdcc.2/mmc_host/mmc2/perf
/sys/devices/msm_sdcc.2/mmc_host/mmc2/power
/sys/devices/msm_sdcc.2/mmc_host/mmc2/power/control
/sys/devices/msm_sdcc.2/mmc_host/mmc2/power/runtime_active_time
/sys/devices/msm_sdcc.2/mmc_host/mmc2/power/autosuspend_delay_ms
/sys/devices/msm_sdcc.2/mmc_host/mmc2/power/runtime_status
@ma34s
ma34s / PackageManagerService.java
Created May 7, 2014 04:21
LGL22のcom\android\server\pm\PackageManagerService.javaのjavaソース化
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) ansi
package com.android.server.pm;
import android.app.*;
import android.app.admin.IDevicePolicyManager;
import android.app.backup.IBackupManager;
import android.content.*;
@ma34s
ma34s / Android.mk
Created June 1, 2014 14:08
get_essential_addressのKK対応?
diff --git a/Android.mk b/Android.mk
index eafa1e1..b94c9d0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -22,8 +22,9 @@ LOCAL_STATIC_LIBRARIES += libmsm_cameraconfig_exploit
LOCAL_STATIC_LIBRARIES += libput_user_exploit
LOCAL_STATIC_LIBRARIES += libget_user_exploit
LOCAL_STATIC_LIBRARIES += libkallsyms
-LOCAL_STATIC_LIBRARIES += libcutils libc
-LOCAL_LDFLAGS += -static
--update_package=CACHE:recovery/sec_csc.zip
--carry_out=csc_home
--wipe_cache
@ma34s
ma34s / sc04e.log
Created December 8, 2014 15:32
sc04e cm12 uart logs
Android Bootloader - UART_DM Initialized!!!
[0] welcome to lk
[10] platform_init()
[10] target_init()
[10] HW REV15 : (0, 1, 1, 0)
[10] check power key with 0xcbff64d7
[20] Power on reason 4
[20] Power on status : 0x4 (Key Power On)
[40] magna_octa_full_hd_panel_power on completed
@ma34s
ma34s / gist:15740d42454496e343d9
Created December 27, 2014 08:15
Log of Exception at display Setting
12-26 08:13:58.417 23482 23482 D AndroidRuntime: Shutting down VM
12-26 08:13:58.418 23482 23482 E AndroidRuntime: FATAL EXCEPTION: main
12-26 08:13:58.418 23482 23482 E AndroidRuntime: Process: com.android.settings, PID: 23482
12-26 08:13:58.418 23482 23482 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.SubSettings}: java.lang.NumberFormatException: Invalid int: "????"
12-26 08:13:58.418 23482 23482 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2951)
12-26 08:13:58.418 23482 23482 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2982)
12-26 08:13:58.418 23482 23482 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)
12-26 08:13:58.418 23482 23482 E AndroidRuntime: at android.app.ActivityThread.access$800(ActivityThread.java:144)
12-26 08:13:58.418 23482 23482 E AndroidRuntime: at android.app.ActivityThread$H.han