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 / setcmdline.c
Created January 28, 2013 14:05
/proc/cmdlineを再設定するバイナリのコード
/*---------------------------------------------------------------------------**
ma34s. All rights reserved.
**---------------------------------------------------------------------------**
$HeadURL: $
$LastChangedDate:: #$
$LastChangedRevision: $
$LastChangedBy: $
**------------------------------------------------------------------------*//**
@ma34s
ma34s / sc3e_samusung
Created February 3, 2013 08:05
SC03E 作成中(危険)
#
# Automatically generated make config: don't edit
# Linux/arm 3.0.31 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_HAVE_PWM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_GENERIC_GPIO=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
CONFIG_GENERIC_CLOCKEVENTS=y
@ma34s
ma34s / dmy_toolbox.c
Created February 4, 2013 23:06
toolboxのコールログを取るダミーtoolbox と、tooxboxのmountを差し替えする場合のサンプルコード
int main(int argc, char *argv[])
{
char cmd[1024];
int i;
int mount_flag=0;
FILE f;
sprintf(cmd,"%s",argv[0]);
for(i=0;i<argc)
{
sprintf(cmd,"%s %s",cmd,argv[i]);
@ma34s
ma34s / mms_ts.c
Last active December 12, 2015 09:08
mms_ts.cのデバッグコードについて
/*
* mms_ts.c - Touchscreen driver for Melfas MMS-series touch controllers
*
* Copyright (C) 2011 Google Inc.
* Author: Dima Zavin <dima@android.com>
* Simon Wilson <simonwilson@google.com>
*
* ISP reflashing code based on original code from Melfas.
*
* This program is free software; you can redistribute it and/or modify it
@ma34s
ma34s / mms_ts.c
Created February 11, 2013 10:45
S3αでタッチスクリーンF/W強制書き込み用(手順その2用コード) これでS3α向けが書かれる事でOKとなる
/*
* mms_ts.c - Touchscreen driver for Melfas MMS-series touch controllers
*
* Copyright (C) 2011 Google Inc.
* Author: Dima Zavin <dima@android.com>
* Simon Wilson <simonwilson@google.com>
*
* ISP reflashing code based on original code from Melfas.
*
* This program is free software; you can redistribute it and/or modify it
@ma34s
ma34s / force_write1_mms_ts.c
Created February 11, 2013 10:47
S3αでタッチスクリーンF/W強制書き込み用(手順その1用コード) ぶっ壊れたF/Wを一旦、”何か(知らん)”の正常なF/Wで上書きするためのもの
/*
* mms_ts.c - Touchscreen driver for Melfas MMS-series touch controllers
*
* Copyright (C) 2011 Google Inc.
* Author: Dima Zavin <dima@android.com>
* Simon Wilson <simonwilson@google.com>
*
* ISP reflashing code based on original code from Melfas.
*
* This program is free software; you can redistribute it and/or modify it
private final String SAVE_CMDLINE_DIR =Environment.getExternalStorageDirectory().getPath()+"/kbc/GNT2eXtremeTuner";
private final String SAVE_CMDLINE_PATH =SAVE_CMDLINE_DIR+"/cmdline";
private final String KBC_CMDLINE_DIR ="/data/kbc";
private final String KBC_CMDLINE_PATH =KBC_CMDLINE_DIR+"/cmdline";
private final String KERELCMDLINE_PATH ="/proc/cmdline";
/*
/sdcard/kbc/GNT2eXtremeTuner/cmdline に正常時のcmdlineを保存
@ma34s
ma34s / build_error.txt
Created April 9, 2013 03:10
error...log
frameworks/base/core/java/com/android/internal/util/cm/NavigationRingHelpers.java:109: cannot find symbol
symbol : variable ic_navigation_ring_empty
location: class com.android.internal.R.drawable
resourceId = com.android.internal.R.drawable.ic_navigation_ring_empty;
^
frameworks/base/core/java/com/android/internal/util/cm/NavigationRingHelpers.java:111: cannot find symbol
symbol : variable ic_navigation_ring_screenshot
location: class com.android.internal.R.drawable
resourceId = com.android.internal.R.drawable.ic_navigation_ring_screenshot;
^
@ma34s
ma34s / test.js
Last active December 16, 2015 20:49
まぁ、一撃と呼ばれているものを作ろうとしてみた・・・ (途中で力尽きる・・・
//------------------------------------------------------------------
// Config for XXX
var ro_product_model ="SC-02E";
var ro_product_brand ="samsung";
var ro_product_name ="SC-02E";
var ro_product_device ="sc02e";
var ro_product ="sc02e";
var ro_build_description ="t0ltedcm-user 4.1.1 JRO03C SC02EOMALJF release-keys";
@ma34s
ma34s / kbc.xml
Last active December 17, 2015 01:59
local_manifests for KBC Build put this following path. [android_cm10.2 tree]/.repo/local_manifests/kbc.xml and run "repo sync"
<manifest>
<!-- samsung common -->
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode"/>
<!--
not yet for cm-10.2
<remove-project name="CyanogenMod/android_bootable_recovery" path="bootable/recovery"/>
<project name="kbc-developers/android_cwm_recovery" path="bootable/recovery" remote="private"/>
-->
<project name="kbc-developers/proprietary_vendor_samsung" path="vendor/samsung" remote="private"/>