yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] E90 Commie:
I don't use any systemless SU methods on my device but the good old SuperSU due to my StickMount needs.

I don't have a single ad on my device and it is with a combination of methods, one of them is on the outskirt of the XDA rules but my setup, which has carried everything for the last years are:

1. AdAway with a couple of extra sources including MOAAB (hosts.malakala.is). I use SuperSU on my device so we are talking as direct editing as it can be.

2. Disable all ad services. This is not Google Play Services only but also ad services per app - this leads us to number 3, which is where we are moving in the outskirts of the rules of this forum:

3. The Smiley method. This method involve the use of an app called "Smiley" (its real name is banned at XDA so lets leave it at that) where ad services are both disabled and patched. This means patching every app with ads in order to simply kill their internal ad services. It is possible to either apply the patch or by killing the ad services in a way similar to Disable Service.

If method 1 and 2 fail for whatever reason (hosts servers down, proxies in the APN when mobile data are being used or even the "wrong hosts" being edited) - method 3 will work. No app can get past this particular method.

The ads are typically served through Google Ads and the apps have services integrated, which call up the G-Ads engine. I would assume some of them have the capability to go straight online (i.e. connecting remotely to the ad server rather than calling the device ad services) in order to get ads (hence why 1 and 2 fails).

Method 3 eliminate this particular "ad loophole".

It is also possible that the reason for 1 and 2 failing are Magisk and issues related to updating a different hosts file than the one normally used (i.e. that the systemless approach has a side-effect here).

My devices has always been completely ad-free using method 1 and 2 even if I started to add method 3 after those reports about ads slipping through despite the use of AdAway. The possibility for an app to show ads after using method 3 is basically zero.

The only drawback with method 3 is that it is based on an app that is highly controversial (I could make the argument that it is like kitchen knives - it is possible to commit a crime with them but they are still very useful and I have the same view of this particular app).

---------- Post added at 06:44 AM ---------- Previous post was at 06:41 AM ----------

Cable related. My Max charges happily with both HTC and Sony cables, no issues (I actually charge it using my HTC HD2 charger most of the time since that one gives out 1500 mA and I am of the opinion that slower charging is better for the battery).

If you have another third party cable, give it a go just to see what happens.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] facepainter:
Strange, some cables I have are limited to 1 amp, or the cable that came with Bluetooth speakers 500ma, none perform as bad as yours.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] panyan:
Awesome guide!

You set up your device in a fantastic way - I'd love a guide as detailed as that above on how you maximize battery life if you wouldn't mind :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
Please, provide the full url of hosts.malakala.is and how to add it to Adaway in our MiMax LineageOS?

And maybe it also is banned in this forum: aiding in fighting ads? ;)

It sounds like MiMax original charger is poorly designed and it wears battery too fast, does it indeed?

In fact 1.5A is the most optimal for any phone if we want to use a phone while charging: current demand jumps constantly and often above 1A. If there is a charger with 1A output then quite often battery current oscillates from positive to negative (discharges battery for a while) making plethora of extra poor charging cycles (while using phone during charging).

It is maybe why phones' original cables packed together with phones in their retail packs are so short: to discourage user's from practicing using phone while charging ;)

You know, I need as long cable as possible, branded ones which come with phones packages are usually so short it is impossible to use phone while charging. ;) Is it deliberate producers equip their phones with such short cables and why?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] E90 Commie:
AdAway hosts that I use:

http://someonewhocares.org/hosts/hosts

http://www.malwaredomainlist.com/hostslist/hosts.txt

http://adblock.mahakala.is

Add those as sources to AdAway, let it update the hosts file and reboot.

---------- Post added at 02:45 PM ---------- Previous post was at 02:44 PM ----------

I think I wrote a battery guide earlier in this thread. So it should be here. I also think I have one in the battery savings thread.

Good luck with the adblocking. It should work, especially the Smiley method.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Just buy a normal cable & trow that one in trash.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] recharged20:
Thanks for the help. Somehow, without really understanding the reason behind it, I decided to fully wipe internal and clean flashing this latest ROM and adding your new hosts sources, or perhaps because of SuperSU 2.79 this time instead of 2.82(?), my browser no longer encumbered with ads.

I just feel that it's particularly strange because this has always been the way I'm flashing ROM, wiping internal, but somehow, ever since of that May or June iteration of helium RR, my adaway stopped working, even when I swapped to other ROMs like this lineage, or Tesla, the problem persists. I'm guessing it might have to do with supersu/magisks? Or perhaps because I restored adaway with tibu instead of re-install apk. Oh well, anyway, I'm glad I asked in this thread, I learned ways on how to get around ads when it is necessary. Thanks man!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] arxxx:
why wifi always get disconected?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ljhsquall:
I install latest magisk 13.2 via TWRP but safetynet fail. (actually it says check success with ctsprofile: false and basic integrity: false)

