yashsingh1/xdaforums huggingface dataset:
[HTC One Max] msegmx:
When my phone is ON for more than a day and I'm on Wifi and *scroll* through an app like Reddit browser, some app that needs internet to show stuff. Then suddenly it stops and the reboot happens.

I can reproduce the reboot : all I have to do is long press power button -> reboot -> soft reboot.

After that :

- the phone shows RR animation for approx 20 sec

- then my home screen is shown (lock screen to be precise)

- (after unlocking lock screen) "RR is loading" message + infinite progress bar

- then after few seconds it stops / freezes and the phone restarts --> white HTC screen

(note: *sometimes* the phone hangs on white HTC screen and I have to hold power button and volume down button to turn it off and restart manually).

[MENTION=6407372]tarkzim[/MENTION], I'd like to help testing, flashing magisk zip it not a problem, I know how to flash.

But could you (or anyone) explain in a few sentences how to flash boot.img ? is it done through adb ?
[HTC One Max] tarkzim:
you have 2 ways to flash boot.img, via

fastboot flash boot boot.img

or flash it using TWRP 3.x from INSTALL->Install Image->select your boot.img.

thanks.
[HTC One Max] msegmx:
Ok, I just did that :

first installed boot.img over TWRP. After finish and before leaving TWRP and rebooting phone I installed magisk.zip. finally dalvik and cache wipe.

then reboot.

I will report any random reboots (if any) in the next few days. (I hope I encounter none).

Thanks for your efforts !
[HTC One Max] Clarkie_955i:
Is this for all variants? I only had two reboots in a week and i am on gsm. Will try it out anyway.
[HTC One Max] tarkzim:
yes, boot.img for all variants i think.
[HTC One Max] Flyhalf205:
Not sure if it has changed. Must have two boot.img. One for CDMA users and other for GSM users. Only reason is the kickstart service is different for both.
[HTC One Max] mido.fayad:
I don't know for sure how to trigger the reboot but for me the reboot was happening at any time .. even some times it occurs during sleep

I have flashed the latest boot.img and it's working perfect till now ..

Also I tried the way described above to trigger a reboot by doing soft reboot .. but the device worked perfect after soft reboot without any problem so I hope it's fixed now
[HTC One Max] tarkzim:
Still not 100% sure, let it run for some days.

Maybe it depending on how you use it , like gaming or some wireless signal pulsing or what...
[HTC One Max] tarkzim:
Well, I didn't know that, thanks for reminding.
[HTC One Max] tarkzim:
ooooooops, misunderstand again, i thought it was WIFI to causing reboot issue,

but when i look the logs carefully... i think it is more like some audio issue crashing kernel,

qdsp6 / lpass / low-latency related, will build a new EXPERIMENTAL build today with Android May Security Patch, you guys can keep it if all good.

thanks for all your testing.

UPDATE: EXPERIMENTAL builds uploaded, LINK

please play around with WIFI/Audio play/Audio Recording and also to see if random-reboot happened again.
[HTC One Max] Jamal121:
Downloaded .. no issue so far
[HTC One Max] tarkzim:
did you tested audio features, and did you get any random-reboot ?

thanks.
[HTC One Max] msegmx:
Within the last 5 days (since flashing boot.img) I had a few random reboots.

In general random reboots happen when I'm scrolling through stuff, like Reddit app or Twitter app. I'm on Wifi most of the time, rarely switch to Data. But I also witnessed the phone rebooting while I wasn't using it at all.

The soft reboot still 'random reboots' my phone.

Just flashed the experimental rom, will tell if any random reboots are happening.

Thanks for your efforts to keep this phone alive !
[HTC One Max] tarkzim:
i don't think soft-reboot is the best way to "manually-trigger" the reboot bug, but if you encountered any issue like that, please attach your last_kmsg, thanks.
[HTC One Max] msegmx:
I just tried it again (first time after flashing the experimental rom) and I got a flawless reboot !!

Nevertheless I will wait for a 'real' random reboot before posting any logs.

