yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] Kurajmo:
Here you go as i say.

Heres a stock rom for A2016a40 with sp flashtool and all needed drivers.

https://firmwarefile.com/lenovo-vibe-b-a2016a40

And ressurection remix 5.8.5 pico working gaaps.

Working TWRP and working Magisk for Lenovo A2016a40

https://mega.nz/#F!EtwmGKxY!CqpOaqRBzBp3fGfBesbWMQ

Remember to flash official stock without battery in phone.

With volume down pressed when sp flashtool start flash.

Then start phone, upgrade to newest firmware version.

Then reboot do bootloader, oem unlock.

Then flash TWRP.

Now you can go flash anything in twrp without risk of brick your device.

If someone want, may donate me with PayPal. I try gather money, to buy second hand Iphone 5s. My dreamest phone.

Thats all from me.
[Android Q&A, Help & Troubleshooting] renju@5346:
Guys i need help, i flashed the twrp for my a2016a40 with fastboot, ig successfully flashed, but when i go to recovery mode, after the twrp logo somany errors are showing ( unable to mount data , invalid argument. Etc ). And suddenly it reeboot into twrp again and showing this again like a loop,I cant even exit from recovery mode, and cant power off without removing battery, pls anyone help
[Android Q&A, Help & Troubleshooting] Kurajmo:
Flash stock rom with sp flashtool.

Download and install newest update.

Unlock your bootloader.

Flash twrp.

Allow access to modification.

Format data. Dont do wipe, just only format.

Reboot your phone. Voila.

I do similar mistake when i first flashed twrp on this phone. I do format and then wipe all data . Results is no os installed.

Simple mistake. But its fully fixable
[Android Q&A, Help & Troubleshooting] renju@5346:
I reseted my phone with fastboot command "-w". Now I have my phone fully functionable, but there is no recovery, i tried twrp again and I got the same result, what I need to do for flashing twrp
[Android Q&A, Help & Troubleshooting] Kurajmo:
Do everything extacly what i wrote in previous post.

Then you have twrp and been ready for flash any custom rom.

Most important step is flash stock rom with sp flashtool and update to newest os version via ota.

Yesterday i hide my Lenovo A2016a40. I buyed Nokia 1. Time to change this broken phone. I have cracked screen in this Lenovo. Its working fully but last time when i drop this phone. My vibrate is broken.

That's why i buyed new phone yesterday.

Nokia is similar to this Lenovo. But little faster
[Android Q&A, Help & Troubleshooting] renju@5346:
Before I do it I like to share what I see when I flashed twrp first time, I see twrp screen and the below texts and reboots again

could not mount /data and unable to find crypto footer

faild to mount '/data' ( invalid argument )

...done

unable to mount storage

faild to mount '/data' ( invalid argument )

Full SELinux support is present

unable to mount /data/media/twrp/twrps

running recovery commands

formating cache using make_ext4s...

faild to mount '/data' ( invalid argument )

done processing script files

Renamed stock recovery file in /system to prevent the stock ROM from replacing

faild to mount '/data' ( invalid argument )

faild to mount '/data' ( invalid argument )
[Android Q&A, Help & Troubleshooting] Kurajmo:
You still dont understound what i wrote. Flash twrp for first time. Then allow to modification, and format all data. Dont do wipe.

This work for my Lenovo Vibe B
[Android Q&A, Help & Troubleshooting] Retro109:
Perpetual Freeze

I know I'm resurrecting this post, but I tried this, got to the last part on my phone. Followed the instructions, didn't panic for 10 minutes. It froze so I tried again (restarting the phone with volume up and power, then reboot option. Then following the instructions through again) but it didn't work. Left it for 30 minutes on the startup screen, didn't work. Worried that I've bricked it...
[Android Q&A, Help & Troubleshooting] Kurajmo:
If phone dint start. Flash stock rom again and repeat all process.

This instruction Must work cause i wrote this when i do extacly same thing to my phone. Lenovo Vibe B Dual sim version
[Android Q&A, Help & Troubleshooting] steve8x8:
Thanks to [MENTION=5617909]dafonehacker[/MENTION] for finding a way to make the a40 work with the few custom roms available - while it seems I had the right idea, I wasn't bold enough to follow that path myself (and the device isn't mine any longer): Nevertheless I'm curious: Is there any progress for this device, in terms of a rom update?

