Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

no need to copy bootinfo anymore

Change-Id: I9ed39e4fb5fecfbc9a109376c2afd594d977f364
  • Loading branch information...
commit 3b38d5c18a703b60fd6275dff25227d1217c6c0b 1 parent da01fbb
@nadlabak nadlabak authored
Showing with 2 additions and 3 deletions.
  1. +2 −2 mot_boot_mode/mot_boot_mode.c
  2. +0 −1  prebuilt/bin/sh_hijack.sh
View
4 mot_boot_mode/mot_boot_mode.c
@@ -41,7 +41,7 @@ int boot_reason_charge_only(void)
char *x, *pwrup_rsn;
unsigned long reason = 0;
- fd = open("/data/bootinfo", O_RDONLY);
+ fd = open("/proc/bootinfo", O_RDONLY);
if (fd < 0) return 0;
n = read(fd, data, 1023);
@@ -89,7 +89,7 @@ int check_cid_recover_boot(void)
memset(cid_recover_boot, 0, 32);
- fd = open("/data/bootinfo", O_RDONLY);
+ fd = open("/proc/bootinfo", O_RDONLY);
if (fd < 0) return 0;
n = read(fd, data, 1023);
View
1  prebuilt/bin/sh_hijack.sh
@@ -2,7 +2,6 @@
echo 32 > /sys/devices/platform/omapfb/graphics/fb0/bits_per_pixel
echo 1 > /sys/devices/omapdss/display0/update_mode
/system/bin/busybox_static gunzip -c /etc/2ndboot/2ndboot.fb.gz > /dev/graphics/fb0
- /system/bin/busybox_static cp -f /proc/bootinfo /data/bootinfo
/system/bin/busybox_static insmod /etc/2ndboot/hbootmod.ko > /cache/2ndboot.log 2>&1
/system/bin/busybox_static mknod /dev/hbootctrl c 245 0 >> /cache/2ndboot.log 2>&1
echo 255 > /sys/class/leds/green/brightness
Please sign in to comment.
Something went wrong with that request. Please try again.