Thread Closed

Xposed - Legacy thread. Don't panic, Xposed is still here.

OP rovo89

31st May 2013, 12:48 PM   |  #1611  
WinSern1's Avatar
Member
Thanks Meter: 6
 
30 posts
Join Date:Joined: May 2013
Quote:
Originally Posted by karol1981

I dont think that aLogcat from Playstore cant help, his phone has bootlop

It is not boot loop, It can boot to lockscreen but then reboot and go to lockscreen again. It keeps repeating reboot
Downloading Android SDK...
31st May 2013, 12:49 PM   |  #1612  
Senior Member
Thanks Meter: 306
 
1,715 posts
Join Date:Joined: Jan 2011
More
Too bad this can't support MIUI..

But I am enjoying it on other roms, thanks!!
31st May 2013, 01:54 PM   |  #1613  
eejee's Avatar
Senior Member
Flag Utrecht
Thanks Meter: 298
 
877 posts
Join Date:Joined: Mar 2009
Quote:
Originally Posted by karol1981

Try to do some logcat.

I've had the same issue on my 9505. A logcat is not possible because the device hangs during reboot when loading the os. Since I hadn't made a nandroid backup yet (brand new device, rooted about 15 minutes before this happened), I had to do a factory reset.

Verstuurd van mijn GT-P5100 met Tapatalk
31st May 2013, 01:59 PM   |  #1614  
WinSern1's Avatar
Member
Thanks Meter: 6
 
30 posts
Join Date:Joined: May 2013
Quote:
Originally Posted by eejee

I've had the same issue on my 9505. A logcat is not possible because the device hangs during reboot when loading the os. Since I hadn't made a nandroid backup yet (brand new device, rooted about 15 minutes before this happened), I had to do a factory reset.

Verstuurd van mijn GT-P5100 met Tapatalk

You are lucky! i have all important apps and data inside, cannot reset so easily. I will try to flash stock firmware again.
I've read that flashing stock firmware won't make me lose any data in my phone, am I correct?
31st May 2013, 02:07 PM   |  #1615  
eejee's Avatar
Senior Member
Flag Utrecht
Thanks Meter: 298
 
877 posts
Join Date:Joined: Mar 2009
I did lose all data on the internal sd card. This never happened on my previous devices.

Verstuurd van mijn GT-P5100 met Tapatalk
31st May 2013, 02:14 PM   |  #1616  
kamso's Avatar
Senior Member
Thanks Meter: 141
 
761 posts
Join Date:Joined: Aug 2012
Quote:
Originally Posted by WinSern1

You are lucky! i have all important apps and data inside, cannot reset so easily. I will try to flash stock firmware again.
I've read that flashing stock firmware won't make me lose any data in my phone, am I correct?

Yes, flashing without data wipe.

Envoyé depuis mon GT-N7100 avec Tapatalk
31st May 2013, 02:24 PM   |  #1617  
WinSern1's Avatar
Member
Thanks Meter: 6
 
30 posts
Join Date:Joined: May 2013
Quote:
Originally Posted by kamso

Yes, flashing without data wipe.

Envoyé depuis mon GT-N7100 avec Tapatalk

Thank You =)
31st May 2013, 02:33 PM   |  #1618  
capslock66's Avatar
Senior Member
Flag Brussel
Thanks Meter: 1,095
 
659 posts
Join Date:Joined: Oct 2010
Donate to Me
Quote:
Originally Posted by WinSern1

It is not boot loop, It can boot to lockscreen but then reboot and go to lockscreen again. It keeps repeating reboot
Downloading Android SDK...

To stop boot loop :
As soon as you have the boot animation, enter this command on a windows command prompt :
adb reboot recovery
then on recovery, just flash the Xposed-Disabler-CWM.zip
The Following User Says Thank You to capslock66 For This Useful Post: [ View ]
31st May 2013, 02:43 PM   |  #1619  
WinSern1's Avatar
Member
Thanks Meter: 6
 
30 posts
Join Date:Joined: May 2013
Quote:
Originally Posted by capslock66