EduardoMonteiro now goes under the name of Eduarda, wishing her success in the male-dominated world of custom roms - and CarlosArriagaCM apparently has disappeared completely (there's a CarlosArriaga on AFH with exactly one file for download though).

I know that - and have a suspicion why - other Lenovo devices get much more love from developers.

Perhaps an updated stock rom (to S243?) with TWRP for recovery and Magisk for root would be the best choice?
[Android Q&A, Help & Troubleshooting] Elcan Osmanov:
Hey bro I know how can you root your devices.

You have to go lenovo-forums.ru and Search TWRP for vibe b. I find and now my phone is root after you can to update 3.2.1 version. You can find from 4pda.ru custom ROM and TWRP 3.2.1 for Lenovo vibe b. Hey I almost forgot, if you install TWRP from lenovo-forums.ru, You have to flash S225 version stock rom. And after flash twrp. OK?

---------- Post added at 05:16 PM ---------- Previous post was at 05:07 PM ----------

You can to do root your phone. I have also Lenovo vibe b a2016a40 dual sim. You have to visit lenovo-forums.ru, after search TWRP Lenovo vibe b and there is a adb.zip file, install it. But your phone version have to S225. If you want TWRP 3.2.1 version you have to get 4pda.ru. ( sorry my bad English. I wanted to help you )
[Android Q&A, Help & Troubleshooting] Freddew:
Hi,

i updated my Lenovo Vibe B A2016a40 dual sim to S234 Firmware, then i flashed twrp 3.0.2 by jemini via adb. After i formatted the data, i was able to flash Magisk Manager v18.0 . Since then i have root. I even tried to delete GApps (works), the Phone still worked perfectly (Just in case this Information is useful for someone) .

I don't know where i got the twrp from anymore. I uploded it below :o
[Android Q&A, Help & Troubleshooting] ninonassim:
limks are dead please update

update the links to download
[Android Q&A, Help & Troubleshooting] steve8x8:
I'm still wondering why [MENTION=5617909]dafonehacker[/MENTION] had to modify the ROM zip - instead of just making *yet another zip* that replaces the baseband firmware. (I went through a bunch of ROMs, including the ones provided by @ thestrelok228 in the Russian forum, and found most of them using the BB from S238, not S243. Splitting "original" and "BB" zips would allow more experimenting...)

I've found an old Vibe B, running S235 and TWRP 3.1.0-0, with the latter preventing system upgrades (because it presents a device name of "al732row" instead of "A2016a40"). Got to go full cycle, through reflashing with stock and upgrading...
[Android Q&A, Help & Troubleshooting] steve8x8:
Since I had to go through a full reflash of stock (had to borrow a Windows PC for that :eek:) I gave it another chance - this device will finally be given to a friend, no experiments beyond stock this time...

Flashed everything (including the bootloader), went through the OS upgrades up to S243, became developer to enable OEM unlock, did that, flashed TWRP from OP (which I still had kept in a dusty corner of my harddisk).

Flashing Magisk 20.4 returned errors which could be fixed by formatting /data.

No problems found yet.

I won't go for any LOS - attempting to fix the baseband issues would cost me another day or three. Perhaps, if my SO ever replaces her Vibe B with something else, I'll come back to go for something newer than Android 6 with this kind of device.
[Android Q&A, Help & Troubleshooting] Vonsorry:
Help me please !! i have celphone lenovo a2016a40 dua sim version.

Hi ! can u help me ?

I'm looking for a lot about how to root my lenovo A2016a40 dual SIM ... But looking at this post it got kind of confusing. nt have to download twrp. Im not understanding how to install. Because u don't have the files for that. Can u help me ? build number A2016a40_S243_180206_8G_ROW. I will be very grateful if u can help me.
[Android Q&A, Help & Troubleshooting] R.O.G.U.E:
idk for some reason, the attachments Magisk.apk & Magisk.zip are not getting attached with the post.

Kindly bear with me...

You can get the above attachments on your own:

• Go to the Magisk's website, download the latest apk (Supporting from Android 6.0 onwards)

• After downloading, make a copy of the apk and change the extention to .zip

[ YES, THIS IS DUE TO THE FACT THAT, THE MAGISK APP & THE FLASHABLE MAGISK ZIP ENTITIES ARE CURRENTLY CLUBBED TOGETHER. THEY ARE NO LONGER SEPARATE FILES ]

Hope this helps...
[Android Q&A, Help & Troubleshooting] Troughy:
may I ask where have you gotten that recovery.img? because the vibe b is not supported on twrp.me, and I got mine from lenovo-forums.ru after a user commented on a related post
[Android Q&A, Help & Troubleshooting] R.O.G.U.E:
Yes, a reply also contained the link in a similar thread: HERE

Direct Link: https://androidfilehost.com/?fid=817550096634797042
[HTC 10 Questions & Answers] Ndaoud360:
My 10 now is starting to drain battery real quick without doing anything. No unusual apps draining much. I used battery tester in the secret testing menu thing and it said my battery is fine but I don't think it is. Any app or something to test battery or any way to test if it's rom related?
[HTC 10 Questions & Answers] Magnum_Enforcer:
Installing GSam battery monitor from the Play store would be a good start. You can monitor wakelocks and app usage, which can help diagnose your issue. How long does your battery usually last after a full charge, and what kind of screen on time are you getting? Also, does the phone ever get warm while you're using it?
[HTC 10 Questions & Answers] Ndaoud360:
Not sure how to read gsam battery logs but here is a screenshot and phone does not get hot. With not much use, I only get from 10am to around 2 to 3pm which is not normal for me.
[HTC 10 Questions & Answers] Magnum_Enforcer:
From the main screen, you should have 4 icons at either the top or bottom of the screen. The second icon from the left brings up the app usage screen, and there is a drop-down menu at the top so you can view different things, like kernel wakelocks, etc.
[HTC 10 Questions & Answers] Ndaoud360:
OK I see but what am I exactly looking for? Wake locks? Not sure what's good and what's bad in terms of %s and what not
[HTC 10 Questions & Answers] Magnum_Enforcer:
Like I said, charge your battery up to full. After a few hours off the charger, post screenshots of the main screen, app usage screen and kernel wakelock screen.

Also, press the triangle icon on the main screen and make sure "Since Last Full Charge" is selected.
[HTC 10 Questions & Answers] Ndaoud360:
OK I'll do that, thanks.
[HTC 10 Questions & Answers] Magnum_Enforcer:
Any updates?
[HTC 10 Questions & Answers] Ndaoud360:
Just did it. Here are the screenshots
[HTC 10 Questions & Answers] Magnum_Enforcer:
I don't see anything out of the ordinary, but that doesn't mean there isn't an issue. There are a couple of things you can try. First, you can try and recalibrate your battery by turning the phone off and holding the power and both volume buttons down for approximately 2 minutes. The phone will cycle on and off a few times, which is normal. You can see how the phone works afterwards, and if that doesn't remedy it, I would RUU and start from scratch.
[HTC 10 Questions & Answers] Ndaoud360:
Oh OK, I'll try that. Thanks
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Tkkg1994:
BatStock-Kernel for SM-G950F/FD/N models

Supports Touchwiz Roms with AQDD and higher

IF YOU FOLLOW MY STEPS BELOW, YOU WILL LOSE YOUR WARRANTY, KNOX WILL DISPLAY 0x1! I'M NOT RESPONSIBLE FOR ANY DAMAGED DEVICE!

If you want to take my work and need it somewhere, or do other things with it, ask me first for the permission. Otherwise you are not allowed to take it! Thank you :)!

