yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Android Development] redincali:
Ok so I'm back from a factory reset. Everything is working, xposed & play store. I checked the store after every reboot to make sure there was no "your device its not compatible" message. This is how I did it...

1. Backed up all my apps with titanium

2. Booted into recovery and did factory reset

3. Flashed a prerooted LP

4. Rebooted into android

5. Went thru initial setup and signed into google (to check store for message)

6. Ran byeselinux (which restarts automatically)

7. Checked Play Store, was ok

8. Installed the Xposed apk

9. Reboot into recovery

10. Flashed mini deodex, xposed fw, & super su zips

11. Cleared cache & dalvik cache

12. Reboot into system

13. Checked Play Store, was ok

14. Rebooted and checked Play Store, was ok (2 time to be sure)

15. Restored apps with Titanium

16. Rebooted and checked Play Store, was ok

17. Enabled all my modules

18. Rebooted and checked Play Store, was ok and all modules running

So if your trying to flash this over an existing system that has been altered already, to get xposed working, then you may experience issues. I recommended backing up your apps, doing a factory reset, reflash your prerooted LP, then follow the steps in OP.

WARNING: BE SURE TO RUN "byeselinux" AFTER A FRESH INSTALL OF PREROOTED LOLLIPOP OR YOUR RECOVERY WILL STAY BROKEN

I didn't have the issue with the Play store before until I started debloating my system. Im going to do it now while checking the Play store to see if removing a specific app causes the issue.

~ via Xperia Z3, XDA App
[Xperia Z3 Android Development] redincali:
It seems my store is showing the message again... I haven't touched anything and it was working before my last post. I checked it again to be sure, before debloating, and there it was. So I'm back to trying to figure it out :-/

~ via Xperia Z3, XDA App

Edit:

Disabling all the modules in xposed did not remove the message from the Play Store. I just flashed the mini deodex again. Currently waiting on it to finish optimizing the apps. Then I'll remove the rest of the xposed framework files manually, if the Play Store is still showing the message. So I can determine if the framework for xposed is causing the issue or if its the deodexing causing it. I will figure it out ;)
[Xperia Z3 Android Development] russell664:
Great work with the ROM buddy.

Just a quick one, I am wanting to debloat my system. What are the safest apps to delete, or are the ones you listed on the first post still good to delete?

Also in regards to the error message in the play store, I used to develop ROMs for HTC devices, and deodexing the ROM caused this same issuer, bearing mind this was on ICS but still.

If you need any help, feel free to PM me. :)
[Xperia Z3 Android Development] redincali:
Thank you. I just wish it was working correctly. Thanks for the info about the deodexing. I never had that issue on KK and never used a deodexed version of ICS. As for the apps to remove, I'll post a list of what I removed without causing any FC's (other than the one you get for deleting the apk because it was running in the background).

I just manually removed xposed, restoring the orig files, and it caused a boot loop. Even though I did clear the cache and dalvik. So I flashed the prerooted LP again without a data wipe. Waiting for it to finish booting though app optimization right now.

Edit:

I can confirm that flashing a prerooted LP without a factory reset will not restore your Play Store. The message WILL still be there, even with a cache clear. Will perform a full wipe when I am back from the store and then try to slim the firmware deodex down and see if I can do it without losing the Play Store while still maintaining the use of Xposed.
[Xperia Z3 Android Development] redincali:
Still no luck... I was able to get xposed running but was requiring a cache clear before each boot or else a boot loop would occur. Ill keep everyone posted on the situation if I'm able to fix it.
[Xperia Z3 Android Development] Eason85:
Just to confirm then mate, is it safe to flash this or not?
[Xperia Z3 Android Development] redincali:
I wouldn't unless u want the message in the app store to say "Your device is not compatible with this version". There are other markets so you can always install them if you want to use this. I may do that for the time being because I enjoy having GravityBox features. Almost any app can be found elsewhere besides the Play Store. Ill update OP to let others know
[Xperia Z3 Android Development] Norup58:
I would not write your 'My Flashable' off so easily...it worked for me :) Was suffering from the Xposed bootloop and now its gone. Alls back to normal.

My setup (Sony Z3C):

Came from rooted KK 5.77.

Flashed pre-rooted Lollipop with R/W enabled, based on CE1

Ran 'Byeselinux' for recovery

Flashed 'Xposed.zip'

Installed 'Xposed alpha2'

Resulting in the boot loop.

Followed your guide:

Flashed the 3 files, wipe cache/ Dalvik chache & reboot.