To stop boot loop :
As soon as you have the boot animation, enter this command on a windows command prompt :
adb reboot recovery
then on recovery, just flash the Xposed-Disabler-CWM.zip

It's not boot loop...it reboots when reaching the lockscreen and it keeps repeating.
i've tried to flash Xposed-Disabler-CWM.zip , it said success but the issue still there.
31st May 2013, 02:51 PM   |  #1620  
rovo89's Avatar
OP Senior Recognized Developer
Thanks Meter: 14,432
 
2,370 posts
Join Date:Joined: Jan 2012
More
Quote:
Originally Posted by WinSern1

It is not boot loop, It can boot to lockscreen but then reboot and go to lockscreen again. It keeps repeating reboot
Downloading Android SDK...

Can you use "adb" (contained in the SDK)? Then you can execute "adb logcat -d > logcat.txt". If you have that, you can also execute "adb shell" to get a command line on your phone. Type "id" to make sure you are root (and use "su" on the shell or "adb root" from your PC if you are not root) and then execute "touch /data/xposed/disabled".

Quote:
Originally Posted by karol1981

Rovo89 can you tell me what is exactly problem in aokp roms that xposed not working correctly, I can't stand situation when after reboot i need to wait 2-3 hours for normal state my phone.

Here is the essential part of my mail to the author of this commit (shows a unicorn for me right now, but should work again soon...):
Quote:

I had several users reporting that with the latest AOKP nightlies and my Xposed framework, their SystemUI takes some minutes to show up. Even though I'm not using AOKP myself, I spent some hours investigation this issue. What I found was:
- The reason for the delay are ANRs, which cause a restart of the SystemUI
- I believe the root cause was introduced in this commit: https://github.com/AOKP/frameworks_b...5494a64ff1f96e
- AppWindow, which is initialized in the start() function of the SystemUI services, loads information about all installed packages
- There are two expensive things in this:
- getting the launch intent results in two queryIntentActivities() calls for each installed package
- retrieving the labels for all launchable packages requires their resources to be loaded
- I injected the package loading functions into the ROM I'm using and they took 10-15 seconds on my S2 at boot time (high load -> more runtime)
- With many installed packages, a slower device or other initializations going on in parallel, the 20 seconds limit for ANRs is easily reached
- Xposed seems be another factor in this, but I have also seen an ANR trace where Xposed was not installed. Even if it slowed down the whole thing by 3 seconds, it couldn't be called the main factor.
- I asked one of the affected users to try an Xposed module that nukes the sortApps() function, which is just one half of the expensive instructions. He reported back that this mostly solves it.

So, here are my suggestions:
- avoid loading the packages during service startup (or at boot time at all - later, the same code just takes about 4 seconds)
- load the information asynchronously if possible to avoid blocking

If you need more information, please let me know.

So in short: I believe that the root cause is that information about all installed packages is loaded at boot time, which is quite slow. It seems that Xposed has also a share in that (i.e. it seems to slow it down a bit further, pushing it over the 20 seconds limit), but I have also seen a trace where the SystemUI crashed in these functions even though Xposed was not installed.

Obviously I'll try to address the performance in the future. @exidler has done some great and detailed analysis and suggested fixes (but as they touch the very core of Xposed, this has to be handled very carefully). Just to get the dimensions right: Execution times are far less than a millisecond in his test. On the other hand, when there are many hundreds and thousands of calls in a short time, this can add up. And during boot time the CPU load is high anyway, so the actual execution time is higher than the CPU time.

So far, I haven't received any reply. If you can address this somehow else, please do so, I honestly don't have the energy to follow up on this. When you talk to your ROM developer, can you ask him to add some logging (with System.currentTimeMillis and maybe a stack trace) at the beginning and end of AppWindow.setupWindow()? That would make it easier to see how much Xposed contributes in this particular case.

Meanwhile, you can try the workaround module from this post. It nukes one of the long-running functions.

The Following 5 Users Say Thank You to rovo89 For This Useful Post: [ View ]
Thread Closed Subscribe to Thread

Tags
don't ask questions about modules here!!!, framework, xposed
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Xposed General by ThreadRank