Arul
Arul

Reputation: 109

How to Write Permission to System/app in Android

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

Upvotes: 6

Views: 43633

Answers (3)

VishalKale
VishalKale

Reputation: 798

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

Upvotes: 9

Alexander Sukharev
Alexander Sukharev

Reputation: 807

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.

Upvotes: 1

Shiv
Shiv

Reputation: 4567

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..

Upvotes: 3

Related Questions