[Xperia Z3 General] ondrejvaroscak:
Upgraded apps

Today I am experimenting with updates.

All system apps, that are installed by ROM in /system are after update found in /data.

They remain registered as system apps, and after upgrade number of apps reported by pm remains unchanged.

However, the app after upgrade has now 2 apks ... one in original location (eg. /system/apps/Maps) and upgraded apk (/data/app/com.google.android.apps.maps-1).

I am not 100% sure about Android booting, but simple logic tells me, that after boot the process finds both packages, but further only loads the updated one in /data. However I dont know, if this further lowers the number of packages that will cause xposed to bootloop, effectively counting Maps as two packages.

EDIT:

So I tried following experiment: Installed fresh Stock, number of packages: 330

Removed non-Sony USER packages only (book reader, antivirus etc.), leaving ALL system apps in place, and following USER apps:

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.diagnostics-1

com.sonymobile.smallbrowser-1

Number of packages: 323

Then I have let Play and Whats new to update all. Together 30 apps were updated. Number of reported packages by pm: 323

/data/app now contained:

com.android.chrome-1

com.android.vending-1

com.bambuser.sociallive-1

com.google.android.apps.books-1

com.google.android.apps.docs-1

com.google.android.apps.docs.editors.docs-1

com.google.android.apps.genie.geniewidget-1

com.google.android.apps.maps-1

com.google.android.apps.plus-1

com.google.android.gm-1

com.google.android.gms-1

com.google.android.googlequicksearchbox-1

com.google.android.keep-1

com.google.android.marvin.talkback-1

com.google.android.music-1

com.google.android.play.games-1

com.google.android.talk-1

com.google.android.videos-1

com.google.android.webview-1

com.google.android.youtube-1

com.mobisystems.fileman-1

com.scee.psxandroid-1

com.sony.nfx.app.sfrc-1

com.sony.tvsideview.phone-1

com.sonyericsson.album-1

com.sonyericsson.androidapp.torchapp-1

com.sonyericsson.extras.liveware-1

com.sonyericsson.music-1

com.sonyericsson.trackid-1

com.sonyericsson.video-1

com.sonyericsson.xhs-1

com.sonymobile.android.addoncamera.timeshift-1

com.sonymobile.androidapp.cameraaddon.infoeye-1

com.sonymobile.androidapp.diagnostics-1

com.sonymobile.backgrounddefocus-1

com.sonymobile.entrance-1

com.sonymobile.lifelog-1

com.sonymobile.moviecreator.rmm-1

com.sonymobile.sketch-1

com.sonymobile.smallbrowser-1

After installing xposed and wiping cache/dalvik number of Optimized packages was: 294

After next reboot: BOOTLOOP

So went to recovery and removed ALL UPDATES (33 apks)

mv -f /data/app/com.android.chrome-1 /data/_backup/app/

mv -f /data/app/com.android.vending-1 /data/_backup/app/

mv -f /data/app/com.bambuser.sociallive-1 /data/_backup/app/

mv -f /data/app/com.google.android.apps.books-1 /data/_backup/app/

mv -f /data/app/com.google.android.apps.docs-1 /data/_backup/app/

mv -f /data/app/com.google.android.apps.docs.editors.docs-1 /data/_backup/app/

mv -f /data/app/com.google.android.apps.genie.geniewidget-1 /data/_backup/app/

mv -f /data/app/com.google.android.apps.maps-1 /data/_backup/app/

mv -f /data/app/com.google.android.apps.plus-1 /data/_backup/app/

mv -f /data/app/com.google.android.gm-1 /data/_backup/app/

mv -f /data/app/com.google.android.gms-1 /data/_backup/app/

mv -f /data/app/com.google.android.googlequicksearchbox-1 /data/_backup/app/

mv -f /data/app/com.google.android.keep-1 /data/_backup/app/

mv -f /data/app/com.google.android.marvin.talkback-1 /data/_backup/app/

mv -f /data/app/com.google.android.music-1 /data/_backup/app/

mv -f /data/app/com.google.android.play.games-1 /data/_backup/app/

mv -f /data/app/com.google.android.talk-1 /data/_backup/app/

mv -f /data/app/com.google.android.videos-1 /data/_backup/app/

mv -f /data/app/com.google.android.webview-1 /data/_backup/app/

mv -f /data/app/com.google.android.youtube-1 /data/_backup/app/

mv -f /data/app/com.mobisystems.fileman-1 /data/_backup/app/

mv -f /data/app/com.sonyericsson.album-1 /data/_backup/app/

mv -f /data/app/com.sonyericsson.extras.liveware-1 /data/_backup/app/

mv -f /data/app/com.sonyericsson.music-1 /data/_backup/app/

mv -f /data/app/com.sonyericsson.video-1 /data/_backup/app/

mv -f /data/app/com.sonyericsson.xhs-1 /data/_backup/app/

mv -f /data/app/com.sonymobile.android.addoncamera.timeshift-1 /data/_backup/app/

mv -f /data/app/com.sonymobile.androidapp.cameraaddon.infoeye-1 /data/_backup/app/

mv -f /data/app/com.sonymobile.backgrounddefocus-1 /data/_backup/app/

mv -f /data/app/com.sonymobile.entrance-1 /data/_backup/app/

mv -f /data/app/com.sonymobile.lifelog-1 /data/_backup/app/

mv -f /data/app/com.sonymobile.moviecreator.rmm-1 /data/_backup/app/

mv -f /data/app/com.sonymobile.sketch-1 /data/_backup/app/

from /data/app, leaving only previously installed user apps (see above).

Wiped Dalvik/cache, number of Optimizing packages was: 261

Reboot is ok, however, the system apps that have been updated and removed are not working, so the system does not returned to the previous versions and pm reported number of packages is 290...

My speculation so far is, that number of packages to bootloop xposed include all packages KNOWN to system, including previously upgraded. So when you had 323 packages and upgraded 30, number of reported packages remains 323 but actually you have 353 packages. Once you remove the 30 upgraded packages from /data, the app is unfuctional adn removed from packages report. However, apk itself remain in /system/app but simply does not work...

Now I will try other way around, moving upgraded apks back to /data and remove their respective previous version from /system ....