Exclude apps from upgrade/installation when flashing

Search This thread

kl3

Senior Member
Sep 9, 2013
145
175
Hey together,
is there any chance to exclude single apps from the upgrade/installation process when flashing a new rom (nightlies)?

There's a bunch of apps I don't need or want, e.g. those "beauties" like phase beam, black hole, etc.

Maybe it can be done through a script in /system/addon.d or or a new zip in OpenDelta/FlashAfterUpdate?

Thanks in advance,
klenamenis

Sent from my GT-N7100 using XDA Premium 4 mobile app
 

Pons

Senior Member
Sep 2, 2010
3,932
2,067
There's a bunch of apps I don't need or want, e.g. those "beauties" like phase beam, black hole, etc.

Maybe it can be done through a new zip in OpenDelta/FlashAfterUpdate?

Yep, this can be done easily.

Code:
ui_print("Mounting system partition");
ifelse(!is_mounted("/system"), run_program("/sbin/busybox", "mount", "/system"));
ifelse(!is_mounted("/system"), abort("Failed to mount /system"));

delete("/path/to/app");

run_program("/sbin/busybox", "umount", "/system");
 
  • Like
Reactions: kl3

kl3

Senior Member
Sep 9, 2013
145
175
you can freeze them and they will still be frozen after upgrade.

来自我的 Find 5 上的 Tapatalk
I know, but they shall be removed.

Yep, this can be done easily.

Code:
ui_print("Mounting system partition");
ifelse(!is_mounted("/system"), run_program("/sbin/busybox", "mount", "/system"));
ifelse(!is_mounted("/system"), abort("Failed to mount /system"));

delete("/path/to/app");

run_program("/sbin/busybox", "umount", "/system");
Thanks, but which update-binary should I use?
Is it possible to prevent that they even got flashed?

Thanks anyway for help.

Sent from my GT-N7100 using XDA Premium 4 mobile app
 
Last edited:

Pons

Senior Member
Sep 2, 2010
3,932
2,067
Thanks, but which update-binary should I use?

I'd grab a recent one out of OmniROM. Or you could try this update-binary (from http://teamw.in/project/twrp2 )

Is it possible to prevent that they even got flashed?

Yes, with an addon.d script. I don't feel like making one right now, because that syntax gives me a headache. But you should be able to look at others, (like Chainfire's su one), and see what it does and how it deletes files. After that, you could puzzle it out yourself with some time.
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
Hey together,
is there any chance to exclude single apps from the upgrade/installation process when flashing a new rom (nightlies)?

There's a bunch of apps I don't need or want, e.g. those "beauties" like phase beam, black hole, etc.

Maybe it can be done through a script in /system/addon.d or or a new zip in OpenDelta/FlashAfterUpdate?

Thanks in advance,
klenamenis

Sent from my GT-N7100 using XDA Premium 4 mobile app

Why? Free space in /system has no benefits, and none of those apps autostart, so you gain nothing by removing them.
 

kl3

Senior Member
Sep 9, 2013
145
175
Why? Free space in /system has no benefits, and none of those apps autostart, so you gain nothing by removing them.
Because almost daily backing up and flashing between ROMs needs less time, TitaniumBackup's list of installed apps is shorter and some of the apps I remove have some background services running which I don't want.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    There's a bunch of apps I don't need or want, e.g. those "beauties" like phase beam, black hole, etc.

    Maybe it can be done through a new zip in OpenDelta/FlashAfterUpdate?

    Yep, this can be done easily.

    Code:
    ui_print("Mounting system partition");
    ifelse(!is_mounted("/system"), run_program("/sbin/busybox", "mount", "/system"));
    ifelse(!is_mounted("/system"), abort("Failed to mount /system"));
    
    delete("/path/to/app");
    
    run_program("/sbin/busybox", "umount", "/system");