Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Smartphone details:
- Blu Studio M HD
- Mediatek 6580
- Mali 400
- 16gb rom
- 1gb ram
- Android 5.1 Lollipop
- Bootloader: Locked by defaul ( i unlocked it)
- Original mount points:
- ls -al /dev/block/platform/mtk-msdc.0/by-name
- 1|root@BLU_STUDIO_M_HD:/ # ls -al /dev/block/platform/mtk-msdc.0/by-name
- lrwxrwxrwx root root 2016-12-30 20:18 boot -> /dev/block/mmcblk0p7
- lrwxrwxrwx root root 2016-12-30 20:18 cache -> /dev/block/mmcblk0p19
- lrwxrwxrwx root root 2016-12-30 20:18 expdb -> /dev/block/mmcblk0p11
- lrwxrwxrwx root root 2016-12-30 20:18 flashinfo -> /dev/block/mmcblk0p21
- lrwxrwxrwx root root 2016-12-30 20:18 frp -> /dev/block/mmcblk0p12
- lrwxrwxrwx root root 2016-12-30 20:18 keystore -> /dev/block/mmcblk0p17
- lrwxrwxrwx root root 2016-12-30 20:18 lk -> /dev/block/mmcblk0p6
- lrwxrwxrwx root root 2016-12-30 20:18 logo -> /dev/block/mmcblk0p10
- lrwxrwxrwx root root 2016-12-30 20:18 metadata -> /dev/block/mmcblk0p14
- lrwxrwxrwx root root 2016-12-30 20:18 nvdata -> /dev/block/mmcblk0p13
- lrwxrwxrwx root root 2016-12-30 20:18 nvram -> /dev/block/mmcblk0p2
- lrwxrwxrwx root root 2016-12-30 20:18 oemkeystore -> /dev/block/mmcblk0p15
- lrwxrwxrwx root root 2016-12-30 20:18 para -> /dev/block/mmcblk0p9
- lrwxrwxrwx root root 2016-12-30 20:18 proinfo -> /dev/block/mmcblk0p1
- lrwxrwxrwx root root 2016-12-30 20:18 protect1 -> /dev/block/mmcblk0p3
- lrwxrwxrwx root root 2016-12-30 20:18 protect2 -> /dev/block/mmcblk0p4
- lrwxrwxrwx root root 2016-12-30 20:18 recovery -> /dev/block/mmcblk0p8
- lrwxrwxrwx root root 2016-12-30 20:18 seccfg -> /dev/block/mmcblk0p5
- lrwxrwxrwx root root 2016-12-30 20:18 secro -> /dev/block/mmcblk0p16
- lrwxrwxrwx root root 2016-12-30 20:18 system -> /dev/block/mmcblk0p18
- lrwxrwxrwx root root 2016-12-30 20:18 userdata -> /dev/block/mmcblk0p20
- _______________________________________________________________________
- Thats the build.prop from stock rom:
- # begin build properties
- # autogenerated by buildinfo.sh
- ro.build.id=S110L
- ro.build.version.incremental=1452435678
- ro.build.version.sdk=22
- ro.build.version.codename=REL
- ro.build.version.all_codenames=REL
- ro.build.version.release=5.1
- ro.build.version.security_patch=2016-04-01
- ro.build.version.base_os=
- ro.build.date=Wed May 11 18:51:17 CST 2016
- ro.build.date.utc=1462963877
- ro.build.type=user
- ro.build.user=
- ro.build.host=BIANYI-7
- ro.build.tags=release-keys
- ro.product.board=
- # ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
- # use ro.product.cpu.abilist instead.
- ro.product.cpu.abi=armeabi-v7a
- ro.product.cpu.abi2=armeabi
- ro.product.cpu.abilist=armeabi-v7a,armeabi
- ro.product.cpu.abilist32=armeabi-v7a,armeabi
- ro.product.cpu.abilist64=
- ro.product.locale.language=en
- ro.product.locale.region=US
- ro.wifi.channels=
- ro.board.platform=mt6580
- # Do not try to parse description, fingerprint, or thumbprint
- ro.build.description=user 5.1 S110L 1452435678 release-keys
- ro.build.fingerprint=BLU/BLU_STUDIO_M_HD/BLU_STUDIO_M_HD:5.1/S110L/1452435678:user/release-keys
- ro.build.characteristics=default
- # end build properties
- #
- # from device/gionee/gionee6580_we_l/system.prop
- #
- #
- # system.prop for generic sdk
- #
- rild.libpath=/system/lib/mtk-ril.so
- rild.libargs=-d /dev/ttyC0
- # MTK, Infinity, 20090720 {
- wifi.interface=wlan0
- # MTK, Infinity, 20090720 }
- # MTK, mtk03034, 20101210 {
- ro.mediatek.wlan.wsc=1
- # MTK, mtk03034 20101210}
- # MTK, mtk03034, 20110318 {
- ro.mediatek.wlan.p2p=1
- # MTK, mtk03034 20110318}
- # MTK, mtk03034, 20101213 {
- mediatek.wlan.ctia=0
- # MTK, mtk03034 20101213}
- #
- wifi.tethering.interface=ap0
- #
- wifi.direct.interface=p2p0
- dalvik.vm.heapgrowthlimit=128m
- dalvik.vm.heapsize=256m
- # USB MTP WHQL
- ro.sys.usb.mtp.whql.enable=0
- # Power off opt in IPO
- sys.ipo.pwrdncap=2
- ro.sys.usb.storage.type=mtp,mass_storage
- # USB BICR function
- ro.sys.usb.bicr=no
- # USB Charge only function
- ro.sys.usb.charging.only=yes
- # audio
- ro.camera.sound.forced=0
- ro.audio.silent=0
- ro.zygote.preload.enable=0
- # temporary enables NAV bar (soft keys)
- #Gionee <Other> <wangmeng> <20150410> hide navigationbar.
- qemu.hw.mainkeys=1
- ro.kernel.zio=38,108,105,16
- #ro.kernel.qemu=0
- #ro.kernel.qemu.gles=0
- ro.opengles.version=131072
- #ro.boot.selinux=disable
- # Disable dirty region for Mali
- debug.hwui.render_dirty_regions=false
- #Gionee <lihl><20150427> modify lcd dpi
- ro.sf.lcd_density=320
- persist.sys.timezone=America/New_York
- gn.mmi.wcdma=yes
- gn.mmi.tdscdma=no
- gn.mmi.ltetdd=no
- gn.mmi.ltefdd=no
- gn.mmi.ltetddant=no
- gn.mmi.gps.coclock=yes
- gn.mmi.keytest.menu=no
- gn.mmi.keytest.app=yes
- gn.mmi.keytest.search=no
- gn.mmi.keytest.camera=no
- gn.mmi.keytest.hall=no
- gn.mmi.keytest.back=yes
- gn.mmi.keytest.home=yes
- gn.mmi.sensor.gyro=no
- gn.mmi.tp.cross=no
- gn.mmi.tp.ten=no
- gn.mmi.touch_pad=yes
- gn.mmi.mic2=no
- gn.mmi.receiver2=yes
- gn.mmi.dualtone=no
- gn.mmi.otg=yes
- gn.mmi.flashlight=yes
- gn.mmi.irtest=no
- gn.mmi.wifi5g=no
- gn.mmi.nfc=no
- gn.mmi.flash=no
- gn.mmi.flash2=no
- gn.mmi.fingerprints=no
- gn.autommi.keytest.app=yes
- gn.autommi.keytest.menu=no
- gn.autommi.keytest.camerea=no
- gn.autommi.keytest.focus=no
- gn.mmi.keytest.focus=no
- gn.autommi.keytest.hall=no
- gn.autommi.keytest.back=yes
- gn.autommi.keytest.home=yes
- ro.gn.need.cal=yes
- gn.mmi.original.fm=yes
- gn.mmi.camera.front=yes
- gn.mmi.sensor.light=yes
- gn.mmi.irtest=no
- gn.mmi.otg=yes
- gn.mmi.fingerprints=no
- ro.gn.match.numberlength=7
- ro.gn.respirationlamp.support=no
- ro.gn.gnvernumberrel=01
- ro.config.notification_sound=BLU_Message3.mp3
- ro.config.alarm_alert=AlarmClock2.mp3
- ro.config.ringtone=BLU_Ringtone4.mp3
- ro.gn.default.ringtone2=BLU_Ringtone4.mp3
- ro.gn.default.mmstone=BLU_Message3.mp3
- ro.gn.default.mmstone2=BLU_Message3.mp3
- ro.gn.default.videocall=BLU_Ringtone4.mp3
- ro.gn.op_special_vn=no
- ro.gn.sdgcall.access.support=no
- ro.gn.hand.answer.support=no
- ro.gn.phone.closedualmic=no
- ro.build.display.id=BLU_S110U_V10_GENERIC
- gn.product.origin.model=WBW5615A
- ro.product.model=STUDIO M HD
- ro.product.brand=BLU
- ro.product.name=BLU_STUDIO_M_HD
- ro.product.device=BLU_STUDIO_M_HD
- ro.gn.gnromvernumber=ROM5.0.16
- ro.product.manufacturer=BLU
- ro.gn.haptic.vibrator.prop=no
- ro.gn.music.dts=yes
- ro.gn.music.srs=no
- ro.gn.sdcard.type=BOTH
- ro.gn.amoled.lcmacl.support=no
- ro.gn.single.hand.support=no
- ro.gn.soundctrl.support=no
- ro.gn.mtk.poweroff.alarm.prop=yes
- ro.gn.extvernumber=STUDIO M HD_0204_V6175
- ro.gn.extHWvernumber=Mainboard_P2
- ro.gn.extmodel=STUDIO M HD
- ro.gn.nfc.support=no
- ro.gn.voicewake.support=no
- ro.gn.clickwake.support=yes
- ro.gn.buttonlight.support=no
- ro.gn.quickoperate.support=yes
- ro.gn.glove_patterns.support=no
- ro.gn.optrspecsegdef=no
- ro.gn.platform.support=no
- gn.sensor.adjust.lcd.support=no
- ro.gn.lcd.effect.support=no
- ro.gn.gn2sdcardswap=yes
- ro.product.screensize=5.0
- ro.ireader.channel=108553
- ro.gn.ctasec.support=no
- ro.gn.tdscdma.support=no
- runtime.cts.test=no
- ro.gn.gnproductid=WBW5615
- ro.gn.gnprojectid=WBW5615BT_0204
- ro.gn.gnznvernumber=WBW5615BT_0204_T6175
- ro.gn.gnvernumber=WBW5615BT_0204_V6175
- ro.gn.op_special_vn=no
- ro.gn.cutest=no
- ro.gn.effect.open=no
- ro.gn.gsd.prop=no
- ro.gn.camera.eraser.support=no
- ro.gn.camera.bestface.support=no
- ro.gn.camera.gnsports.support=no
- ro.gn.camera.pq.suppor=no
- ro.gn.camera.fd.menu.support=no
- ro.gn.camera.preview.standard=no
- ro.gn.camera.default.fullscreen=yes
- ro.gn.oversea.product=yes
- ro.gn.oversea.custom=SOUTH_AMERICA_BLU
- ro.gn.music.keyguard.widget=yes
- ro.gn.three.finger.guestmode=yes
- ro.gn.camera.zsl.default.on=yes
- #ro.gn.camera.gotocharm.support=yes
- #ro.gn.camera.picbest.support=no
- #ro.gn.camera.piclear.support=no
- #ro.gn.camera.actionpath.support=no
- #ro.gn.camera.fd.default.on=no
- ro.gn.gemini.support=no
- ro.gn.navi.keyguard.app.support=no
- ro.gn.smartstay.support=yes
- ro.gn.gesture.support=no
- ro.gn.appwdialog.support=yes
- ro.gn.net.autoswitch.support=no
- ro.gn.sky.light.support=no
- ro.gn.oom.opt=yes
- ro.gn.smallscreen.support=no
- persist.sys.permission.level=1
- ro.gn.sv.version=SV1.0
- ro.gn.oversea.music.offline.ver=yes
- ro.gn.oversea.ami.calendar.ver=yes
- ro.gn.only.disp.alarm.gesture=no
- ro.gn.hotknot.support=no
- ro.product.board=BLU_STUDIO_M_HD
- ro.gn.guestmode.support=yes
- ro.gn.video.repeatplay.support=no
- ro.gn.video.play.tip.support=yes
- ro.gn.gnotaupdate.support=no
- ro.gn.default.inputmethod=com.cootek.smartinput5.TouchPalIME
- ro.gn.theme.default=/system/app/Sea_and_Sky.gnz
- ro.gn.smart.vibrate.alert=yes
- ro.gn.salesstatistic.support=
- ro.gn.common.mainboard.prop=WBW5615A
- ro.gn.oversea.mwc.support=no
- ro.gn.sysmgr.super.support=no
- ro.gn.shutdown.support=yes
- ro.gn.switch.storage.support=yes
- ro.gn.ssgdial.support=no
- ro.gn.ssgaccesscall.support=no
- ro.gn.only.four.gesture=yes
- ro.gn.oversea.music.offline.ver=yes
- ro.gn.product.locales.ex1=en_US es_US es_ES pt_BR pt_PT fr_FR nl_NL de_DE hu_HU cs_CZ pl_PL ar_EG fa_IR bg_BG sr_RS
- ro.gn.product.locales.ex2=ru_RU iw_IL vi_VN hr_HR el_GR zh_CN ldpi hdpi mdpi xhdpi xxhdpi
- ro.gn.screen.pin.support=no
- ro.gn.remove.virtual.key=yes
- ro.gn.oversea.odm=yes
- ro.gn.memory.detail.support=yes
- ro.gn.iposetting.support=no
- ro.gn.video.snapshot.support=yes
- ro.gn.handsethook=yes
- ro.gn.shutdown.support=yes
- ro.gn.screenon.receive.sms=yes
- ro.gn.screenon.time=
- persist.sys.net.sales.flag=0
- persist.sys.mms.sales.flag=0
- ro.gn.password.protection=yes
- ro.gn.launcher.guide.support=yes
- ro.gn.gamma.func.support=yes
- ro.gn.longscreenshot=yes
- ro.gn.torch.gesture.support=yes
- ro.gn.video.play.tip.support=yes
- ro.gn.floatvideo.control=yes
- ro.gn.video.dts.support=yes
- ro.gn.three.finger.guestmode=yes
- ro.gn.amigo_systemui_support=yes_5_1
- ro.gn.secure.screen.pin.support=yes
- ro.gn.mms.size.limit=yes
- ro.gn.group.mms.support=yes
- ro.gn.adups.fota.support=yes
- ro.gn.newcloseall.support=yes
- ro.gn.shake.clean=no
- ro.gn.apn.filter.support=yes
- #
- # ADDITIONAL_BUILD_PROPERTIES
- #
- ro.com.android.dateformat=MM-dd-yyyy
- ro.config.ringtone=Ring_Synth_04.ogg
- ro.config.notification_sound=pixiedust.ogg
- ro.carrier=unknown
- ro.config.alarm_alert=Alarm_Classic.ogg
- ro.setupwizard.mode=OPTIONAL
- ro.com.google.gmsversion=5.1_r3
- ro.gn.gms.test.modify=yes
- ro.com.google.clientidbase=android-blu
- ro.com.google.clientidbase.ms=android-blu
- ro.com.google.clientidbase.yt=android-blu
- ro.com.google.clientidbase.am=android-blu
- ro.com.google.clientidbase.gmm=android-blu
- dalvik.vm.heapgrowthlimit=128m
- dalvik.vm.heapsize=256m
- ro.mediatek.chip_ver=S01
- ro.mediatek.version.release=WBW5615BT_0204_T6175
- ro.mediatek.platform=MT6580
- ro.telephony.sim.count=2
- persist.radio.default.sim=0
- persist.radio.multisim.config=dsds
- persist.md.perm.checked=to_upgrade
- persist.gemini.sim_num=2
- ro.gemini.smart_sim_switch=false
- ril.specific.sm_cause=0
- bgw.current3gband=0
- ril.external.md=0
- ro.btstack=blueangel
- ro.sf.hwrotation=0
- ril.current.share_modem=2
- curlockscreen=1
- ro.mediatek.gemini_support=true
- persist.radio.fd.counter=15
- persist.radio.fd.off.counter=5
- persist.radio.fd.r8.counter=15
- persist.radio.fd.off.r8.counter=5
- drm.service.enabled=true
- fmradio.driver.enable=1
- ril.first.md=1
- ril.flightmode.poweroffMD=1
- ril.telephony.mode=0
- dalvik.vm.mtk-stack-trace-file=/data/anr/mtk_traces.txt
- mediatek.wlan.chip=CONSYS_MT6735
- mediatek.wlan.module.postfix=_consys_mt6735
- ril.read.imsi=1
- ril.radiooff.poweroffMD=0
- ro.frp.pst=/dev/block/platform/mtk-msdc.0/by-name/frp
- ro.mediatek.version.branch=L1.MP6
- ro.mediatek.version.sdk=4
- ro.mtk_gemini_support=1
- ro.mtk_audenh_support=1
- ro.mtk_lossless_bt_audio=1
- ro.mtk_besloudness_support=1
- ro.mtk_bessurround_support=1
- ro.mtk_gemini_enhancement=1
- ro.mtk_wapi_support=1
- ro.mtk_bt_support=1
- ro.mtk_wappush_support=1
- ro.mtk_agps_app=1
- ro.mtk_wlan_support=1
- ro.mtk_gps_support=1
- ro.mtk_omacp_support=1
- ro.mtk_search_db_support=1
- ro.mtk_dialer_search_support=1
- ro.mtk_dhcpv6c_wifi=1
- ro.have_aacencode_feature=1
- ro.mtk_fd_support=1
- ro.mtk_oma_drm_support=1
- ro.mtk_cta_drm_support=1
- ro.mtk_widevine_drm_l3_support=1
- ro.mtk_fm_recording_support=1
- ro.mtk_audio_ape_support=1
- ro.mtk_flv_playback_support=1
- ro.mtk_fd_force_rel_support=1
- ro.mtk_wmv_playback_support=1
- ro.mtk_send_rr_support=1
- ro.mtk_rat_wcdma_preferred=1
- ro.mtk_default_data_off=1
- ro.mtk_emmc_support=1
- ro.mtk_tetheringipv6_support=1
- ro.mtk_shared_sdcard=1
- ro.mtk_2sdcard_swap=1
- ro.mtk_enable_md1=1
- ro.mtk_flight_mode_power_off_md=1
- ro.mtk_aal_support=1
- ro.mtk_pq_support=2
- ro.mtk_miravision_support=1
- ro.mtk_miravision_image_dc=1
- ro.mtk_wifi_mcc_support=1
- ro.mtk_system_update_support=1
- ro.mtk_bip_scws=1
- ro.mtk_world_phone_policy=0
- ro.mtk_perfservice_support=1
- ro.mtk_cta_set=1
- ro.mtk_mobile_management=1
- ro.mtk_antibricking_level=2
- ro.mtk_cam_mfb_support=0
- ro.mtk_cam_mav_support=1
- ro.mtk_rild_read_imsi=1
- ro.sim_refresh_reset_by_modem=1
- ro.mtk_live_photo_support=1
- ro.mtk_motion_track_support=1
- ro.mtk_bg_power_saving_support=1
- ro.mtk_bg_power_saving_ui=1
- ro.have_aee_feature=1
- ro.sim_me_lock_mode=0
- ro.mtk_dual_mic_support=0
- ro.mtk_is_tablet=0
- wfd.dummy.enable=1
- ro.mediatek.project.path=device/gionee/gionee6580_we_l
- persist.mtk.wcn.combo.chipid=-1
- service.wcn.driver.ready=no
- ro.com.android.mobiledata=false
- persist.radio.mobile.data=0,0
- persist.meta.dumpdata=0
- persist.sys.dalvik.vm.lib.2=libart.so
- dalvik.vm.isa.arm.features=div
- net.bt.name=Android
- dalvik.vm.stack-trace-file=/data/anr/traces.txt
- # begin fota properties
- ro.fota.platform=MTK6735_L
- ro.fota.type=phone
- ro.fota.oem=gionee6735_L
- ro.fota.device=STUDIO M HD
- ro.fota.version=BLU_S110U_V10_GENERIC_5.1_11-05-2016 18:51
- # end fota properties
- _______________________________________________________________
- Now this is the mt6850 fstab:
- /dev/block/platform/mtk-msdc.0/by-name/system /system ext4 ro wait
- /dev/block/platform/mtk-msdc.0/by-name/userdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,resize,encryptable=/dev/block/platform/mtk-msdc.0/by-name/metadata
- /dev/block/platform/mtk-msdc.0/by-name/cache /cache ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check
- /dev/block/platform/mtk-msdc.0/by-name/protect1 /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,autoformat
- /dev/block/platform/mtk-msdc.0/by-name/protect2 /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc,commit=1,nodelalloc wait,check,autoformat
- /dev/block/platform/mtk-msdc.0/by-name/nvdata /nvdata ext4 noatime,nosuid,nodev,noauto_da_alloc,discard wait,check,autoformat
- /devices/mtk-msdc.0/11120000.MSDC0 auto vfat defaults voldmanaged=sdcard0:emmc@intsd,noemulatedsd
- /devices/mtk-msdc.0/11130000.MSDC1 auto vfat defaults voldmanaged=sdcard1:auto
- /devices/platform/mt_usb auto vfat defaults voldmanaged=usbotg:auto
- /dev/block/platform/mtk-msdc.0/by-name/frp /persistent emmc defaults defaults
- ________________________________________________
- And this is the goldfish fstab from the port one:
- # 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/mtdblock0 /system ext4 ro,barrier=1 wait
- /dev/block/mtdblock1 /data ext4 noatime,nosuid,nodev,barrier=1,nomblk_io_submit wait,check
- /dev/block/mtdblock2 /cache ext4 noatime,nosuid,nodev wait,check
- /devices/platform/goldfish_mmc.0 auto vfat defaults voldmanaged=sdcard:auto
- _______________________________________________________________________________________________
- Also this is the meta-inf update script:
- ui_print("**************************************************");
- ui_print("************* FOR BLU STUDIO SELFIE **************");
- ui_print("************ Dev.Prajwal from Nepal*************");
- ui_print("*************** BLU S070Q/D070Q ***************");
- ui_print("**************** cyanogenmod 12.1 ****************");
- ui_print("******************** STABLE ******************");
- ui_print("**************************************************");
- ui_print("");
- #assert(getprop("ro.product.device") == "i504" || getprop("ro.build.product") == "i504" || getprop("ro.product.device") == "nomi_i504" || getprop("ro.build.product") == "nomi_i504" || getprop("ro.product.device") == "Nomi i504" || getprop("ro.build.product") == "Nomi i504" || abort("This package is for device: i504,nomi_i504,Nomi i504; this device is " + getprop("ro.product.device") + "."););
- ifelse(is_mounted("/system"), unmount("/system"));
- package_extract_dir("install", "/tmp/install");
- set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
- set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
- ui_print("-----------> Format system...");
- mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/by-name/system", "/system", "");
- run_program("/tmp/install/bin/backuptool.sh", "backup");
- unmount("/system");
- if is_mounted("/data") then
- package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
- run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
- else
- mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/by-name/userdata", "/data", "");
- package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
- run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
- unmount("/data");
- endif;
- show_progress(0.750000, 0);
- format("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/by-name/system", "0", "/system");
- ui_print("-----------> Mount system...");
- mount("ext4", "EMMC", "/dev/block/platform/mtk-msdc.0/by-name/system", "/system", "max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc");
- ui_print("-----------> Install system...");
- package_extract_dir("system", "/system");
- symlink("../xbin/su", "/system/bin/su");
- symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so");
- symlink("/system/lib/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService/lib/arm/libdefcontainer_jni.so");
- symlink("/system/lib/libjni_eglfence.so", "/system/app/Gallery2/lib/arm/libjni_eglfence.so");
- symlink("/system/lib/libjni_filtershow_filters.so", "/system/app/Gallery2/lib/arm/libjni_filtershow_filters.so");
- symlink("/system/lib/libjni_jpegstream.so", "/system/app/Gallery2/lib/arm/libjni_jpegstream.so");
- symlink("/system/lib/libjni_jpegutil.so", "/system/app/Camera2/lib/arm/libjni_jpegutil.so");
- symlink("/system/lib/libjni_latinime.so", "/system/app/LatinIME/lib/arm/libjni_latinime.so");
- symlink("/system/lib/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm/libjni_pacprocessor.so");
- symlink("/system/lib/libjni_terminal.so", "/system/app/Terminal/lib/arm/libjni_terminal.so");
- symlink("/system/lib/libjni_tinyplanet.so", "/system/app/Camera2/lib/arm/libjni_tinyplanet.so");
- symlink("/system/lib/libprintspooler_jni.so", "/system/app/PrintSpooler/lib/arm/libprintspooler_jni.so");
- symlink("/system/lib/librsjni.so", "/system/app/Gallery2/lib/arm/librsjni.so");
- symlink("/system/lib/libttscompat.so", "/system/app/PicoTts/lib/arm/libttscompat.so");
- symlink("/system/lib/libttspico.so", "/system/app/PicoTts/lib/arm/libttspico.so");
- symlink("/system/lib/libwebviewchromium.so", "/system/app/webview/lib/arm/libwebviewchromium.so");
- symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
- symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
- symlink("app_process32", "/system/bin/app_process");
- symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
- "/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
- "/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
- "/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
- "/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
- "/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
- "/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chcon",
- "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
- "/system/xbin/chroot", "/system/xbin/chvt", "/system/xbin/clear",
- "/system/xbin/cmp", "/system/xbin/comm", "/system/xbin/cp",
- "/system/xbin/cpio", "/system/xbin/crond", "/system/xbin/crontab",
- "/system/xbin/cut", "/system/xbin/date", "/system/xbin/dc",
- "/system/xbin/dd", "/system/xbin/deallocvt", "/system/xbin/depmod",
- "/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff",
- "/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd",
- "/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo",
- "/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env",
- "/system/xbin/expand", "/system/xbin/expr", "/system/xbin/false",
- "/system/xbin/fbsplash", "/system/xbin/fdisk", "/system/xbin/fgconsole",
- "/system/xbin/fgrep", "/system/xbin/find", "/system/xbin/findfs",
- "/system/xbin/flash_lock", "/system/xbin/flash_unlock",
- "/system/xbin/flashcp", "/system/xbin/flock", "/system/xbin/fold",
- "/system/xbin/free", "/system/xbin/freeramdisk", "/system/xbin/fstrim",
- "/system/xbin/fsync", "/system/xbin/ftpget", "/system/xbin/ftpput",
- "/system/xbin/fuser", "/system/xbin/getenforce", "/system/xbin/getopt",
- "/system/xbin/getsebool", "/system/xbin/grep", "/system/xbin/groups",
- "/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
- "/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/hwclock",
- "/system/xbin/id", "/system/xbin/ifconfig", "/system/xbin/inetd",
- "/system/xbin/insmod", "/system/xbin/install", "/system/xbin/ionice",
- "/system/xbin/iostat", "/system/xbin/ip", "/system/xbin/kill",
- "/system/xbin/killall", "/system/xbin/killall5", "/system/xbin/less",
- "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
- "/system/xbin/lsattr", "/system/xbin/lsmod", "/system/xbin/lspci",
- "/system/xbin/lsusb", "/system/xbin/lzcat", "/system/xbin/lzma",
- "/system/xbin/lzop", "/system/xbin/lzopcat", "/system/xbin/man",
- "/system/xbin/matchpathcon", "/system/xbin/md5sum", "/system/xbin/mesg",
- "/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
- "/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
- "/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
- "/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
- "/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
- "/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
- "/system/xbin/nbd-client", "/system/xbin/netstat", "/system/xbin/nice",
- "/system/xbin/nmeter", "/system/xbin/nohup", "/system/xbin/nslookup",
- "/system/xbin/ntpd", "/system/xbin/od", "/system/xbin/openvt",
- "/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
- "/system/xbin/ping", "/system/xbin/pipe_progress", "/system/xbin/pkill",
- "/system/xbin/pmap", "/system/xbin/poweroff", "/system/xbin/printenv",
- "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pstree",
- "/system/xbin/pwd", "/system/xbin/pwdx", "/system/xbin/rdate",
- "/system/xbin/rdev", "/system/xbin/readlink", "/system/xbin/realpath",
- "/system/xbin/renice", "/system/xbin/reset", "/system/xbin/resize",
- "/system/xbin/restorecon", "/system/xbin/rev", "/system/xbin/rm",
- "/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
- "/system/xbin/run-parts", "/system/xbin/runcon", "/system/xbin/rx",
- "/system/xbin/sed", "/system/xbin/selinuxenabled", "/system/xbin/seq",
- "/system/xbin/sestatus", "/system/xbin/setconsole",
- "/system/xbin/setenforce", "/system/xbin/setfiles",
- "/system/xbin/setkeycodes", "/system/xbin/setsebool",
- "/system/xbin/setserial", "/system/xbin/setsid", "/system/xbin/sh",
- "/system/xbin/sha1sum", "/system/xbin/sha256sum",
- "/system/xbin/sha3sum", "/system/xbin/sha512sum", "/system/xbin/sleep",
- "/system/xbin/smemcap", "/system/xbin/sort", "/system/xbin/split",
- "/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
- "/system/xbin/sum", "/system/xbin/swapoff", "/system/xbin/swapon",
- "/system/xbin/sync", "/system/xbin/sysctl", "/system/xbin/tac",
- "/system/xbin/tail", "/system/xbin/tar", "/system/xbin/taskset",
- "/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
- "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
- "/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
- "/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
- "/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
- "/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
- "/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
- "/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
- "/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
- "/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
- "/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
- "/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
- "/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
- "/system/xbin/zcat");
- symlink("dalvikvm32", "/system/bin/dalvikvm");
- symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
- symlink("mount.exfat", "/system/bin/fsck.exfat",
- "/system/bin/mkfs.exfat");
- symlink("pigz", "/system/xbin/unpigz");
- symlink("toolbox", "/system/bin/cat", "/system/bin/chcon",
- "/system/bin/chmod", "/system/bin/chown", "/system/bin/clear",
- "/system/bin/cmp", "/system/bin/cp", "/system/bin/date",
- "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
- "/system/bin/du", "/system/bin/getenforce", "/system/bin/getevent",
- "/system/bin/getprop", "/system/bin/getsebool", "/system/bin/grep",
- "/system/bin/hd", "/system/bin/id", "/system/bin/ifconfig",
- "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl",
- "/system/bin/ionice", "/system/bin/kill", "/system/bin/ln",
- "/system/bin/load_policy", "/system/bin/log", "/system/bin/ls",
- "/system/bin/lsmod", "/system/bin/lsof", "/system/bin/md5",
- "/system/bin/mkdir", "/system/bin/mknod", "/system/bin/mkswap",
- "/system/bin/mount", "/system/bin/mv", "/system/bin/nandread",
- "/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/nohup",
- "/system/bin/notify", "/system/bin/printenv", "/system/bin/prlimit",
- "/system/bin/ps", "/system/bin/r", "/system/bin/readlink",
- "/system/bin/renice", "/system/bin/restart", "/system/bin/restorecon",
- "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",
- "/system/bin/route", "/system/bin/runcon", "/system/bin/schedtop",
- "/system/bin/sendevent", "/system/bin/setenforce",
- "/system/bin/setfattr", "/system/bin/setprop", "/system/bin/setsebool",
- "/system/bin/sleep", "/system/bin/smd", "/system/bin/start",
- "/system/bin/stop", "/system/bin/swapoff", "/system/bin/swapon",
- "/system/bin/sync", "/system/bin/top", "/system/bin/touch",
- "/system/bin/umount", "/system/bin/uptime", "/system/bin/vmstat",
- "/system/bin/watchprops",
- "/system/bin/wipe");
- set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/bin/app_process32", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:zygote_exec:s0");
- set_metadata("/system/bin/auditd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:logd_exec:s0");
- set_metadata("/system/bin/bootanimation", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:bootanim_exec:s0");
- set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:clatd_exec:s0");
- set_metadata("/system/bin/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:debuggerd_exec:s0");
- set_metadata("/system/bin/dex2oat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dex2oat_exec:s0");
- set_metadata("/system/bin/dhcpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dhcp_exec:s0");
- set_metadata("/system/bin/dnsmasq", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dnsmasq_exec:s0");
- set_metadata("/system/bin/drmserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:drmserver_exec:s0");
- set_metadata("/system/bin/dumpstate", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dumpstate_exec:s0");
- set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:hostapd_exec:s0");
- set_metadata("/system/bin/install-recovery.sh", "uid", 0, "gid", 0, "mode", 0750, "capabilities", 0x0, "selabel", "u:object_r:install_recovery_exec:s0");
- set_metadata("/system/bin/installd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:installd_exec:s0");
- set_metadata("/system/bin/keystore", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:keystore_exec:s0");
- set_metadata("/system/bin/lmkd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:lmkd_exec:s0");
- set_metadata("/system/bin/logd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:logd_exec:s0");
- set_metadata("/system/bin/mdnsd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mdnsd_exec:s0");
- set_metadata("/system/bin/mediaserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mediaserver_exec:s0");
- set_metadata("/system/bin/mtpd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:mtp_exec:s0");
- set_metadata("/system/bin/netcfg", "uid", 0, "gid", 3003, "mode", 02750, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/bin/netd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:netd_exec:s0");
- set_metadata("/system/bin/patchoat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:dex2oat_exec:s0");
- set_metadata("/system/bin/ping", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/bin/pppd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:ppp_exec:s0");
- set_metadata("/system/bin/racoon", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:racoon_exec:s0");
- set_metadata("/system/bin/rild", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:rild_exec:s0");
- set_metadata("/system/bin/run-as", "uid", 0, "gid", 2000, "mode", 0750, "capabilities", 0xc0, "selabel", "u:object_r:runas_exec:s0");
- set_metadata("/system/bin/sdcard", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:sdcardd_exec:s0");
- set_metadata("/system/bin/servicemanager", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:servicemanager_exec:s0");
- set_metadata("/system/bin/sh", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:shell_exec:s0");
- set_metadata("/system/bin/surfaceflinger", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:surfaceflinger_exec:s0");
- set_metadata("/system/bin/sysinit", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:sysinit_exec:s0");
- set_metadata("/system/bin/uncrypt", "uid", 0, "gid", 0, "mode", 0750, "capabilities", 0x0, "selabel", "u:object_r:uncrypt_exec:s0");
- set_metadata("/system/bin/vdc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:vdc_exec:s0");
- set_metadata("/system/bin/vold", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:vold_exec:s0");
- set_metadata("/system/bin/wpa_supplicant", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:wpa_exec:s0");
- set_metadata("/system/etc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/.tp", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/bash", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/bluetooth", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/dhcpcd", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/dhcpcd/dhcpcd-hooks", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/dhcpcd/dhcpcd-hooks", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/dhcpcd/dhcpcd-run-hooks", "uid", 1014, "gid", 2000, "mode", 0550, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/firmware", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/firmware/mt6580", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/fmr", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/fmr/mt6580_fm_cust.cfg", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/init.d", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", "0x0", "selabel", "u:object_r:userinit_exec:s0");
- set_metadata("/system/etc/init.d", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/init.d/00banner", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/init.goldfish.sh", "uid", 0, "gid", 2000, "mode", 0550, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/mddb", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/nano", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/permissions", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/ppp", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0555, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/radvd", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/radvd/radvd.conf", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/security", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/security/cacerts", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/ssh", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/ssh/sshd_config", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/E", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/terminfo/a", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/a/ansi", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/c", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/terminfo/d", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/d/dumb", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/terminfo/h", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/h/hurd", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/terminfo/l", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/l/linux", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/m", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/etc/terminfo/p", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/p/pcansi", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/r", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/s", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/v", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/w", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/terminfo/x", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/etc/wifi", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/recovery-from-boot.p", "uid", 0, "gid", 0, "mode", 0644);
- set_metadata("/system/vendor", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/vendor/lib", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/vendor/lib/drm", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0644, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/vendor/lib/drm/libdrmwvmplugin.so", "uid", 0, "gid", 0, "mode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/vendor/lib/hw", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/vendor/lib/mediadrm", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata_recursive("/system/xbin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", "0x0", "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/xbin/librank", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/xbin/procmem", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/xbin/procrank", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
- set_metadata("/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");
- show_progress(0.020000, 10);
- run_program("/tmp/install/bin/backuptool.sh", "restore");
- show_progress(0.050000, 5);
- ui_print("-----------> Flashing Kernel...");
- package_extract_file("boot.img", "/dev/block/platform/mtk-msdc.0/by-name/boot");
- ui_print("-----------> Flashing Google Android one logo...");
- package_extract_file("logo.bin", "/dev/block/platform/mtk-msdc.0/by-name/logo");
- ui_print("**************************************************");
- show_progress(0.200000, 10);
- package_extract_dir("supersu", "/tmp/install/bin/supersu");
- run_program("/sbin/busybox", "unzip", "/tmp/install/bin/supersu/supersu.zip", "META-INF/com/google/android/*", "-d", "/tmp/install/bin/supersu");
- run_program("/sbin/busybox", "sh", "/tmp/install/bin/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/install/bin/supersu/supersu.zip");
- unmount("/system");
Add Comment
Please, Sign In to add comment