yashsingh1/xdaforums huggingface dataset:
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] D_STROY:
Hi,

I don't have the answer to this unfortunately, but I have had exactly the same issue with the blinking red light and it happened after I installed Xposed too, a few funny things have happened since I rooted and flashed Xposed....

I also get the red light if I use soft reboot but its fine with a proper full reboot. I would be interested too if anyone knows the answer to this.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Is this with just Xposed and no active modules or apps that use root? Have you applied the Camera crash fix mentioned in the Xperia z4 tablet[root] and xposed thread?

Same here. So it looks like soft rebooting is definitely broken on the Z4T, so I think it could be the ROM or kernel. What are you running? I'm on latest stock ROM (CDA 1295-4711, Germany, Customized DE, 28.0.A.8.260 / R6A) and kernel is AndroPlus v10. Xposed is v79, SDK21, ARM64 (xposed-v79-sdk21-arm64.zip).

Right now my suspicion is on the app GMD Auto Hide Soft Keys root that casues a System UI crash...
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] Mr. Schnabel:
Hey!

Had same issue, started about 3 weeks after unlocking, rooting and xposed out of nowhere ... reflashed Stock, rooted again and problem solved!

No more reboots even i set up my system ecxactly like before ...

Don´t know what was really causing the issue but reflashing helped me

Cheers
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Thanks for the feedback. This seems like a common fix so I'll try that (after I have completed my Titanium backups). I should use Flashtool, right?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] scoobydu:
Now why did you have to go and do that jelbo :) that just means less people to try the root method when marshmellow is released!

Oh well...
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] Mr. Schnabel:
Yes, restored via Flashtool did the trick!

Downloaded the FW directly there and flashed it then rooted again with AndroPlus Kernel ....

Reboots startet after updating from V7 to V8 if i remember correctly ... when rooting then again i needet to start with V5 and updated then to V10 ... every higher Version than V5 gave me an error in ADB ....
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
That could have worked back then maybe, but the .260 firmware apparently needs v10. I just flashed v5 and my tablet didn't boot anymore. That got fixed though, phew.

I re-flashed .260 with Flashtool, reflashed the kernel, SuperSU and Xposed. I somehow had my apps still there, so I hope that's OK for this fix.

Let's see if it's stable now...

Haha, yeah... the software keys were making me mad. I could hide them with GMD Full Screen Immersive Mode, but when immersed, you can't type :mad:

/edit2: Oh noo.... first thing that happened when Android finished booting: the crash I described.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] Mr. Schnabel:
Sorry wasn't really clear i only flashed V5 to get into TWRP and then flashed V10 on latest FW. English is not my first Language but everything ok from what i read now?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
I was just a bit too hasty, no worries. English isn't my first language either.

Everything ok so far now, yeah. I re-flashed with wiping everything and this time just rooted, no Xposed. So far, so good.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] D_STROY:
Hi Jelbo

Sorry I haven't replied sooner, haven't been on XDA for a few days! I wasn't aware of the camera fix, i'll check that out, thankyou. Aside from the camera not working, Audio settings and MusicFX have gone right up the wall, I had to freeze them because of all the FC messages popping up.....was driving me crazy in the end!

Yes I am also running the same ROM, Kernel and Xposed version that you have, and I also think that something with Xposed and the soft rebooting causes a System UI crash too, I don't know why I didn't mention it in my first reply to you as that was one of my suspicions, a soft reboot is a an unclean shutdown (I think?...) and the Z4 doesn't seem to like it!

I had some problems with Xposed modules too, I haven't got the GMD one installed but Gravitybox was the first one I installed straight away, I was really missing it without having root and aswell as numerous other modules I have installed I had the newest version of xStana running and everytime I went into the Recent apps either via softkey or BKB50 , I was getting a full system UI crash so I disabled gravitybox as I have navbar tweaks enabled....rebooted and still same issue, disabled xStana and all was fine again. So to my relief it wasn't Gravitybox and to fix the problem I installed the oldest version of Xstana and it has been working fine.