Tested by d/l-ing app from Playstore, installed Amplify from Xposed and all is ok :) and using Debloater by [MENTION=3178012]gatesjunior[/MENTION] to block/freeze apps.

PS: [MENTION=4421696]hzr34[/MENTION] actually said it worked for him in a earlier post, thats why I gave it a try.
[Xperia Z3 Android Development] redincali:
Thanks :thumbup:. I'm using it as well. Since my last fresh install, I haven't had the play store issue. Been checking it periodically to see and still no issues (fb messenger was saying not compatible).

~ via Xperia Z3, XDA App

I've been doing some research and I've got a few ideas I'll try tomorrow. They should help narrow down the boot loop caused when installing xposed on a fully stock odex LP rom. Off to bed for now tho, 3am =)
[Xperia Z3 Android Development] azZA_09:
Works Great

Thank you a lot!I missed xposed for lollipop,but it worked like a charm for me! I can confim,also,lucky patcher works great.
[Xperia Z3 Android Development] redincali:
Ok, so I did a factory reset and flashed the prerooted LP again. Did the normal stuff for recovery then installed LiveBoot, so I could log the boot even if it crashes. So I installed xposed and got a log from the boot loop it created. Im going to go through it now and see if I can figure out whats causing the boot loop when installing xposed on an odex LP. If anyone else is interested and/or is better at detecting problems from logs, I've uploaded em HERE in a zip. One log is a working boot log, the other is the boot loop version. The only difference, besides the boot loop, is that the working log was from when i had xposed working on my deodex mini version. I hope this helps!
[Xperia Z3 Android Development] zouden:
I've also had the play store problem after installing your mini deodex patch a few days ago. But I just restored my /system backup and the play store immediately started working again. No need to wipe data. So that's something, for anyone else with this problem.

From looking in the Z3 Compact forum it seems like "debloating" the system can avoid the xposed bootloops, with no need to deodex, so maybe that's a way forward.
[Xperia Z3 Android Development] redincali:
I was reading that same thing about debloating. That's why I was hoping the log might help to narrow down which app is actually causing the issue. It could be caused by an app that some people want to keep. I haven't thoroughly gone thru the logs yet.

~ via Xperia Z3, XDA App
[Xperia Z3 Android Development] zouden:
I made a diff of the two files, but that's not really needed - the interesting stuff is right at the end of the bootloop file:

So, is removing linkedin enough? I suspect that removing it will simply cause the phone to reboot with an error in a different app. But eventually we would get a list of the critical apps that need to be removed.

It wouldn't even take that long, if you can uninstall apps and retrieve this log file just using ADB in TWRP. Remove app, reboot, check log file, repeat. I don't really know how to do that myself but I'm hoping you do :)
[Xperia Z3 Android Development] redincali:
Check this out.... I did a factory reset, flashed lp, recovery, deleted 49 apps from the system, installed xposed apk, flashed the xposed arm without any wipe, restarted, everythings working. The first time I did that, it wasn't a fresh install, but it worked. So I did a fresh one, as I just wrote and it still worked. Multiple reboots after xposed was running and I ran into no boot loops.

I created a flashable zip to remove those 49 apps. Im testing it right now. I just did a fresh install so now im waiting for the long first boot up. If it works, ill post the zip. Ill also post the apps I removed in case anyone wants to do it manually, because my zip might remove an app they want to keep. The only thing I didn't check yet was with modules installed and running. I will test that on this "hundredth xposed attempt"
[Xperia Z3 Android Development] zouden:
Great, sounds promising!

I'm unsure whether those bootlogs are useful... the error messages about "failed to open oat file" also appear in your working bootlog, just with other apps (not linkedin). So the linkedin error might not be related to the bootloop.
[Xperia Z3 Android Development] redincali:
Yea I gave up on the logs lol. Not good at debugging unless its for an app im writing myself. Anyways, heres all you need now! Under 500kb file. I made 2 versions. One that removes the stock keyboard, one that doesn't. Also, if you don't want to remove the priv-apps, you can delete it from the zip by opening it with 7zip. I say this because I messed up the script and it only deleted files from /system/app but still booted fine. Also booted fine multiple times after, without having to clear cache. Enjoy!!!

***Of course... By downloading and flashing this file you are accepting all responsibility. Flash at your own risk!***

How to (fresh install):

1. Backup (I cannot express this enough)

2. Do a full wipe

3. Flash a prerooted LP

4. Reboot into system

5. Run byeselinux for recovery fix

6. Let it reboot into system

(INSTALL A KEYBOARD AT THIS POINT, IF USING THE NO KEYBOARD VERSION)