Thanks !
[HTC One Max] Jamal121:
I had few reboot specially when im using some app's & when i hung up calls there is a sound... Appart from that thanks for your effort...
[HTC One Max] msegmx:
I just had a random reboot :

- Phone was charging

- Wifi was on

- was browsing Reddit over app, scrolling through list

- then sudden reboot (RR animation, homescreen, "RR is starting" message, full halt, white HTC screen, then normal start

after reboot I saw that a friend was trying to call me over Whatsapp.

Might that be the culprit ?

last_kmsg attached.
[HTC One Max] Jamal121:
I was watching YouTube..Reboots again and its not coming back on i had to switch the fone of and then switch it on again
[HTC One Max] Clarkie_955i:
Been on the experimental for a good day now and no reboots. But then again I only had two reboots in a week on last build. Will report back in a few days.

Much appreciated for your work.
[HTC One Max] tarkzim:
Seems very very strange and randomly,

Waiting for more feedback, thanks.
[HTC One Max] Clarkie_955i:
Anyone having troubles with calls? Received a couple tonight and I could not hear the caller.. Called back and the same. Could not hear the ring or a voice Had to go back to sense rom for tonight.. Will try and log it tomorrow
[HTC One Max] tarkzim:
are you using experimental build? try to revert it back to a normal build?

if it fixed, let me know with some logs.
[HTC One Max] msegmx:
Just had another random reboot. The phone was locked on the table, I wasn't using it.

I'm on the experimental build.

last_kmsg.log is attached.
[HTC One Max] msegmx:
For all users who don't know how to collect kernel log :

There are many apps, I use Syslog from the market.

After random reboot I open it and check the second ceckbox "Last Kernel Log" + "Scrub potentially personal information...". After pressing "Take Log" the app collects the logs and asks what to do with the created zip file.

HTH anyone !
[HTC One Max] Clarkie_955i:
Calls ok today. Forgot to mention that I flashed Viper4android. Backed up before and went back to experimenmtal nandroid and all ok at the moment. Maybe Viper4android had something to do with the calls playing up

---------- Post added at 10:14 PM ---------- Previous post was at 10:11 PM ----------

Just had the same thing happen. Device was just sitting on table as well. Managed to get a normal adb logcat just as it was booting

https://pastebin.com/LnUdsB3U
[HTC One Max] tarkzim:
sorry, been busy on my other projects,

but i don't see any strange message in your logs...
[HTC One Max] tarkzim:
adb logs should be taken while something wrong is happening... :(
[HTC One Max] tarkzim:
new builds released

updated to Android 7.1.2_r8 with May Security Patches.

added missing config file for Sense Camera, you can now adjusting ISO or Recording resolutions and other settings.

build with original trees, no more experimental changes.

so i just gave up on getting reboot issue fixed... can't really find a reason that causing this,

and revert all kernel changes to normal.
[HTC One Max] reben:
Hello, app continue to bother, booting of itself again,

Htc sense home does not work.

But the Rome of itself is going well so far .. thank you for your effort ..

Regards
[HTC One Max] tarkzim:
HTC sense apps can be flash via TWRP by some MOD zips, you can search around the XDA, thanks.
[HTC One Max] reben:
Thank you, will look. Regards
[HTC One Max] nua69:
can help me, my phone verizon htc one max and my network config, and use sim cards malaysia, my phone does not support LTE, how to re-LTE

my phone RR 5.8.3 s-off twrp 3.0 and I've already thrown CDMA telephony,but stilll H+ not 4G
[HTC One Max] tarkzim:
i'm sorry but did you try to change cdma props in build.prop?

also you can screenshot with dialing *#*#4636#*#* ?

or i guess verizon just dont support your carrier's LTE...
[HTC One Max] thanhsumi:
Setup wizard keep closing :(
[HTC One Max] tarkzim:
1. use newer GAPPS

2. remove SIM card when you are setting setup wizard

3. clean flash

thanks.
[HTC One Max] nua69:
how to change cdma props in build.prop?

and this result also i screenshot with dialing *#*#4636#*#*
[HTC One Max] Jamal121:
This is what i did ... Full backup then I deleted dalvik cache, system memory, everything except the second memory card....

And then i restored since i did that ... I haven't had any more reboot.....
[HTC One Max] thanhsumi:
Thanks mate, it works.

However, wifi still drop sometimes
[HTC One Max] Clarkie_955i:
Tried. Just spotted it at the last moment. Just as it was booting up. see if I can be a bit quicker next time

.
[HTC One Max] Clarkie_955i:
Hey Tarkzim. Been on your latest build for a few days now and no reboots so far. Keep up the good work. Much appreciated.
[HTC One Max] tarkzim:
that's great, but i still don't know why there is a reboot-issue,

no idea what's causing it.
[HTC One Max] msegmx:
I installed the latest version a few days ago and got 2 or 3 reboots. But I got those on other CM roms as well, so I'm pretty sure they're not RR related.

But another question :

Normally I use wifi at home and Data is turned off. But when the phone is on for a day ( or a longer time) and I turn Data on I get no internet, whatever I do. Only after a reboot Data starts picking up an internet connection. (Again I had this behavior with previous CM base roms as well).

Does anybody else have this problem ?
[HTC One Max] tarkzim:
maybe next time you can just turn airplane mode on and off to let RIL reset itself.
[HTC One Max] msegmx:
Oh ok, I haven't tried that before. Will let you know.

Thanks for the tip !!
[HTC One Max] tarkzim:
i feel i'm such an idiot...

just take a look at the logs that you guys provided, and i found that is actually something happened with F2FS which is causing A reboot,

not sure if all you guys are using F2FS with data/cache, and i'm gonna make some kernel change to fix it.

thanks.

(f2fs might be just one of the reason of reboot issue, so it's getting confused for me now....)
[HTC One Max] NooBOnTheBlock:
I have been on experimental build for a few weeks...its daily driver able but the reboot bug happens at the worst of times...thank God for big battery lol...thanks again for awesome ROM!!!!
[HTC One Max] Jamal121:
I Agree it always happens when you're in middle of something like watching youtube or using Navigation..or in middle of call i hope Tarkzim will sort this one out ...
[HTC One Max] tarkzim:
ok, i really need the last_kmsg right after you got reboot,

and upload it here, thanks.
[HTC One Max] Jamal121:
Tarkxim thanks for replaying i deleted the system And flashed RR once again with sense camera Resolution.. last nite i haven't had any reboot since..wich is good... i ll let you know if.... thanks for you concern bro:svetius:
[HTC One Max] AndroidKing:
Hi my phone One Max Sprint but gsm unlocked but its say roaming when i flash the rom i tried to flash the international version but doesnt work twrp gives me model error when flashing plus im s-off with super cid
[HTC One Max] thanhsumi:
Any idea to solve wifi drop problem ? :(
[HTC One Max] tarkzim:
didn't noticed that on my side, can you provide some log?

thanks.
[HTC One Max] tarkzim:
try to manually edit the updater-scripts in zip, and remove the model checking lines.

not sure it's gonna work for you, but give it a shot.
[HTC One Max] thanhsumi:
Attached log for your ref.

ROM is Candy7, but random reboot or wifi drop is the same among these ROM
[HTC One Max] Jamal121:
After i flashed sense camera No more reboots ....for 3 days
[HTC One Max] tarkzim:
i don't think they are related... lol
[HTC One Max] Flyhalf205:
On the bright side. Looks like there are two guys uploading fixes into the kernel. Some fix some errors we get in kernel log... https://review.lineageos.org/#/q/project:LineageOS/android_kernel_htc_msm8960
[HTC One Max] tarkzim:
Thank you, I've been following these changes for a while and i will merge it into my kernel once they got merged.
[HTC One Max] Flyhalf205:
It "shouldn't" work for him if he flashes the intl on a sprint device. Just because the radio won't start because the kickstart service is different for GSM and CDMA variants... What he probably needs to do after flashing the sprint version, edit his build.prop and either comment or remove lines:

telephony.lteOnCdmaDevice=1
telephony.sms.pseudo_multipart=1
persist.radio.mode_pref_nv10=1
persist.radio.snapshot_enabled=1
persist.radio.snapshot_timer=22
persist.radio.dont_use_dsd=true
ro.ril.set.mtusize=1422
ro.ril.svdo=true

and of course make sure his radio is set to GSM and not CDMA

[MENTION=2555414]AndroidKing[/MENTION]
[HTC One Max] tarkzim:
great :D
[HTC One Max] nua69:
How set to gsm and not cdma in phone
[HTC One Max] ExoR777:
Hello... maybe im way toooo new to this ROM but... how does the "recent" option works?? on this mobile, T6, you need to hold "home" button, but this time if I do that, this takes me to Google... I had to download an app to solve this,but how does it works in this rom??
[HTC One Max] j4$0n:
Hi, no need to install an app, just navigate to settings > configurations then scroll to right and navigate to buttons > hardware keys> home button. There are lot of options for your home button, double tap, long press .... Hope this resolves :):good:
[HTC One Max] ExoR777:
Hey Man!! thank so much!! you were a life saver!! haha was about to look for a different rom, but I have to admit this version has LOTS of things I love!! to me is the best rom I have tried on my T6, and trust me... I already tried a few!! once again, thx man!!
[HTC One Max] Jamal121:
You can use OmniSwitch too ... you can do Lots.. with this ROM
[HTC One Max] Louiszik:
Please! I need 7.1.2 file Gallery apk. I love this video player. Please help me. Gallery apk Newest in this rom.
[HTC One Max] tarkzim:
why don't you just flash this ROM and get it yourself, otherwise i will ignore requests like this as it's not related to DEVELOPMENT.

thanks.
[HTC One Max] Louiszik:
I flash latest ROM version yesterday. But i can't finish setup because it say: The setup wizard has stopped.

When i finish it..i don't know why but after 30mins i can finish setup new ROM. But My phone too hot, and it auto restart ... and now i'm using RR-N-v5.8.2-20170319-t6-Unofficial. But i like lastest gallery app... help me!
[HTC One Max] killer_creature:
[MENTION=6407372]tarkzim[/MENTION] So, I've got a major issue with flashing any of the Nougat ROMs on Sprint. The microphone does not want to work most of the time anymore. The issue remains if I flash back to a previous ROM. I also do not get a dial tone when I'm calling at night. I do during the day, but not at night. I'm not quite sure what could have caused this, but it did start with the flashing 7.1.x. I'd be willing to test and upload logcats for this. Please and thank you for your help!
[HTC One Max] tarkzim:
build 03/19 has some issue of NFC, and you can try to remove your sim card and try to get through the SetupWizard.
[HTC One Max] tarkzim:
maybe it's your hardware issue? or did you noticed this on other Nougat ROM?
[HTC One Max] Louiszik:
Yep! NFC auto forrce close every 1 second! Can i use Airplane mode to fix Setup problem?
[HTC One Max] killer_creature:
Yeah, it's on every Nougat ROM, at least for me. I was beginning to think it was a hardware fault. However, I flashed CandyFive on 5.1.1. and it seemed to work again, for the most part. I got up this morning and the microphone isn't working again, so I will do some more testing.
[HTC One Max] tarkzim:
i don't think so...
[HTC One Max] tarkzim:
weird, never happened to me, can you grab some logs? thank.
[HTC One Max] japodude:
Phone reboots making or receiving calls

Edit: installed using twrp 3.0.0.1 and installed ok. flashed latest twrp and installed gapps. works now.

only issue is. 128g sdcard wont setup in phone. had to use twrp to partition it. but files keep vanashing on reboot
[HTC One Max] tarkzim:
i don't have a 128gb sdcard, and i'm not sure if our device supporting 128gb sdcard.
[HTC One Max] japodude:
Solved now finally.

I had to corrupt the card! Yeah bad I know lol. Install parted4android and it seen card and used to erase card.

Only after using that would aparted see the card. Aslo beware if you do try it anytime, aparted don't see the partition Correctly. It will see and show mmmcblk0 in settings . Change it to mmcblk1 and aparted worked flawlessly.

Created one fat32 128 gig partition and it's all been working fine for 2 days. Not lost anything.
[HTC One Max] tarkzim:
that's great!
[HTC One Max] Jamal121:
Tarkzim did you sort out the rebooting.. issue now its getting worst 10 times a day.
[HTC One Max] japodude:
ive also developed the random reboot and battery drains aboyt 40 percent over night. seems wifi not going to sleep at all.
[HTC One Max] Jamal121:
Japodud ... when are we gonna get that update pleas
[HTC One Max] Jamal121:
How did you do that??? Sharing is caring..
[HTC One Max] japodude:
I haven't done anything. Just stating Rom randomly reboots and battery drain overnight if Wi-Fi left on.
[HTC One Max] Jamal121:
I though you found Resolution .. i have the same problem
[HTC One Max] tarkzim:
both are known issue for now, and i haven't find the way to sort it out,

hope some commit of upstream will fix kernel issues, i will get new builds up after i finished my school stuffs.

and i have to setup a new build server, i hope it won't take too much time to be done.
[HTC One Max] Flyhalf205:
So what do the logs and last_kmsg say when these random reboots occur?
[HTC One Max] mido.fayad:
for me there is no random reboots at all with 25 may experimental build which I think is the latest
[HTC One Max] metadon4:
Yeah, the random reboots do happen. For me, when the phone in idle mode. The battery draining WIfi is also a thing, but nothing too horrible, still great ROM.
[HTC One Max] thanhsumi:
Cannot make phone call with lastest build :(

Everytime I tried, the mobile network gone.

But still can receive calls ...
[HTC One Max] tarkzim:
new build released

sync upstream updates and fixes.

updated to Android 7.1.2_r17 with June Security Patches.

many security patches on kernel.
[HTC One Max] Tr9cko:
The random reboot still happen?
[HTC One Max] Clarkie_955i:
Might help if you have logs..
[HTC One Max] Tr9cko:
I'm asking because when i had this rom installed , random reboots happened all the time.

And i've seen by the coments here that some People had them.
[HTC One Max] opal7us:
hi, good job on this rom. its make my htc one max 6l more adventurous, although, ir blaster is not working any solution for ir blaster fixed
[HTC One Max] tarkzim:
actually it's working, but you do have to use the right app to make it functioning for you,

like this one: APP
[HTC One Max] msegmx:
ir blaster is working fine for me. I use anymote smart remote.
[HTC One Max] tarkzim:
for me it's just fine, sometimes not even noticed that when using it.

but no logs no solutions.
[HTC One Max] opal7us:
wow, thanks a lot. anymote remote works fine for me now

---------- Post added at 06:53 PM ---------- Previous post was at 06:38 PM ----------

thank you

---------- Post added at 07:36 PM ---------- Previous post was at 06:53 PM ----------

4G LTE band 7 (2600) is not active too, any solution to fix that
[HTC One Max] opal7us:
Hi,

I need more ram, roehsoft ramexpander says this device has not a swap compatible kernel, can i fix this?

thank you al
[HTC One Max] tarkzim:
band 7 (2600) is working for my device, and you can download this app to lock the band to 7 then see if it's work

never used that, i don't think it's related to my ROM, and i will not support for it.
[HTC One Max] Tr9cko:
Well i'm using this rom again.

Despite of two random reboots ir works very well.

1st reboot - Charging and using YouTube to my car via bluetooth.

(I thing that was something related with the cpu temperatura)

2nd reboot - In the beggining while updating the apps via GoogleStore.

?
[HTC One Max] tarkzim:
new build released

sync upstream updates and fixes.

updated to Android 7.1.2_r24 with July Security Patches.

t6spr: set default prop to fix network.
[HTC One Max] Tr9cko:
Can i flash over the version i have? I had the latest.

Ps : The Bluetooth icon when you push it it doesn't Turn off
[HTC One Max] Tr9cko:
You forgot The download Link.
[HTC One Max] tarkzim:
Android or RR issue, wait for them to fix it.

what? i've uploaded them and check the #OP for download.
[HTC One Max] Tr9cko:
I don't know why but that section wasn't happering for me .

Sorry!

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

But is okay to flash over the second latest?
[HTC One Max] tarkzim:
Yes, Always.
[HTC One Max] thanhsumi:
Wifi problem is fixed in this build yet ?

Anyway, thanks for your hardwork !!!
[HTC One Max] tarkzim:
i didn't noticed that on my own so this update has nothing related to WiFi.
[HTC One Max] tarkzim:
more variants supported

hey guys, good news here:

i've unified "all single sim" variants into a SINGLE ZIP, including t6ul/t6spr/t6vzw/t6tl, also added supports for "DUAL SIM" variants including t6dug/t6dwg.

so that's means all One Max users can flash the same zip for their varaint (t6 zip for single sim, t6d for dual sim), and no need to worry about changing your network preferences,

but it's still testing, works fine on my t6ul variant and get LTE enabled without any issue.

[MENTION=2009939]m.ghareb[/MENTION] [MENTION=5272576]Yaroslav888[/MENTION]

i will post it later, hope you guys can test it and let me know if it's worked for you, thanks!
[HTC One Max] KEVIN.DLL:
what about fingerprint feature ?
[HTC One Max] tarkzim:
i tried very hard to get it to work, but still missing some light to guide me for it, as i mentioned on OP, it's almost impossible to make it.

sorry.
[HTC One Max] tarkzim:
new build released!

sync upstream updates and fixes.

updated to Magisk 13.1 Stable

(BETA) unified all Single-SIM variants into one zip : t6, Dual-SIM variants into one zip : t6d

(BETA) supports t6tl(HTC_8088 China Variant), t6ul(HTC_8160 China Variant), t6dwg(HTC_809D Dual Sim Variant), t6dug(HTC_8060 Dual Sim Variant)

if this works fine on all variants as i expected... it will save a lot of time for me to release new updates LOL.

UPDATE: dual sim variant uploaded!
[HTC One Max] Clarkie_955i:
So we just flash straight over?
[HTC One Max] tarkzim:
wipe cache/dalvik cache, BTW what's your variant?

yes, if you encountered any error 7 while flashing, unplug your usb cable then mount and unmount system partition, flash it again would worked.
[HTC One Max] Clarkie_955i:
Just thought i would check.. I'm on T6
[HTC One Max] tarkzim:
ah ok, with this new build i can get RIL works fine on my t6.
[HTC One Max] tarkzim:
[MENTION=4779996]gimmeitorilltell[/MENTION] , hey bro can you test my latest build on your device?

need to know if it worked for your sprint variant, thanks!
[HTC One Max] Tr9cko:
I've done a clean install and its all good so far.

I'm not having those problems of losing sinal strenght or 4G.

So far 0 random reboots and all working good.

T6UL ?
[HTC One Max] tarkzim:
Thank you for your feedback, are you using the latest build right?
[HTC One Max] Tr9cko:
Yes
[HTC One Max] halosheep:
Hi, running the most recent update for my t6spr. Most things are in working order, I can connect to LTE and get mobile connection, though it's a little inconsistent. I haven't had any problems with random restarts and my battery life seems to have improved because of it. I have a major issue, however, where I'm unable to send SMS and calls connect to an empty line. When I send a message to a number I get an error that reads, "Can't send message with Sprint, error -1". When I call the call timer starts but no dial tone is heard and it remains silent.

I included a log just after I pressed the resend button on 2 different messages, hopefully they may provide some insight.
[HTC One Max] tarkzim:
Can you try to change preferred network type to global or something else from settings and select your carrier manually? I'm not sure about sprint services but let me know if it's helped, thanks.