yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend Mate 2] :
I'm back on stock so let me know how that change works out. Interesting indeed. Still have to get with you on build time. Couldn't do it over the weekend. After syncing the source and running breakfast then brunch it popped off on some build errors so I have to go back through and look at it. Couldn't do much though since my youngest brother got married on Saturday.
[Huawei Ascend Mate 2] superbass311:
I will tonight. Fresh install did not fix the problem...
[Huawei Ascend Mate 2] Iguanadon:
[MENTION=3282752]u-ra[/MENTION] pm sent
[Huawei Ascend Mate 2] superbass311:
I'm having the same Camera issue. I did a fresh install 3 times with gapps and still no fix. I have till 10am to fix this. hhahah. Not having both cameras working really is frustrating..

---------- Post added at 08:18 AM ---------- Previous post was at 08:14 AM ----------

I am typing.. < su -c dmesg > /sdcard/dmesg.log > and nothing is happening.. is the spacing correct?
[Huawei Ascend Mate 2] superbass311:
[MENTION=3282752]u-ra[/MENTION] wait.. here is the log. tell me if this is correct and what you asked for.
[Huawei Ascend Mate 2] :
[MENTION=3282752]u-ra[/MENTION], I am sure there is probable cause but my curiosity has gotten to me so I must ask. Is there a reason why SELinux is set to enforcing and not permissive?
[Huawei Ascend Mate 2] superbass311:
I am rolling back to L309 because of the front facing camera issue. I understand not everyone has it which makes it even more frustrating. However it is also confirmed by [MENTION=4389792]Iguanadon[/MENTION] also. He posted the pic and i posted the dmesg.log I will reflash if someone finds a fix. until then back to my L backup from TWRP... so close.....
[Huawei Ascend Mate 2] Iguanadon:
its being worked on now. I'm sure a fix is soon to surface. :D carry on and check back.
[Huawei Ascend Mate 2] superbass311:
I believe you but how do you know is there a separate CM form?
[Huawei Ascend Mate 2] MikeyLee:
Did you try another install? What gapps are you flashing also?

---------- Post added at 07:49 AM ---------- Previous post was at 07:46 AM ----------

Do you think this would work? http://xdaforums.com/showthread.php?t=2524485
[Huawei Ascend Mate 2] superbass311:
I tried multipul wipes and installs. I even rolled back to my stock L309 backup then updated my twrp again then installed cm and then installed gapps then it restarts and boots fine and everything seems to work except the front camera option is missing on all apps i install from the playstore plus the stock camera app. the gapps im using is https://github.com/cgapps/vendor_google/tree/builds/arm at the bottom

would gapps cause a camera issue?

gapps-5.1-arm-2015-07-17-13-29.zip the last one on the page.
[Huawei Ascend Mate 2] MikeyLee:
That's the same gapps I used too. Not sure if it would cause it or not cause I'm not sure what all is in it but I did definitely use the same one. gapps-5.1-arm-2015-07-17-13-29.zip
[Huawei Ascend Mate 2] superbass311:
I'm back on B309 for the day until I get home. Camera is working again. Lol. Such a lil bug but huge deal breaker as my daily driver today hahha
[Huawei Ascend Mate 2] MikeyLee:
Since you are back on 309, can you do me a huge favor? Could you pull the stock clock apk and upload it for me? I like that one better than the one in CM. I over slept today because the snooze setting is different lol
[Huawei Ascend Mate 2] superbass311:
Do I do that with titanium backup?
[Huawei Ascend Mate 2] robertbarber:
I couldn't get CM to install. Used TWRP 2.8.7.0 to delete the system, cache, and dalvik cache before installing it so it would be a clean install and it I got an error it couldn't update something in the zip and it failed. I am restoring my backup I made now and will post the logs when I can. Mine is as stock as can be. I Purchased it from Huawei online.
[Huawei Ascend Mate 2] medwatt:
Will that work? I've tried doing that previously with other apps. Always failed to install.
[Huawei Ascend Mate 2] u-ra:
The two of you (so far) have a different front facing camera sensor than the rest of us. It will be fixed in the next update. (It will be out when it's ready.)
[Huawei Ascend Mate 2] superbass311:
Yay.. Will install soon as its out
[Huawei Ascend Mate 2] MikeyLee:
You would have to use something like Root Explorer and go to root/system/app and copy it from there to your SD card. Then upload it somewhere or even to this thread.
[Huawei Ascend Mate 2] rdbud:
I'm having the same SD card issues. Is there a fix?
[Huawei Ascend Mate 2] xordos:
Yes, i have tested the fix and it resolved the issue. So hopefully it will be included in next nightly build.

Edit: just saw the 0921 build, flashing now
[Huawei Ascend Mate 2] rdbud:
Oh wow, that's awesome. Thanks!
[Huawei Ascend Mate 2] antinerd:
Fingers crossed! Come on lucky flash! :D
[Huawei Ascend Mate 2] xordos:
Yes 0921 build looks good :) but since I already had the fix, thou flashing should overwrite that, but if anyone else had the sdcard issue, please re-confirm.
[Huawei Ascend Mate 2] u-ra:
Updated the TWRP link in the first post to point to mdmower's unofficial builds. The latest one has F2FS support and the zero length files bug fixed.
[Huawei Ascend Mate 2] MT2-User:
TWRP of mdmower's unofficial builds is different from cm-12.1-20150921-NIGHTLY-mt2-recovery.img?
[Huawei Ascend Mate 2] Moody66:
The cm recovery isn't twrp.
[Huawei Ascend Mate 2] TheGeekRedneck:
My HAM2 is refusing to charge after today's nightly build. At first I thought my cable or micro usb port had gone bad, but then I figured out that it will charge in recovery just fine. The charging light will come on if it's plugged in in a powered off state, but then the phone becomes unresponsive until you unplug it. Anyone else seeing this issue today? I'm going to try plugging it into a pc to see what it will do...
[Huawei Ascend Mate 2] Kid_Ding:
Same here, no charge via pc usb on today's build. Also battery level dropped to 50%, then after reboot jumped back to 79%.
[Huawei Ascend Mate 2] MT2-User:
My bad. Got confused.
[Huawei Ascend Mate 2] Alucai Vivorvel:
So, the SD card issue is resolved, but now there's a battery issue? Should I hold off on updating from 0917 then?
[Huawei Ascend Mate 2] MT2-User:
Not charging either.

Edited: restored to previous nightly.
[Huawei Ascend Mate 2] MT2-User:
Battery dropped from 75% to 3% in about 10 hours with only 2 hours of screen on (nightly-20150921).
[Huawei Ascend Mate 2] xordos:
Yes, same here.

Looks like the USB port is disabled, it can't charge, and adb also not working.

And as usual, attached the dmesg output for 0921 build.
[Huawei Ascend Mate 2] Moody66:
Looks like it changed here:

arch/arm/boot/dts/huawei_mate2_vc/huawei-charger.dtsi
[Huawei Ascend Mate 2] rdbud:
Glad to see I'm not the first to bring up the charging issue. It does appear to charge if the power is off.
[Huawei Ascend Mate 2] rdbud:
Updating from 9/21 build to 9/22 took my battery from 48% to 6%. Yikes.
[Huawei Ascend Mate 2] u-ra:
Don't panic, 6% is correct. 9/21 had a bug in device tree which caused the battery driver fail to load. 48% was a dummy value.
[Huawei Ascend Mate 2] rdbud:
Oh, OK. That battery indicator was all over the place starting on the 9/21 update. Went from 65% to 50% on that update. I heard about the charging issue so I turned it off to see if it would charge with the power off. Turned it back on and it was up to 78%. Dropped to 48% from normal use, then down to 6% after the 9/22 update. Wacky stuff.
[Huawei Ascend Mate 2] xordos:
0922 build battery is charging
[Huawei Ascend Mate 2] antinerd:
Flashed 0922 and I can confirm that the phone is charging, 128GB SD card is fine, and battery life feels normal.
[Huawei Ascend Mate 2] Alucai Vivorvel:
I, too, flashed 0922 from 0917 via cmupdater (too many changes between versions to warrant using CyanDelta), can confirm SD card is being read correctly and it is plugged in and charging.

