Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push build.prop to /system/build.prop

Tags:

android

adb

build

I have edited build.prop and now my phone cannot boot. I have pulled build.prop using adb and now I have the correct build.prop file

What I need is to push build.prop using adb.

First try: Read-only file system

when I mount system:

Second try: Permision Denied

enter image description here

what can I do?

like image 467
Device Avatar asked Jul 22 '14 12:07

Device


People also ask

What is system build prop?

The “build. prop” file is a system file that contains build properties and settings. Some of the contents are specific to your device or your device's manufacturer, others vary by version of the operating system, but some are generic to all devices running the same version of Android as you are.

How can I edit build prop without root?

prop file has been transferred to your system, you can edit it easily using the text editor you downloaded previously. To do so, simply right-click on the build. prop file and select “Edit with Notepad++” or any other text editor that you may have downloaded.


2 Answers

Probably because adb push uses the shell user, which does not have write permissions to /system/build.prop. You can, however, push the file to a different location first (e.g. /data/local/tmp/) and then move the file to the right place with the root user (after mounting).

like image 104
Simo Kinnunen Avatar answered Oct 03 '22 22:10

Simo Kinnunen


Here are the commands you need to use:

adb push <Path to build.prop>/build.prop /data/local/tmp/
adb shell
su
mount -o rw,remount /system
adb push /data/local/tmp/build.prop /system/build.prop
like image 30
Bijan Avatar answered Oct 04 '22 00:10

Bijan