5,606,650 Members 36,705 Now Online
XDA Developers Android and Mobile Development Forum

Exclude apps from upgrade/installation when flashing

Tip us?
 
klenamenis
Old
#1  
Member - OP
Thanks Meter 55
Posts: 87
Join Date: Sep 2013

 
DONATE TO ME
Default Exclude apps from upgrade/installation when flashing

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
 
webore
Old
#2  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Apr 2013
Location: Shenzhen
you can freeze them and they will still be frozen after upgrade.

来自我的 Find 5 上的 Tapatalk
 
PonsAsinorem
Old
#3  
PonsAsinorem's Avatar
Forum Moderator
Thanks Meter 1780
Posts: 3,489
Join Date: Sep 2010

 
DONATE TO ME
Quote:
Originally Posted by klenamenis View Post
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");



"Defending a position by citing free speech is sort of the ultimate concession; you're saying that the most compelling thing you can say for your position is that it's not literally illegal to express." ~ The InterWebz

My work:

The Following User Says Thank You to PonsAsinorem For This Useful Post: [ Click to Expand ]
 
klenamenis
Old
(Last edited by klenamenis; 4th January 2014 at 02:23 PM.)
#4  
Member - OP
Thanks Meter 55
Posts: 87
Join Date: Sep 2013

 
DONATE TO ME
Quote:
Originally Posted by webore View Post
you can freeze them and they will still be frozen after upgrade.

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

Quote:
Originally Posted by PonsAsinorem View Post
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
 
PonsAsinorem
Old
#5  
PonsAsinorem's Avatar
Forum Moderator
Thanks Meter 1780
Posts: 3,489
Join Date: Sep 2010

 
DONATE TO ME
Quote:
Originally Posted by klenamenis View Post
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 )

Quote:
Originally Posted by klenamenis View Post
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.



"Defending a position by citing free speech is sort of the ultimate concession; you're saying that the most compelling thing you can say for your position is that it's not literally illegal to express." ~ The InterWebz

My work:

 
klenamenis
Old
#6  
Member - OP
Thanks Meter 55
Posts: 87
Join Date: Sep 2013

 
DONATE TO ME
Quote:
Originally Posted by PonsAsinorem View Post
I'd grab a recent one out of OmniROM. Or you could try this update-binary (from http://teamw.in/project/twrp2 ).
Yep, I already took a sample from someone's guide about creating zips.

Problem solved.

Sent from my GT-N7100 using XDA Premium 4 mobile app
 
Entropy512
Old
#7  
Senior Recognized Developer
Thanks Meter 23433
Posts: 12,794
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by klenamenis View Post
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.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
klenamenis
Old
#8  
Member - OP
Thanks Meter 55
Posts: 87
Join Date: Sep 2013

 
DONATE TO ME
Quote:
Originally Posted by Entropy512 View Post
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Speed up the ROM or Kernel Build Process

Creating a kernel, ROM, or any other development projectrequires knowledge and tools. While … more

Google Glass Now Open to Anyone… with $1500 to Spend (Update: Not Anymore)

Google Glass, which recently received its official update … more

Android 4.4.2 OTA Now Available for the Verizon Droid DNA

A couple of days ago, we talked about how the Android 4.4.2 upgrade for the HTC … more