Edit: Although, it conked out in the middle of charging via USB. Plugged it into the wall and now it seems fine... odd, though, considering it's charged via the same USB cable and port before.
[Huawei Ascend Mate 2] divhandyman:
Anyone on the 9/23 build yet?

Update I just flashed it with no issues yet.
[Huawei Ascend Mate 2] ScoobSTi:
I'm not sure if anyone can help because I'm still using the original preview first posted on this thread (I can't deal with nightlies for my DD), but I just experienced a hiccup of sorts.

I was just changing some sound settings (ringtones/notifications, nothing heavy) and when I finished I pressed the power button to turn the screen off. A few minutes later I pressed the power button to turn the screen back on and use the phone again but nothing happened. I kept pressing and pressing and then decided to hold it down to force reboot. It took quite a while to get past the boot screen and animation, and now it says it's optimizing all my apps. Any ideas why?
[Huawei Ascend Mate 2] Alucai Vivorvel:
No idea what's causing that, but I'd strongly suggest you update to one of the latest builds (requires you first upgrade to B322 though). Support is only getting better for this phone, and that includes things like battery life. Just update to one of the ones you know is stable (0923 seems to be so far) and don't update further unless you know nobody is having problems. It will make it easier for us to help you if your configuration is the same as ours instead of so heavily outdated.
[Huawei Ascend Mate 2] ScoobSTi:
That's the thing, I need a stable build but it seems each build has different issues, so that's why I've been holding off.
[Huawei Ascend Mate 2] superbass311:
Run PAC 9.9.15 that's the most stable version out of all 3 ROMs and wait for a the stable builds.
[Huawei Ascend Mate 2] MT2-User:
They are nightlies only.
[Huawei Ascend Mate 2] Moody66:
Wipe cache and dalvik cache.
[Huawei Ascend Mate 2] :
[MENTION=5530607]Moody66[/MENTION], my build took 3 hours and 16 minutes. It was successful. The build was cached so next time it will be much quicker. Let me know how it works out for you and your system if you get around to it.
[Huawei Ascend Mate 2] Moody66:
Nice. Mine should be close. Qosimo gaming laptop.
[Huawei Ascend Mate 2] :
After our discussion not too long ago I believe it won't be too much of a difference. You have an HDD though so your read and write will hold you back slightly than it would be for me. Though still, I don't suspect it will render your system too greatly while compiling. I'm looking forward to getting OmniRom up and going now that I finally got everything working like it should in my environment. :D
[Huawei Ascend Mate 2] Moody66:
Awesome. Will find out tonight. Kid will be going to bed early. Let the fun begin! Lol. I hope I don't have the issue you had at start. Once it starts I ain't sleeping until o get it done. I'm to old for all nighters. Lol
[Huawei Ascend Mate 2] ArkAngel06:
Haven't been around in awhile, I got a OnePlus 2, but actually found myself missing my Huawei with a proper CyanogenMod. CM is quite broken on the OnePlus 2 at the moment.

Anyway, I see that the only thing still broken in this ROM is the Nova Launcher transparency. I have no idea why that is, every other phone with CM12 has transparency working. Is there a fix yet or is there anyway a dev can look at why this might be?

I understand that fixing a 3rd party app isnt on the CM devs agenda, but Nova Launcher is by far the number one launcher for Android enthusiasts, aka, CyanogenMod users. Its worth a fix, if it can be from the CM side.
[Huawei Ascend Mate 2] robertbarber:
have you checked out the beta version of nova to see if it works or not?
[Huawei Ascend Mate 2] superbass311:
Apex Launcher works fine if it helps
[Huawei Ascend Mate 2] ArkAngel06:
I should be on the beta, since I'm in the nova test group.

---------- Post added at 12:48 PM ---------- Previous post was at 12:47 PM ----------

Apex works, and its what I have to use for now, but it leaves a lot to be desired compared to Nova.
[Huawei Ascend Mate 2] robertbarber:
The newest beta of nova launcher is 4.1.0 beta 3.If you don't have that one yet you can find it at http://www.apkmirror.com/apk/teslac...va-launcher-4-1-0-beta3-android-apk-download/ or the play store should have the update ready to download for you.
[Huawei Ascend Mate 2] ArkAngel06:
That's what I'm on, it doesn't have transparent bars.
[Huawei Ascend Mate 2] robertbarber:
Have you tried the setting under look and feel to enable transparent notification bar. try it and see if that helps any.

I just tried it on PAC the 9-9 build and it seems to wok somewhat. its not totally clear but you can see behind it.
[Huawei Ascend Mate 2] ArkAngel06:
Yeah, that's how mine is. It's partially transparent...maybe 50%. It does not look good.
[Huawei Ascend Mate 2] ArkAngel06:
Also, anyone have Hangouts crashing fairly often?
[Huawei Ascend Mate 2] :
Hangouts works great for me.
[Huawei Ascend Mate 2] MT2-User:
It also works for me.
[Huawei Ascend Mate 2] MikeyLee:
Several of the launchers that should be transparent are still not. Nobody has really addressed it that I am aware of. Just suggested other launchers. That being said, Apex is transparent as it should be :P
[Huawei Ascend Mate 2] antinerd:
Funny you should mention that. I'm on 0923 and I've had 2 spontaneous reboots in the messaging app while composing text messages. However it only happened 2 time in the 17 messages I sent.

Perhaps it's just my phone.
[Huawei Ascend Mate 2] :
After compiling cm12.1 on my machine I was successful at running the system partition as f2fs along with data/internal_SD, and cache. ROM runs completely smoother now :). Its a keeper lol.
[Huawei Ascend Mate 2] xordos:
Cool, i think maybe should learn build cm, though i will just blindly build it, but running it in my own phone will feels good. :)
[Huawei Ascend Mate 2] u-ra:
Can you grab /proc/last_kmsg? See here for instructions.
[Huawei Ascend Mate 2] superbass311:
How To Videos

