yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Original Android Development] m1st3r1:
Hi, in this point, i dont think there's a foolish way to fix it. I'm willing to try anything :)

but first of all, did you really get the same problem as mine? I mean, it's rebooting everytime the screen is locked, how one can manage to live with that for more than a week, it's unthinkable (at least for me). Set the phone to 1 minute to sleep, in an hour, i got 30+ reboots. Seriously, how can one use that? :D

well, in my trial to find out the problem, I tested after flashing stock rom, wipe everything and removed the micro sdcard, tried for about 30 minutes, got about 10+ reboots.

now ive been using the rom more than a week, i use pico gapps, so no google clock, whenever i disabled the keep device awake task from Tasker when the screen is off, it still got reboot. tried froze the clock app, still got reboot. i havent tried magisk tho., but again, even with only the rom, it still got reboot, i dont think magisk will fix it.

thanks.
[Xperia Z2 Original Android Development] GitaraSiema:
I could say that battery life with governor bug is still good, however ROM is smooth af ?
[Xperia Z2 Original Android Development] NEOCOOLER:
Hi thanks for you're great job all is good for me in this rom.

I use it all the time.

I've just one problem and i hope you can fixe it or say to me how to fix it ;)

i can't use NFC controler to pay with my bank app. with official rom i can but here he say HCE_IS_ACTIVATED/ERROR_SECURITY_TRC

how to fix it please say to me ;)

have a good night
[Xperia Z2 Original Android Development] iXaidyiu:
Use magisk as root manager and then Magisk hide.
[Xperia Z2 Original Android Development] NEOCOOLER:
Thanks but no. I've tested this one and it dosen't work nothing change same error ;-(
[Xperia Z2 Original Android Development] luqman@dr:
I had change the kernel n no reboot anymore but my Xperia camera got fc after that
[Xperia Z2 Original Android Development] DawoodSahi:
If clearing data doesn't work, you'll possibly have to get your new framework patched first.
[Xperia Z2 Original Android Development] jhuryganelo:
Stock Camera is Great! :)

https://xdaforums.com/crossdevice-dev/sony-themes-apps/port-stock-camera-nougat-roms-t3628791

Thanks to the developers :)
[Xperia Z2 Original Android Development] okij:
You could try to use the Universal SafetyNet Fix Magisk module, maybe this helps.
[Xperia Z2 Original Android Development] TepaC:
https://xdaforums.com/showthread.php?t=2279039

Is it safe to do this?
[Xperia Z2 Original Android Development] mimo.aridi:
This feature is present in RR rom in the security settings. Idk if it's in there is LOS.
[Xperia Z2 Original Android Development] TepaC:
Thanks for your quick response, I cant find that feature in LOS and assume it is possible to enable that feature somehow, so please if someone know, tell me :)
[Xperia Z2 Original Android Development] iXaidyiu:
The guide is obviously outdated and if you still want it, you may try and report back.
[Xperia Z2 Original Android Development] OramahMaalhur:
Hi!

I've just installed the last June build, TWRP and gapps. The first startup went smoothly, I was able to configure accounts and so on.

However, after the reboot there's an instant splash screen with moving blue circle and it never ends. Looks like something just hangs up. TWRP works fine, though.

I tried to wipe everything I could, to reinstall the whole rom and to reflash boot but nothing helped. I'm not even able to see logs, adb logcat in TWRP says that "read failure" and files in /dev/log/ are empty. /proc/lastboot showws TWRP logs.

It there a way to see logs of that hanging boot? Or what else can I do?

Thanks.
[Xperia Z2 Original Android Development] iXaidyiu:
Try completely drain the battery?
[Xperia Z2 Original Android Development] NEOCOOLER:
Don't work anymore. Thanks for your help i thing i need to return in stock with locked bootlaoder.
[Xperia Z2 Original Android Development] xRevengerZee:
So is there going to be any solution soon to the reboot problem? I reverted back to mm
[Xperia Z2 Original Android Development] koraymers:
Is restart problem important really? I don't think so I'm entering my pin code daily it's not important for me it's just happens when the battery is fully charged.

