[Miscellaneous Android Development] techyzen101:
[GUIDE] Huawei Y5C | Y541-U02 | Honor Bee : Stock ROMs, ROM Dumping, Root & Flashing

Disclaimer

Upon following this guide, you may or may not achieve same results with others. I am not held responsible for anything unexpected that may happen to your device. Do your research first regarding the areas you do not quite understand. Follow at your own risk.​

Prerequisites

Spreadtrum Flash Tool R4.0.0001 (PAC Flashing) or Flashfire (Zip flashing)

SPRD USB Driver (needed for PAC Flashing)

Male to Micro USB Cable (needed for PAC Flashing)

7-Zip

Root with SuperSU (just below, needed for first time Zip flashing)

Packet (*.pac) or Zip ROM (found below)

Rooting

Install and gain root through KingRoot android application.

Restart your phone. (I've encountered a sudden reboot when doing the steps below without this)

Replace KingRoot with SupeSU through this script.

Once the archive is downloaded, extract it. There will be a folder named root where you extract it.

Download and open Terminal Emulator.

Change directory to the root folder that was extracted:

cd /path/to/root

Then ask for root permissions:

su

Now run the first script:

sh level1.sh

Run the second script:

sh level2.sh

Leave the terminal running and open KingRoot.

Press the button at the upper right corner, and choose general settings.

Scroll down and press uninstall.

Uncheck backup and press OK.

After KingRoot has finished uninstalling, go ahead and uninstall Purify as well.

Go back to the terminal and run the third, last script:

sh level3.sh

Again leaving the terminal running, install SuperSU and open it.

Let it update the root binary through Normal method, and restart.

Notes:

Currently SuperSU's prompt for applications asking for root permissions does not work, but, changing the setting to "grant" will. Just return it to "deny" afterwards, for security. That's the workaround for now.

Dumping

Before doing anything to your device, it is advised to create a ROM dump/backup beforehand. Also make sure you have a lot of free space on your internal storage.​

Open up terminal and gain root permissions:

su

Then get the partition details:

ls -al /dev/block/platform/sprd-sdhci.3/by-name

Dump each partition (X) with its name (Y):

dd =if/dev/block/mmcblk0pX of=/sdcard/Y.img

Do not forget to dump the two bootloaders:

dd =if/dev/block/mmcblk0boot0 of=/sdcard/splloader.img

dd =if/dev/block/mmcblk0boot1 of=/sdcard/uboot.img

Flashing

PAC

Extract all the downloaded archives and install the driver (either 32install for 32/86bit or 64install for 64bit OS).

Open the flash tool by double clicking the executable named "ResearchDownload".

Once the flash tool opens, click the single gear button at the top left.

Find and open the PAC ROM.

Press the play button.

Power down the device, hold the volume down button and plug it into the PC.

The flash tool will then recognize the device and start downloading binaries to it.

Once the progress column shows "PASSED", the binary download is finished and the device can now be safely unplugged.

Remove the battery, reinsert, and power the device.

Zip

Gain root if not already done so.

Open Flashfire. (press agree and the other one is up to the user)

Press the red circular button with a plus sign ( + ) on the bottom right, and choose Flash ZIP or OTA.

Find and open the downloaded Zip ROM.

There will be a pop-up for a few settings, leave it as is and press the check icon at the upper right.

Now when the pop-up closes, swipe down and press the Flash button with a lighting icon.

Press OK, and let it flash.

The device will reboot once flashing is finished.

Unbrick Stock PAC ROM

Y541-U02V100R001C567B116

# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=HUAWEIY541-U02
ro.build.version.sdk=19
ro.build.version.codename=REL
ro.build.version.release=4.4.2
ro.build.version.security_patch=2016-03-01
ro.build.version.base_os=
ro.build.date=Mon May 23 22:44:32 CST 2016
ro.build.date.utc=1464014672
ro.build.type=user
ro.build.user=
ro.build.host=a7fcf16085c3
ro.build.tags=ota-rel-keys,release-keys
ro.product.model=HUAWEI Y541-U02
ro.product.brand=HUAWEI
ro.product.name=Y541-U02
ro.product.device=HWY541-U
ro.product.board=Y541-U02
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=HUAWEI
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=sc8830
# ro.build.product is obsolete; use ro.product.device
ro.build.product=Y541-U02
# Do not try to parse ro.build.description or .fingerprint
ro.build.description=Y541-U02-user 4.4.2 HUAWEIY541-U02 135 ota-rel-keys,release-keys
ro.build.fingerprint=HUAWEI/Y541-U02/HWY541-U:4.4.2/HUAWEIY541-U02/C567B116:user/ota-rel-keys,release-keys
ro.build.characteristics=default
ro.zygote.disable_gl_preload=false
# end build properties
#
# from device/ontim/Y541-U02/system.prop
#

ro.sf.lcd_density=240
ro.sf.lcd_width=54
ro.sf.lcd_height=96
ro.opengles.version=131072
ro.product.hardware=SP7731GEA_V1.0.0

debug.hwui.render_dirty_regions=false

ro.config.hw_showSimName=true
ro.config.hw_hideSimIcon=false
ro.config.coop_stk1comp=com.android.stk1;com.android.stk1.StkLauncherActivity

# Bluetooth OPP low speed for save power
debug.bt.lowspeed=false

persist.ttydev=ttyVUART0

# delay for ConnectivityChange broadcast (ms)
conn.connectivity_change_delay = 0

ro.product.partitionpath=/dev/block/platform/sprd-sdhci.3/by-name/

# Default ecclist
ro.ril.ecclist=112,911,#911,*911

persist.modem.w.enable=1
persist.modem.w.nvp=w
ro.modem.w.dev=/dev/cpw
ro.modem.w.tty=/dev/stty_w
ro.modem.w.eth=seth_w
ro.modem.w.snd=1
ro.modem.w.diag=/dev/slog_w
ro.modem.w.loop=/dev/spipe_w0
ro.modem.w.nv=/dev/spipe_w1
ro.modem.w.assert=/dev/spipe_w2
ro.modem.w.vbc=/dev/spipe_w6
ro.modem.w.id=0
ro.modem.w.fixnv_size=0x40000
ro.modem.w.runnv_size=0x60000
persist.sys.engpc.disable=0

ro.modem.wcn.enable=0
ro.modem.wcn.dev=/dev/cpwcn
ro.modem.wcn.tty=/deiv/stty_wcn
ro.modem.wcn.diag=/dev/slog_wcn
ro.modem.wcn.assert=/dev/spipe_wcn2
ro.modem.wcn.id=1
ro.modem.wcn.count=1
camera.disable_zsl_mode=1
ro.digital.fm.support=1

ro.config.ksm.support=true

#supprot storage path change
ro.storagepath.change.support=true

#supprot quickcamera
ro.quickcamera.support=true

#zram config
ro.config.zram.support=true
ro.board_ram_size=mid

# SPRD: add low cost low memory @{
ro.config.low_ram=true
# @}

#if our product not support drm,set as false
drm.service.enabled=true

# hotspot development
ro.hotspot.enabled=1

# this product does not support bt and softap coexist
ro.btwifisoftap.coexist=true
# SPRD: add support hwrotation
ro.sf.hwrotation=0

#SPRD: add support follow sim system config
persist.support.fssc=1

#SPRD: add for cphs
persist.support.oplpnn=true
persist.support.cphsfirst=false

#SPRD: add support virtualnet
persist.support.virtualnet=true

#ontim:add support huawei wlan setting
persist.huawei.wifi.setting=true

#SPRD: add support encrypt
ro.encrypt.devices.support=0

#SPRD: add support vt
persist.sys.support.vt=false

#SPRD: delete baseband version
ro.show.basebandversion=false

#SPRD: mccmnc config path
ro.mccmnc.info.path=/globalinfo/

#for app can install on sd and primary is internal
ro.storage.installonsd=true

# Audio Dump Information for HAL
audio.dump.show.switch=0
hw-k3-burst-supported=1
# adapter for HuaWei PIN(keyguard apk) added by liulibo
ro.config.is_sprd=true
#avoid gallery function:chang voice pic to video.
ro.config.hw_trans_voiceimage=false
#avoid gallery map function
ro.config.support_gallery_map=false
#wifi_country
ro.config.custCountryEnable=ir,sd,sy,kr

# SPRD: DC lowpower
sys.dc.lowpower=true

ro.systemui.flashlight.timeout=0

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.build.version.incremental=C567B116
ro.product.sw.internal.version=Y541-U02V100R001C567B116_user_30323_160523.223910
ro.product.sw.external.version=Y541-U02V100R001C567B116
ro.build.cust.id=Y541-U02V100R001C567B116
ro.versioninfo.delivery=MocorDroid4.4_TShark28_2341A_W15.16.5
ro.com.android.dateformat=MM-dd-yyyy
ro.carrier=unknown
persist.sys.sprd.modemreset=1
ro.adb.secure=1
persist.sys.sprd.wcnreset=1
ro.xtsdisableverify=1
ro.storage.flash_type=2
keyguard.no_require_sim=true
ro.com.android.dataroaming=false
ro.msms.phone_count=2
persist.msms.phone_count=2
persist.msms.phone_default=0
ro.modem.w.count=2
persist.sys.support.vt=false
sys.usb.gser.count=4
lmk.autocalc=false
persist.sys.data_reserved=100
ro.config.ringtone=Huawei_Tune.ogg
ro.config.ringtone0=Huawei_Tune.ogg
ro.config.ringtone1=Huawei_Tune_Piano.ogg
ro.config.notification_sound=Bongo.ogg
ro.config.alarm_alert=Creamy.ogg
persist.sys.wakeup.enable=0
ro.config.hw_timeformat=true
ro.config.timeformat=24
persist.sys.modem.diag=,none
persist.sys.slog=0
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=96m
dalvik.vm.heapsize=256m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
ro.setupwizard.mode=OPTIONAL
ro.com.google.gmsversion=4.4_r7
ro.build.display.id=Y541-U02V100R001C567B116
ro.config.max_starting_bg=3
ro.com.google.clientidbase=android-huawei
ro.com.google.clientidbase.yt=android-huawei
ro.com.google.clientidbase.am=android-huawei
ro.com.google.clientidbase.gmm=android-huawei
ro.com.google.clientidbase.ms=android-huawei
ro.dual.sim.phone=true
ro.config.hw_coop_no_setting=true
ro.config.remove_subscribe_menu=1
ro.config.hw_coop.ontim=true
ro.config.hw_coop.show_Sun=1
ro.config.app_big_icon_size=90
ro.config.hwcust_drawbgicon=false
ro.config.hw_coop_delay=true
ro.config.hwtheme=1
persist.radio.langu.rule=0
data.icon.onlyconnected=true
persist.sys.certification=103323
ro.config.is_support_my=true
ro.product.hwinternal.version=Y541-U02V100R001C567B116
ro.product.hwinternal.ver.time=160523.223910
persist.sys.dalvik.vm.lib=libdvm.so
net.bt.name=Android
ro.floatkey.show=false
dalvik.vm.stack-trace-file=/data/anr/traces.txt

Notes:

These ROMs are repacked and tested first before being posted, so if one of these does not work, try another. If none worked, just wait, others will share a new partition dump.

These ROMs do not contain a system, custom and cache dump because these are for unbricking for now. Prerooted full repacks are coming soon.

Stock ZIPs

Notes:

As the device refuses any custom or modified stock binaries, Flashfire is the only way to go to install zips.

These are pre-rooted, deodexed, zipaligned, de-bloated, and of course tested.

None at the moment.

Troubleshooting

If the flash tool fails to download, either the downloaded ROM is incompatible with the device, or the cable is loose.

If the device shows a white screen but the booting sound is heard, try another one.

Support

If anyone happens to have the same device model in fully working condition but seems to be different, kindly make a partition dump of it and PM the link, so it can be processed and uploaded here.​

Credits & Sources

[MENTION=5769394]najoor[/MENTION] for the original KingRoot to SuperSU script.

GSM Flashfile Website

[MENTION=6674985]Kingxteam[/MENTION] for KingRoot

[MENTION=631273]Chainfire[/MENTION] for SuperSU & Flashfire