7. Reboot into recovery

8. Flash one of the zips below (do not reboot)

9. Flash xposed arm

10. Clear cache and dalvik-cache (optional because it automatically rebuilds on boot)

11. Reboot into system

12. Install xposed apk and your modules, reboot after enabling modules

How to (dirty install):

(INSTALL A KEYBOARD, IF USING THE NO KEYBOARD VERSION)

1. Backup (I cannot express this enough)

2. Flash one of the zips below (do not reboot)

3. Flash xposed arm

4. Clear cache and dalvik-cache (optional because it automatically rebuilds on boot)

5. Reboot into system

6. Install xposed apk and your modules, reboot after enabling modules

Downloads:

z3_mini_debloat_for_xposed_no_kb**this WILL remove the stock keyboard, be sure to have an alternative installed

z3_mini_debloat_for_xposed_with_kb**this will NOT delete the stock keyboard

files removed from "/system/app"

AnonymousData

Books

Chrome

com.sonyericsson.xhs

com.sonymobile.xperialounge.services

Drive

EditorsDocs

EnchantedForest

ExperienceFlow2LiveWallpaper

ExternalKeyboardJP (Only in the no keyboard zip)

ExternalKeyboardsInternational(Only in the no keyboard zip)

Hangouts

HoloSpiralWallpaper

Keep

Lifelog-googlePreloadLive-release-2.4.P.1.4

Music2

NewsWeather

Newsstand

PlayGames

PlusOne

SomcPOBox(Only in the no keyboard zip)

SonyEntrance

talkback

textinput-chn(Only in the no keyboard zip)

textinput-tng(Only in the no keyboard zip)

Videos

WeatherWidget-release

WikipediaPlugin

WorldClockWidget-release

YouTubeKaraokePlugin

files removed from "/system/priv-app"

CivilAlerts

com.bambuser.sociallive

Exchange2

FBCalendarSync

filecommander

GoogleBackupTransport

helpapp

MyXperia

retaildemo

SEMCFacebookProxy

SOMCTwitterAccount

SemcEmail

SocialEngineCore

SocialEngineFacebookPlugin

SocialEnginePicasaPlugin

SomcPodcast

SonyEntrance2

TagGoogle

youtubelive
[Xperia Z3 Android Development] redincali:
Im getting boot loop again. lmfao. didn't do it until I restored apps from titanium. Not sure if that is the reason, if its a module that got restored and enabled, or if my debloat isn't enough...

edit:

So I did a lot of different things. Too many to write all out. The conclusion is that the problem was due to a module, Lolistat. I enabled one module at a time and that's the one it messed up on. I haven't ran it as an only module to determine if its a stand alone problem or because its conflicting with others. Either way, I can do without it, but not my others. So no Lolistat module, but the debloat is making everything else work!!
[Xperia Z3 Android Development] Eason85:
Lol cheers for the effort. If I knew lollipop was going to be such a pain in the ass I'd have never installed it. :p
[Xperia Z3 Android Development] redincali:
I know right! I mainly wanted it for the way phone calls come in now when your using your phone. I can just swipe the call away from the top while I playing Order & Chaos without interrupting my game. It has to reload if it gets sent to the background, which is no good when you have other people relying on you in battle.

If someone could make a module for KK that makes the phone that way then I'd switch back. May be possible by modding KK's phone app... hmm ill have to look into trying to do that.
[Xperia Z3 Android Development] redincali:
Woooowww I feel like an idiot sorta... Ive never seen it mentioned anywhere, unless its in xposed's support area, but you can disable Xposed by pressing either volume up or down once you see the "ANDROID" logo, after the Sony logo. Press the button several times until you feel a long vibration after the short ones. AFAIK, there is no option to re-enable xposed without manually deleting the 'disabled' file found in "/data/data/de.robv.android.xposed.installer/conf". This will stop a boot loop without having to clear the damn caches and waiting 10-15 minutes lol...
[Xperia Z3 Android Development] Xandros97:
yessss, [MENTION=1897172]redincali[/MENTION] worrkkkk on d6603 with 5.0.2 ! tanks
[Xperia Z3 Android Development] bubiselbst:
Works on z3c 5803 with German lollipop 690 firmware, rooted and dual recovery.

I already rebooted several times and had several modules activated: Gravity box and Cybershot xposed for example. Everything is working fine (except gravity box not doing what it should).

Started with rooted lollipop

Used byeselinux (and installed dual recovery)

Flashed your mini deodexed zip

Flashed xposed mod

Restarted

