Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

secondrom nandroid backup/restore related changes

remove unnecessary recovery.fstab entries to have safer recovery
  • Loading branch information...
commit ebedb76329adba720aea825fbdaa70bcc219cf30 1 parent 3112f0f
@gokhanmoral authored
View
1  res/customconfig/customconfig.xml
@@ -179,7 +179,6 @@
<spinnerItem name="60 sec" value="60000"/>
</spinner>
<button description="Use this button to test bln. BLN will be active after you turn the screen off." name="Test BLN" action="test-bln" label="Test BLN"/>
- <!-- checkbox description="Check this to activate BLN without wakelocks. Keep in mind that this setting may prevent backlight notification blinking or any other advanced features to work." name="BLN w/o Wakelock" action="generic /sys/class/misc/backlightnotification/blnww" label="BLN w/o Wakelock"/ -->
<seekBar description="Controls touchpad led voltage level (default: 3000)"
name="Led Voltage Level" action="generic /sys/devices/virtual/sec/sec_touchkey/touchkey_brightness" unit=" mV" min="2500" reversed="false" step="50" max="3300"/>
</settingsPane>
View
5 res/etc/recovery.fstab
@@ -1,14 +1,15 @@
/boot emmc /dev/block/mmcblk0p5
#recovery not used
-/efs ext4 /dev/block/mmcblk0p1
/cache ext4 /dev/block/mmcblk0p7
/system ext4 /dev/block/mmcblk0p9
/data ext4 /dev/block/mmcblk0p10
+/secondrom_cache ext4 /mnt/.secondrom/.secondrom/cache.img fs_options=loop,length=104857600
+/secondrom_data ext4 /mnt/.secondrom/.secondrom/data.img fs_options=loop,length=2147483648
+/secondrom_system ext4 /dev/block/mmcblk0p12
#external
/sdcard vfat /dev/block/mmcblk1p1
#internal
/emmc vfat /dev/block/mmcblk0p11
-/preload ext4 /dev/block/mmcblk0p12
View
15 res/recovery.fstab
@@ -1,10 +1,7 @@
-# mount point fstype device device2
-/efs ext4 /dev/block/mmcblk0p1
-/boot emmc /dev/block/mmcblk0p2
-/recovery emmc /dev/block/mmcblk0p6
-/cache ext4 /dev/block/mmcblk0p7
-/system ext4 /dev/block/mmcblk0p9
-/data ext4 /dev/block/mmcblk0p10 length=-16384
-/preload ext4 /dev/block/mmcblk0p12
-/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1
+# mount point fstype device device2
+/cache ext4 /dev/block/mmcblk0p7
+/system ext4 /dev/block/mmcblk0p9
+/data ext4 /dev/block/mmcblk0p10 length=-16384
+/preload ext4 /dev/block/mmcblk0p12
+/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1
/sdcard1 vfat /dev/block/mmcblk0p11
View
BIN  sbin/busybox
Binary file not shown
View
4 sbin/init
@@ -3,6 +3,7 @@ cd /
busybox mount -t proc proc /proc
busybox mount -t sysfs sysfs /sys
+tar xvf /res/misc/dev.tar
if grep -q bootmode=2 /proc/cmdline ; then
echo 0 > /proc/sys/kernel/rom_feature_set
@@ -17,9 +18,6 @@ if busybox grep -q 1 /sys/class/power_supply/battery/batt_lp_charging ; then
exec /sbin/init.samsung
fi
-tar xvf /res/misc/dev.tar
-
-
SECONDROM=1
NOBOOTLOGO=0
mount -t ext4 -o ro /dev/block/mmcblk0p12 /preload
View
6 sbin/recovery-loader
@@ -33,6 +33,12 @@ dd bs=512 if=/dev/block/mmcblk0p5 skip=$recovery_offset count=$recovery_len | xz
# why don't we use thunderbolt scripts in recovery?
. /sbin/ext/thunderbolt.sh
+mkdir /secondrom_cache
+mkdir /secondrom_data
+mkdir /secondrom_system
+mkdir /mnt/.secondrom
+mount -t vfat /dev/block/mmcblk0p11 /mnt/.secondrom
+
if /sbin/ext/busybox [ -f /cache/recovery/command ];
then
/sbin/ext/busybox cp /res/keys-samsung /res/keys
Please sign in to comment.
Something went wrong with that request. Please try again.