[Xperia Z3 General] ondrejvaroscak:
Fix found and released:

http://xdaforums.com/show...php?p=60454547

Downloads & instructions: http://xdaforums.com/show....php?t=3034811

Discussion & Q&A:http://xdaforums.com/xpos...lipop-t3030118

I asked moderator to close this thread as issue was fixed by releasing new version of Xposed framework. Please send your further questions and post to respective thread.

This thread is about my findings experimenting with Xposed framework. My work is my own research, with information based on work of other members, especially [MENTION=3989065]serajr[/MENTION] , [MENTION=4695495]moly82[/MENTION] and others. If I forgot to mention, just PM.

My work is based on Z3 D6603 stock firmware version .690 customized DE, locked bootloader.

Backgroud:

As many of you experienced, Xposed currently causes difficulties on 5.0.2 Lollipop. Xposed causes random bootloops, that are seemingly removed by debloating stock ROM and removing number of user and system APKs. However, root cause was not determined. My goal was to find out, which applications specifically cause incompatibility with Xposed.

My configuration:

Xperia Z3 D6603, firmware 23.1.A.0.690 Customized DE (provider 1&1)

SuperSU PRO 2.46

XZDR v. 2.8.11 Attempt 4

Xposed Alpha 2 - xposed-arm-20150308

Final finding:

Xposed bootloops are not caused by specific application, or combination of applications. All applications included in DE stock ROM, including but not limited to Google apps, Sony apps and provider specific apps were compatible with Xposed and caused no bootloops.

Xposed bootloops are caused by number of installed packages. In case of my ROM, if total number of packages registered (pm list packages)was greater than 329, system got into bootloop. That bootloop could be resolved by deleting ANY of applications, no matter wether user app, system or system privileged app. I am not sure, if this number varies depending on firmware version and hardware.

My testing:

I spent more than 10 hours to be sure that results I present are based on true observations.

First, I flashed prerooted .690 in recovery, wiped clean, and reflashed in Flashtool excluding system.

After initial boot, I have installed 2.8.11 XZDR and enabled byeselinux in xzdr.prop.

Then I have run script, removing following apps from the system:

/system/app/AnonymousData

/system/app/AntHalService

/system/app/Backup-Restore

/system/app/BasicDreams

/system/app/Books

/system/app/bootinfo

/system/app/BrowserProviderProxy

/system/app/CityIdPermission

/system/app/ClockWidgets-release

/system/app/com.sonyericsson.xhs

/system/app/com.sonymobile.xperialounge.services

/system/app/cover-widget

/system/app/CrashMonitor

/system/app/CrashMonitorSystem

/system/app/DeviceConfigTool

/system/app/Drive

/system/app/DualShockManager

/system/app/EditorsDocs

/system/app/EnchantedForest

/system/app/ExperienceFlow2LiveWallpaper

/system/app/ExternalKeyboardJP

/system/app/FaceLock

/system/app/Galaxy4

/system/app/gmail-reader-service

/system/app/Gmail2

/system/app/GoogleLyricsPlugin

/system/app/Hangouts

/system/app/HoloSpiralWallpaper

/system/app/HTMLViewer

/system/app/IddAgent

/system/app/IntelligentBacklight

/system/app/IntelligentRotation

/system/app/Keep

/system/app/KeyChain

/system/app/Lifelog-googlePreloadLive-release-2.4.P.1.4

/system/app/LiveWallpapers

/system/app/LiveWallpapersPicker

/system/app/Maps

/system/app/Music2

/system/app/Newsstand

/system/app/NewsWeather

/system/app/NoiseField

/system/app/PartnerBookmarksProvider

/system/app/PhaseBeam

/system/app/phone-usage

/system/app/PhotoSlideshow

/system/app/PhotoTable

/system/app/PhotoWidget-release

/system/app/PlayGames

/system/app/PlusOne

/system/app/RecommendationEngineExtension

/system/app/RemoteControlService

/system/app/SemcSimDetection

/system/app/SemcWarrantyTime

/system/app/sneiaccountmanager

/system/app/SomcCameraWidget

/system/app/SomcDlna

/system/app/SomcMovieCreatorRmm

/system/app/SomcPOBox

/system/app/SomcSketch

/system/app/SonyEntrance

/system/app/Stk

/system/app/Street

/system/app/SyncHub

/system/app/talkback

/system/app/Tasks

/system/app/textinput-chn

/system/app/TopContactsWidget-release

/system/app/TouchBlock

/system/app/UnsupportedHeadsetNotifier

/system/app/Videos

/system/app/VisualizationWallpapers

/system/app/WeatherWidget-release