Also Most of people fully charge at night.

Everybody already unlock devices over million times per a day. You will unlock just one more time in mornings

I think there is no need to go back to mm because of it. But it's up to you

Also it can be security feature. No one can use the phone without your allow ;)

It will be fixed on next build I hope but as I said it's not important for me. That was just my opinion :laugh:
[Xperia Z2 Original Android Development] Chronic2k13:
I have found that if I set an alarm for work, and my phone reboots then the alarm doesn't go off. It is an inconvenience if you rely on your phone!!
[Xperia Z2 Original Android Development] Mohamed Adel 2222:
I can't login with snapchat app and Netflix app says ur device isn't compatible with this app also I can't check the update of the rom using loineage update check always says check ur connection

Any help?!!!
[Xperia Z2 Original Android Development] iXaidyiu:
1. Install Magisk and activate Magisk Hide to use the first two app.

2. This is not yet official ROM so the Lineage Updater wont work.
[Xperia Z2 Original Android Development] m1st3r1:
yes, i suspect that will happen as i think there are some camera driver in new kernel. i use the second solution tho, so no deep sleep for me, but cyberian cam v8 works fine.

well, if you bother to read the posts thoroughly, you'll find out that there are two kind of reboot. reboot at night when charging (happen to most users), and reboot everytime the phone is locked (happen to some users, including me, and the guy that you've quoted). ofc if it's only at night, when charging, it's not really a big deal.. imagine it happens everytime the screen is off (phone is locked). simply unusable. :)
[Xperia Z2 Original Android Development] Mohamed Adel 2222:
Thank u so much bro :D
[Xperia Z2 Original Android Development] Cygmon0:
After installing magisk. Don't forget to enable magisk hide and tick ✅ magisk core only. Option in settings.

Also don't tick megre busybox or your phone will freeze and keep rebooting forever. After doing this try to check safetynet. If success then all apps will work.
[Xperia Z2 Original Android Development] luqman@dr:
Would you like give me your settings in Tasker or anything? I don't understand how to use Tasker to make device always awake, not into to deep sleep?
[Xperia Z2 Original Android Development] Mohamed Adel 2222:
Thanks so much man :D
[Xperia Z2 Original Android Development] Mohamed Adel 2222:
I've downloaded and flashed magisk zip file

Downladed and installed magisk manager

Now what should I do?

[MENTION=7607185]Cygmon0[/MENTION]
[Xperia Z2 Original Android Development] iXaidyiu:
If you have Magisk why SuperSU...

CTS cannot be passed atm is normal because Google has once again updated.
[Xperia Z2 Original Android Development] mitzager:
Also, I think Safety Net doesn't pass with 12.0. You should try version 13 beta.
[Xperia Z2 Original Android Development] Mohamed Adel 2222:
I'm sorry but can u explain more, I don't understand
[Xperia Z2 Original Android Development] filjusz:
[IMG="Saftynet"]https://scontent-waw1-1.xx.fbcdn.net/v/t35.0-12/fr/cp0/e15/q65/19943008_1701373783498176_3089328238261563730_o.jpg?efg=eyJpIjoidCJ9&oh=88c4c65e24d5fdad6e68e72e369304ec&oe=59632BC6[/IMG]

No problem with passing safetynet test here :D
[Xperia Z2 Original Android Development] iXaidyiu:
Magisk has exactly the same purpose as compared to SuperSU, so in this case you should have Magisk installed ONLY.

CTS (SafetyNet) is a secure layer developed by Google aimed to distinguish rooted users. Once they have rooted "in the traditional" way, the profile mismatch.

Magisk HIDE or SU HIDE (discontinued) are aimed to make the match false positive. Given that Google frequently update its policy in this field, so the Magisk v12 already failed to make it.

