Skip to content

Instantly share code, notes, and snippets.

Masashi ma34s

Block or report user

Report or block ma34s

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ma34s
ma34s / file_contexts
Created Apr 17, 2015
file_contexts of SC04EOMUFOA2
View file_contexts
#line 1 "vendor/samsung/common/sepolicy/nsa/file_contexts"
###########################################
# Root
/ u:object_r:rootfs:s0
# Data files
/adb_keys u:object_r:adb_keys_file:s0
/default.prop u:object_r:rootfs:s0
/fstab\..* u:object_r:rootfs:s0
/init\..* u:object_r:rootfs:s0
@ma34s
ma34s / nd2のlibMedia.soシンボル.txt
Created Apr 6, 2015
--demangle 有り無しで比較!
View nd2のlibMedia.soシンボル.txt
000521a1 T _ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_tiRKNS_2spINS_7IMemoryEEE20audio_output_flags_tPFviPvS9_ES9_iii
000521a1 T android::AudioTrack::AudioTrack(audio_stream_type_t, unsigned int, audio_format_t, int, android::sp<android::IMemory> const&, audio_output_flags_t, void (*)(int, void*, void*), void*, int, int, int)
00052425 T _ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_tii20audio_output_flags_tPFviPvS4_ES4_iii
00052425 T android::AudioTrack::AudioTrack(audio_stream_type_t, unsigned int, audio_format_t, int, int, audio_output_flags_t, void (*)(int, void*, void*), void*, int, int, int)
00052551 T _ZN7android10AudioTrackC1E19audio_stream_type_tj14audio_format_tjRKNS_2spINS_7IMemoryEEE20audio_output_flags_tPFviPvS9_ES9_ii
00052551 T android::AudioTrack::AudioTrack(audio_stream_type_t, unsigned int, audio_format_t, unsigned int, android::sp<android::IMemory> const&, audio_output_flags_t, void (*)(int, void*, void*), void*, int, int)
View build-cm12.sh
#!/bin/bash
export USE_CCACHE=1
export CCACHE_DIR=~/.ccache
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
export ANDROID_JAVA_HOME=$JAVA_HOME
export PATH=$PATH:~/bin
export KBUILD_BUILD_HOST=kbc
@ma34s
ma34s / aojp_cm12.xml
Created Feb 17, 2015
local_manifests for CM12 based AOJP
View aojp_cm12.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- JPN IME -->
<project path="packages/inputmethods/OpenWnn" name="CyanogenMod/android_packages_inputmethods_OpenWnn" />
<!-- SAMSUNG DEVICE -->
<project name="kbc-developers/proprietary_vendor_samsung" path="vendor/samsung" remote="github" />
<project name="aojp/android_hardware_samsung" path="hardware/samsung" remote="github" />
<!-- SC02E/SC03E COMMON -->
<project name="kbc-developers/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" />
@ma34s
ma34s / gist:15740d42454496e343d9
Created Dec 27, 2014
Log of Exception at display Setting
View gist:15740d42454496e343d9
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
@ma34s
ma34s / sc04e.log
Created Dec 8, 2014
sc04e cm12 uart logs
View sc04e.log
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
View command
--update_package=CACHE:recovery/sec_csc.zip
--carry_out=csc_home
--wipe_cache
@ma34s
ma34s / Android.mk
Created Jun 1, 2014
get_essential_addressのKK対応?
View Android.mk
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
@ma34s
ma34s / PackageManagerService.java
Created May 7, 2014
LGL22のcom\android\server\pm\PackageManagerService.javaのjavaソース化
View PackageManagerService.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 / gist:11368192
Created Apr 28, 2014
【参考】LGL22
View gist:11368192
$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
You can’t perform that action at this time.