Skip to main content
replaced http://android.stackexchange.com/ with https://android.stackexchange.com/
Source Link

Based on my commentmy comment and Yasser's subsequent commentYasser's subsequent comment , I can conclude that the issue was the immutable attribute set on the file build.prop. If other files and directories also can't be edited or deleted, then they may also be having the same attribute or append-only attribute.

The remedy is to use this command with root privilege:

chattr -i FILE_PATH    # FILE_PATH is the file which currently has immutable attribute

Use -iR followed by a directory's path to remove immutable attribute from a directory recursively.

It is to be noted that OP already has busybox installed. chattr and lsattr aren't the utilities found natively in Android.

Relevant info about the used chattr command and append-only attribute can be found in my answer herehere.

Based on my comment and Yasser's subsequent comment , I can conclude that the issue was the immutable attribute set on the file build.prop. If other files and directories also can't be edited or deleted, then they may also be having the same attribute or append-only attribute.

The remedy is to use this command with root privilege:

chattr -i FILE_PATH    # FILE_PATH is the file which currently has immutable attribute

Use -iR followed by a directory's path to remove immutable attribute from a directory recursively.

It is to be noted that OP already has busybox installed. chattr and lsattr aren't the utilities found natively in Android.

Relevant info about the used chattr command and append-only attribute can be found in my answer here.

Based on my comment and Yasser's subsequent comment , I can conclude that the issue was the immutable attribute set on the file build.prop. If other files and directories also can't be edited or deleted, then they may also be having the same attribute or append-only attribute.

The remedy is to use this command with root privilege:

chattr -i FILE_PATH    # FILE_PATH is the file which currently has immutable attribute

Use -iR followed by a directory's path to remove immutable attribute from a directory recursively.

It is to be noted that OP already has busybox installed. chattr and lsattr aren't the utilities found natively in Android.

Relevant info about the used chattr command and append-only attribute can be found in my answer here.

Source Link
Firelord
  • 25.3k
  • 21
  • 126
  • 292

Based on my comment and Yasser's subsequent comment , I can conclude that the issue was the immutable attribute set on the file build.prop. If other files and directories also can't be edited or deleted, then they may also be having the same attribute or append-only attribute.

The remedy is to use this command with root privilege:

chattr -i FILE_PATH    # FILE_PATH is the file which currently has immutable attribute

Use -iR followed by a directory's path to remove immutable attribute from a directory recursively.

It is to be noted that OP already has busybox installed. chattr and lsattr aren't the utilities found natively in Android.

Relevant info about the used chattr command and append-only attribute can be found in my answer here.