Also.....do you have or want viper4android FX installed? I just thought I'd ask because I cannot get it to work either Apk or ZiP install. I flashed the ZiP after no success with Apk and I was convinced I had bricked my beloved tablet after that, I couldn't get it to boot then it turned to bootloop and after nearly 2 days of trying alI I could think of I managed to rescue it by removing the ZiP via TWRP......I dont know if its SONY or Lollipop that causes problems but I have had things that won't play nicely it seems.....:(

EDIT: Sorry I just realised you asked if I had a problem with Xposed itself or wether it was with modules/apps that were active that were causing problems, I'm afraid I don't have the answer as I have had active modules as soon as I rooted and flashed Xposed.

My guess is that it is Xposed framework that is causing issues, I don't know if you have this too....but the system logs on my device have wall after wall of error code displayed in red and they nearly all mention Xposed, honestly I have never seen such a vast list that repeats over and again of errors, it made me think about uninstalling Xposed but I just can't live without it!!!
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
But are you running Xposed again or not?

I don't think it's an 'unclean shutdown', as it reboots. I think a SystemUI crash has more or less the same effect as a soft (or hot) reboot. These should immediately show the boot animation, but on the Z4T they cause a full (or cold) reboot, beginning at the splash screens, showing the Sony and Android logo's.

No, I don't use or intend to use that.

I haven't installed Xposed yet on my fresh install. It's been running great so far with all kinds of root apps and tweaks. When I had the reboot problems I also had it with no Xposed modules active.

I'm very hesistant now to install Xposed, because of stories that the uninstall.zip didn't fix problems and that's the only rollback option since TWRP restore is broken.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] Mr. Schnabel:
Yes, like said running same setup as before the re-boots occurred. Root/Xposed/Same modules/ same apps, etc.

System was running w/o problems for about 3 weeks and out of nowhere came those re-boots. Didn´t update any app/module/etc. in this time only thing was the BK50 but i had it for about 10 days before it started acting weird so don´t know what was really causing the problems ....

Sometimes after seconds, sometimes after minutes, sometimes after hours ... out of nowhere black screen/Red light and reboot ...
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
I just flashed xposed-v79-sdk21-arm64.zip, after I was running great for a few days, rooted. Guess what? After the boot and when all the apps were 'optimized': black screen, red LED and a reboot. So, this issue is definitely caused by Xposed.. What I still don't understand is why it's working for [MENTION=5458816]Mr. Schnabel[/MENTION]. Guess something is different and the cause of my issue.

I just flashed xposed-uninstaller-20150831-arm64.zip, hopefully things will be stable again.

Anyone else running Xposed, but without issues?

/edit: seems like we're not alone in this. I'm currently searching older Xposed framework .zip's, these are somehow hard to find as the old versions are replaced with the new in the Xposed thread :S I want to try xposed-v78-sdk21-arm64.zip.

/edit2: Just tried it with xposed-v78-sdk21-arm64.zip (found on a flaky Chinese Baidu mirror) and this also resulted in a crash, very quickly after booting. I'll have to delve into how to get some logging on this so people can look into this.

/edit3: [MENTION=5971873]dl12345[/MENTION] once compiled an unofficial v74 build that worked great on a Z3+, but a Sony ROM update killed compatibility. At least on the Z3+, according to [MENTION=6774113]DHGE[/MENTION], who ran the unofficial v74 on his Z4 Tablet. I just read now last week he was running v78 on his Z4 Tablet, so I guess he is also running it without the rebooting issue on the latest .260 firmware...
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
[MENTION=1847079]jelbo[/MENTION]

typing this on my tablet:

all fine here with xposed v78, now on v79 - no random reboots

only Sony camera app is crashing, deodexing according to AndroPlus did not help. That could be a tablet issue.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
All right. Just to be clear, this is with:

firmware 28.0.A.8.260 (mine is CDA 1295-4711, Germany, Customized DE, R6A)

AndroPlus Kernel v10

AndroPlus' TWRP 2.8.7.0

xposed-v79-sdk21-arm64.zip

No other, special things like disabling SELinux?

I really wonder what causes the difference here. I completely re-flashed the stock firmware a few days ago, including the kernel, recovery and Xposed. First thing that happened was the crash. So it couldn't have been any other 3rd party apps or Android settings.

I then redid everything, but did not install Xposed and things run fine. As soon as I flash Xposed (have tried v78 and v79) I get the crash. I do wipe cache and Dalvik cache after I have flashed Xposed. When I uninstall Xposed, the problem is gone.

I did not do the deodex trick for the camera app this time, but that would not bother me anyway, I don't use the camera.

Do you have any idea? Life without Xposed is hard.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Here are some logs, one from a normal boot without Xposed, two with Xposed v79 flashed; an initial boot and a second boot, both of where the device crashed and rebooted.

I also filed a report on rovo89's Xposed GitHub.

From similar Sony Xposed issues I have the feeling that some of my odex files are corrupted (which ship on several Sony ROMs) and that people who are running Xposed on a Z4T just fine are running a slightly different build than me (e.g. a non German one), in which these files are OK.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
I do not know the exact numbers of the german ROM but since I got it via XperiFirm we should have the same version.

SELinux is enforcing.

I have deactivated lots of bloatware like VideoEditor, Google apps, myxperia...

I have disabled all autostarts of apps via Xprivacy (or Titanium Backup?) that I deemed unnecessary/nosy.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Thanks. More or less the same here. I disabled or froze a lot of system apps using Titanium Backup and My Android Tools Pro, based on this Xperia LP 5.x debloat script. I did miss a few, because they were not listed and I don't know what they do, so maybe one of those that is still running is the culprit here. Rather difficult to compare between you and me.

Here's the Xperifirm list as of now, by the way. Maybe I'll try the US variant.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] killdozer56:
Hi,

I just can confirm that soft reboot doesn't work. (Without Xposed installed)

Sony Xperia Z4 SGP771

Androplus Kernel V10

Twrp 2.8.7.0

SuperSu 2.46

28.0.A.8.260/R10A Customized FR

I tried xposed-v79-sdk21-arm64.zip (three modules loaded: greenify,3c toolbox pro,Ownorientation) two weeks ago and my only problem (I think) was the Sony camera app stop working, so reflash stock rom, androplus,twrp,SuperSu and restore UserData via twrp did the job.

I try to install xposed and the deodexed trick for the sony camera app next weekend if i'm not busy.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Thanks, that would help. I can send you the deodexed file if you want, so you don't need to set up that deodexing tool and Java. On the other hand, maybe that file is the culprit here, haha. Better to test your own file. ;)
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] killdozer56:
Thanks, but I have already deodexed the file myself so i'm prepared to flash xposed. I backup my files via twrp and Titanium next weekend and i post the results
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Time for another theory after reading lots of stuff.

[MENTION=1103233]mionica[/MENTION] had a very intersting finding with his Xperia Z3 Dual. Although the problem is primarily a bootloop after installing Xposed, he also mentions random reboots. What has my interest is this:

This aligns with my experience on the Z4T, which started with random reboots and is now at the level of the device rebooting almost immediately after booting into Android. The only real difference I can think of is that in the meantime I have installed lots of apps. Now that I think of it, the random reboots started to intensify the longer I used the Z4 and the more apps I installed.

Apparently, there is a file limit (open file handles?) in Sony ROMs.

(source)

The issue is further discussed on this GitHub Xposed Issue, from where it was also fixed in the official Xposed Framework back in April 30. In the thread is also mentioned that [MENTION=5169444]AndroPlus[/MENTION] had released a kernel (Z3 I think) with

(source)

When I do a ulimit -n I also get 1024 (you need busybox I think), so it's not changed to 4096 in AndroPlusKernel v10. I think it shouldn't be any higher than 1024 because the root cause (file handle leak) was fixed in Xposed, but I still do really wonder if upping the limit to 4096 fixes my issue. Can't seem to do it myself, there is no sysctl.conf in /system/etc/.