Edit: sorry my mistake. It seems like Google updated safetynet. Folks over at magisk thread is also report fail. So cheers again for this great rom.

Then I have another question, is the fast charge enabled by default? I use Kernel aduitor but under battery no fast charge option. I also using a Samsung fast charger. Maybe is not the same thing?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Guys stop spamming around with things not related to ROM!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pepfapeste:
Hey [MENTION=4399618]nijel8[/MENTION] and [MENTION=4232632]Zola III[/MENTION], what do you think about this? https://xdaforums.com/apps/magisk/tweak-crossbreeder-lite-t3594401

Regards :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I am a grown man... I don't believe in magic.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
I am a mystique so I do care about magik but I couldn't care less about magisk.

My actual proposal for next update is CPU/GPU under-volting a bus scaling change & a scalable refresh rate (30/60) for Tianma display. ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] HannibalLecter:
You don't use root or do u use supersu? I use root only for Adaway. cannot tolerate ads.

PS: Oh! you're on miui stock yet?

[MENTION=1547420]E90 Commie[/MENTION] thanks a lot for that adblock guide.

I use only Adaway. Didn't see ads but probably I don't use my phone enough to check every possible place where adaway may fail.

If I use all the 3 hosts that you provided later, I hope I don't need to visit MOOAB cz it might already be covered ?is it? [MENTION=4399618]nijel8[/MENTION] I'm sure you must hate ads too. Having ads blocked from the get go will be most useful. Isn't it? :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Neo.Collin:
If you didn't know... Xiaomi uses various parts from different mfg's... I think tianma is the company that makes one set of displays... There are many like those... :fingers-crossed:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
You are looking at it (probably). It's a display shiped with 80%+ of Max unit's. Tianma is actually display manufacturing company (from China) mostly known for it's displays in HTC (flagship) phones. Yes still on MiUI & still no N.

P's: & certainly not a DC comics magik. You can't Google it all...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] HannibalLecter:
You can get N on MIUI too. Just flash the developer ROM.

The other BIG question is 'why' ?

You'd got the xiaomi approval for unlocking bootloader by now, if you really ever tried.

Why don't you want to flash LOS? like MIUI?

Nijel is allergic :P You seem to love it? :P
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Let's say I am a man of principles & I won't root until I get stable N (& it certainly won't be the first stable literation of it). Nope not even tried. As much as I hate MiUI (& I do as I am that kind of a guy) it's not all that bad, God knows I sean worse (Samsung for example). I am an old horse and pretty much tired of all of this, that much that I even considered getting a phone with an MTK SoC just that I can't play with it. So far even with locked phone I would say I contributed significantly all do that's not up to me to say. So just relax and enjoy the ride. I am pretty much a hater kind a guy so pretty much their is little things (left) that I really love.

Best regards.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
You must know, the same cable with 2A charger charges another phone (of other brand) with current ~1.5A.

If I try connecting the same set: cable & charger to this MiMax then the current is ~50-200mA!

It must be something in the phone or system!

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1 r.07-08-2017 by*nijel8
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I've seen this sometimes when using a Quick Charge charger. Maybe it has to do with the QC daemon... I just unplug and plug it back again to get full power.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Well I bought (recently), a cheap impregnated Chinese USB cable, rated at 2A as original one had problems connecting with PC. & well it works better than original one ever had, it charges (10 min) quicker, has no connecting troubles whatsoever & it's so strong that I could hang my self with it. I paid a 1.75€ for it & thinking going & buying couple more.

P's the charging logic is buggy on the phone side.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
Actually, using just Performance profile: Power save on the regular basis, so where OC??? (It must be something else).

And indeed, unplugging and plugging again sometimes helps!!! In fact must repeat this many times before fast charging fires! And perhaps you can imagine how good it is for battery to score plenty extra junk charging cycles??? [emoji15]

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1 r.07-08-2017 by*nijel8
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Don't do that. You will end up with broken USB port on the phone side. I got it stuck once on slow charging (200mV), resolved it with totally depleting the battery (until it didn't even wanted to start). After that it come back to 1500mV.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pepfapeste:
[MENTION=4399618]nijel8[/MENTION] a non magik related question

Do you think that android has too many wakeups?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pchenna143:
Automatic updates are not working

