Ye.云狐J2刷机笔记 | 完美切换内部存储卡和SD卡的改法.vold.fstab

时间:2023-03-08 17:26:40
Ye.云狐J2刷机笔记 | 完美切换内部存储卡和SD卡的改法.vold.fstab

================================================================================
Ye.完美切换内部存储卡和SD卡成功.vold.fstab
================================================================================
原文件:
dev_mount sdcard /storage/sdcard0 emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard2 /storage/sdcard1 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
修改后:
dev_mount sdcard /storage/sdcard0 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
dev_mount sdcard2 /storage/sdcard1 emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
修改点:
1.网上说的调换 /storage/sdcard后面的数字 不是完美解决方案,会导致很多使用SD卡的软件提示找不到,或直接崩溃。
2.完美改法:把 /storage/sdcard 后面的部分直接整个调换。
================================================================================

只是部分还原的话,可以使用一下方式:
1.原厂未刷入第三方 Recovery时,直接备份到SDCard
2.然后通过 SP_Flash_Tool 只刷入 移植好的Recovery
3.通过移植好的Recovery 备份
4.在新系统使用“钛备份” - 高级菜单 - 从Nandroid备份提取
5.即可选择想要的程序的备份数据了。

使用HaoZip修改了data.ext4.tar之后,生成新的MD5,修改nandroid.md5里对应MD5:
1.在手机上进入第三方Recovery模式,进入“ADB Mount SD” 以便在电脑上能看到SDCard
2.将修改后的文件,放入相同目录结构下
3.在Recovery模式,Advice Restore Mode,只还原 Data分区
4.Check md5 通过,不通过的话,重启一下手机
5.最后虽然会提示Error while restoring /data!,但是,重启可以正常进入手机,并且貌似Data的数据都恢复成功了!

================================================================================
【部分还原测试失败】目的单独修改一个文件,把导出的.tar包内容全删除,只保留需要修改的问题,修改好MD5,重新还原,结果失败。无法开机了。
【还原应该是全删全插模式】
【从SD卡安装Zip的方式应该是支持部分更新的方式】
================================================================================

如何进入Recovery模式:
按住拍照 + 开机

自动移植recovery软件:
MtkDroidTools v2.5.3

刷回原厂recovery方法:
1.选择原厂ROM包里的 Scatter File
2.勾掉所有其它的,只保留recovery,
3.单击Download 或 Firmware Upgrade即可

[安卓]解决因为冻结了系统程序导致不能开机的问题 – 手记
http://www.isucc.me/283.html

How To Backup and Restore your MTK device using SP flash Tools ~ Mediatek Rooting and Custom ROMs
http://www.mtkroms.com/2015/02/how-to-backup-and-restore-your-mtk.html

Build Custom ClockWork Recovery for Your MTK device[100% Full Proof] ~ Mediatek Rooting and Custom ROMs
http://www.mtkroms.com/2015/02/build-custom-clockwork-recovery-for.html

/Titan-6575 的索引
ftp://218.247.129.150/Titan-6575
umts
umts20090429

MTK6589,MT65xx系列刷机驱动安装教程(WIN7系统,win8系统和XP系统)_aomor_新浪博客
http://blog.sina.com.cn/s/blog_b31eb6ec0101m44f.html

Ye.驱动终于安装成功.mt65xxPreloaderqd驱动下载 _ - pc6下载站
http://www.pc6.com/softview/SoftView_102775.html

【通过下载别人的update的zip包得到update-binary文件】
【使用第三方Recovery一般都禁用检测update包的签名,所以只要目录结构正确即可】
================================================================================

ui_print("Ye Start ...");

ui_print("Ye Mounting /system");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/system", "/system");
show_progress(0.2,0);

ui_print("Ye package_extract_dir ...");
package_extract_dir("system", "/system");
show_progress(0.4,0);

ui_print("Ye Setting permissions");
set_perm(0, 0, 0755, "/system/etc/vold.fstab");
show_progress(0.6,0);

ui_print("Ye unmount /system");
unmount("/system");
show_progress(0.8,0);

ui_print("Ye Finished!");
show_progress(1.0,0);

================================================================================
Error Codes
Sometimes when flashing a ZIP, ClockworkMod Recovery will stop with an error code.
Status 0
This is usually caused by an incompatible update-binary in edify ZIPs. Replacing it with a compatible one, then re-signing the ZIP, will usually fix this error.
Status 6
This is usually caused by CR/LF EOL(Windows style End Of Line) in updater-script. Change it to LF EOL(Unix Style EOL) using Linux command: dos2unix updater-script, then re-signing the ZIP, will usually fix this error.
Status 7
This is usually caused by a corrupt download, or bad file signature. Re-downloading (or re-signing) the ZIP will usually fix this.