yashsingh1/xdaforums huggingface dataset:
[HTC Desire Eye] silvershadow:
i've followed your instructions, got the same problem, then realized you said SIMCARD and not MICROSD.

did it again with both removed. This time it doesn't crash, i got through setup and launched magiskmanager just for the sake of it.

My guess is i might be getting the same issue as the person above me (when using Wifi or LTE). ill try turning them on now and see.

Thank you! ill report back with anything else i find.

---------- Post added at 02:32 PM ---------- Previous post was at 02:08 PM ----------

UPDATE:

1) after install and following instructions for google pay enabling (magiskhide) safety net passes. I kept my sim out the whole time, and i just turned on wifi.

2) then i put my sim in, turned off wifi, did safety net check, it passed again.

3) restarted phone with wifi off and sim in. Got "boot loop". (crashing shortly after getting to lock screen or shortly after unlocking)

4) took sim out during the resurrection logo, and the phone booted with no problems, inserted sim shortly after and the phone restarted and got stuck in a loop again.

5) took sim out again during the resurrection logo, got into the phone, turned on wifi, ran safety net check again in magisk and it was still fine.

6) turned off wifi, put sim card in, phone restarted as soon as the sim was recognized.

7) took out sim again during the resurrection logo, go into the phone, turned on wifi, then put in simcard. phone didnt reboot. Wifi on and SIM in (LTE symbol not shown above the cell signal icon because wifi is on). I can make calls, and use wifi.

8)turned wifi off while sim is in and LTE symbol shows up beside the cell signal icon and the phone DID NOT restart.

conclusion from testing:

1) need to boot phone with simcard out

2) after phone boots, turn on wifi (may or may not have to connect to a network, didnt test specifically yet))

3) then after wifi is on, then put in sim card.

4) then can turn off wifi after that and the phone doesnt reboot.

it seems like it has a problem sometimes with LTE sometimes. hopefully my testing helps you out.

please note also: i stopped at step 8 above to type the rest of this message, and the phone randomly restarted, didnt get to see if something triggered it.

-also, keeping wifi on and sim card in, i still also got a restart.

I wonder why the LTE sometimes causes a restart.

While using it a bit more, while on wifi and simcard out, downloading an app from play store, i got a restart as well.

May be of importance: I am using a Rogers Sim Card in Canada. I am using AT&T Desire Eye UL_CA (i see UL_CA on my bootloader screen, so i assume that is the version i have).
[HTC Desire Eye] tarkzim:
thanks for your very detailed describes, grab the "last_kmsg"(after random-reboot and capture it after you booted again) and "logcat"(must be captured while some crashes happening).

much appreciate that.
[HTC Desire Eye] silvershadow:
I apologize, i never assisted with troubleshooting/debugging Android before, i do not know how to retrieve what you are asking for.

Is there a way built into the rom? or do i use twrp? or have to install an app and try to retrieve the information before i get rebooted?

I tried to look it up really quick, it seems like i need to type some commands into a terminal...
[HTC Desire Eye] tarkzim:
actually not that hard, there are some apps on play store that will do it for you, and most important thing is you have to get those logs like i said, (last_kmsg for after reboot, logcat for CRASHING happening)

use this for last_kmsg : https://play.google.com/store/apps/details?id=com.tortel.syslog

but if you wanna capture the logcat while your phone is crashing, you must installed some adb tool on your PC, and type some command to "record it", sounds insane right, but without those logs i can't look into it and try to find the problem is...

i think reboot issue might related to kernel panic, which is containing the event records in last_kmsg.
[HTC Desire Eye] silvershadow:
Hey, I won't be able to do the adb one right now, but for now, here is the last_kmsg.

Hopefully it has what you need.
[HTC Desire Eye] tarkzim:
just took a look at it, but nothing weird for crashing and sim card related...

i think adb will help me more on this.

thanks.

UPDATE: after some searches on google, another possibly reason is that your carrier has a NFC Sim card,

and i'm not sure if it works with our NFC driver/HAL, i have no sim card such like that to test.

maybe you can find a UL_CA stock system backup for me or you do have one? then we will figure it out soon.
[HTC Desire Eye] silvershadow:
Rogers definitely uses an NFC enabled Sim card.

