Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow gapps-config to skip certain default removals #213

Open
yejingchen opened this issue Jan 3, 2016 · 8 comments
Open

Allow gapps-config to skip certain default removals #213

yejingchen opened this issue Jan 3, 2016 · 8 comments
Assignees

Comments

@yejingchen
Copy link

My device is ZTE Nubia Z9 mini (nx511j) running a unofficial CM build (13.0-20151229-UNOFFICIAL-nx511j). The build author only releases incremental OTA updates, which performs file check before patching. The problem is some directories are deleted by OpenGapps installation, leading the update to fail.

I found this in installer.data in opengapps zip file:

# _____________________________________________________________________________________________________________________
#                                             Permanently Removed Folders
# Pieces that may be left over from AIO ROMs that can/will interfere with these GApps
other_list="
/system/app/CalendarGoogle
/system/app/CloudPrint
/system/app/DeskClockGoogle
/system/app/EditorsDocsStub
/system/app/EditorsSheetsStub
/system/app/EditorsSlidesStub
/system/app/Gmail
/system/app/Gmail2
/system/app/GoogleCalendar
/system/app/GoogleCloudPrint
/system/app/GoogleHangouts
/system/app/GoogleKeep
/system/app/GoogleLatinIme
/system/app/GooglePlus
/system/app/Keep
/system/app/NewsstandStub
/system/app/NewsWeather
/system/app/PartnerBookmarksProvider
/system/app/PrebuiltBugleStub
/system/app/PrebuiltKeepStub
/system/app/Provision
/system/app/QuickSearchBox
/system/app/Vending
/system/priv-app/GmsCore
/system/priv-app/GoogleNow
/system/priv-app/GoogleSearch
/system/priv-app/GoogleHangouts
/system/priv-app/OneTimeInitializer
/system/priv-app/Provision
/system/priv-app/QuickSearchBox
/system/priv-app/Vending
";

/system/app/Provision and /system/priv-app/OneTimeInitializer are what the OTA update report has "unexpected change".

So everytime I want to install OTA updates, I have to do a clean install, and setup everything I need afterwards.

Are there any solutions to let me install OTA update smoothly?

@polyzen
Copy link

polyzen commented Jan 3, 2016

What I have to do is flash/sideload the update from recovery, then reinstall gapps and su.

On January 2, 2016 10:26:21 PM EST, "叶靖琛" notifications@github.com wrote:

My device is ZTE Nubia Z9 mini (nx511j) running a unofficial CM build
(130-20151229-UNOFFICIAL-nx511j) The build author only releases
incremental OTA updates, which performs file check before patching The
problem is some directories are deleted by OpenGapps installation,
leading the update to fail

I found this in installerdata in opengapps zip file:

#
_____________________________________________________________________________________________________________________
#                                             Permanently Removed
Folders
# Pieces that may be left over from AIO ROMs that can/will interfere
with these GApps
other_list="
/system/app/CalendarGoogle
/system/app/CloudPrint
/system/app/DeskClockGoogle
/system/app/EditorsDocsStub
/system/app/EditorsSheetsStub
/system/app/EditorsSlidesStub
/system/app/Gmail
/system/app/Gmail2
/system/app/GoogleCalendar
/system/app/GoogleCloudPrint
/system/app/GoogleHangouts
/system/app/GoogleKeep
/system/app/GoogleLatinIme
/system/app/GooglePlus
/system/app/Keep
/system/app/NewsstandStub
/system/app/NewsWeather
/system/app/PartnerBookmarksProvider
/system/app/PrebuiltBugleStub
/system/app/PrebuiltKeepStub
/system/app/Provision
/system/app/QuickSearchBox
/system/app/Vending
/system/priv-app/GmsCore
/system/priv-app/GoogleNow
/system/priv-app/GoogleSearch
/system/priv-app/GoogleHangouts
/system/priv-app/OneTimeInitializer
/system/priv-app/Provision
/system/priv-app/QuickSearchBox
/system/priv-app/Vending
";

/system/app/Provision and /system/priv-app/OneTimeInitializer are
what the OTA update report has "unexpected change"

So everytime I want to install OTA updates, I have to do a clean
install, and setup everything I need afterwards

Are there any solutions to let me install OTA update smoothly?


Reply to this email directly or view it on GitHub:
#213

@yejingchen
Copy link
Author

Actually I AM installing updates from recovery, which fails because of file deletions. In addition, if you install gapps afterwards, you will end up in an infinite 'Setup wizard has stopped' popups.

@mfonville mfonville changed the title Installing OpenGapps prevents incremental OTA update Removal of /system/app/Provision & /system/priv-app/OneTimeInitializer prevent OTA update Jan 14, 2016
@mfonville
Copy link
Member

I will see what we can do about this. In general I am thinking about a keyword and script like https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options#skip-googles-swype-library-setting

Or some brackets to skip removal of certain folders. Like https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options#universal-application-removals

@mfonville mfonville self-assigned this Jan 14, 2016
@polyzen
Copy link

polyzen commented Jan 15, 2016

My issue was unrelated, and @mfonville took care of that :)

@mfonville
Copy link
Member

We can't by default skip those folders; because on 99% of the ROMs they cause conflicts with GApps and have to be removed.
We should look into the gapps-config possibility to skip certain removals

@mfonville mfonville changed the title Removal of /system/app/Provision & /system/priv-app/OneTimeInitializer prevent OTA update Allow gapps-config to skip certain default removals Feb 7, 2016
@robin-vandaele
Copy link
Contributor

You could use something like +(foldername) for this, like a combination of the application selector '()' and the don't remove these apps selector '+'

@szhu
Copy link

szhu commented Dec 15, 2016

Why not just make the keyword +?

+Provision
+OneTimeInitializer

@jeffsf
Copy link

jeffsf commented Jan 15, 2017

For clarity, at least at this time (2017-01-15), the following does not preserve things removed as "conflicting":

PicoGApps
Include
+(ExtShared)
+(ExtServices)

I definitely would like to see an "advanced" ability to control both

  • Removal of "conflicting" ROM apks
  • Removal of GApps apks

Right now, I have to

  • "Manually" preserve specific ROM apks (in a tar)
  • Boot the ROM once to run its initializers (as installing OpenGApps will delete them)
  • Reboot into recovery
  • Run the OpenGApps installer
  • Delete "excess" installed APKs
  • Restore the specific ROM apks from the tar

As an idea of what I delete, even from the Pico package, as I only want/need Play Store and Maps functionality:

    /system/app/GoogleContactsSyncAdapter
    /system/app/GoogleExtShared
    /system/priv-app/ConfigUpdater
    /system/priv-app/GmsCoreSetupPrebuilt
    /system/priv-app/GoogleBackupTransport
    /system/priv-app/GoogleExtServices
    /system/priv-app/GoogleFeedback
    /system/priv-app/GoogleOneTimeInitializer
    /system/priv-app/GooglePartnerSetup
    /system/priv-app/SetupWizard

(Note, the above list should not be taken as unnecessary apks for your phone or needs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants