Gizbeat has come across a situation where a chinaphonearena user is soft-bricked and can’t boot into Android. I believe this is due to the permission settings on the build.prop file.

He can still boot into recovery and is already rooted. So here’s a good chance to write a tutorial on how to change file permissions through ADB should the need arise.

The tutorial will cover this specific situation of doing it through recovery, but the basic premise and commands are the same, so you can do it while you’re booted as well (enable USB debugging if you’re booted already).

Also we’ll be changing the permissions in /system, for which root is required. Changing the permissions of non-system files wouldn’t require root access.

I’ll also just mention that if you can boot into Android, the process is much simpler and can be done with ES Explorer or a similar app.

What you’ll need:

What to Do:

  1. Install the PDAnet MTK6589 ADB VCOM drivers
  2. Extract MTK Droid Tools and run it
  3. Boot into recovery by holding Vol-UP and the power button at the same time
  4. Connect your phone to PC via USB
  5. Wait a few seconds and you should see your phone’s info come up on MTK Droid Tools
  6. In the bottom right corner, you’ll see ‘ADB Terminal’. Click it. A small black program window will open.
  7. At the prompt, type ‘adb shell’. You should now see either a ‘$’ or a ‘#’. The # means you’re rooted.
  8. Type ‘cd system’. You should now see ‘/system #’ (SEE NOTES)
  9. Type ‘chmod 644 build.prop’ (SEE NOTES)
  10. Reset
  • ‘cd’ stands for ‘change directory’. Replace inside the ‘<>’ with whatever directory you need to be in. Typing ‘ls’ at any point will show you where you currently are at in the phone’s file system and a list of folders and files at your current location. In this particular instance, we need to change a system file, so we type ‘cd system’ to change the directory to /system. Remember this depends where currently are. For example if we’re already navigated to ‘/android/data’ and type ‘cd system’ it will return an error.
  • This will depend on what file you want to modify. ‘chmod’ is the command. The number following it is the permission code. Then comes the name of the file you want to modify.
 
         U   G   W
        rwx rwx rwx     chmod 777 filename      
        rwx rwx r-x     chmod 775 filename
        rwx r-x r-x     chmod 755 filename
        rw- rw- r--     chmod 664 filename
        rw- r-- r--     chmod 644 filename

        U = User 
        G = Group 
        W = World

        r = Readable
        w = writable
        x = executable 
        - = no permission
How To Change File Permissions Through ADB Damian Parsons How ToRootTutorials
Gizbeat has come across a situation where a chinaphonearena user is soft-bricked and can't boot into Android. I believe this is due to the permission settings on the build.prop file. He can still boot into recovery and is already rooted. So here's a good chance to write a tutorial on...
<img class="alignnone" alt="" src="http://www.serverintellect.com/support/images/GLOBAL_CMD.gif" width="550" height="272" /> Gizbeat has come across a situation where a chinaphonearena user is soft-bricked and can't boot into Android. I believe this is due to the permission settings on the build.prop file. He can still boot into recovery and is already rooted. So here's a good chance to write a tutorial on how to change file permissions through ADB should the need arise. The tutorial will cover this specific situation of doing it through recovery,<span id="more-2103"></span> but the basic premise and commands are the same, so you can do it while you're booted as well (enable USB debugging if you're booted already). Also we'll be changing the permissions in /system, for which root is required. Changing the permissions of non-system files wouldn't require root access. I'll also just mention that if you can boot into Android, the process is much simpler and can be done with ES Explorer or a similar app. <span style="text-decoration: underline;"><strong>What you'll need:</strong></span> <ul> <li><a title="MTK6575 / MTK6577 / MTK6589 ADB VCOM PDAnet Drivers!" href="http://gizbeat.com/2069/mtk6575-mtk6577-mtk6589-adb-vcom-pdanet-drivers/" target="_blank">PDAnet MTK6589 ADB VCOM Drivers</a></li> <li><a href="http://chinaphonearena.com/forum/showthread.php?tid=461" target="_blank">The latest version of MTK Droid Tools</a></li> <li>A USB Cable to plug your phone into PC</li> </ul> <span style="text-decoration: underline;"><strong>What to Do:</strong></span> <ol> <li>Install the PDAnet MTK6589 ADB VCOM drivers</li> <li>Extract MTK Droid Tools and run it</li> <li>Boot into recovery by holding Vol-UP and the power button at the same time</li> <li>Connect your phone to PC via USB</li> <li>Wait a few seconds and you should see your phone's info come up on MTK Droid Tools</li> <li>In the bottom right corner, you'll see 'ADB Terminal'. Click it. A small black program window will open.</li> <li>At the prompt, type 'adb shell'. You should now see either a '$' or a '#'. The # means you're rooted.</li> <li>Type 'cd system'. You should now see '/system #' (SEE NOTES)</li> <li>Type 'chmod 644 build.prop' (SEE NOTES)</li> <li>Reset</li> </ol> <ul> <li>'cd' stands for 'change directory'. Replace inside the '<>' with whatever directory you need to be in. Typing 'ls' at any point will show you where you currently are at in the phone's file system and a list of folders and files at your current location. In this particular instance, we need to change a system file, so we type 'cd system' to change the directory to /system. Remember this depends where currently are. For example if we're already navigated to '/android/data' and type 'cd system' it will return an error.</li> <li>This will depend on what file you want to modify. 'chmod' is the command. The number following it is the permission code. Then comes the name of the file you want to modify.</li> </ul> <pre> <span style="color: #0000cd; font-size: medium;"><b>      <span style="color: #339966;">    U   G   W         rwx rwx rwx     chmod 777 filename               rwx rwx r-x     chmod 775 filename         rwx r-x r-x     chmod 755 filename         rw- rw- r--     chmod 664 filename         rw- r-- r--     chmod 644 filename         U = User          G = Group          W = World         r = Readable         w = writable         x = executable          - = no permission</span></b></span></pre>



Related Posts

Manual focus lock and fixing continuously auto focusing problems

Manual focus lock and fixing continuously auto focusing problems

Ultimate Blackview BV8000 Pro root and Helio P20 root TWRP guide

Ultimate Blackview BV8000 Pro root and Helio P20 root TWRP guide

How to fix or replace unknown IMEI with SN Write Tool

How to fix or replace unknown IMEI with SN Write Tool

How to fix SP Flash Tool image checksum failed

How to fix SP Flash Tool image checksum failed

HS-USB QDloader 9008 How to unbrick and flash your Zuk Z2 and any Qualcomm phone with MiFlash

HS-USB QDloader 9008 How to unbrick and flash your Zuk Z2 and any Qualcomm phone with MiFlash

Newbie Xiaomi Redmi Pro TWRP download and Xiaomi Redmi Pro root

Newbie Xiaomi Redmi Pro TWRP download and Xiaomi Redmi Pro root