Does it have to be a backup from STOCK or can it be a backup from a working custom rom? I can reinstall any other working rom from the development forum that is UL_CA and create a backup for you from those since those roms work with my simcard. I have actually been using a ul_tuhl custom rom before even though I have UL_CA and it worked just fine.
[HTC Desire Eye] tarkzim:
Well, something is wrong with my rom i guess?

stock backup is better, but like you said, you can use other ROM without any problem, like what? CM14/CypherOS M8 port?

Thanks.
[HTC Desire Eye] silvershadow:
I'm enjoying the rom a lot, so I don't want to switch, but right now no one can contact me since I can't keep the Sim card in.

Sorry I should have been more specific, these were not nougat rooms that I tries, this is my first nougat rom I ever tried. I was using s. Team desire eye marshmallow before.

I can install the "stock marshmallow" rom that is here.

https://xdaforums.com/desire-eye/development/roms-official-marshmallow-desire-eye-t3334742

How do I make a backup that doesn't have any personal data in it?

EDIT: I guess I just make the back up before I put any personal data. :)

Is the backup with twrp sufficient?
[HTC Desire Eye] tarkzim:
yeah... back up via twrp, but as you said you never get nougat to work on your device,

did you try to disable NFC before you put your sim card in? (with RR)
[HTC Desire Eye] silvershadow:
Today, I tried to disable NFC before putting in sim card, it seemed to work at first, but then it just restarted.

I also disabled NFC, and then restart phone with simcard in. upon boot immediately after loading the lock screen, the phone would restart similar to before.

I am currently uploading a backup of marshmallow for you. (i will post it as soon as the upload finishes.) I will also try CypherOS M8 port to see if i get the same issue and I will let you know.

I feel like i've gone so far, i dont want to quit until i gather enough information for you to be able to fix it as i'm liking the rom very much.

I was tempted today to downgrade my simcard to get the one that isnt nfc enabled (i tried a simcard from a different carrier that isnt nfc enabled and it worked no problem). but that carrier also didnt have LTE so i dont know if it was a good enough test.

I tried with an LTE-NFC enabled sim (bootloop, or restart if i insert the simcard after boot)

I tried with a nonLTE-non NFC enabled sim (no bootloop or restarts.)

Ill let you know what i find tomorrow.

Thanks again for all the assistance.
[HTC Desire Eye] silvershadow:
Attached is the logcat.

I think i captured the moment of a reset, i dont know how to tell, i just uploaded everything.

steps:

1) removed simcard, booted up phone

2) waited for phone to settle in a little. then started usb debugging and started adb logcat capture.

3) inserted sim card waited for phone reboot.

4) log stopped capturing during the reboot.

5) copied contents of log from cmd prompt to xlxs (.txt file was too large so had to use a different format which allowed me to upload here).

Please let me know if i managed to capture the right moment. Otherwise, I may need some tips on narrowing down the specific information you require.

ALSO: i have tested CypherOS and get the same issue, so it is not an issue with your specific rom, it may be exactly as you said: "NFC-Enabled Sim Card" + android 7 (nougat).
[HTC Desire Eye] tarkzim:
the log should be useful, didn't got time to look into it carefully,

but i think it "might" be solved by using UL_CA RIL blobs?

or i can find some patches that will fix this.

thank you for your testing and reporting, i hope it will get fixed and you can enjoy this ROM without any worries.
[HTC Desire Eye] silvershadow:
Okay, thank you again.

Ill keep an eye on the thread for a reply/update.

I will restrain myself from trying to obtain/buying an LTE sim that is NOT NFC enabled so this way i can work with you to test a fix.
[HTC Desire Eye] tarkzim:
after some google searches, i found that your problem might related to AGPS or something, saw it with same error on M8 forum with Canadian Sim card, try to disable A-GPS or fully disable GPS before you put in your sim card? thanks.

EDIT: also try this zip for GPS configs from stock ROM. [MENTION=845243]silvershadow[/MENTION]
[HTC Desire Eye] silvershadow:
1) Just tested it out (location services off). I turned off location services, popped simcard in and the phone rebooted. but it didnt get stuck in a bootloop. (NFC and WIFI off, phone set to 3g only)

2) set phone to prefer LTE, wifi on and connected, NFC on, ALL Location services off. rebooted phone with simcard in, and it didnt get stuck in bootloop. seems to be working fine (minus the gps not working because its turned off).