/system/app/white-balance

/system/app/WikipediaPlugin

/system/app/WirelessControllerManagerService

/system/app/WorldClockWidget-release

/system/app/YouTube

/system/app/YouTubeKaraokePlugin

/system/app/YouTubePlugin

/system/priv-app/AndroidForWork

/system/priv-app/BackupRestoreConfirmation

/system/priv-app/com.bambuser.sociallive

/system/priv-app/CoverApp

/system/priv-app/EnterpriseService

/system/priv-app/Exchange2

/system/priv-app/FBCalendarSync

/system/priv-app/filecommander

/system/priv-app/helpapp

/system/priv-app/InputDevices

/system/priv-app/livewaremanager

/system/priv-app/MyXperia

/system/priv-app/ReadyToRun

/system/priv-app/retaildemo

/system/priv-app/SemcEmail

/system/priv-app/SEMCFacebookProxy

/system/priv-app/SemcTvOut

/system/priv-app/SimlockUnlockApp

/system/priv-app/SmartcardService

/system/priv-app/SnpVUStore

/system/priv-app/SocialEngineCore

/system/priv-app/SocialEngineFacebookPlugin

/system/priv-app/SocialEnginePicasaPlugin

/system/priv-app/SomcHotspot2Settings

/system/priv-app/SomcMirrorLinkManualSwitch

/system/priv-app/SomcMirrorLinkServer

/system/priv-app/SomcMirrorLinkSystem

/system/priv-app/SomcMovieCreator

/system/priv-app/SomcPhotoAnalyzer

/system/priv-app/SomcPodcast

/system/priv-app/SomcSeamlessTethering

/system/priv-app/SOMCTwitterAccount

/system/priv-app/SomcWifiDisplay

/system/priv-app/SonyEntrance2

/system/priv-app/TagGoogle

/system/priv-app/UpdateCenter

/system/priv-app/Velvet

/system/priv-app/VoiceDialer

Then I flashed xposed in recovery, wiped Dalvik & cache and installed Xposed installer & 20MP Superior auto module. Rebooted and ensured that 20MP module really makes 20MP pictures.

Then I started to restore removed apps (I removed apps by simply moving them into "/system/_backup/" directory to retain permissions) in groups of ten, rebooting twice after each restore (first reboot to allow ART to optimize apps, second to ensure all works) and reassured that xposed module still works.

After first bootloop I restarted in recovery and using adb started to remove last restored apps, until I could boot again.

Later I tried to remove and restore different combinations of system and user apps. It has no effect which applications I have removed or restored, as long as I kept number of packages on or below 329.

To ensure that my finding is true and no Sony app is causing problem, I have again flashed vanilla rooted Stock, reflashed xposed and installed 20MP superior auto module. This time, I left ROM as it is, did NOT remove any system app, and only removed following USER apps from /data/app:

co.vine.android-1

com.facebook.katana-1

com.kobobooks.android-1

com.mobisystems.office-1

com.navigon.navigator_select_sony_eu-1

com.oneandone.access.apps.musicplayer-1

com.oneandone.android.weatherwidget-1

com.oneandone.controlcenter-1

com.path-1

com.s.antivirus-1

com.scee.psxandroid-1

com.sony.nfx.app.sfrc-1

com.sony.tvsideview.phone-1

com.sonyericsson.androidapp.torchapp-1

com.sonyericsson.trackid-1

com.sonymobile.androidapp.cameraaddon.infoeye-1

com.sonymobile.androidapp.diagnostics-1

com.sonymobile.smallbrowser-1

com.unitedinternet.portal.android.photo.eue-1

de.einsundeins.smartdrive-1

de.eue.mobile.android.mail-1

de.gmx.mobile.android.mail-1

de.neofonie.smas.client.android-1

de.web.mobile.android.mail-1

Only user apps left in /data/app were NDR Utils and Xposed framework installer.

With this configuration xposed 20MP Superior Auto module worked without any problem.

I started to restore user apps back, and got bootloop after restoring one more application above 329 packages limit.

Later on I tried same with installing apps manually from apks, apps installing from Play store and simply copying apps into /data/app and /system/app and /system/priv-app.

Again and again system got immediatelly into bootloop on 330th package. I found that it has not been affected by size of the apk.

I also tried my hypothesis that it can have something to do with autostarted packages, but ven if I disabled autostart of all packages, situation did not changed. As a rule of thumb, when I installed or moved anything above 329 packages, bootloop.

So good news, there is no need to superheavily debloat and perhaps FCK system, just debloat really safe nonsense like Lifelog etc. Bad news is that number of apps in system is limited with Xposed.