You may give v13 beta a try but really there is no guarantee.
[Xperia Z2 Original Android Development] iXaidyiu:
I wonder how.
[Xperia Z2 Original Android Development] Mohamed Adel 2222:
I had SuperSU installed before installing Magisk, and I didn't know both have the same function.

But anyway way what should I do now to solve this problem?!!

Should I uninstall SuperSU or what?

Also in Magisk settings I only find these options :/

And thank u for ur patience with me
[Xperia Z2 Original Android Development] filjusz:
I didnt installed anything that can trigger safetynet
[Xperia Z2 Original Android Development] iXaidyiu:
Reflash system then Magisk.

---------- Post added at 03:50 PM ---------- Previous post was at 03:49 PM ----------

But then if you play Pokemon or use Android Pay?
[Xperia Z2 Original Android Development] filjusz:
Android Pay ofc
[Xperia Z2 Original Android Development] xRevengerZee:
Bro on the latest build Me and few people have like 30 reboot every hour and every few mins not the other charge at night bug

---------- Post added at 06:46 PM ---------- Previous post was at 06:44 PM ----------

actually the guy who he quoted wich is me i have same problem as ureboot every time phone goes to deep sleep
[Xperia Z2 Original Android Development] Cygmon0:
Works fine for me. First when i installed magisk. Safetynet didn't pass. After enabling magisk hide. Also didn't work. But tried core mode only and restarted my device. And boom it works fine :D

[MENTION=6891123]iXaidyiu[/MENTION]
[Xperia Z2 Original Android Development] Cygmon0:
Apps like?
[Xperia Z2 Original Android Development] Mega99:
Settings crash when setting PIN

My settings app crashes when navigate to Settings -> Security -> Screen Lock. I need to access this menu to remove the lockscreen PIN. that I have set earlier. I have attached a logcat capture right after the crash. Available here: gist.github.com/gbillig/87da16f6c0129fce2d6d8d9654682c6f

Is there any way of disabling the PIN using adb? I know the PIN, but I can't remove it because the settings app crashes. Thanks!

Also, I think it is the same bug is reported on the LineageOS JIRA: BUGBASH-727.
[Xperia Z2 Original Android Development] rcstar6696:
I tested it directly reconnects for me
[Xperia Z2 Original Android Development] kzee125:
Got it!

Thankss!!
[Xperia Z2 Original Android Development] mysubcult:
after i reboot it's recconecting for me too. but for the first time it happens.
[Xperia Z2 Original Android Development] PSaran:
I have installed magisk with safetynet pass and all apps running, even those which dont run with root. Also i have installed nano gapps ;) . Working perfectly. No bugs. Btw i didnt saved my google voice model.

Great rom... Working perfect. Battery seems ok. :good:
[Xperia Z2 Original Android Development] iXaidyiu:
For those who have Cellular Data (LTE)/WiFi switching problems, I have found a faster (than rebooting) workaround for now.

1. Go into Settings > More > Cellular networks, set Preferred Network Type (PNT) to 3G.

2. Wait for 3G connection to establish and H+/3G icon to appear in status bar.

3. Now switch the PNT back to LTE/4G, wait for LTE connection to establish.

4. Done!

Please live with this problem for now as I am trying my best to figure out what's the problem behind the scene. Otherwise if you are tired of switching here and there, please stay on 3G for the moment. Thanks for all your feedback.
[Xperia Z2 Original Android Development] Dendis:
Settings>Storage>SDCARD1 gives me force close.
[Xperia Z2 Original Android Development] rcstar6696:
Yes its the actual workaround don't save voice model oft Google to get microphone work

Its an issue not only for us same happens for one plus one
[Xperia Z2 Original Android Development] rcstar6696:
No issue here
[Xperia Z2 Original Android Development] electro_vinyl:
The phone does not charge when turned off and immediately turns on.
[Xperia Z2 Original Android Development] Little Snevil:
Yeah, that solve the problem. Maybe looking for a fix I'm the future?
[Xperia Z2 Original Android Development] Helmut.Hartmann:
Helo PSaran,

