Delete system files from Android phone

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
16 replies · 8K views
Messages
2,188
Reaction score
2,694
I have a Samsung Galaxy on7, running on Android 6.0.1.

It has a lot of pre installed apps that I consider bloatware. I want to remove them completely from the phone.

Recently, I tried removing these apps as per this video:



But soon I found that it does not delete the system files, because that is not possible without root.

I also found that I can root my phone using adb. The procedure (on a different phone, though) is here:



After rooting and installing twrp and magisk, I want to delete the system files from adb using the following command (say, to remove google photos):

Code:
adb shell rm -f /system/app/Photos/Photos.apk

Two questions on this:

1. Is this possible to be safely done on my device? Any precautions?

2. Is there any way to backup the system file before deleting it?
 
on Phys.org
Wrichik Basu said:
I want to remove them completely from the phone.
The method mentioned in the video won't remove it completely from the phone. It just hides it from the current user, he mentioned it at 1:27
 
Young physicist said:
The method mentioned in the video won't remove it completely from the phone. It just hides it from the current user, he mentioned it at 1:27
That's why I wrote this soon after the video:
Wrichik Basu said:
But soon I found that it does not delete the system files, because that is not possible without root.
 
CWatters said:
Are the factory issued apps stored in ROM or Fash?
I am not sure, but I don't think so. Usually ROMs and Flashs on mobile phones only store BIOS or bootloaders.
 
CWatters said:
I asked because the 2nd reply here suggests they are possibly in ROM...

https://www.quora.com/Are-apps-installed-and-stored-on-RAM-or-ROM-on-Android-phones
He mentioned EEPROM, a thing that I only heard before but not fully understand. But if my knowledge isn't outdated (my physics ones have this serious problem),then chances of rewriting it will be possible but really unlikely, since eeprom also has a write/erase time limit. That is a point from hardwares, I am not sure if softwares can bypass that.
 
Last edited:
CWatters said:
Are the factory issued apps stored in ROM or Fash?
They are stored inthe /system directory, and after rooting, you can gain access to files in that directory.
CWatters said:
I asked because the 2nd reply here suggests they are possibly in ROM...

https://www.quora.com/Are-apps-installed-and-stored-on-RAM-or-ROM-on-Android-phones
The replies mention that apps are stored in ROM. Flash is actually the recovery part. All the OS files are always stored in ROM, which is the /system directory.
 
Wrichik Basu said:
They are stored inthe /system directory, and after rooting, you can gain access to files in that directory.
@Wrichik Basu the concept of storing in ROM or Flash is a hardware approach of where the factory issued apps are. /system on the other hand is a software approach. They are both correct.
 
Young physicist said:
@Wrichik Basu the concept of storing in ROM or Flash is a hardware approach of where the factory issued apps are. /System on the other hand is a software approach.
I am talking about factory issued apps. That's what is called "bloatware". If you have access to an Android phone, download an app called "App Inspector" from the play store. It will show you the directory for every app, even system apps. There, you can see that these are all installed in /system directory. For example, for Google photos,

Screenshot_20180828-185154.png


Both the source and data have to be cleared through adb for a complete removal.
 

Attachments

  • Screenshot_20180828-185154.png
    Screenshot_20180828-185154.png
    16.2 KB · Views: 2,069
Wrichik Basu said:
I am talking about factory issued apps. That's what is called "bloatware". If you have access to an Android phone, download an app called "App Inspector" from the play store. It will show you the directory for every app, even system apps. There, you can see that these are all installed in /system directory. For example, for Google photos,

View attachment 229929

Both the source and data have to be cleared through adb for a complete removal.
Code:
adb shell rm -f /system/app/Photos/Photos.apk
I am aware of that. There isn't seem to be a problem for you to connect your phone to the computer and delete them via this command.
 
  • Like
Likes   Reactions: Wrichik Basu
Young physicist said:
Code:
adb shell rm -f /system/app/Photos/Photos.apk
I am aware of that. There isn't seem to be a problem for you to connect your phone to the computer and delete them via this command.
That's what I wanted to know.
 
Wrichik Basu said:
That's what I wanted to know.
Just make sure that you type the command right and don’t accidentally delete other stuff:wink:
 
Young physicist said:
Just make sure that you type the command right and don’t accidentally delete other stuff:wink:
That's why I posted the second question:

Wrichik Basu said:
2. Is there any way to backup the system file before deleting it?
 
Wrichik Basu said:
That's why I posted the second question:
I am not sure, but backing up your entire phone(i.e, back up the normal way) should back up the system files as well.
 
Young physicist said:
I am not sure, but backing up your entire phone(i.e, back up the normal way) should back up the system files as well.
No, it doesn't.

There are two commands of adb that can handle files in this way: push and pull. Not sure whether they can copy system files after rooting the phone.