yashsingh1/xdaforums huggingface dataset:
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] xw0lf:
can your work on the kernel for this huawei tablet be useful for other huawei devices with kirin socs to get aosp and lineage custom roms? I'm just trying to see the bigger picture.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] Half Alive:
Man I don't know why you're still interested in this device. Coming from no where and spoiling us with a custom rom and still updating it.

I can't put it in words how much we appreciate this.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] orangpelupa:
whoa awesome! this means adopted storage would work? (the one for merging internal with external storage)
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
No, each device use his own kernel, there's no generally kernel to work in all devices.

Thanks !

Yes, exactly ... I didn't have time to test but there's no reason to not work as the kernel driver is up to date for Android 8.1

EDIT:

Thank you very much for your donation, [MENTION=7218152]earlg100[/MENTION]
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] pranshuTG:
Does this Custom Rom make calls work properly?

Because on stock ROMs, listening to music overs calls like disocrd, it ruins the quality
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] earlg100:
unexpected power drain and wifi issue- build 4.10.2020 - btv w09

Good morning Surdu,

I've installed your lineage 15.1 build from 4.10.2020 two days ago on my btv-w09.

The last two nights I faced a power drain of about 13% each in about 10 hours of laying around.

I checked the consuming apps in systems overview. There are no consuming apps beside "system" with about 8% and "standby" with the rest of the percentages.

This is quite unusual for my m3. Before I switched to lineage I had about 3% of power drain per night (stock).

Maybe it's connected to another issue with the wifi. In the morning m3 always lost the wifi connection to my ubiquity access point (2,4 ghz network). After waking up the m3 I have to hit the wifi button to connect it again. Don't get me wrong, I don't have to type in the credentials again. I just have to open the wifi page and

it reconnects. With stock rom wifi was always been connected.

Hope this feedback helps you for upcoming builds.

Earl Grey
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] xw0lf:
About hard work on kernel.. Maybe it is time to find more developers with interest to reveal all huawei secrets/update kernel source to current state? There are a lot of huawei devices, your work can be used for other devices too.. More developers = more success
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] tek3195:
Any thoughts on signature spoofing to run micro-G ? I tried installing NanoDroid Framework Patcher but ends with "ERROR: 1 Error installing zip file....NanoDroid-patcher-22.6.20200208.zip" after "!! failed to deodex services.vdex".

I got it. Went ahead and installed EdXposed thru Magisk to use fakegapps.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] bejam:
Does this allow safetynet passing? Can you detail your steps?
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] iloveyoutube:
First of all i appreciate for your hard work

but the new rom(4.29) seems to have an lower performance compare to stock rom since my m3 cant play 1080p 60fps well on youtube anymore...

ironically its damn good on every app except for youtube so i have no idea its only weird on only youtube or nah

i mean it can play the video but not well

it has some kind of lack? or smthing...

anyone have same problem with me here?
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] tek3195:
Not on my device but mine may be different. It was not certified in Google Play store when on Huawei firmware. Bought it as a dead hard brick and found unpublished and un-posted test point to revive it. Don't know exactly what was done to it to brick it, but it has never acted right with PlayStore since I've had it running. I believe the previous owner said he had problems with it also. As for detailed steps I can give you a brief account of what I did to get what I have so far. Used the OP's BTV-W09 boot.img and patched it with Magisk Manager. Then installed magisk_patched.img to the boot partition with OP's twrp. I used Aurora Droid to install the 4 MicroG apps and Magisk to install riru core and EdXposed. Once EdXposed Manager was installed I installed fakegapps app and microg self test lit up with all green check marks.

I could not install Magisk via zip in twrp it had no permissions, which led to patching boot.img from OP. By no permissions I mean it was like storage access framework was blocked for the whole device. I could neither install or uninstall anything and the apps I tried to open would force close.

Now it is running great with awesome improvement on battery without google running a million things in background. But no safetynet which I have no need for anyway.

Like I said, my device may be different from the others. Give it a try, it's not that hard to change back if Safetynet doesn't work for you.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] bejam:
Thanks I might try it on the next release as I'll need to do a clean install. For me microg only usrful if safetynet works - opengapps works fine. A quick Google on microg and safetynet and it doesn't look promising.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Hi !

I have some good news for you : Android 10 ( LineageOS 17.1) will be based on Linux kernel 4.4.x instead the older 4.1.18 :)

In other words, I started working on updating the kernel source code from ( actual 4.1.18 ) to 4.4 and I hope that in a few months to be ready along with Android 10 on our device !

Here is a new branch if you want to keep updated to my work ... and pray that things go quickly and that nothing will goes wrong :)

Also, if you want to support my work, do not hesitate to hit "DONATE TO ME" for a coffee or something else ... like always, donations are not required / ( mandatory) but are always welcome !

