Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,925 Members 51,047 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
WinSern1
Old
#1611  
WinSern1's Avatar
Member
Thanks Meter 6
Posts: 30
Join Date: May 2013
Quote:
Originally Posted by karol1981 View Post
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...
 
DubelBoom
Old
#1612  
Senior Member
Thanks Meter 301
Posts: 1,693
Join Date: Jan 2011
Too bad this can't support MIUI..

But I am enjoying it on other roms, thanks!!
Google Nexus 5 - Black - 32GB
 
eejee
Old
#1613  
eejee's Avatar
Senior Member
Thanks Meter 296
Posts: 865
Join Date: Mar 2009
Location: Utrecht
Quote:
Originally Posted by karol1981 View Post
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
 
WinSern1
Old
#1614  
WinSern1's Avatar
Member
Thanks Meter 6
Posts: 30
Join Date: May 2013
Quote:
Originally Posted by eejee View Post
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?
 
eejee
Old
#1615  
eejee's Avatar
Senior Member
Thanks Meter 296
Posts: 865
Join Date: Mar 2009
Location: Utrecht
I did lose all data on the internal sd card. This never happened on my previous devices.

Verstuurd van mijn GT-P5100 met Tapatalk
 
kamso
Old
#1616  
kamso's Avatar
Senior Member
Thanks Meter 141
Posts: 761
Join Date: Aug 2012
Quote:
Originally Posted by WinSern1 View Post
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
 
WinSern1
Old
#1617  
WinSern1's Avatar
Member
Thanks Meter 6
Posts: 30
Join Date: May 2013
Quote:
Originally Posted by kamso View Post
Yes, flashing without data wipe.

Envoyé depuis mon GT-N7100 avec Tapatalk
Thank You =)
 
capslock66
Old
#1618  
capslock66's Avatar
Senior Member
Thanks Meter 1047
Posts: 623
Join Date: Oct 2010
Location: Brussel

 
DONATE TO ME
Quote:
Originally Posted by WinSern1 View Post
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
Did you like Reverse Tethering ? It's free ! All donations are welcome
Reverse tethering:
http://forum.xda-developers.com/show....php?t=1371345
Follow updates on twitter : @ReverseTether
The Following User Says Thank You to capslock66 For This Useful Post: [ Click to Expand ]
 
WinSern1
Old
#1619  
WinSern1's Avatar
Member
Thanks Meter 6
Posts: 30
Join Date: May 2013
Quote:
Originally Posted by capslock66 View Post
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.
 
rovo89
Old
#1620  
rovo89's Avatar
Senior Recognized Developer - OP
Thanks Meter 13696
Posts: 2,367
Join Date: Jan 2012
Quote:
Originally Posted by WinSern1 View Post
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 View Post
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.
Tired of updating your mod for every new ROM release?
You want give users the possibility to combine different mods without creating tons of different files for all possible combinations?
Then have a look at my Xposed framework - modifications without APK changes!

The Following 5 Users Say Thank You to rovo89 For This Useful Post: [ Click to Expand ]
Tags
don't ask questions about modules here!!!, framework, xposed
THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes