Skip to content

Instantly share code, notes, and snippets.

View sjp38's full-sized avatar

SeongJae Park sjp38

View GitHub Profile
@sjp38
sjp38 / gist:6077499
Last active December 20, 2015 05:18
android module example
#include"linux/module.h"
#include"linux/kernel.h"
int init_module(void)
{
printk(KERN_INFO "Hello android kernel...\n");
return 0;
}
void cleanup_module(void)
@sjp38
sjp38 / gist:6077043
Last active December 20, 2015 05:18
Gist for blog article "How to upgrade your nexus device using factory image"
$ adb reboot bootloader
(만약 bootoloader가 lock 되어 있다면 다음 명령으로 언락 합니다)
$ fastboot oem unlock
$ ./flash-all.sh
(만약 bootoloader를 다시 lock 하고 싶다면 다음 명령으로 다시 lock 합니다)
$ fastboot oem lock
$ fastboot reboot
@sjp38
sjp38 / gist:6077040
Created July 25, 2013 05:05
Gist for blog article "How to upgrade your nexus device using factory image"
fastboot oem unlock
fastboot erase boot
fastboot erase cache
fastboot erae recovery
fastboot erase system
fastboot erase userdata