how do you install magisk? Install give me an error "Boot partition space insufficient"...

Thanks
[Xperia Z2 Original Android Development] jaltek:
Hi all,

great job [MENTION=5621191]rcstar6696[/MENTION].

Just a small question: Coming from eXistenZ MM 23.5.A.1.291, got TWRP installed. Is there a way to return to eXistenZ (just in case - not, that I want to do so :)).

Is it enough to do a restore of Boot, System and Data via TWRP (Backuped *before" flashing the boot.img of your ROM of course :))

TIA!
[Xperia Z2 Original Android Development] Meloferz:
Hi, I usually don't use the extreme power saver option, but today I tried and the following video shows what happen.

I had 5% of battery, then drop fast to 0% after switching on that option

http://cloud.tapatalk.com/s/58d50d4f4b4a2/2017_03_24_08_03_12.mp4
[Xperia Z2 Original Android Development] fezzawinkle:
Same as before with aosp and on pn withGarmin connect. BT constantly gets disabled and smartwatch does not stay connected
[Xperia Z2 Original Android Development] mfauzirahman:
Guys...which gapps framework that i need to download?
[Xperia Z2 Original Android Development] iXaidyiu:
ARM - 7.1 - Stock/Full.

----------

Please use the search button, I have seen this question here for many times and got answered already...
[Xperia Z2 Original Android Development] DiogoSilva48:
Any way to activate Google now detection and still being able to do calls ? Or will be fixed in the next update ?
[Xperia Z2 Original Android Development] idelnon:
uninstall root supersu first.
[Xperia Z2 Original Android Development] electro_vinyl:
Can i use Google Pixel Conversion pack on this ROM?
[Xperia Z2 Original Android Development] Chronic2k13:
Any help with this would be appreciated guys!! I've followed ALL the steps to the letter and this keeps happening!!
[Xperia Z2 Original Android Development] iXaidyiu:
Try updating to the latest builds as it should have been fixed.
[Xperia Z2 Original Android Development] :
When will be released the next update and is this will be official?
[Xperia Z2 Original Android Development] Chronic2k13:
Cardinal Rule is no ETA!!! It will be released when it is released!! NOT Before!!!
[Xperia Z2 Original Android Development] rcstar6696:
Carbon Build

Hey Guys a New Carbon build is up

- Security update to july

- new govenour settings from oneplus

- new hotplug solution ( stock sony hotplug)

- code cleanup

- newest Google source

- DRM should finally work

- kernel supports Z1 now
[Xperia Z2 Original Android Development] koraymers:
It means LOS July build is on way :cool:
[Xperia Z2 Original Android Development] Cygmon0:
I hope so

تم الإرسال من Xperia Z2 باستخدام Tapatalk
[Xperia Z2 Original Android Development] rcstar6696:
Yes new lineage will follow in the next days with the same status
[Xperia Z2 Original Android Development] itsnie:
What means of drm shoulf finally work?
[Xperia Z2 Original Android Development] iXaidyiu:
Ninj'd...
[Xperia Z2 Original Android Development] rcstar6696:
DRM for Google play movies,netflix etc
[Xperia Z2 Original Android Development] Cygmon0:
I though it's sony features lol.

Good job. Keep it up boss :)

تم الإرسال من Xperia Z2 باستخدام Tapatalk
[Xperia Z2 Original Android Development] luqman@dr:
I hope new LOS will fixed problem reboot for some devices
[Xperia Z2 Original Android Development] mfauzirahman:
I don' t think so...now with carbon ROM...reboot issue still mystery
[Xperia Z2 Original Android Development] iXaidyiu:
Reboot at night when charge is far from fixed.
[Xperia Z2 Original Android Development] mfauzirahman:
It not reboot at night only but every time when screen locked

Only with may kernel solve the issue.. :)

I always keep may kernel

