this is a new idea,but not ok yet,just for suggest
(sorry for my poor english
)
precondition:have root BEFORE update to r5a,(and NOT use ""double flash")
background:tablet s have 2 system partition,but only one is used.if your first system boot fail,system will try to boot use 2nd one
detail:
as precondition,you have root files in 2nd(backup) system,
so todo is try make system boot fail,then it will boot to backup system,
in backup system(have root) mount 1st partition and add root files
boot back to 1st system,
now you should have root
so how to make system boot fail(success flag not set)is the largest problem
my opinion is use reset button,break boot in right time.(near sony logo show)
and in more step, decompilation bin sysmount maybe get more info.
/init.nbx03.rc
(sorry for my poor english
precondition:have root BEFORE update to r5a,(and NOT use ""double flash")
background:tablet s have 2 system partition,but only one is used.if your first system boot fail,system will try to boot use 2nd one
detail:
as precondition,you have root files in 2nd(backup) system,
so todo is try make system boot fail,then it will boot to backup system,
in backup system(have root) mount 1st partition and add root files
boot back to 1st system,
now you should have root
so how to make system boot fail(success flag not set)is the largest problem
my opinion is use reset button,break boot in right time.(near sony logo show)
and in more step, decompilation bin sysmount maybe get more info.
/init.nbx03.rc
Code:
on fs
wait /dev/block/mmcblk0p2
setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000
wait /dev/block/mmcblk0p3
wait /dev/block/mmcblk0p7
[COLOR="Red"][B]exec /sbin/sysmount ext4 /dev/block/mmcblk0p2 /dev/block/mmcblk0p3 /system ro[/B][/COLOR]
setprop ro.crypto.state unsupported
mount ext4 /dev/block/mmcblk0p10 /data wait noatime nosuid nodev
mount ext4 /dev/block/mmcblk0p4 /cache wait noatime nosuid nodev
# mount log
mkdir /log 0770 log log
mount ext4 /dev/block/mmcblk0p9 /log wait noatime nosuid nodev
chown log log /log
chmod 0770 /log
Attachments
-
41 KB Views: 82