Thank you very much for your attention !!!
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] tek3195:
Sounds great for us and like a huge undertaking on your part. Can't thank you enough man, pretty bad-ass work. I was just about ready to throw mine away or roll it back to marshmallow and try to sell it for $70. Your work was a game changer for me and mine. I can smile again about my $35.00 investment. I'll shoot you a cup of of coffee or a 12-pack, something man, you deserve it. Thanks
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Thank you very much for your donation :)

EDIT:
[MENTION=10727441]ödicar[/MENTION] thank you very much for your donation :)
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Hi !

Unfortunately I'm stuck on some new kernel patches and I have no clue what's happen here right now !

The idea is that the device no longer starts with these two patches ( 1 & 2 ), but restarts directly in erecovery due to some kernel issues like this one grabbed from sys/fs/pstore/console-ramoops-0 :

I already enabled into our defconfig : CONFIG_NETFILTER_INGRESS=y & CONFIG_NET_INGRESS=y as they are already enabled on kernel Mate 8 defconfig.

The kernel issue it's described in this function : arch/arm64/mm/fault.c

so, we can see that the kernel tried to access some page that wasn't present.

The most annoying problem is that I have to solve quickly this error in order to continue updating the kernel, and even worse is that I still don't know where it can come from or what are those pages that it tries to access and can't find them :(

Anyway, any hint will be much appreciated , thanks !

EDIT:

Now I guess you better understand what a kernel update involves and what knowledge you should have to complete something like this.

EDIT2:

I found where the error came from, but not the solution yet :

Added only this line on our kernel, the device noot boot, even if we don't use the new *dev entry !

EDIT3:

Just passed the kernel issues by this commit, yes it's not right fixed but at least device boot and nothing was broken !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Hi!

I'm sorry, my mistake here ... unfortunately I set all video codecs to a maximum of 30 fps !

Now I can watch this video without any issues ( I tried this one only to test ) ! Please let me know what video you tried and it didn't work, I would like to try the exact one too, to test. Thanks !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] spyfly:
Great work, wasn't expecting to find a custom ROM running this well on the Mediapad M3, the Huawei bloat UI has been getting on my nerves for quite a while.

I've noticed some small bugs though (I'm running the version with FPS):

- when connecting the device via USB, MTP does not seem to work. I had to reboot into TWRP to transfer over some files.

- for some reason downloads in Firefox always fail, no matter if I use the preview or regular version. Chrome and the preinstalled browser have no issues on the other hand.

Amazing work after all, I've sent you a small donation.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Thank you very much for the donation, I'll also install the FPS version to see why MTP doesn't work :)

EDIT:

Please, can you tell me what kind of files you tried to copy? I already tested MTP with Ubuntu & Windows and I can copy from PC to my device into Internal / External Storage & also I can copy from my device Internal / External Storage to PC without any issues. Thanks !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] spyfly:
I was testing MTP with one of my Ubuntu 20.04 Machines and the device would just not connect and throw an connection error. When using TWRP it worked with no issues.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
GAPPS problem, Boot Issue

boot_btv-w09_2020-04-29.img Well, installed ROM .img to system partition, but the only GAPS I could install was for ARM, not ARM-64. When I try to install Gapps ARM-64 I get error pkg is for 8.1.x only and version for this ROM is 9 (SDK 28)

I can only boot to Recovery, not system now, even after wiping data. Trying to boot to system, hangs at the 'device cannot be trusted' nag screen.... 'your device is booting now' I can get back into recovery via fastboot command

Thoughts? Bootloader is unlocked, by the way...
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
I'm using the same version of LOS 15.1 with FPS working and also I'm using the same version of Ubuntu, and there is no issue :)

No, this custom ROM LOS15.1 is based Android Oreo 8.1 SDK 27 !

In conclusion, your problem is given by GApps.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] spyfly:
Thanks for testing, maybe it doesn't work because I don't have an SDCard inserted? I saw you had ADB enabled, but that didn't make a difference.

This is the error I am getting on the desktop when connecting the device in the shown MTP Mode:

This is the same error I've been getting on my laptop.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
I can't figure out why you have this issue ... but I guess that may be due to some drivers issues ... as on my Ubuntu I already installed a lot of drivers for Huawei, adb & fastboot , sdk and so on !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
I've installed boot_btv-w09_2020-04-29.img to the system partition - is that correct?

The GAPPS I'm trying to install is open_gapps-arm64-8.1-pico-20200509.zip

thanks, jf
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
No, boot is ONLY for "boot" partition ;)

And it's also clearly stated into OP to Instructions : on the 12th step !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Hi !

Thanks for your feedback.

