Can't reboot without Wiping Dalvik - One (M7) Q&A, Help & Troubleshooting

Hello again XDA!
So this has become much more frustrating that I thought it would. My phone normally operates fine, just a couple minor software issues here and there, latest issue being my alarm not going off, tried disabling amplify in xposed as the issue only occurs if the phone has been idle for the night, figured maybe amplify might be blocking the wakelock or something. Just thought I'd share in case the module could be the root cause of both issues.
The issue I'd really like to ask about has to do with booting. As I said, the phone generally runs fine, but any time I reboot(or my phone dies) I have to wipe the dalvik in TWRP or else android just hangs on bootup indefinitely. Not only is this always a slow process(generally 15 mins of downtime) but it drains about 30% battery in the process. Just wondering if anyone has had this issue and fixed it without wiping and reinstalling a rom from the ground up.
Currently running latest ICE Lollipop build 7.1.3, elementalX 22.4-sense kernel, and latest firmware, 4.19 I believe. Xposed running with just a handful of modules (greenify, snapprefs, xblast, youtube adaway, sense toolbox). I have tried using stock kernel and uninstalling xposed framework and apk to no avail. What does work is a clean install of the same rom with the same basic setup, but I didn't want to have to reconfigure everything if I didn't have to, so I restored my backup in the meantime.
I can't get a logcat ATM, maybe tomorrow after work if I have some time. I'm also not 100% sure how to grab one anymore since its been years since I last posted one, but would be happy to provide one soon.
cheers!

Related

[FIX] Issues with uninstalling system apps - even with TiBu?

I am a serial rom flasher. Often flashing a new rom every day or 3. Often times more than once in a day if I am testing new ones or playing with dual booting, etc. With the last few roms I have flashed (AOSP and CM based) I have had issues with TiBu not being able to uninstall apps in /system. Odd, because I have been using this to do so on every other rom since I got the phone (dozens) so it is a recent issue. Nothing else has changed as far as recovery goes and all that, no issues with how the roms run, applying mods, etc, but every time I would uninstall and reboot, the app would be there again. As I prefer inverted Gapps, and typically they work best if the old one is uninstalled, this would not do. I thought maybe it was the type of Superuser access I had or Busybox, as those are often culprits in TiBu issues. Not the case here. Long story short, it's all about the SELinux permissions.
Fix:
http://forum.xda-developers.com/showthread.php?t=2524485
Install that, grant root access, change to Permissive and BAM. Problem solved.
Hope this helps others!
Hopefully this gets added to CM because it gets really annoying after a while. Thanks for finding a fix for this!
Sent from my Nexus 5 using Tapatalk
My pleasure. Can't believe it's not been talked about more...

[Q] Note 4 Lag and Fingerprint not working - tried everything

Hi everyone, OK I've tried everything in other threads, here's the situation:
Note 4 Sprint
cf-auto-root worked fine, everything working well for a week (stock recovery, stock ROM, just root). Then installed xposed (accidentally used the experimental 2.7 version) and RootCloak module. This threw me into a boot loop.
I recovered from it by redoing cf-auto-root/odin. That got me out of the loop, but-
Ever since then:
- Phone lags for a few seconds every few seconds - making it hard to even type in a phone number, let alone watch a video,
- Fingerprint doesn't work - when launching the menu from settings I get an error that it's unavailable.
I've tried everything in the other threads:
- build.prop change (disabling securestorage)
- successfully installed 2.6 xposed and tried:
- wanam xposed to disable securestorage
- and the xsecurestorage module
- flashed stock rom from sammobile with odin
- even tried disabling selinux with wanam
No matter what, these same issues. I haven't tried anything other than the stock rom. Any ideas at all? Is there a different ROM out there I should try? Does that even have a chance of working?
I'm not sure I understand why flashing stock didn't fix it - even though it caused me to lose root...
Right now I have TWRP with root and stock ROM.
Any ideas or suggestions really appreciated.. I'm out of ideas. Thanks
I have the Same Problem
I had the same problem, haven't bothered installing it again since, don't suppose anyone has heard from the developers?
Hope maybe the devs can shed some light here. Is there anything else I can do? Flashing stock didn't even help. What's left?
So after not touching anything for about a week - things started running smoothly. Very odd - didn't change anything. Xposed was uninstalled for that time.
But, after SuperSU updated (and updated the binary/rebooted), the lag came back. So, this is telling me this may be related to root/SuperSU instead.