Installed xposed installer

... and that's it
[Xperia Z3 Android Development] Guto ViP:
Thank you.
[Xperia Z3 Android Development] Guto ViP:
[MENTION=1897172]redincali[/MENTION]

Can i edit your script to dont delete any app of /system/app and priv-app too? Because i wanna use Xposed but i wanna all stock apps of Z3 too... :D
[Xperia Z3 Android Development] redincali:
Yea I dont mind. I just cant guarantee you wont run into issues

~ via Xperia Z3, XDA App
[Xperia Z3 Android Development] russell664:
Many thanks for you help with this. Got xposed installed, and have these modules all working with no issues.
[Xperia Z3 Android Development] chawlasrijan:
[MENTION=1897172]redincali[/MENTION] Does this fix the playstore issues??
[Xperia Z3 Android Development] redincali:
Yea it should. I've had no issue so far. The reason that was happening was from the framework being deodexed. Even with a minimal deodex it would eventually show that messages in the store.

All this flashable does is remove 49 apps. Feel free to unzip and modify which apps it removes. Just be aware that its working with the current removal list. Modifying it may mean your not ridding the phone of the boot loop culprit app.

~ via Xperia Z3, XDA App
[Xperia Z3 Android Development] zouden:
Nice! Trying it now.

Of the removed apps I only use Hangouts, Chrome and Keep. Do you think it's safe to reinstall them as user apps?
[Xperia Z3 Android Development] redincali:
I would give it a try. I just did a manual debloat of ALL the unnecessary apps. All my modules are working flawless together now. 8 modules total. Im thinking one or more of the apps, that run invisibly, are the culprit of modules boot looping.

Kinda like how the Force FastScroll modules used to cause some apps to crash upon opening, so that app would need to be blacklisted in the module's settings. I'll post a list of what else I removed here shortly.

~ via Xperia Z3, XDA App
[Xperia Z3 Android Development] redincali:
Heres more apps I removed...

/system/app

BasicDreams

CityIdPermission

CrashMonitor

CrashMonitorSystem

cover-widget

DeviceConfigTool

DrmDialogs

DrmUI

DualShockManager

FaceLock

Galaxy4

GoogleLyricsPlugin

GoogleTTS

Initial-boot-setup

IntelligentBacklight

IntelligentRotation

KeyChain

NoiseField

PartnerBookmarksProvider

PhaseBeam

PhotoSlideshow

PhotoTable

PhotoWidget-release

RecommendationEngineExtension

RemoteControlService

SemcMetadataCleanup

SemcSimDetection

SemcWarrantyTime

sneiaccountmanager

Tasks

TopContactsWidget-release

UnsupportedHeadsetNotifier

VisualizationWallpapers

WirelessControllerManagerService

YouTubePlugin

/system/priv-app

AndroidForWork

BackupRestoreConfirmation

CoverApp

EnterpriseService

InputDevices

livewaremanager

OMAClientProvisioning

ReadyToRun

SEMCSetupWizard

SimlockUnlockApp

SmartcardService

SnpVUStore

SomcMirrorLinkManualSwitch

SomcMirrorLinkServer

SomcMirrorLinkSystem

SomcMovieCreator

SomcPhotoAnalyzer

SomcPlayAnywhere

SomcSeamlessTethering

SomcWifiDisplay

UpdateCenter

usb-mtp-backup-transport

usb-mtp-factoryreset-wrapper

usb-mtp-marlin-wrapper

usb-mtp-update-wrapper

usb-mtp-vendor-extension-service

Velvet

VoiceDialer

VpnDialogs
[Xperia Z3 Android Development] zouden:
It's not working for me. I get bootloops, and wiping dalvik or using the volume button to disable xposed doesn't help. I'm now restoring my backup.

I suspect the issue is too many apps. It's currently optimising 360 apps (system and user). Even removing 49 system apps means I still have more than 300. I reckon the Xposed-modified ART compiler crashes if there's too many apps, and that's why debloating can help.

I'll probably wait until Xposed is updated.
[Xperia Z3 Android Development] redincali:
Did you try clearing your caches? Thats a solution for any loop I encountered in any of my attempts. I had 402 apps with no boot loops. Did you do it from a fresh install? I do think the xposed framework has some issues.

~ via Xperia Z3, XDA App
[Xperia Z3 Android Development] zouden:
No I didn't do it from a fresh install, which I reckon is the problem - one of my user apps is probably causing the bootloop.