3) LTE/Wifi ON, NFC On, Location Services ON (agps+gps (its called high accuracy mode in nougat)), rebooted phone: phone worked perfectly fine. Turned off wifi and used lte connection to map me some directions, it worked just fine.

4) rebooted phone again, got stuck in bootloop. (this may be because wifi is off, so instead of using cell tower location, it must be using wifi location at the start of step 3, which caused it not to crash)

5)tested 3 and 4 a bit more thoroughly (everything on, only difference being, booting with wifi off and booting with wifi on. wifi off and simcard in seems to get me stuck in bootloop.

If i had to guess, i would guess that with only the cell network, its doing some initial check near bootup to grab cell tower location (agps).

6) turned off agps and using just regular gps (Location setting: device only instead of high accuracy): stuck in boot loop (this was not what i was expecting, so it may not be just agps alone, or maybe its still doing some initial check at startup, not sure)

7) booted phone with no simcard, agps turned off, regular gps on. no crash. put simcard in, as it connects to the network, it crashes and stuck in bootloop

8) turned location services off again to do more thorough testing: wifi off, location services off. put simcard in, phone did one reboot/crash, but did not get stuck in bootloop. (perhaps the location settings didnt take full affect until after the phone rebooted.

9) location services off during boot, phone seems stable and not crashing.

since location services is important for my daily use, i will try the patch below and reply back.

EDIT: i havent tried the patch just as yet, but if i start up the phone with location services off. and then wait a bit for it to settle in, then turn on location services high accuracy (agps) i am able to use google maps to give me directions like normal while using my LTE data, and havent gotten a restart yet.

its a bit confusing now.
[HTC Desire Eye] tarkzim:
yeah, same situation as M8 Rogers user, BOOT with GPS off, turn it on after a while then it's fine.

we can only find out after you tried the zip, thanks.
[HTC Desire Eye] silvershadow:
Tried with the patch you provided:

1) installed patched with twrp, reboot

2) boot phone with location services off , SIM card in. no crash or bootloops

3) set location services to ON (high accuracy), SIM card in. reboot, get bootloop still

After all the testing:

What has been working for me so far is:

Location services set to OFF: reboot with simcard in. Let phone settle in for a few minutes. then turn on location services, phone doesnt restart and i can use it as normal.

I am satisfied so far. I will use it more and see if i get a restart or bootloop anymore.

I hope this information will help others in my scenario (and perhaps ultimately help with removing the need to do this little workaround).

I will continue to monitor the thread for any updates or if you have anything else you would like me to test.

EDIT: please note that with or without the patch, i haven't noticed any differences (negative nor positive)
[HTC Desire Eye] tarkzim:
Got it, check your PM thanks.

We can discuss this on it. [emoji1]
[HTC Desire Eye] Waynenolan92:
In installation instructions said that I should turn gps on if the previous ROM was sense based(in my case s.rom)...could be turned off gps be the reason for lags??
[HTC Desire Eye] silvershadow:
i didnt get any lagging.

process i took:

1) backup apps and data with titanium

2) backup s.rom with twrp

3) wipe dalvikcache/cache/system/data

4) install RR (basically followed instructions in first post from here)

5) after i set up magisk hide to get android pay working (i dont use it, but just wanted to do it anyways, i also included super mario run with magisk hide to have that game working perfectly)

6) used titanium to restore all my apps and data (had a problem with restoring contacts and phone, so i had to wipe the data and cache for contacts and phone after i restored it to fix the problem)

The above process left me with no lag.

I intend to do everything again, but not restore with titanium backup and instead reinstall the apps i want manually, and only restore the data for the apps that i really need it for. I think it will keep the system a bit more stable, since i may have forced apps onto the phone that are not compatible with nougat yet.
[HTC Desire Eye] tarkzim:
new build released

upstream updates and fixes.

Camera Button can launch the camera from screen-off state with long pressing. (seems not waking device with a single click?)

correct battery capacity that showing on Android system. (2400mAh)

some minor tweaks related to sepolicy.

please test and give me some feedback, also flash it with my latest TWRP 3.1.1.

thanks.
[HTC Desire Eye] silvershadow:
I did a dirty flash (dont have the time right now for a full clean flash) and i noticed that the screen resolution went back to the original one instead of the smaller icons i got used to with your previous version.

i can clean flash at a later time (but i prefer the higher resolution [smaller icons] more things on the screen).

thanks for the update
[HTC Desire Eye] tarkzim:
yeah... something wrong with my display configs, but you can still set it back manually tho.

