9/30/2015
0
Switch memory SDcard jadi internal dengan cara unpack repack boot.img
Buat switch memory SDcard jadi internal dengan cara unpack repack boot.img
Lansung Aja...
Bahan yanga di perlukan :
PC
MTKbootimg DOWNLOAD
Notepad++. DOWNLOAD
Jika akses di file manager bawaan miui yang kebaca cuma SDcard yg sudah menjadi Internal
Buat akses Internal yg sudah menjadi SDcard bisa menggunakan root explorer
pertama ektrak yg udah di download tadi MTKbootimg. buka dan untuk proses unpack boot.img klik dua kali unpack.bat
maka akan muncul folder initrd.
# buka folder initrd
1. cari dan buka init.ssd.rc
dengan cara klik kanan dan pilih Edit wiht Notepad++
cari dari :
on init
# See storage config details at http://source.android.com/tech/storage/
# fix non-shell uid process can not access shared-sd
mkdir /mnt/shell 0700 shell shell
chmod 0750 /mnt/shell
chown shell sdcard_r /mnt/shell
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /mnt/shell/emulated/0 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /storage/sdcard1 0700 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export SECONDARY_STORAGE /storage/sdcard1
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
mount tmpfs tmpfs /storage/emulated mode=0755,uid=1023,gid=1023
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /mnt/shell/emulated/0 /storage/emulated/0
symlink /storage/sdcard1 /mnt/sdcard2
tepat di atas
on post-fs
# mount shared so changes propagate into child namespaces
ubah menjadi :
on init
mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
mkdir /storage/sdcard0 0700 root root
mkdir /storage/sdcard1 0700 root root
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
# Support legacy paths
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard1 /mnt/sdcard2
tepat di atas
on post-fs
# mount shared so changes propagate into child namespaces
selanjutnya cari :
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled
ubah menjadi :
service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard0
class late_start
disabled
service sdcard1 /system/bin/sdcard -u 1023 -g 1023 -l /data/media /storage/sdcard1
class late_start
2. cari init.miui.rc
buka dan Tambahkan :
# miui init rc
on init
# Create cgroup mount point for memory and freezer
mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000
mkdir /sys/fs/cgroup/memory 0750 root system
mount cgroup none /sys/fs/cgroup/memory memory
mkdir /sys/fs/cgroup/freezer 0750 root system
mount cgroup none /sys/fs/cgroup/freezer freezer
Tepat di di atas
#mdbd
service mdbd /sbin/mdbd
3. cari fstab
cari :
/devices/platform/mtk-msdc.0/mmc_host auto vfat defaults voldmanaged=sdcard0:emmc@fat,noemulatedsd
/devices/platform/mtk-msdc.1/mmc_host auto vfat defaults voldmanaged=sdcard1:auto
ubah menjadi :
/devices/platform/mtk-msdc.1/mmc_host auto vfat defaults voldmanaged=sdcard0:auto,noemulatedsd
/devices/platform/mtk-msdc.0/mmc_host auto vfat defaults voldmanaged=sdcard1:auto,noemulatedsd
dan lakukan sama persis di :
fstab.fat.nand dan
fstab.nand
jika sudah maka kita repact boot.img dengan cara klik dua kali repack.bat
maka akan muncul hasil repack boot dengan nama boot-new.img lalu rename menjadi boot.img dan tinggal kita buat flashable.zip untuk proses flash di cWM / TWRP
Nb: backup boot.img original dan buatkan flashable juga. Buat nanti kalau mau update OTA miui. Flahs dulu boot ori baru update ota dan flash lagi boot yg sudah di switch memmory nya
Credit :
Nc Tito
Lansung Aja...
Bahan yanga di perlukan :
PC
MTKbootimg DOWNLOAD
Notepad++. DOWNLOAD
Jika akses di file manager bawaan miui yang kebaca cuma SDcard yg sudah menjadi Internal
Buat akses Internal yg sudah menjadi SDcard bisa menggunakan root explorer
pertama ektrak yg udah di download tadi MTKbootimg. buka dan untuk proses unpack boot.img klik dua kali unpack.bat
maka akan muncul folder initrd.
# buka folder initrd
1. cari dan buka init.ssd.rc
dengan cara klik kanan dan pilih Edit wiht Notepad++
cari dari :
on init
# See storage config details at http://source.android.com/tech/storage/
# fix non-shell uid process can not access shared-sd
mkdir /mnt/shell 0700 shell shell
chmod 0750 /mnt/shell
chown shell sdcard_r /mnt/shell
mkdir /mnt/shell/emulated 0700 shell shell
mkdir /mnt/shell/emulated/0 0700 shell shell
mkdir /storage/emulated 0555 root root
mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
mkdir /storage/sdcard1 0700 root root
export EXTERNAL_STORAGE /storage/emulated/legacy
export SECONDARY_STORAGE /storage/sdcard1
export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
export EMULATED_STORAGE_TARGET /storage/emulated
mount tmpfs tmpfs /storage/emulated mode=0755,uid=1023,gid=1023
# Support legacy paths
symlink /storage/emulated/legacy /sdcard
symlink /storage/emulated/legacy /mnt/sdcard
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
symlink /mnt/shell/emulated/0 /storage/emulated/0
symlink /storage/sdcard1 /mnt/sdcard2
tepat di atas
on post-fs
# mount shared so changes propagate into child namespaces
ubah menjadi :
on init
mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
mkdir /storage/sdcard0 0700 root root
mkdir /storage/sdcard1 0700 root root
export EXTERNAL_STORAGE /storage/sdcard0
export SECONDARY_STORAGE /storage/sdcard1
# Support legacy paths
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
symlink /storage/sdcard1 /mnt/sdcard2
tepat di atas
on post-fs
# mount shared so changes propagate into child namespaces
selanjutnya cari :
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start
service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -w 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
class late_start
disabled
ubah menjadi :
service fuse_sdcard0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard0 /storage/sdcard0
class late_start
disabled
service sdcard1 /system/bin/sdcard -u 1023 -g 1023 -l /data/media /storage/sdcard1
class late_start
2. cari init.miui.rc
buka dan Tambahkan :
# miui init rc
on init
# Create cgroup mount point for memory and freezer
mount tmpfs none /sys/fs/cgroup mode=0750,uid=0,gid=1000
mkdir /sys/fs/cgroup/memory 0750 root system
mount cgroup none /sys/fs/cgroup/memory memory
mkdir /sys/fs/cgroup/freezer 0750 root system
mount cgroup none /sys/fs/cgroup/freezer freezer
Tepat di di atas
#mdbd
service mdbd /sbin/mdbd
3. cari fstab
cari :
/devices/platform/mtk-msdc.0/mmc_host auto vfat defaults voldmanaged=sdcard0:emmc@fat,noemulatedsd
/devices/platform/mtk-msdc.1/mmc_host auto vfat defaults voldmanaged=sdcard1:auto
ubah menjadi :
/devices/platform/mtk-msdc.1/mmc_host auto vfat defaults voldmanaged=sdcard0:auto,noemulatedsd
/devices/platform/mtk-msdc.0/mmc_host auto vfat defaults voldmanaged=sdcard1:auto,noemulatedsd
dan lakukan sama persis di :
fstab.fat.nand dan
fstab.nand
jika sudah maka kita repact boot.img dengan cara klik dua kali repack.bat
maka akan muncul hasil repack boot dengan nama boot-new.img lalu rename menjadi boot.img dan tinggal kita buat flashable.zip untuk proses flash di cWM / TWRP
Nb: backup boot.img original dan buatkan flashable juga. Buat nanti kalau mau update OTA miui. Flahs dulu boot ori baru update ota dan flash lagi boot yg sudah di switch memmory nya
Credit :
Nc Tito
Subscribe to:
Post Comments (Atom)
0 Responses to “Switch memory SDcard jadi internal dengan cara unpack repack boot.img”
Post a Comment