2013年10月7日月曜日

HW-01E rooted


大人は質問に答えたりしない。


git clone https://github.com/hiikezoe/break_setresuid
git clone https://github.com/fi01/unlock_security_module

vi device_database.c

device_database.c 
 {
    .device_id = DEVICE_HW01E_401210111,
    .device = "HW-01E",
    .build_id = "4.0..1210111",
    .check_property_name = "ro.build.id",
    .check_property_value = "4.0..1210111",

  },

vi device_database.h

DEVICE_HW01E_401210111,

ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk

adb push break_setresuid /data/local/tmp/break_setresuid
adb push unlock_security_module /data/local/tmp/unlock_security_module
adb push su /data/local/tmp/su

adb shell
$chmod 755 /data/local/tmp/break_setresuid
$chmod 755 /data/local/tmp/unlock_security_module
$cd /data/local/tmp/
$./break_setresuid
#./unlock_security_module
#mount -o rw,remount /system /system
#dd if=/data/local/tmp/su of=/system/bin/su
#chown root.root /system/bin/su
#chmod 6755 /system/bin/su

めんどうくせぇ