[Android Software Development] katinatez:
Hello here is my update on efs backup for bacon (One Plus One). Followed every thing that rootSU & Phil3759 said, but I have not been able to have an option to backup efs under the custom backup option take a peek at the picture 1.

But I do see the option of formating efs under picture 2, so I added the ro.cwm.forbid_format as a safety measure & added the ro.cwm.forbid_mount thinking it would not show efs as an option under mounts and storage but still there.

Can anyone help by taking a glimpse at my code, I followed rootSU example of documenting all code changed and here it is. The first line is the directory of file where I changed the code.

/home/john/android/cyanogenmod/device/oneplus/bacon/bacon.mk

# System properties

PRODUCT_PROPERTY_OVERRIDES += \

ro.telephony.default_network=20

ro.cwm.backup_partitions=/modemst1,/modemst2,/devlog

ro.cwm.forbid.format=/modemst1,/modemst2

ro.cwm.forbid.mount=/modemst1,/modemst2

/home/john/android/cyanogenmod/device/oneplus/bacon/BoardConfig.mk

# Inherit from MSM8974 common

-include device/oppo/msm8974-common/BoardConfigCommon.mk

BOARD_USE_FB2PNG := true

# Kernel

TARGET_KERNEL_CONFIG := cyanogenmod_bacon_defconfig

BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=bacon user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3

BOARD_CUSTOM_BOOTIMG_MK := device/oneplus/bacon/mkbootimg.mk

/home/john/android/cyanogenmod/device/oneplus/bacon/rootdir/etc/fstab.bacon

# Android fstab file.

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>

# The filesystem that contains the filesystem checker binary (typically /system) cannot

# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,barrier=1 wait

/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer,length=-16384

/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc,journal_async_commit,errors=panic wait,check

/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 nosuid,nodev,barrier=1,data=ordered,nodelalloc,nomblk_io_submit,errors=panic wait

/dev/block/platform/msm_sdcc.1/by-name/boot /boot emmc defaults defaults

/dev/block/platform/msm_sdcc.1/by-name/recovery /recovery emmc defaults defaults

/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults

/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait

/dev/block/platform/msm_sdcc.1/by-name/modemst1 /efs1 emmc flags=backup=1 defaults

/dev/block/platform/msm_sdcc.1/by-name/modemst2 /efs2 emmc flags=backup=1;subpartitionof=/modem_st1 defaults

/devices/platform/xhci-hcd auto vfat defaults voldmanaged=usbdisk:auto

​

Last thing I need to mention is the screenshots dont work after entering the flag for FB2PNG, my question [MENTION=4666971]Phil3759[/MENTION] is there a commit that need to be added to the kernel and if so can I get a link?

Thank you very much for all your answers, & Thank you [MENTION=2872010]rootSU[/MENTION] & [MENTION=4666971]Phil3759[/MENTION] for all your support.