Features of this Kernel:

- Build with latest self-made 6.3.0 GNU toolchain

- Build with AQF7 kernel source code

- Latest Linux version 4.4.76, is always up to date

- Performance and Batterylife improved

- Choose between different CPU governors: performance, powersave, userspace, ondemand, interactiv (default), conservative, schedutil

- Includes latest AQF7 ramdisk

- I/O schedulers: CFQ (Default), No-op, Deadline

- F2FS enabled for /data and /cache disabled on 1.2.2 for testing

- NTFS enabled

- TCP (Network) control: Bic (default), Reno, cdg, cubic, dctcp, Westwood, Highspeed, Hybla, HTCP, Vegas, Veno, Scalable, LP, Yeah, Illinois, Lia, Olia, Wvegas, balia

- SeLinux is set to permissive

- All samsung security related configs disabled (as knox, tima, restrict rooting)

Download:

V1.2.2 on AndroidFilehost

Bugs/Problems:

- None

Instructions:

0. Have a working recovery and encryption removed!

1. Download kernel

2. Boot into twrp recovery mode

3. Flash kernel

4. Flash any other file which affects ramdisk (Magisk or SuperSU)

5. Reboot

If you wanna join the beta tester group, download yourself telegram and click on the chat link: Telegram Group

Support:

If you like my work, feel free to hit thanks and/or give me a small donation by clicking the link right below. Thank you very much in any way! :D :good:

​

PayPal​

Credits/Thanks:

- Samsung for sources

- the great linus for his amazing kernel source

- Jesec for his workaround, without him custom kernels won't be possible on the s8!

XDA:DevDB Information

BatStock-Kernel SM-G950F, Kernel for the Samsung Galaxy S8

Contributors

Tkkg1994

Source Code: https://github.com/Tkkg1994/BatKernel/tree/TW70-stock

Kernel Special Features: Close to Stock Kernel

Version Information

Status: Stable

Current Stable Version: V1.2.2

Stable Release Date: 2017-07-12

Created 2017-05-14

Last Updated 2017-07-12
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Tkkg1994:
Changelogs:

BatStock-Kernel V1.0:

- Initial testing release (not on XDA)

BatStock-Kernel V1.0.1:

- Fixed slow read speed

- enabled f2fs

- enabled ntfs

- enabled all included govs/tcp/ioscheds

- random driver updates

BatStock-Kernel V1.1.0:

- Based on latest AQE5 source code

- Updated ramdisk to AQEB

- Added init.d support

- Hopefully fixed some issues with shealth

- Updated linux to most recent 4.4.69

- Changes made by samsung in source code: led cover support, some other battery updates, display updates (mainly for red tint), other small fixes

BatStock-Kernel V1.2.0:

- Based on latest AQF7 release

- Updated ramdisk to AQF7

- Updated Linux to 4.4.74

- ext4: fix data exposure after a crash (which should maybe fix the random reboots)

- Updated included camera binaries

BatStock-Kernel V1.2.2:

- Reverted an alarmtimer update which could have broken some deepsleep things

- Added support for private mode

- Updated linux to 4.4.76

- Added stock init file (without being patched for f2fs, means f2fs won't work right now) to see if that has something to do with continous bootloops
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] this.guy.lol:
Reserved

---------- Post added at 09:56 PM ---------- Previous post was at 09:53 PM ----------

Will this work on the plus model as well or strictly the reg?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Tkkg1994:
Will work on the plus model, in fact it's an unified zip file which will install the right kernel on the right model (but you can head over to the plus thread)
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] this.guy.lol:
Sweet thanks! I did have a concern also. With batstock rom 1.0 when I install all is well, but when I go to install apps from the SD card it says app not installed with a triangle. Why would that be?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] lahceneamine:
You did it again :D

PS: by "samsung security related configs disabled" you mean that we can use Secure Folder now ?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] strikerdj2011:
nice to see the first kernel for our s8

just wondering not sure what kernel i was using on my s7 edge but the dev enabled a setting to let you make screen a bit brighter in settings you could only use it for so long then it went back to normal any chance you could look at this when you get some time thanks
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] THATTON:
Hell yeah! Phone feels great after flashing and for the first time since I got the device, there is no framerate drops when unlocking using my fingerprint. The animation/transition is super smooth now. Thank you!
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Tkkg1994:
That is due to the wipe option. It somehow damages the data partition. If you flash the rom with dirty flash after you choose wipe, format data, 'yes' it will work

Nope. Samsung has fixed this bug from the S7.

And most likely they will patch the s7 soon as well so we won't be able to use it.

On the s7 it was: hmmm kernel gives me no result, I think that means successfull passed.

Pretty stupid [emoji23]

You mean the outdoor mode. That's not related to kernel but to the rom you are using :)

Thanks man!

Sent from my BatMan powered SM-G955F
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] maze00:
I have the renovate ice rom, but when i flash the kernel it won't boot :(
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] vanhelsing007:
Thank you! Been waiting for this. :good::good::good:
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] jfm91:
Can I flash this over BatStock-Rom 1.0 without wipe?

What about root?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Tkkg1994:
Must be rom related than, can you give me a /proc/last_kmsg log after unsuccesful boot?

Heheh :)

Yeah it does, flash magisk or supersu after kernel
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] superior888:
Time to flash custom now i guess :) been patiently waiting :)
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Valkiry:
Can confirm Kernel works fine on Renovate Rom V1.2 with magisk installed after installing kernel. Don't know what the other guy was doing. Thanks dude :)
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] maze00:
I have tried everything.

Flashed the kernel, wiped cache en then installed Magisk 12.0

Maybe it has something to do with the version of TWRP ?