I installed the last build on clean ( mean wiped all in twrp apart external storage) and installed at the same time the last Gapps nano available for 8.1 and I have no issues. Maybe you Can try to update in the same way the next update to see if your issues will be fixed.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] earlg100:
I did the same thing. I followed the Guide "[GUIDE]-[Unlock Bootloader+TWRP+Root] Huawei MediaPad M3 8.4 [BTV-W09, BTV-DL09]" and after this for your project "[GUIDE]-[ROM][8.1][LineageOS 15.1 - Huawei Mediapad M3 8.4][BTV-W09, BTV-DL09]" - so I cleaned, wiped, formated all the stuff written there. Even though I installed TWRP 3.0.3, backed up my partitions, I skipped rooting, followed by installation of TWRP 3.3.1.

After that I flashed LOS 15.1 4.10.2020 and in the same batch OpenGApps AMD64 8.1 PICO (as written in the guide) - I think the build from 17.10.2020.

Wiped cache / dalvik.

Next step was flashing bootimage 4.10.2020 for W09 to boot.

Maybe the wifi thing comes up with having 2 Ubiquiti APs in two floors with different Channels...

I will do a clean install with your next build, again.

Besides this: Thanks again for your work. It's really running very well.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Yes, everything is possible from here, I have only one wifi station in my house, so I can't check if I have the same issue :o
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] hanamizukitoki:
Hello friend, is MediaPad M3 8.4 possible to upgrade to LineageOS 17？Thx.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
No. The only custom ROM currently available for the Mediapad M3 is this one; the developer has indicated he will continue to work on upgrades, but 15.1 is it right now.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
New Update of LOS 15.1 !!!

Hi !

A new update of LOS 15.1 for all Beethoven ( Huawei MediaPad M3 8.4 ) devices was released ... Please check OP for download link !

Changelog :

- update security patch to : October 5, 2020

- kernel updated to Android Linux Kernel 4.4.52

- enabled sdcardfs

- fixed Magisk to work along with fingerprint sensor

- switched layout mode to Tablet

- fixed - signal strength scaling ( only LTE devices )

Note about adoptable storage :

- unfortunately, this feature still not working properly

I managed to format my microSD as adoptable storage but : device reboot before the process to be finished and also the device can't boot if the microSD is still on the device ! As a workaraound , device boot and can use microSD as adoptable storage only if you extract your card before to boot and insert it later after device successfully booted .

For the moment I don't know what's wrong and I don't have any clue how to fix this issue, so in order to avoid any issues you shouldn't use this feature - I'll try to fix it on the next updated.

Note about feedback:

- you shouldn't send a feedback only to complain about x,y,z ... stuff it's not working properly - you should send your feedback also when you have no issues - it will help other users to see also what's working corectly !

Note about future updates :

- there will be only 2 or 3 more updates of LOS 15.1 for our device before to switch to Android Pie - LineageOS 16.0 !

- please press "Thanks" button - whenever you download something - this is not just your appreciation for my work , but also help me to count who's still interested to this Rom.

- after I'll switch to Android Pie, I will continue to update LOS 15.1 only provided that at least 5 users are interested in this ROM ( LOS 15.1 )

- in other words, if there will be only 3 or 4 appreciations on a future update of LOS 15.1, I'll stop released new updates, because for me it means that only 3 or 4 user still use this ROM ! - that is why it is very important to leave a mark that you are still using this ROM ( pressing the "thanks" button will cost nothing, and is done in a fraction of a second )

Screenshot :
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] pranshuTG:
[MENTION=2335078]surdu_petru[/MENTION]

Did you try to unmount and remount the sdcard?
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
When ? It seems to work (I don't know if it works correctly) only if we restart the device without the card inserted - and we need to introduce it later after the device has booted successfully !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] pranshuTG:
I mean when the device boots maybe add a script that automatically unmounts and remounts the sdcard

---------- Post added at 10:08 AM ---------- Previous post was at 10:06 AM ----------

If unmounting and remounting manually works than the script should work
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Thanks, I'll try it asap ...

EDIT:

Yes, I can unmount & mount ( the sdcard as adoptable storage ) without issues !

So, I'll try with a script ! Thanks !

EDIT 2:

Or maybe I'll try to mount sdcard after device boot successfully with a ramdisk kernel implementation !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] tek3195:
This is the same behavior as in the beginning. It was at some point identifying the sdcard as internal disk. I can't remember Major;minor numbers and don't have logs anymore. It should lie somewhere in protected partitions. Huawei keeps set-force-adoptable true by default. That's why you could choose download and install location under storage section of settings. I couldn't stop or control it on some other Huawei tabs on stock firmware after editing build.prop and changing settings. Some attempts wrecked sdcard while others caused the need for reflashing. With LOS being layed over top of Huawei it has to be there in what causes not to work on Android 6 emui4.1 and requires 7/emui5.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
Files downloading now, will try later this afternoon, Eastern US Time!
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] horizain:
Hello, I need some help.