thanks for feedback.
[HTC Desire Eye] jamesmalit3:
Thanks for developing for this phone! :)

Just a small issue, I've been experiencing random freezes then reboots once a day, and I'm not exactly sure what triggers it. I'm using EYE TUHL and still at Lollipop firmware. Nonetheless, everything work great and been using it for two weeks now as my daily driver. :)
[HTC Desire Eye] tarkzim:
new build released

with some upstream changes and fixes from RR and LineageOS.
[HTC Desire Eye] silvershadow:
thanks for the update!

I find the rom very stable especially when not using Location Services, that is the only time i get restarts, but based on all our previous testing, i know when to expect a restart or know when to force my own restart and which combinations of Wifi/LocationServices/SIMCARD are safe to use and when.

Going to dirty flash this update as well. not getting the free time to do clean installs anymore.

I had a question about the previous update regarding the camera

"Camera Button can launch the camera from screen-off state with long pressing. (seems not waking device with a single click?)"

I was curious as to what this meant as i was trying to test it for you. When the phone is locked and screen is off, press the camera button (long press, short press, double presses, nothing turns on the camera, so im not sure if I'm testing the wrong thing.

Keep up the good work Tarkzim! Thank you again for bringing new life to the Desire Eye (I almost broke down and got a new phone i didnt want).
[HTC Desire Eye] tarkzim:
thanks, but that location bug is still a pain in the a**, and i don't even know how to fix it...

anyway, the camera key feature has to be enabled in RR settings and i have no idea why it's not waking up the device but launching camera.
[HTC Desire Eye] silvershadow:
thanks for reminding me that there are a whole bunch of RR settings that i still have to go through and tweak to my liking.

for the location bug, well, i guess all we know for sure so far is that it is only present on Nougat based roms and not on marshmallow/lollipop.

I was thinking of getting logcats of each different scenario i can get to reproduce the restart, but im not sure if it will be beneficial to you?
[HTC Desire Eye] yamix112:
you said that this ROM supports F2FS. How can check this ?
[HTC Desire Eye] tarkzim:
format your data and cache partition to F2FS via TWRP (it will wipe all your data, backup first).
[HTC Desire Eye] tarkzim:
more logs = more chances.
[HTC Desire Eye] tarkzim:
new build released

updated to Android 7.1.2_r17 with June Security Patches.
[HTC Desire Eye] TahirZX:
So just dirty flash it?
[HTC Desire Eye] tarkzim:
yes.
[HTC Desire Eye] silvershadow:
Thanks for the update again Tarkzim! Dirty flashing this one right now as we speak.

I noticed something is missing, i tried to get back the HTC camera that came with the desire eye originally; i got it back and it works good, but i noticed that the "live makeup" feature on the selfie camera isnt there anymore.

i can turn the option on in the settings, but it doesn't show it live (and the slider directly on the screen when taking a photo is gone, it only has it in the settings for the camera), Luckily it still applies the filter after a photo is taken, but theres no way to tell live if the filter is too strong or not. Is there a way to get back that feature working with the HTC camera? or is it something that cant be brought over? i think i remember looking into something about "your htc desire eye has to have the "eye experience" update in order to use live makeup" so maybe if that is a separate update for the stock rom, perhaps it might be able to be applied here?

Ill admit, i don't like the feature, but my wife likes to use it when she uses my camera, so it would be nice to get it back.

Thank you again!
[HTC Desire Eye] TahirZX:
Exactly the same feature I wish for
[HTC Desire Eye] silvershadow:
Hey Tarkzim, can you please check to see if you are still passing safety net? I don't think I am anymore and I'm not sure if it's because of an update or something Google server side.

Edit: as of today Google changed it, enabling core only mode in magisk allows it to still pass
[HTC Desire Eye] tarkzim:
i'm sorry that i can't do anything about Sense Features, and i don't think it's a STANDALONE package/update for Sense ROM,

just a feature that they included or not.
[HTC Desire Eye] tarkzim:
i don't have a Desire EYE in hands now, but my other devices passed the safetynet checking via latest Magisk beta 13.0 without changing any stuff.

so i think it's fine.
[HTC Desire Eye] silvershadow:
Thanks, Im still using 12, but looks like 13 will still work normally.

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

Oh okay, make sense, the article I read made it sound like it was a special package, but I couldn't really find anything. Probably as you said, it's just a feature.

Thank you again!
[HTC Desire Eye] tarkzim:
new build released

with some upstream fixes and kernel security patches.
[HTC Desire Eye] silvershadow:
Thanks for the update, I look forward to these updates, its nice to finally have a phone where someone is actively updating it.

Thanks again, i apologize for not getting much time to look into getting more logcats, i wish i could do more to help with that location issue.
[HTC Desire Eye] topojesus:
hi there im gettin error 7 can anyone help me?
[HTC Desire Eye] tarkzim:
can you take a photo while you see this error, or tell me what did it says thanks.
[HTC Desire Eye] topojesus:
i update the recovery with 3.1.1 then all wipes, when its going to flash the rom it take a while and then just says that error 7 and that i must try another rom, im coming from ice m8 with mini kernel but already wipe, if there is something that im missing an you tell me please..
[HTC Desire Eye] tarkzim:
you have to flash my ROM with my TWRP build.
[HTC Desire Eye] topojesus:
already did, im trying to copy the log, im using your build (twrp-3.1.1-0-eyeul-nomtp.img) is that? i really wnat to try this rr version.

ill try to make a copy from the log.
[HTC Desire Eye] topojesus:
there is a picture
[HTC Desire Eye] silvershadow:
Just a thought and just trying to get confirmation:

I noticed that it says error installing from external_sd..

if you are using tarkzim's version of twrp, then reading from an SD card is not supported.

Is the zip you are installing located on the phone's internal memory? or on the SD card?

You must copy the file to your phone's internal memory, (to make sure, you can always do the install with NO SD CARD inserted). also, make absolutely sure that tarkzim's version of twrp is installed (to make sure, u cannot access your external SD card with his version, so if you are able to browse content on the external sd card using twrp, then you dont have his version).

Again, i am just confirming, because i do understand that sometimes android identifies the phones internal memory as an SD Card.
[HTC Desire Eye] topojesus:
I try that too but get the same error.

I already flash the rom editing the updater script as a txt. File but try a couple of time until it work properly but at the end of the night it was a successfully installation. I'm testing and it work very fast. Thank you.

The only thing that was making me crazy was that the txt file wasn't in order to be modified easy. Just at the fifth try that it work. But I'm happy with the result and testing the 7.1.2 at my eye so happy by now.
[HTC Desire Eye] TahirZX:
Okay 2 major questions.

1-how to update to magisk v13?

Is it compatible with our device yet? Cuz i keep getting g safety net fails.

I'll flash the latest twrp from OP and,

I'm on an older build of RR thinking of dirty flashing new build and update rom in this way. Does the new build include v13 of magisk?

2-my back camera(htc m8 cam) sometimes fc. Will updating the rom also update or change something regarding this?
[HTC Desire Eye] tarkzim:
i think both are just minor problem,

for 1: just download latest beta from Magisk Forum and flash it, that's it.

for 2:nothing will help, and if you don't provide logs then it will be a mystery puzzle... and what do you mean by (h8 cam) ?
[HTC Desire Eye] TahirZX:
By m8 cam I mean the original htc camera app

Tho I noticed back camera wouldn't open with other apps either.

How can I get logs? Can u tell me? Thanks
[HTC Desire Eye] tarkzim:
camera is fine for me , you can google for how to collect logcat while something happening.
[HTC Desire Eye] ByronFer:
Can someone confirm that Gyro works with the latest version of this rom? I use a lot of VR software, and I remember earlier versions of this rom did not support it... Thanks...
[HTC Desire Eye] TahirZX:
Yup works
[HTC Desire Eye] ByronFer:
Thanks!!! Downloading right now :)
[HTC Desire Eye] ByronFer:
Im having a lot of problems while trying to get this rom working, had to do a stock reinstall, dont know what im doing wrong.. So while trying to flash from twrp i get an error E3004: This package is for device: htc_eyeul, eyeul, eyetuhl; this deivce is m8. Anyone? Thanks...
[HTC Desire Eye] tarkzim:
That's why I keep saying that you guys have to use my twrp build to flash my rom instead of the m8 version, read my thread again before you post.
[HTC Desire Eye] ByronFer:
Yes.. Im really sorry about that, somehow I missed that part.. My bad... I was doing it all from the phone... Wont happen again :rolleyes: So that error is caused because of wrong recovery right? Thanks...