I have version 3.1.0-r 1
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] maze00:
I have tried to install the Batrom, but i get a error at the end.

Unmount of /data failed (-1) device or resource busy

It installs fine and it reboots.

But when i install the kernel it doesn't boot.

I think it has something to do with rights ?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] vanhelsing007:
Tried to flash the kernel over BatRom, then flash Magisk 12. But I still cannot get root working. Can anyone help? Thank you!

Gents, I managed to get it working via Magisk Manager. Updated to the latest version, reboot, and all is GOOD!

Thank you, good luck and best wishes all!
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] OmerElbaz:
What's AQDD?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] OrphanBlack:
Will samsung pass and secure foldet work with this kernel??
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] goRt:
ROM version
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] N1ghtr08d:
Flash Magisk. I believe that will fix it
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] maze00:
I did, but it won't work.

I flashed version 12
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] N1ghtr08d:
Sorry bro, that's all I got. I hoped it would have helped.
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] maze00:
anybody can help me ?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] MiePx3:
Hey man quick question.

I just flash this over BatStock but now I cant unlock my phone. Pattern says its wrong, even though its not.

Any idea?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] OmerElbaz:
I meant like what it stands for or smth, google search didn't helped me with this
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Hunteres:
Its a shortcut for the firmware version.... its the latest now.... next month it may be QDUU ...Simply go to settings about phone and see your version....

Take care

Its a code version....it means nothing just like a variant...example for the slow ones.... galaxy s7 and then s8.... s7 is the version code... i hope you understand now.
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] vanhelsing007:
Hello Maze,

I had unmount error at the beginning of the installation. So I went back to step one. Went into TWRP. Did a Wipe - Format Data - yes.

Then clicked the Home Button in TWRP to go back to Main Menu. Used the Reboot function and boot back to TWRP again. Plugged in thumbdrive via USB-OTG and Install - BatRom. Used Magisk for rooting method and everything else.

Rebooted and first boot took about 5 minutes. Setup everything else like a new phone. Then reboot into TWRP again. Install - Bat Kernel. Used the TWRP Home button and went back to Main Menu. Install - Magisk v12. Final reboot back to System.

Went into Play Store. Update Magisk Manager. All good after.

Or maybe I was just plain lucky... :fingers-crossed:
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] this.guy.lol:
[MENTION=5899304]Tkkg1994[/MENTION] i flashed the rom and dirty flashed but still it says cant install apps of sd card. any ideas?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] maze00:
Thank you for youre reply.

I have tried youre solution but it doesn't work.

I give up and will stay at the stock kernel. :(
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Tkkg1994:
No you weren't lucky, you simply did everything right!

No, samsung patched this bug

What root method are you using?

Did you follow the steps from [MENTION=5936990]vanhelsing007[/MENTION] above?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] this.guy.lol:
I did not no. I guess I'll wait till barman gets released and hope it'll be less steps. Superman was a simple install on the edge.
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] maze00:
Does anybody knows where i can get the samsung stock kernel (zip format)
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] s8andmoto7 user:
videomode

hey guys nice kernel but i have one question is there are option to enable the videomode on all apps ?

u know the modus for netflfix youtube and amazon prime.

sry for my bad english xd thx
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Tkkg1994:
Actually the steps are the same on both devices

Extract it from an odin from sammobile.com

This kernel will always be as close to stock as possible, anyway you can edit my source code and modify as you like on www.github.com/Tkkg1994/BatKernel
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] profi208:
Hi all

I was wondering if its possible to make it a .tar file and flash through Odin instead of TWRP

Been a little out of touch, not sure if this method still works

Thanks in advance
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] MrPhilo:
Will fiops be added to the kernel?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] Tkkg1994:
System files needed to be edited, so no this will only be through TWRP

This kernel will always be close to stock, means all kind of features will be kept away from it (only basics will be enabled as we have it right now)
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] MiePx3:
Magisk own root solution. Managed to get it working again by deleting the pattern.key file via twrp
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] M3ph15t:
Sorry for the possible stupid question, but how do I choose between this settings?
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] dmartuniac:
With kernel adiutor or another kernel manager.
[Samsung Galaxy S8 ROMs, Kernels, Recoveries, & Oth] M3ph15t:
Thank you :)

Is this Topic still up to date and would any of you recommend playing arround with this settings anymore, or doesn't it benefit much in battery life?

https://xdaforums.com/galaxy-s2/general/ref-kernel-governors-modules-o-t1369817