After I finished the instructions on the homepage, my tablet could not be turned on. It stuck on the first screen of booting-yellow warning text.

Then I found that when I reboot into TWRP, the system files of the tablet will be deleted.

My device model is: D01j

The TWRP version is: 3.3.1.0

What should I do to save it?
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] infamous_black:
This is big news! Will try tomorrow when I'm back in town! I'm using the last update and it's been working great for me.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
New version up and running; adopted storage tried in this version, as it was 'mostly' working in the last version, but issues listed by the OP are confirmed, setting up SD card as portable storage for now, and all apps installed to internal storage.

Tried the insert-after-boot method, but when I tried to run Geekbench, system rebooted.

Geekbench Single-Core 346, Multi-Core 1253
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Yes, something seems to be wrong with adopted storage, even the commands ( from adb or from menu ) : reboot to recovery or bootloader are not working !

I don't know if it's kernel related or not ... and in logcat I see something that complain to encryption ..

you can see this only if you try to boot with the card inserted, but the device will reboot soon on erecovery !

I've already run Geekbench 5, with adoptable enabled, but no app moved on it and the benchmark didn't crash !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] the_wing:
Hi,

Just updated to your new release, and for now I didn't notice anything weird.

At first, I tried updating without wiping, but it didn't seem to go well (home screen was somehow downscaled). So I made a clean install, and now it seems to work ok.

I set SD card as "portable" and this seems to work ok. Can load/save data and play music or videos.

I keep you posted should I notice something.

For now, again, thanks for your amayzing work!
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Thanks ! I'll wait your feedback too ...

Thanks for your feedback ... also on my device all seems to working well apart the known issues !
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
So, was working fine last night. I'm using the SD card as portable storage, with apps like Google Maps and the Kindle reader saving their downloads onto the SD Card, which really saves a lot of storage space. No reboots or other problems using all of my normal news apps etc., which is a great improvement. Woke up this morning, and found it had rebooted itself into fastboot mode, no idea why. Held power button down and it rebooted normally. I'll continue to use and report!

Had issue with gboard and voice typing, reinstalling it corrected the problem.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
Ok, the device reboot itself into erecovery after some time only because you moved app data to be stored to adoptable storage ... I already use adobtable storage without moving enything to it and I have no reboot to erecovery from 24 hours !

So, for moment portable storage it's broken and should not be used ... unfortunately, logcat or dmesg does not say anything concrete in order to find a fix.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] tek3195:
[MENTION=2335078]surdu_petru[/MENTION] since you're online I'll ask you real quick. Is there a way to resume build process after power outage causes reboot ? I had a rom building and after 6 hours on slow PC at 98% complete the power went out. Have I lost it ?
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
No, I'm not using adoptable storage; I'm using the SD Card configured as portable storage, but Maps and Kindle can use portable storage for their downloaded files. Are you saying not to use portable storage that way?
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] surdu_petru:
I don't think there is a problem, you can continue compiling where it left off !

EDIT:

- you should type the same commands like you start the build from beginning, and the build will resume of from where was stopped

Yes, you can use it in this way ... I apologize, I misunderstood :o
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
Just had first reboot while using the tablet on this ROM version; a Facebook Messenger call came in, I tried to Decline it, and tablet rebooted.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] friedsonjm:
Rebooted a couple of more times, have not yet been able to tie it to anything specific. Was not in a place to pull a logcat, will try to get one when it happens again.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] Vesko01:
Hello, first of all thank you for your great work! I've been using the device for 3 years now and it's age was definitely starting to show it's weight. I successfully installed your custom ROM yesterday and everything has been working like a charm! If some problems occur I'll make sure to notify you. Thank you again and keep up the great work! I hope that you manage to bring this great device back to life.

P.S. Is there a chance that you ever implement the fingerprint sensor gestures in the future (either in Oreo or Pie), because they were so convenient and I've really been missing them since I installed the ROM?
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] thunderz1:
Thanks again [MENTION=2335078]surdu_petru[/MENTION] !

Flashed the latest version over the previous with just wiping Dalvik and Cache. So far no issues to report! At the same time also installed Magisk and it is working along with the fingerprint reader. Working on passing safetynet now. With any success will report back.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] infamous_black:
The latest update has been working great for me. I loaded magisk and edxposed and everything seems to be working. I have some issues with edxposed app not working correctly sometimes but a close out and reopen of the apps fixes it, seems it's a edxposed issue. No random reboots for me.

Thanks again for all your hard work.
[Huawei Mediapad M3 ROMs, Kernels, Recoveries, & Ot] Half Alive:
Are you using magisk? I'm still testing with the modules I have but when I remove it there's no random reboots.

Safetynet passed with latest build after changing fp + force BASIC with magisk props module.