At least I still can run on nougat
[Xperia Z2 Original Android Development] berkcano:
Do you know why reboot exists? What's basic problem on it?
[Xperia Z2 Original Android Development] iXaidyiu:
Never faced this....
[Xperia Z2 Original Android Development] koraymers:
Time to dance :laugh:
[Xperia Z2 Original Android Development] Cygmon0:
For some reason. Reboot at night happened to me one time. I also use pin lock to unlock device. Never faced any problem.

I know when my phone reboot i can check from the tasks.

تم الإرسال من Xperia Z2 باستخدام Tapatalk
[Xperia Z2 Original Android Development] OramahMaalhur:
Thank, but it didn't help :)

However, I was able to flash Lineage. My guess was that there were some issues with internal sdcard (I had had cyanogenmod 10 previously) so I formatted sd and everything went smoothly.

LineageOS is awesome, it contains mostly everything I want.
[Xperia Z2 Original Android Development] DiogoSilva48:
Can I dirty flash over official carbon or this changes will be on the next official weekly ?
[Xperia Z2 Original Android Development] iXaidyiu:
Official builds cannot be dirty flashed on test builds, vice versa.
[Xperia Z2 Original Android Development] maecar:
Hi guys! Thank you [MENTION=5621191]rcstar6696[/MENTION] for all this wonderful work, the ROM is working perfectly on my Sony Z2 D6543 (brazillian model). I have two questions:

1) Is it possible to increase vibration intensity when pressing the three function buttons (bottom of the screen)? On the stock ROM, it was better.

2) Before installing Lineage, I backed up Sony's HDTV apk (yes, D6543 has digital television) to install again when using Lineage. But when I try to install it I receive an error message saying that the system already have another app with the same package name installed and there isn't. What can I do?

Thank you!
[Xperia Z2 Original Android Development] Cygmon0:
Try installing lucky patcher and patch android system core.jar and enable option that says: (disable signature verification in the package manager)..

I'm not sure if this gonna work for you. But try that until [MENTION=5621191]rcstar6696[/MENTION] reply to you

تم الإرسال من Xperia Z2 باستخدام Tapatalk
[Xperia Z2 Original Android Development] MWPau:
Strange...

I haven't had any mid night-time reboots (that ive noticed) on the 2017/6/11 build until last night.

And its just happened again tonight.

I gather the 2017/6/11 available in the OP is still the most recent of LineageOS for the Z2?
[Xperia Z2 Original Android Development] maecar:
Thank you very much! Your tip was very useful and I was able to install APK using Lucky Patcher. However, the app does not work and has errors, I ended up uninstalling. How do I undo the patch applied by Lucky Patcher?

>>> UPDATE:

I already found the option at the end of the same list where I could clean the applied patches. ;)
[Xperia Z2 Original Android Development] Cygmon0:
Ah. I'm sorry mate [emoji28]

تم الإرسال من Xperia Z2 باستخدام Tapatalk
[Xperia Z2 Original Android Development] rocker00:
delete
[Xperia Z2 Original Android Development] Cygmon0:
Thank you very much.

Can i use applications like photo cleaner and will it clean my files in sd card? Cuz i tried to do it but didn't. So i went to my old s3 device with ics.

There is another problem too. I have already changed my framework.apk to make it work with sony stock camera [emoji22]

تم الإرسال من Xperia Z2 باستخدام Tapatalk
[Xperia Z2 Original Android Development] rocker00:
sorry for all it's for resurrection remix not lineage i posted on the wrong thread.
[Xperia Z2 Original Android Development] OramahMaalhur:
Sometimes phone occasionally starts heating itself and draining the battery. `/proc/cpuinfo` however shows not more than ~30% for each core. Reboot helps. Is it that famous CPU governor bug?
[Xperia Z2 Original Android Development] CokeJunkee:
Had the same issue with official Carbon Rom and Lineage (almost every build), phone rebooting a few seconds after screen lock.

Fixed it by

- flashing stock Sony firmware (.291) with flashtool,

- then rooting with this guide