I think I might have only cleared Dalvik, which made it "optimise apps" again and then bootloop. I should have cleared the regular cache too.
[Xperia Z3 Android Development] chawlasrijan:
Does not fix the play store issue on Xperia Z2 :(

Tried using z3_mini_debloat_for_xposed_with_kb (DIRTY Flash)
[Xperia Z3 Android Development] alinghi100:
Do you have xzdualrecovery 2.8.7? I am going to try on a fresh install this afternoon
[Xperia Z3 Android Development] vnminus:
Wow, thanks, it's work, but why you uninstall What's News? I can't update Sony Apps anymore :((
[Xperia Z3 Android Development] chawlasrijan:
Nope im using this kernel (Unlocked Bootloader) Z2_ADV_stock_LP_v2
[Xperia Z3 Android Development] alinghi100:
It works perfectly both on z3 as well on z2 (both phones). Thanks, you are the man :D
[Xperia Z3 Android Development] epic118:
I'm not sure what people are talking about with these 'Play Store' compatibility errors, as I haven't run into any of them.

I installed Real Racing 3, Relay for Reddit, the XDA app and FolderMount and haven't had any issues as yet. Are there any apps I should test, that people are having issues with?

In terms of the Xposed functionality, I managed to install GravityBox without any issues.

I later decided to try some other modules, like App Settings 1.11 (which worked), Burnt Toast (which worked) and GravityBox (which also worked). Interestingly, Lolistat worked for me too, despite the fact I also had GB enabled.
[Xperia Z3 Android Development] Guto ViP:
Someone can confirm if all works if i stay with all apps (deleting wipe_apps.sh and wipe_papps.sh)?
[Xperia Z3 Android Development] alinghi100:
I have this problem too. Tried to install again System/priv-app/Updatecenter/updatecenter.apk. The installation goes well but I can't find any icon. I tried also to install an other updatecenter.apk even moving it to the same directory but nothing. How to have it again..? Thanks in advantage!
[Xperia Z3 Android Development] redincali:
By fix do you mean remove it if you encountered it already? That it won't do. What it will do is not let the issue arise. I was only able to remove it by doing a fresh install of LP.

I'm not exactly sure which apps need to be removed to get xposed working correctly. So, I started by deleting Sony apps first. All the ones I could at least. Its their firmware so I figured if any app is causing the boot loop issues, I would start with Sony's.

The issue is certain apps, after a few minutes to a day, show the message "Your device is not compatible with this version" in the play store. If you have the app installed already or were able to download it before the stores detection then it won't say that until you uninstall. As someone pointed out, this is probably due to the framework being deodexed, which was the case in some ICS fw devices.

I wouldn't install it with the package installer. Do it manually with a file manager, like root explorer, by creating that folder and adding the file inside. Be sure to set the folder perms to 0755(rwxr-xr-x) and the apk to 0644(rw-r--r--). Then restart. I've done it with different apps like modded games and it works every time. No need to wipe any cache, it will do the single file optimization on start up.

~ via Xperia Z3, XDA App
[Xperia Z3 Android Development] zouden:
I'm not sure why this debloat script didn't work for me (I still had bootloops), but I have Xposed working after running this one instead. So if anyone else is still struggling, try that script :)

It removes a lot more apps, so I guess that's why it works. It doesn't remove What's New.
[Xperia Z3 Android Development] redincali:
If you delete these 2 files then the zip will do absolutely nothing but display meaningless text in the recovery window. These 2 files tell recovery which apps to remove. You can, however, pull the two files out of the zip and open them in a text editor. Remove apps you want to not delete from the list, save it, and add it back into the zip. Replacing the old one inside. Use 7zip to do this easily.

~ via Xperia Z3, XDA App
[Xperia Z3 Android Development] pandorla1984:
many thanks. the script works great, just connect the phone, run the script and reboot, boom, everything is working.
[Xperia Z3 Android Development] TheFerhatKing:
For me it worked too but after a day, the Play Store shows this message on the most apps (The app is not compatilble with your device). Is there a way to fix it?
[Xperia Z3 Android Development] patrickbartalesi22:
Hi when i debloated G-FACE's rom a notification saying my sd card was damaged and i was unable to mount it. Before i debloated the rom the sd card worked perfectly.

I have restored to my kitkat rom for the time being and my sd card is working. I am just unsure which removed app could be causing this.

Any help is appreciated. Thanks in advance.
[Xperia Z3 Android Development] alinghi100:
Tried to install Sony Update Center but got bootloops. Removed with your zip that i have modified to remore system/priv-app/UpdateCenter.

Do not Try to install Sony Update Center. It causes Bootloops!