I have tried so many times via mobile network and wife but automatic updates not working please help me. Or can I install manually without total recet
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Hey mate, not OC but QC. QC = Qualcomm Quick Charge.

Maybe it's a problem with the phone/kernel and the charger. I sometimes see this when I use my QC2.0 charger but I never see it when I use the non-QC ports on the same charger.

Whatever the cause is, unplugging and plugging back in makes QC work. I use EX Kernel Manager's battery info app to check on current and battery temperature every time I charge.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Till checked one by one in code what each does you can't tell for sure how many is too many...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] E90 Commie:
Quick comment on this:

I don't think there's anything wrong with the original charger. It is just that I don't like fast charge since it simply means pushing a lot of electricity into a battery, thus stressing it. Every fast charge solution at this time means a very aggressive charging profile, while slow charging is way more comfortable for the chemistry.

The only time I would use fast charging is if the battery is user replaceable.

The day there are batteries that can take a lot of current in a short time without being negatively affected I am going to embrace fast charge. With current batteries I rather aim for prolonged life.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
Please, could anybody here explain briefly what differences between the following phrases are:

- Quick charging

- Qualcomm charging

- Fast charging,

- QC2.0 charger,

- non-QC ports,

etc

AND which of them apply to our MiMax?

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1 r.07-08-2017 by*nijel8
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Mi Max has them all except QC4.0 and obviously non-QC ports
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pawwaap:
QC means charging with increased voltage and

Fast charging with increased current and standard voltage, right?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
And please explain which charging does MiMax use on the regular baits, i.e. with default cable and charger, and with stock or custom ROM, especially LineageOS? ;)

And which has it potential to use?

As I can see the best solution is to buy rock solid like extension USB cable and original (short) cables to plug into it yielding thus a long original cable capable of carrying big currents. Is there any pitfall in this approach, how do you think?

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1 r.07-08-2017 by*nijel8
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I wouldn't get too worked up about it. The problem is it's hard to tell a good cable from bad when buying online so it all depends on luck. I would stick to established brands; the short cable that came with my Aukey QC2.0 charger works fine but a cheap, long cable I got for free sometimes has trouble with QuickCharge mode.

Both MIUI and Lineage have the ability to use QuickCharge 2.0 and 3.0 at a maximum of 2400 mA if you have a QuickCharge charger. On the stock charger, you'll get full USB charging at 1500 mA.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
It means, MiMax stock charger provides just 1.5A of Fast charging i.e. with the normal USB voltage (5V), doesn't it?

In this way it can charge any other phone too, even a simplest one?

Alternatively, with QC charger it'd get many times bigger current, or power precisely speaking because current is the same but with higher voltage, right?

If QC means bigger voltage then maybe some cables have too thin isolation inside to contain such voltages?

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1 r.07-08-2017 by*nijel8
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
[MENTION=4639744]ioy[/MENTION]

Yes, the stock charger provides 1.5A current maximum. Any phone or device connected to the charger can request this amount, as per USB spec. Quick Charge chargers go beyond this by providing higher voltages, provided the connected phone understands the proprietary Qualcomm QC protocol.

[MENTION=1547420]E90 Commie[/MENTION]

I'd say charge current isn't the enemy of battery longevity, heat is. The battery should be fine as long as you can keep it cool (below 40C) while using QuickCharge. In the car, I use an air vent clip to mount the phone so cool air brings the battery temperature down while the phone is being charged and used for GPS navigation.

Look at electric vehicles: Nissan Leafs without an active battery cooling circuit see big capacity drops in hot climates over time, whereas the Tesla Model S with a battery cooling loop maintains its capacity even under desert conditions.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
And where is QC protocol in our MiMax (or could be):

- in the LineageOS?

- in stock ROMs?

- in a kernel?

- in the hardware itself only?

And why do you use HTC HD2 charger if the stock MiMax charger also have the same characteristics: 1.5A current output? (And maybe there is something I have understood wrongly?)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Protocol is in hvdcp_opti deamon which negotiates voltage/current depending on current battery level, temperature etc. Max current and mitigation is defined in kernel and termal engine configs. Max current is limited to 2400 mA and goes down if temperature rises, pretty safe QC implementation in Mi Max from the QC 3A max current specs as you can see.

Can you guys activate pulse light when QC charger is in use in Battery lights settings and tell me is it pulsing when you have QC charging issue and you have to plug and unplug... Also rename /system/etc/thermal-engine-8956.conf and /system/etc/thermal-engine-8976.conf files, reboot and tell me if you still have QC charging issues.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Double post, delete...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
[MENTION=4399618]nijel8[/MENTION]