I also really wonder what happens on Z4 Tablet devices with Xposed running fine, when you install lots of apps. That would make it a general issue on the Z4 Tablet with Xposed (and maybe the AndroPlusKernel), which I believe it is.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] killdozer56:
have you try ulimit -n 4096
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] mionica:
To put things into context: back in the day, Xposed leaked file handles like there was no tomorrow (it opened the same file, over and over again, and didn't close it). We worked it around back then by setting the number of files that could be opened by the system server to 4096, since Android would kick the bucket the moment the system server became unable to open one more file; this didn't solve the problem, but delayed it a fair bit.

To check if this applies to you, try something like this from an ADB shell:

for p in /proc/*; do if test -d $p/fd; then echo $p: $(ls -l $p/fd/*|wc -l) file handles; fi; done

; if you see very large numbers for at least a process (at least 500), chances are, a file handle leak is the culprit; if not, it's something else.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
Unfortunately, reading these so bad news, stop me from rooting at the moment. What I really need from xpose is only adaway, but as I see xpose doesn't work at all even without any modules / framework. Moreover, as it was previously mentioned, the camera doesn't work either what make it totally "cool". AndroPlus could have ruled out the problem, but it seems he is not active developer to our regret. The last version of the kernel was released two month ago. Anybody tell me what the damn tablet do we have(sorry for my emotions, of course it's rhetorical question):crying:
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
This works, thanks.

Thanks for the tip. The biggest number I'm seeing without Xposed running is 347 (/proc/1355: 347 file handles), but of course, I should test with Xposed installed. Somehow my ADB driver broke, so that's gotta wait :/ I got the number now using Terminal Emulator.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] killdozer56:
Hi,

Adaway work without Xposed.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] killdozer56:
Thanks jelbo,

can you give a procedure step by step to install Xposed(what to wipe, dalvik, cache, factory reset) of after your experience to identify the problem and what posting log

I have 211 user apps and 304 system apps
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
Did you try xposed 3.0 alpha 4 http://4pda.ru/forum/index.php?showtopic=425052&st=11440#entry39835298 (in order to download from 4pda you have to sign up there)?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
That's a lot of apps! Good. It's simple really. I just flashed xposed-v79-sdk21-arm64.zip from the official thread. Grab xposed-uninstaller-20150831-arm64.zip as well in case you need it. After flashing Xposed, slide the Wipe Cache/Dalvik button and reboot. It'll take a little while longer, then it will start 'optimizing app x of x'. In my case, when that's complete, it will do the crash at the first interaction or very short thereafter.

If it crashes for you too, you can capture a logcat with adb. I used the 15 seconds ADB Installer v1.4.3. It's best to set that up first. In Android, enable USB debugging from the Developer menu (visibible after hitting the build number in About this Tablet 5 times or so). Install the ADB tool on Windows. It will need an ADB driver. I forgot where I got mine from, but it's listed as a Sony sa0112 driver and I'm pretty sure you can force install the one for the Z3+ uploaded here on XDA. ADB drivers are pretty generic. Instructions are here. Test the connection by opening a cmd.exe and running adb devices. You'll need to approve once on your tablet. If all went well, it will list the device with it's serial :D

When the tablet is booting, or at least when it's displaying an Android GUI (the optimizing apps stage for example), you can capture a logcat using adb logcat -v time > logcat.txt. File will be saved in where you have the command prompt open. ADB will be busy capturing as soon as the 'waiting for device' disappears. You can stop writing to logcat.txt with Control + C. An Android crash will also stop it. And provide some useful crash details in the logcat.txt ;)

If you don't have any problems I think there might be a specific app on my tablet that's the cause. We can then compare some lists maybe.

Thanks for working on this as well!
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Yes, but that's just the Android APK for downloading modules and stuff. Nowadays, the actual Xposed magic is installed via the .zip file through recovery.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
There is also the .zip file. Please, look at the message in a more detailed way. .....20150430.zip
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Oh, excuse me. There is indeed. But it's the official Xposed release from April 30 that I mentioned. Those fixes should still be in all later releases up until v79. Also, that .zip is for ARM, not ARM64, I don't think it'll work on the Z4T, which needs 'sdk21, arm64' flavoured Xposed. Thanks for the effort though :good:
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] killdozer56:
Thanks

When i installed Xposed 3 weeks before. I have not had any crash From android for several hours. I Could configure my xposed modules (greenify, 3c toolbox pro, Ownorientation) reboot several time no crash (but the optimisation window after each reboot). But when i try to open the sony camera app that's when i started with the problems.

I use adb v 1.0.32 from http://xdaforums.com/htc-one/general/tool-updated-adb-version-1-0-32-fastboot-t2932160 I think this Is the last version of ADB and fastboot
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
All right. The camera/album app FC problem is as far as I know not related to the random rebooting.

What I am really curious about is what happens when you install Xposed v79 on your current setup with lots of apps. If it also crashes after the optimizing apps stage, we're closer to finding the root cause.

The ADB/fastboot version doesn't matter, as long as they can communicatie with the device. You'll only need ADB to collect a log, in the scenario in which the tablet crashes.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] killdozer56:
Ok

I retry this weekend
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] D_STROY:
Hi Jelbo,

I currently have 155 user apps installed, of which 43 are Xposed modules but there are a couple of those modules that aren't active at the moment.

Funnily enough, my tablet had been running quite stable and I was going to write a post on here to let you know....and guess what? YES, i had about 3 random crashes and reboots! So the mystery still remains unfortunately....

I read on your post about the ROM you have running, I have the same version (28.0.A.8.260) but mine is Customized UK ROM.

Just wanted to ask, when you get a red light and reboot event, does your tablet boot into Android ok? Because I have to do a hard reset (power + vol up buttons) and then reboot most of the times otherwise it just stays at the Xperia wave screen for ages, sometimes it boots without a reset.

Should hard resets be avoided? I thought I read somewhere that they aren't something that should be done often?

I'll have a look into the logs you asked about and try and post them here too.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
Guys. Did you try older versions of xposed for those who have problems? http://4pda.ru/forum/index.php?s=&showtopic=425052&view=findpost&p=41161349
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Just v78 for me. Same thing.

So far, running great here, v79 and the reduced amount of apps I mentioned earlier.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
What about even earliest versions such as v74 and around(it should also support android 5.0.x), for instance?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
Now, I had flashed xposed v79 sdk21 arm via twrp and after I tried to install xposedinstaller 3.0 alpha 4 apk but it's not installing. What to do? Thanks in advance.

EDIT 1 I uninstalled framework, installed Xposed installer, flashed framework again but now no modules are not installing.:confused:

EDIT 2 WELL, the exact problem is framework, I tried both 78 and 79 with the same result, when it flashed, no modules or xposedinstaller itself can't be installed. And with framework each loading goes with app optimizations.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
You'll need the arm64 version.

I had this once as well. APK's refused to install with some unknown error in the package installer, right after installing Xposed. Something went wrong during the initial boot I guess. I fixed this by installing Xposed again (flashing the .zip) and clearing Cache/Dalvik.

The optimizing apps bit should only happen once, after clearing Cache/Dalvik from TWRP.

The 3.0 alpha 4 APK can be installed beforehand, it's just a GUI for the modules, really.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
Thank you very much jelbo for your help, .clearing dalvik cash really help me. After the first boot a catch a first black screen reboot, but now it seems it works more or less stable. After xposed installed, album app stops to work indeed. Could you recommend alternative for this app?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Yes, you always need to wipe Cache/Dalvik after flashing or uninstalling Xposed.

So you had the crash as well? Did this happen right after the optimizing apps stage? How many user apps do you have installed?

As for the Sony Album alternative, I have never even started that app, but I've been using QuickPic since my first Android days. It's great. It's also more or less dead since it was taken over by Cheetah Mobile, but you can install a 'neutered' version that won't be updated by Google Play. Still works fine.

About the test I'm running: I'm at 57 user apps whilst running Xposed v79 and still haven't had a single crash.