[MENTION=4968780]ScoobSTi[/MENTION]

Huawei Ascend Mate 2 How-To-Videos.

https://youtu.be/OwY-K6-pmJU - How to flash TWRP

https://youtu.be/VOo5aPe0eQg - How to backup B322 with TWRP

https://youtu.be/Tq27VfRYKYQ - How to install a custom ROM

https://youtu.be/FEOK5N1a1gU - How to update CM Nightly builds

https://youtu.be/zPp0rgtFzsA - How to restore a ROM from a backup

https://youtu.be/z5OwJgBu6GM - How to install Xposed

https://youtu.be/aCMOuNa8Ew0 - How to restore stock recovery

https://youtu.be/SlWtfvf-XYg - How to restore a backup from a different build or ROM.

https://youtu.be/CnmtGjcR0_M - How to Flash PAC-ROM from CM

I will add the links into the video description shortly or tomorrow.
[Huawei Ascend Mate 2] :
Can anyone confirm if the stock CM camera is installed on your nightly ROM. Preferably 092515. Camera2 shows in /system/app but isn't installed nor wants to install for that matter so figured I would get some verifications from others on here. I did try out a third party camera app on the play store and it works. Mainly curious if this is the same with other people.

I probably should add that my system partition is formatted to f2fs using nightly 092515, and yes I did figure out a way to get around ext4 system.new.dat.
[Huawei Ascend Mate 2] ScoobSTi:
Great stuff, added to index! :good:
[Huawei Ascend Mate 2] xordos:
I have install 0925 nightly (and gapps), this is the only camera app it has from day 1, and it works fine:
[Huawei Ascend Mate 2] :
Thanks, and yea, it was always there for me as well but tonight it was gone. I checked /system/app and its definitely still there but isn't installed. Tried installing it manually but to no prevail. I suspect maybe this happened after I hijacked the 092515 nightly ROM to see if I could get it to work with my system partition formatted as f2fs which I did lol. Will fix it on my end but glad to know this isn't nightly related.
[Huawei Ascend Mate 2] xordos:
Ok, just checked a few others system apps that all has only apk file, this one has extra lib/arm direcotry, but not sure if this matters or not.
[Huawei Ascend Mate 2] :
That's normal. The problem isn't related to the official builds itself. Has something to do with me hijacking it so I can run it with full f2fs support. Will definitely look into it. Thanks again.
[Huawei Ascend Mate 2] :
It isn't hard to do honestly. I can walk you through the steps via PM or hangouts if you want to give it a shot. Then after you make your first successful build you can start experimenting with the source for the purpose of learning and gaining experience. I helped you out with TWRP a little while ago and you did great with that so this shouldn't be too much of a challenge for you.
[Huawei Ascend Mate 2] superbass311:
Can yall just make a separate thread so I can follow along?
[Huawei Ascend Mate 2] :
Maybe I will just make a thread/guide then lol.