[Q] Problem with xposed on stock 5.0 lollipop, nexus 5

I have a strange problem on my phone. Normally it works fine, but when I ever do a reboot, my phone becomes really unstable. It used to just reboot after installing or removing an app, but now it reboots imediately after "Android is upgrading...". I have to remove Cache and Dalvik cache with TWRP (and wait half an hour for all my apps to be upgraded after the boot) to make it work again, only to watch it grow slower over time due to (I think) the memory leak bug. Does anyone have an idea? The problem occured when I installed xposed and a few modules, it could be the problem lies in one of those, but i'm not sure. Is there a way to create something like a logcat when booting, so the problem will become visible?
Ah nevermind, I only made the problem worse. I thougt it would be a good idea to dirty flash a new kernel onto it... Wasn't a good idea. At boot I get this sorta errors E/SchedPolicy( 184): add_tid_to_cgroup failed: policy=1 and when I'm booted up everything closes all the time... Gonna be searching for a solution...
EDIT: Lol I flashed the kernel for 5.1, I'm running 5.0... (facepalm)

[Ask][Troubleshooting] Magisk Makes the ROM Super Laggy

What I did:
- Wipe all (clean install).
- Flash latest Official MoKee ROM (Nougat).
- Flash latest GApps.
- Flash latest Magisk.
- Reboot.
After finished the Wizard Setup and before doing anything, my phone got very laggy, open menu, open Settings, etc.
Then I clean install again like the steps above, but this time using SuperSU, and everything normal, so I stick with SuperSU for now.
My questions, what is the cause of the lags? Is it known bug in Magisk, the ROM itself (not compatible), or GApps? I also heard ResurrectionRemix had the same problem after installing Magisk, so many people revert back to SuperSU.
Thanks,
I have Resurrectionremix and Magisk 14.3
No any lag on my phone.
Tapatalk - Xiaomi Mi6
You need to list what modules you're using.
BIGWORM said:
You need to list what modules you're using.
Click to expand...
Click to collapse
I only flash the ROM, GApps and Magisk without any additional flashable ZIPs.
Honestly that doesn't sound like Magisk. I've ran Magisk on literally probably 20 ROMs between Angler and Pixel XL and never Magisk caused lag... Did u try a different rom? Just curious, or maybe it's some incompatibility with that specific rom and magisk
yung40oz84 said:
Honestly that doesn't sound like Magisk. I've ran Magisk on literally probably 20 ROMs between Angler and Pixel XL and never Magisk caused lag... Did u try a different rom? Just curious, or maybe it's some incompatibility with that specific rom and magisk
Click to expand...
Click to collapse
I tried several ROMs that based on LOS and all same, maybe it's caused by LOS base that used in those ROMs. And since you say so, probably it's not an issue in Magisk, but the ROM itself.
I'll try Magisk again later when some ROM's builds available for my device.
-
I think my questions has been answered (it's appear not issue in Magisk side) and this thread can be closed.
irfanfadilah said:
I tried several ROMs that based on LOS and all same, maybe it's caused by LOS base that used in those ROMs. And since you say so, probably it's not an issue in Magisk, but the ROM itself.
I'll try Magisk again later when some ROM's builds available for my device.
-
I think my questions has been answered (it's appear not issue in Magisk side) and this thread can be closed.
Click to expand...
Click to collapse
Ya I was gonna say cause I use all AOSP and CAF based
I had this issue with Lineage 14.1 and AEX before.
Now I don't have this issue anymore.
What I do is:
- Wipe everything
- Install ROM
- Install GApps
- Reboot and finish Setup Wizard (then I install some or all apps that I use)
- Reboot to TWRP and flash Magisk.
The first time I reboot after flashing Magisk it's still a little slower than normal. Then I reboot one more time and never faced this anymore.
Now I do this everytime I make a clean install and everytime it works.
Danilo-Sanchez said:
I had this issue with Lineage 14.1 and AEX before.
Now I don't have this issue anymore.
What I do is:
- Wipe everything
- Install ROM
- Install GApps
- Reboot and finish Setup Wizard (then I install some or all apps that I use)
- Reboot to TWRP and flash Magisk.
The first time I reboot after flashing Magisk it's still a little slower than normal. Then I reboot one more time and never faced this anymore.
Now I do this everytime I make a clean install and everytime it works.
Click to expand...
Click to collapse
So don't flash Magisk along with the ROM?
Instead finish Wizard Setup first and back to TWRP to flash Magisk. I'll try this if the issue still persist. Many Thanks
irfanfadilah said:
So don't flash Magisk along with the ROM?
Instead finish Wizard Setup first and back to TWRP to flash Magisk. I'll try this if the issue still persist. Many Thanks
Click to expand...
Click to collapse
Yes.
Try it and let me know if this also fix the problem for you.
Yes, Magisk is the thing that's causing lag and stutter. My Nexus 5X is also barely responding to any commands if I flash Magisk right after a ROM clean installation. If you flash only the ROM, then you can finish setting up the device without much stutter or hiccups in performance.
If, after a clean installation (or after installing Magisk - didn't try this though) you use the phone without Magisk for a bit, maybe install some apps, etc, you'll see that everything is nice and smooth.
Now, you can check the smoothness without Magisk and with Magisk installed like this:
- Without Magisk: Update 'Google App' to the latest version then try to open the side panel from the latest Pixel Launcher. You'll see that opening/closing it is nice and smooth, and scrolling up and down is also smooth.
- With Magisk installed (without using any modules): The moment the phone turns on, at first, things might seem OK. First wait for the phone to settle down after the reboot for a few minutes. Then try opening the side panel. You'll see some stutter while dragging that panel to the right, maybe not huge, but it's there. Scrolling up and down is also stuttery. At first I thought it was because of the latest version of Google App, or the new cards design, or even the images in there, but that wasn't the issue. Then I thought maybe the launcher was somehow influencing Google App's performance, but that wasn't either the issue.
AND it was like I completely forgot about SuperSU and didn't even think of trying it in order to see how things were.
I even rebased my ROM in the hope that I'd find the culprit, and still nothing. Nothing weird appeared in any logs, which was so annoying. And a few hours ago, after finishing up cleaning up my sources (for other reasons), I compiled a fresh new build, and it crossed my mind to try SuperSU, just for the hell of it, and BOOM ! No more lag and stutter. The phone is snappy and responsive again.
I'll try to contact the dude behind Magisk and see what he has to say, or leave a comment in his thread.
The thing is, those with more recent phones, like the Pixels or any other phones than are more powerful than mine, might not notice what I described above, but there should be some stutter there, no matter how small, maybe in other scenarios as well.
The thing is, Magisk kinda slowly took the place of Xposed, at least that's what it looks like to me, and I personally don't like that but that's how things are, I suppose. All those modules or at least one of them WILL cause issues sooner or later, just like on Xposed.
But in the end, yes, it's Magisk what's destroying your phone's performance and nothing else. So if you're not really in the need to have your phone pass SafetyNet, and want to have your phone snappy and lag-free, use SuperSU, at least until things get better on Magisk.
dragos281993 said:
Yes, Magisk is the thing that's causing lag and stutter. My Nexus 5X is also barely responding to any commands if I flash Magisk right after a ROM clean installation. If you flash only the ROM, then you can finish setting up the device without much stutter or hiccups in performance.
If, after a clean installation (or after installing Magisk - didn't try this though) you use the phone without Magisk for a bit, maybe install some apps, etc, you'll see that everything is nice and smooth.
Now, you can check the smoothness without Magisk and with Magisk installed like this:
- Without Magisk: Update 'Google App' to the latest version then try to open the side panel from the latest Pixel Launcher. You'll see that opening/closing it is nice and smooth, and scrolling up and down is also smooth.
- With Magisk installed (without using any modules): The moment the phone turns on, at first, things might seem OK. First wait for the phone to settle down after the reboot for a few minutes. Then try opening the side panel. You'll see some stutter while dragging that panel to the right, maybe not huge, but it's there. Scrolling up and down is also stuttery. At first I thought it was because of the latest version of Google App, or the new cards design, or even the images in there, but that wasn't the issue. Then I thought maybe the launcher was somehow influencing Google App's performance, but that wasn't either the issue.
AND it was like I completely forgot about SuperSU and didn't even think of trying it in order to see how things were.
I even rebased my ROM in the hope that I'd find the culprit, and still nothing. Nothing weird appeared in any logs, which was so annoying. And a few hours ago, after finishing up cleaning up my sources (for other reasons), I compiled a fresh new build, and it crossed my mind to try SuperSU, just for the hell of it, and BOOM ! No more lag and stutter. The phone is snappy and responsive again.
I'll try to contact the dude behind Magisk and see what he has to say, or leave a comment in his thread.
The thing is, those with more recent phones, like the Pixels or any other phones than are more powerful than mine, might not notice what I described above, but there should be some stutter there, no matter how small, maybe in other scenarios as well.
The thing is, Magisk kinda slowly took the place of Xposed, at least that's what it looks like to me, and I personally don't like that but that's how things are, I suppose. All those modules or at least one of them WILL cause issues sooner or later, just like on Xposed.
But in the end, yes, it's Magisk what's destroying your phone's performance and nothing else. So if you're not really in the need to have your phone pass SafetyNet, and want to have your phone snappy and lag-free, use SuperSU, at least until things get better on Magisk.
Click to expand...
Click to collapse
I'm glad I'm not the only one experienced this issue, that's mean it's not entirely user fault. Maybe you're right, on more high-spec phones they won't really notice the lags/stutters.
Looking forward to the news/updates regarding this issue.
irfanfadilah said:
So don't flash Magisk along with the ROM?
Instead finish Wizard Setup first and back to TWRP to flash Magisk. I'll try this if the issue still persist. Many Thanks
Click to expand...
Click to collapse
I don't mean to necrobump, but did it work? I have an LG G4 (H815) and suffered the same issue. Like you, I only flashed magisk right after flashing the ROM (LG nougat).
Thanks
Camandros said:
I don't mean to necrobump, but did it work? I have an LG G4 (H815) and suffered the same issue. Like you, I only flashed magisk right after flashing the ROM (LG nougat).
Thanks
Click to expand...
Click to collapse
I haven't got the chance to try it.
Currently I'm using SuperSU to root my device.
I tried installing magisk on my currently in use ROM, i.e., a long time after flashing it, and although it got less laggy, there still was a heavy lag impact in some applications. Maybe it has less impact on lineage or on lighter ROMs? I'm using official LG nougat.
I'm using Mi 6 in Xiaomi.eu rom
YES, magisk causing laggy.
Same here
Mi5, tested on MIUI 9 and 10
Without Magisk everything was great and after flashing Magisk, the phone got laggy!
I have the same problem with my LG G6
interesting, first I thought that emmc will be broken. because the problem is the same (lag). but after i replace emmc, all back is fine. I just think emmc is broken because it is often flashing rom.
ChessPiece said:
What I did:
- Wipe all (clean install).
- Flash latest Official MoKee ROM (Nougat).
- Flash latest GApps.
- Flash latest Magisk.
- Reboot.
After finished the Wizard Setup and before doing anything, my phone got very laggy, open menu, open Settings, etc.
Then I clean install again like the steps above, but this time using SuperSU, and everything normal, so I stick with SuperSU for now.
My questions, what is the cause of the lags? Is it known bug in Magisk, the ROM itself (not compatible), or GApps? I also heard ResurrectionRemix had the same problem after installing Magisk, so many people revert back to SuperSU.
Thanks,
Click to expand...
Click to collapse
what magisk version 16.0 or beta? magisk can't make the phone lag but kernel or something in ROM may interrupt try to change kernel or flash the lastest Gapps

HTC One M9 serious problems with Magisk 15.3

I am struggling to get my m9 back to 'reasonable' battery life. I am running Viper 6.2.0 which comes with Magisk 14.0. I had updated it to 14.5 and had terrible battery (physically hot phone and battery life of about 2 hours - with a new battery). I tried updating to magisk 15.3 and SU quit working (adaware just came to a black screen and other root apps would not work) so I went back to 14.5. On the HTC forum, I was directed to try again and make sure to uninstall magisk from twrp before I installed 15.x. I had not done this before, but installed new Magisk versions over older ones. So I did try that. When I flash that full phone image from aroma (complete wipe) It complains that it cannot install Magisk 14.0 and asks to flash it separately. I happen to have a copy of 14.0 and 14.5 on my phone and can flash 14.5 from TWRP. This appears to work. But the resulting image gets hot. I restore the old boot image from the backup and try again. The only version of Magisk I can reliably flash to this image is 14.5 If I try to run the uninistaller from 1/13/2018, I get no odd messages in TWRP, but it will not boot (HTC logo appears and nothing more on both the OEM inage and Viper 6.2.0). When I install the 15.3 zip, I also get no strange messages in TWRP but the phone will not boot. I am stuck restoring from backup. What can I try?
I have restored the OEM image (installed from RUU), but I am running Magisk 14.5 on there but with 5.x Magisk Manager. In this format, SU appears to work but access needs to be granted at every boot and none of the apps show up in the list of SU enabled apps. On the SuperUser page it says 'no apps found' though the SU enabled apps do work.
A little more information. I saw this behavior before when I tried to update Magisk 14.5 to 15.3 and this was the reason I went back to 14.5. I was able to get 15.3 installed on the stock rom. Everything seems to work properly except adaware 3.2. (passes safety net, android pay seems to work, rooted apps still work). If I uninstall adaware and reinstall it, I get the same behavior. I get a black screen with a red titlebar for adaware. It appears to be requesting root access, but I never get a grant/deny dialog box. I have this behavior on both roms I have tried on the One M9 (stock and viper 6.2 based on 4.28.401.3). I just added the adblock module from TWRP and will see if the module for Magisk works for me. Thought you'd like to know. This is with stock install of HTC M9 4.30.612.12. I will post back if the phone still gets hot and burns a hole in my pocket.
https://forum.xda-developers.com/showthread.php?p=75097249#post75097249
Hi, I faced a similar problem on my OnePlus 3. Details:
Phone: OnePlus 3
ROM: Nitrogen OS Feb 6th, 2018
Magisk version: 15.3, upgraded to 16.0
Magisk Manager: 5.6.1
I had this issue since 15.3, when I upgraded to 16.0 the issue still remained. I cleared data and cache of the Magisk Manager app and that did the trick.
I can see the apps in the list, and no longer does it ask for Root Permissions for the same app repetitively.
Woo hoo. Tried this and it seems to be back! It is no longer burning a hole in my pocket. I'll run it for a few days and see if it is acceptable, but so far so good... Thanks.
Well after a week or so running this it is back burning a hole in my pocket. Light use and battery at 30% at lunch... Gotta go back to the stock rom.
Man I wish I could use this one...
keithspg said:
Well after a week or so running this it is back burning a hole in my pocket. Light use and battery at 30% at lunch... Gotta go back to the stock rom.
Man I wish I could use this one...
Click to expand...
Click to collapse
You have not shown any kind of information what it actually is that is using your battery. BetterBatteryStats, GSam, etc...
If you could provide that, someone might be able to help.
Didgeridoohan said:
You have not shown any kind of information what it actually is that is using your battery. BetterBatteryStats, GSam, etc...
If you could provide that, someone might be able to help.
Click to expand...
Click to collapse
Ok, I will try. I am running BatteryMix, currently. It does not show my anything truly useful, at least to me. It shows when my location, wifi and BT are on, but nothing stands out when I look at the programs running. It just shows a steep battery consumption curve from the moment I disconnect it from the charger in the AM. I will download BBS and see if anything becomes apparent.
My HTC HTC One M9 battery averages 1d 0h 43m (11h 15m 0s active usage) on a single charge.
This is all it says. The screen grabs show:
https://drive.google.com/file/d/11yGgYLEcxnGiVN8KWd3GTo1f_9XNdu-J/view?usp=drivesdk
https://drive.google.com/file/d/1QW1Yl2GeseVhKyFFyytWXgOkI8_rz8Zt/view?usp=drivesdk
What more information can I provide?
Running it today and the same basic info shows. Android System chewing through 50% of my battery. I can give a catlog if needed or anything else. Since 15.x of Magisk, I have had poor battery life with this ROM. With a stock rom, I do not seem to have a problem. Battery lasts much longer
(edit: I had mangled links. Fixed)

Categories

Resources