5

how to give write permission to system/app folder i have rooted my android device i want to download the app and install in system/app folder

Process p = Runtime.getRuntime().exec( "su" );

i had tried this command it ask for user permission and then it throws exception system/app is read only file system

MuraliGanesan
  • 3,233
  • 2
  • 16
  • 22
Arul
  • 99
  • 1
  • 3
  • 4

3 Answers3

9

First go to shell using

adb shell

Then remount the system folder as writable using following commands

$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

Then change the permission of system folder to Read, Write and Execute using

# chmod 777 /system/app
VishalKale
  • 758
  • 7
  • 22
3

Just type in your android device terminal

       su

and then

       chmod 777 system/app

su- grants you superuser permission

and chmod 777 file, change the permissions of the file to read, write, and execute..

Shiv
  • 4,569
  • 4
  • 25
  • 39
  • @drdrej that's because you aren't rooted. You need root to install anything in the /system partition on standard devices. – Allison Aug 08 '16 at 00:50
1

Try adb remount in terminal. If you want to do it from the device shell, see this question on how to remount the file system with write permission.

Community
  • 1
  • 1