---------- Post added at 04:12 PM ---------- Previous post was at 03:49 PM ----------

Eh, guide isn't needed :). Found this:

https://wiki.cyanogenmod.org/w/Build_for_mt2

I read over it and it is enough to get the job done. For creating directories I use /android/cm instead of /android/system. This is because I have other sources as well such as Omni and I don't want to get them confused.

Where it talks about extracting propriety blobs, you can skip that. The vendor blobs source is located in the OP's thread. Grab that instead and go to /android/cm/vendor. Create a folder called huawei, then create another folder inside of huawei called, mt2. Grab all contents from the vendor blobs source within the mt2 directory and copy paste. Other than what I mentioned the rest of the guide will suffice.

---------- Post added at 04:22 PM ---------- Previous post was at 04:12 PM ----------

Oh, and as for using ccache so future builds after the first initial build will be faster I add an additional line to ~/.bashrc.

I also add:

export CCACHE_DIR=/home/shm/android/ccache

/home/shm will be different for you guys ;).

This will point ccache to a custom location within the ~/android directory and target a folder called ccache for consistency with having everything else there as well. My preference of course. You can do it differently if you like. Just make sure to create ~/android/ccache manually.
[Huawei Ascend Mate 2] xordos:
Thanks, I actually just finished sync, get blob, based the same guide, it failed to compile and I didn't investigate yet since it is too late last night. You info is right in time, Thanks!
[Huawei Ascend Mate 2] Moody66:
Same thing happened to SHM and myself. Both got it fixed. Last time mine compiled but bootloop was all i got. Working on that now. SHM got his done anyway. Lol.
[Huawei Ascend Mate 2] :
OK, so I'm not going crazy lol. Did a clean install with nightly 20150926.

1. The camera app isn't installed properly and cannot be used.

2. No, I haven't looked into the reasoning behind it but I am making it known. I don't really use the camera so it isn't a big deal. I'm merely pointing out the obvious.

3. Yes, third party camera apps work.

4. Yes, I get the same results when I build CM12.1 on my machine.
[Huawei Ascend Mate 2] Alucai Vivorvel:
Camera app works fine on mine, delta updated to 0926 this morning. I mainly use Google Camera but the comparatively lackluster system app is fine. I guess it's because it's not a clean install?
[Huawei Ascend Mate 2] xordos:
So, when you say clean install, is it formatted as ext4?

I just did same in my phone, wiped system, data (exclude internal storage), and 2 caches, installed CM 0926 nightly, gapps 5.1-arm-2015-07-17-13-29.zip.

Camera app is showed under letter "C", and working fine.

Is your camera working in early CM nightly?

BTW, are you installed some themes? I can see most of your app icon is different with CM stock showing in mine. Maybe try uninstall the theme and see?
[Huawei Ascend Mate 2] :
Correct, wiped everything, back to ext4, and restored to B322. Went back to CM from stock rom using nightly 20150926. Camera works just fine but the camera app for CM doesn't get installed even though it exists at /system/app. On previous CM ROMs this was never the case. I find it unusual but since I don't really ever use my camera it isn't on my priority list to figure out and resolve. Though, I wanted to share it in case it becomes commonly known with others.

For the heck of it I decided to compile cm12.1 on my computer. Again, I went back to stock b322, then installed my unofficial build and the results were the same. Camera app exists but isn't installed. Camera works fine though.

I confirmed that my camera was working by using a third party camera app on the play store.

---------- Post added at 01:05 AM ---------- Previous post was at 12:58 AM ----------

It isn't theme related either. I have already verified that.

---------- Post added at 01:09 AM ---------- Previous post was at 01:05 AM ----------

Disregard everything I just said. I used tapatalk to access the camera. It gave the option to choose the CM stock camera. It seems to be installed and working now but the icon isn't listed under the C category lol.

---------- Post added at 01:10 AM ---------- Previous post was at 01:09 AM ----------
[Huawei Ascend Mate 2] MT2-User:
Camera works for me on 0919 or 0926 (dirty flash over 0919).
[Huawei Ascend Mate 2] superbass311:
SHM when you go to all apps under settings does it show there?
[Huawei Ascend Mate 2] :
It is now lol. With no explanation either. Still no icon in the c category though.. I'm giving this issue more attention than I wanted to :-/. Anyways, will leave it be and see if it fixes itself. Not a concern for me at the moment.
[Huawei Ascend Mate 2] xordos:
Hmm, just want to report back, after retrieve blobs from git, I don't need to change anyfile, whole build completed first try, and dirty flash and it boot up fine!! Everything is same thou but the kernel version has my machine name. :)

Really no experience to help your bootloop, maybe try resync the code again?
[Huawei Ascend Mate 2] Moody66:
One of my modifications. Lol. I will get it.
[Huawei Ascend Mate 2] xordos:
Ah, i see. Cool! :)
[Huawei Ascend Mate 2] :
Congratulations man! How long did your first build take? Hope you used ccache lol. Will save you loads of time.
[Huawei Ascend Mate 2] xordos:
Hehe, actually I lied, the ssh client got killed once by my wife, (I usually use screen but it doesn't allow me to scroll back to check error, so I ran in normal ssh this time), so I continued the build, I guess it took at least 4 or 6 hours. I should have good timing next time (after clean of course). The build machine is an old but solid i3-3225.

Yes ccache is on and use value from the wiki link.

Edit:

OK, got bored, so sync'ed the repo this morning, and cleaned the build directory and ccache, the full build took 4h17min :)

Package Complete: /u12/android/cm12.mt2/out/target/product/mt2/cm-12.1-20150927-UNOFFICIAL-mt2.zip

#### make completed successfully (04:17:01 (hh:mm:ss)) ####
[Huawei Ascend Mate 2] Alucai Vivorvel:
I know you said you wanted to leave it alone for now, but, and this is perhaps a dumb question, have you tried a different launcher?
[Huawei Ascend Mate 2] :
Not a dumb question in my book, but to answer your question, no I haven't. I personally don't use other launchers such as Nova for example. Never liked them personally, but to each their own I suppose lol. The reason I am not bothered by it at the moment is because I have a python script which handles system.new.dat images and I am currently making a fair attempt to convert/compile this script as low level machine code. I have done this successfully already for a x64 bit machine but my real goal is to cross compile for ARM so that I can intercept these updates and rewrite them in hopes to allow a proper installation with full f2fs support since CM only supports data and cache. A lot of Developers will say it is pointless for system to be f2fs because it mostly is read only but that is not entirely true.