[Q] Simple Question: What permissions do i need to give to buildprop - Galaxy S II Q&A, Help & Troubleshooting

Hey, what do i set permissions to on buildprop? ( i added tweaks on notepad++ and overwritten previous buildprop without glancing at the permissions :x) on my old phone (galaxy gio) it was r-w-rr so is it any different for s2?

chmod 644
(rw-r--r--)

Related

[Q]Root Explorer Multiple Permissions how to?

I was wondering how you can change the file permissions for several files at once in root explorer? I copied the media/audio/ folder from another cm7 build to neutrino and moved all the files to the correct folders. Now there are so many files, i'de like to change multiple file permissions at once.
the easiest way is to use terminal emulator or adb shell, su, then do "chmod 755 *" for permission "rwxr-xr-x" or "chmod 644 *" for permission "rw-r--r--". The permission will apply to all files since wildcard "*" is used here.
You would probably have more luck using a terminal and chmod.
http://www.manpagez.com/man/1/chmod/
Generally it would be something like so:
chmod augo+-rwx <file name or wildcard>
a = all (owner, groups, other)
u = user or owner
g = groups
o = other
+ to add permissions, - to remove them
r = read
w = write
x = execute
Edit:
I'm way too slow...
sspa said:
the easiest way is to use terminal emulator or adb shell, su, then do "chmod 755 *" for permission "rwxr-xr-x" or "chmod 644 *" for permission "rw-r--r--". The permission will apply to all files since wildcard "*" is used here.
Click to expand...
Click to collapse
Your answers gave me idea to use chown through adb shell the same way. And it works! Thanks all.
P.S. Can't understand why no one famous root file managers can't do batch and recursive chown/chmod.
igenid said:
P.S. Can't understand why no one famous root file managers can't do batch and recursive chown/chmod.
Click to expand...
Click to collapse
Hello,
Sorry it's late answer, but was the same problem of you...I disocover that "Total Commander" and it do it perfect.
Thanks to all
Actually Total Commander still does not do it. Change a main directory to a specific user and hit recursively, nothing happens down the directory tree. It is only to change the date recursively.

I want to change a file's attribute to readable...

I'm new on android... I have some experience in Delphi, VB, C# and C...
I want to copy that file from (data/data/com..../databases/bookmark.db) to SDCARD
but I couldn't...
This file has rw- rw- --- permissions
I get su permission by p = Runtime.getRuntime().exec("su");
and I use those codes
kopyalanan.setReadable(true)
kopyalanan.setReadable(true,false)
What shell I do to change the permissions of a file?

[Q] Proper chmod for a specific folder?

I need to batch apply a set of permissions to these two folders and all files contained within. I'm moving my ringtones to these so that they preserve upon an SD Unmount, but I need to know the proper command in Terminal Emulator to do so. The files need rw-r-r-
/system/media/audio/ringtones
/system/media/notifications
Any help on this would be greatly appreciated.
if you want to apply a permission to the folder and also(recursive) to all of its contents...
you can use this:
su -c chmod -R 777 /path/to/directory
NOTE: 777 = rwx-rwx-rwx

Mod Or Theme My ASUS MeMO Pad

Hello Everyone,
Today I bought a ASUS MeMO Pad for my mum to use and released that the usual stock launcher isn't really noob friendly or has much customization available.
I am really keen to make it look like the Samsung Tab 2, hence touchwiz. Apart from the obvious answer to use one of the many launchers available in Google Play, is there a way to mod the ASUS MeMO Pad, or installing trebuchet, even if it means rooting. Basically is there a way to transform it to look and feel like a Samsung Tab?
Thanks!
i bothered to stay up 24hrs. Basically use apktool thingy! Also read fibe print wants to be in root directory on your computer.
And signing it makes it fail for me.
Anyhow after you got it the way u want compile.
Then: Install script runner, write a script to: su itself, the mount the /system/ as rewritable, next make back up your old one, pref two places(make dir ahead of time), then script should also: copy the new SystemUI.apk and chmod the new apk, sleep 10, chmod again! Sleep for 20 (keep hitting the ok button don't panic) the new apk should start, slide down the status thingy. Then after your sleep 20 make sure to put the orginal back and chmod twice. The script finished. If problems reboot. NP.
Now if all is well rerun that same scritp and put "echo " on all lines we don't need again ie backing up switchroo!
Or make 2 script like me, emergency-bka-replacer; testing-swapper. And manually make dir/copy backups with a file manager.
Please note! MANUALLY COPY SystemUI.apk from the /system/priv-app/ directory to a safe place on your sd card got it??????
please note if u in bind just push the ok button you get .5 to 2 seconds to do an action. Navigate is slow you can still do most. Hold select is really hard!
Please also note to chmod 777 or 776 u can fix later. You HAVE TO DO THIS, sd card is fat32 does not handle file perms!!!!!
Please note that memopad 176cx sucks! =P xpose is your best friend, and a system app mover, or normal u can disable apps now.
Please note, linux IS CASESENSITIVE, google bash for cmds if needed.
Okay okay its a dark theme with a Starwarz pallete looks pretty good!
My Scritp example:
su
echo replacer script
mount -o remount, rw /system/
cp /storage/emulated/0/unsignednew/SystemUI.apk /system/priv-app/
chmod 777 /system/priv-app/SystemUI.apk
echo copied
sleep 10
cp /storage/emulated/0/unsignednew/SystemUI.apk /system/priv-app/
chmod 777 /system/priv-app/SystemUI.apk
sleep 20
echo does it work?
chmod 777 /system/priv-app/SystemUI.apk
cp /storage/emulated/0/abka/SystemUI.apk /system/priv-app/
chmod 777 /system/priv-app/SystemUI.apk
chmod 777 /system/priv-app/SystemUI.apk
echo you should see this if the script finished
Here is the file+screenshots for now in next reply
---------- Post added at 10:24 PM ---------- Previous post was at 09:43 PM ----------
Here is new apk, (unsigned works 4 me) unsigned/signed/myorginal/scriptexample
11mb urlis{tinyurl.com/z9o52ut}
Avoid conflicts DELETE OR BACK UP SystemUi.odex in /system/pri-apps. New will not work with this file!
No cross-site linking! If my dropbox gets slamed I will pull teh file.

Stuck on boot animation, permissions of /system/framework/ - Fixed

Hello!
Could anybody tell me quickly what the default permissions are on /system/framework are? I ****ed up:
chmod -R 644 /system/framework/, instead of chmod -R 644 /system/framework/*. Now it won't boot.
Apparently it was 755, now it's fixed.

Categories

Resources