- flash boot.img from the rom.zip via fastboot (fastboot flash boot boot.img)

- flash TWRP 3.1 via fastboot (fastboot flash recovery TWRP-3.1.img)

- reboot to recovery and flash rom (Lineage, Carbon, RR, etc) and open gapps

- flash newest SuperSU.

Reboot at screen lock is solved now but still have the reboot while charging at night (phone reboots when battery reaches 100%).

It's not a battery problem, on stock it works normal.
[Xperia Z2 Original Android Development] luqman@dr:
No need to flash boot.img from the Rom before flashing twrp? Can i start from pre rooted rom?
[Xperia Z2 Original Android Development] CokeJunkee:
Yes, forgot that step..

You need to flash boot.img from rom.zip prior to flashing the rom, gapps and supersu.

(Not sure if you have to flash it before twrp 3.1 or if you can flash it afterwards, as twrp will be flashed to a dedicated recovery partition.)

Don't know about prerooted rom.

If the reboot issue is connected to the phones radio/modem/boot process/root status, you will need to first flash sony stock rom with flashtool.

Flashing stock roms via flashtool always used to solve a lot of problems in the past. ;) It's the only real factory reset I know of..
[Xperia Z2 Original Android Development] luqman@dr:
Thank you, I'll try first with pre-rooted rom
[Xperia Z2 Original Android Development] mfauzirahman:
Please revert back the status later bro....
[Xperia Z2 Original Android Development] Megaherox:
I installed Twrp but the touchscreen is not working.. so i cant install the os
[Xperia Z2 Original Android Development] Cygmon0:
Install twrp that included in post

تم الإرسال من Xperia Z2 باستخدام Tapatalk
[Xperia Z2 Original Android Development] Megaherox:
i installed the included version its 3.1 but after that i boot in twrp and my touchscreen is not working ..
[Xperia Z2 Original Android Development] Cygmon0:
Try go back to stock and try reflashing again. Make sure you do the steps carefully.

تم الإرسال من Xperia Z2 باستخدام Tapatalk
[Xperia Z2 Original Android Development] Megaherox:
i installed a fresh version 23.5.A.1.291 an then i installed the boot.img an then twrp... i am booting in twrp and the touchscreen is not working..
[Xperia Z2 Original Android Development] CokeJunkee:
As I said, if you encounter such severe problems after flashing roms, recoveries, kernels, mods, etc, the cleanest and most secure way to get back to a fully working phone is: -> flash stock rom via flashtool ! <-

I know, it's a pain in the a** to go through all that steps again but there's a good reason why you should do this.

When you root your phone and start flashing, re-flashing and dirty-flashing stuff again and again, there's a chance that files, drivers and modems get corrupted and stop working as intended.

Even if the installation process says 'flashing successful' your system might be damaged.

The reason for this is:

Flash storage, any kind of flash storage (usb, sd cards, ssd, internal flash chips, etc) is the most unreliable kind of storage there is.

Even expensive quality flash chips consist of a good portion of faulty storage cells. It's cheap, it's fast but it is not reliable at all.

Every time you write data to a flash storage, there's a good chance that some of that data gets lost.

That's why important data is still being stored on magnetic hard drives and magnetic tape..

AOSP roms do NOT bring those modems/radios/drivers with them, that your device needs to work properly (they are NOT open source)!

You can find those closed source files only inside the stock rom package, that comes directly from the manufacturer (Sony).

There are some rules to consider.

1. never touch a running system..

2. if you still plan to change your system and play around trying new stuff -> a.l.w.a.y.s. back up your system and data ! <-

3. read and learn prior to changing anything.

---------- Post added at 07:26 PM ---------- Previous post was at 07:24 PM ----------

Then try it the other way, first root, second twrp, then boot.img.

I'm using that exact same version of twrp and it works without a problem.
[Xperia Z2 Original Android Development] filjusz:
Maybe You replaced the screen to cheaper one which does not support low lewel touchscreen work in e.g recovery