I'm using an Aukey QC2.0 charger and I get the pulsing green light on the phone when QC is working. Strangely enough, I've been getting low current lately - 1700 to 2000 mA only - probably because of high ambient temperatures close to 40C.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Yep, 37C is the threshold for current. 40 is too high and current is reduced. Here is thermal-engine config for battery:

[BATTERY_CHARGING_CTL]

algo_type monitor

sampling 10000

sensor case_therm

thresholds 37000 42000

thresholds_clr 32000 37000

actions battery battery

action_info 1 2

At 37 current is reduced, at 42 reduced even more, getting up again at 37 and again back to normal at 32. You can play with those values as you wish and reduce current throttling but watch out and don't kill your battery!!! That's why I deciphered those configs for easy tuning....

Do you get pulsing light when QC is suppose to but it isn't and you have to plug/unplug? Trying to figure out if it's QC detection issue or current throttle issue due to high temp and fast charging is negotiated instead of QC.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I get the pulsing light but current is less than 2000. That means Quick Charge is active because the current is higher than normal USB charging, but I'm not getting 2400 mA because of high battery and skin temps.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
So you don't have problems... You have to move in Siberia or put the phone in the fridge... :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
It looks like, QC charger should be bought separately as the stock configuration only assures Fast charging, is the QC protocol in the stock system?

And which QC charger to buy, any advices please? ;)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Yes, Xiaomi are being cheap by not including a QC charger with the package. Then again, QC chargers by Aukey, Tronsmart, etc. are pretty cheap. I would buy a cheaper QC2.0 charger because the Mi Max can't use high voltages in the QC3.0 spec anyway.

I'm using a 3-port Aukey QC2.0 charger that cost me about $25. One port is QC2.0 capable, the other two ports go up to 1500 mA only. I use it to charge my phone and tablet simultaneously. It's a small charger that's just a little bigger than the stock one, great for traveling.

[MENTION=4399618]nijel8[/MENTION] Yeah, summer's here :) 40C outside temps, I can't even charge the phone without it throttling the moment the plug goes in...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] FutureGamerz:
When I do my unlock I got the same problem.

Then what rings is to login to your MI cloud and turn on the find my device. Then you can check on PC on their mi cloud website that the location of your device has been logged. Then you continue with the mi unlock procedure. It will succeed. At least that was what I did to get it unlock. Quite frustrated previously when I couldn't unlock the bootloader and then all the emergency mode twrp flash method I tried didn't work.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pawwaap:
As you can see:

https://xdaforums.com/showthread.php?p=73092562

Xposed for Nougat has been done at last!

Anybody has tried it on the Nijel's LineageOS, is it going to work here without issues?

HELIUM 364GB ;) locked BL, Nijel's LineageOS
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pepfapeste:
https://github.com/rovo89/Xposed/issues/230#issuecomment-316560803
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pawwaap:
And is it gonna work on this ROM?

People there are saying something about the need of recompiling ROM sources (but it is about AOSP only?)

HELIUM 364GB ;) locked BL, Nijel's LineageOS
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] qazedc1212:
I'm having trouble with naitive FLAC playback on this rom. With a clean install, there is no sound coming out. FLAC playback on players that convert FLAC to a playable format and play it (Google Play Music, VLC) can play it though.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Use Foobar2000 & forget about it...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] HannibalLecter:
time to change the thread title nearing. 07-23-2017 ? :P

---------- Post added at 10:28 PM ---------- Previous post was at 10:02 PM ----------

MIUI Stable Nougat for Mi Max Released. Already been a few days.

http://en.miui.com/download-302.html

V8.5.1.0.NBCMIED_7.0

Time to root the hell out of your Mi max. Is it?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Soon...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Are you deadlining me!?

.

.

.

.

.

.

.

jk...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] HannibalLecter:
I've noticed the pattern :D
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] facepainter:
Looking forward, last few versions have been good steps, Westwood improves browsing performance a good amount.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] qazedc1212:
[MENTION=4399618]nijel8[/MENTION]

Confirmed bug with latest build, downgraded (clean flash), and FLAC playback is normal again. Tested native playback using BlackPlayer.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] HannibalLecter:
[MENTION=4399618]nijel8[/MENTION] is it a no? :(
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Logcat!?

Or at least tell me exactly how to replicate the issue...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Updated... Are you happy now?

BTW why are you so impatient... I know you are not running my build... Am I right?:)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Well rest of the builds are getting tied to yours & it's not a matter of opinion...

P's: did you tried CAF's bionics (either blobs or to compile)?