[Q] Android custom permission system - Android Q&A, Help & Troubleshooting

I'm trying to add a new permission in the android permission system. What I've found out till now is that the android manifest is in this directory : android.googlesource.com/platform/frameworks/base/+/master/packages/SystemUI/AndroidManifest.xml but the sms permissions are not included.
My question is if it feasible to create a new permission by merging the read and write permissions of sms or by modifying the code of the read permission of SMS. If it is feasible how it's done,where the code of the permissions resides and in which file those permissions are.
I have no experience with modifying roms,any help will be greatly appreciated.

Related

[REF] Understanding File Permissions (CHMOD)

I thought this might help and add to the knowledge base of our subforums. This is a basic, roughly pieced together reference. So, some of you may have noticed mention of setting file permissions to 644, for example (or 755). This format of file permissions is called CHMOD (short for "change mode"). It determines how much access a file should have. For the sake of simplicity, I'll leave it at that.
I'll go over what each digit (1-7) represents, which is some variation/combination of having read, write, or execute permissions. In Root Explorer, for example, there are three lines - Owner, Group, and Others. In file permissions, the three digits represent the permissions allowed for the aforementioned Owner, Group, and Others. The first digit represents Owner, the second digit represents Group, and the last represents Others.
644 =
Owner - 6
Group - 4
Others - 4
*644 is also referred to as rw-r-r (i.e., read and write permissions for Owner, read only permissions for Group, and read only permissions for Others).
Here's what each number is the equivalent to:
Code:
[B]0[/B] - No Permissions
[B]1[/B] - Execute Only
[B]2[/B] - Write Only
[B]3 [/B]- Write and Execute Permissions
[B]4[/B] - Read Only
[B]5[/B] - Read and Execute Permissions
[B]6[/B] - Read and Write Permissions
[B]7[/B] - Read, Write, and Execute Permissions
Most system files have permissions of rw-r-r/644, while scripts have 755.
FYI, each number of a bitmask with three buts.
1 = execute
2 = write
4 = read
To get the combo you want, add the numbers together for the bits you want.
Note that while you can set a file to be executable but not readable, this usually doesn't work or causes WEIRD stuff to happen.
that helped. thank you : )

help! ro rw-r-r

hello all
I do not understand this action to
can you detail
"change permisions ro rw-r-r, reboot!"
thank you
ps: if there was a Frenchman I'm ok
Linux based OSes all use a similar file permission system you can read in detail on Wikipedia:
http://en.wikipedia.org/wiki/Filesystem_permissions
To change permissions I like to use Root Explorer, here is a video tutorial:
http://www.youtube.com/watch?v=RI08wNsanLY
or just go into recovery and sellect fix permissions
Using Root Explorer
I used Root Explorer, went into system/app, and if you select the view button you can select details instead of icons, this will show you the permission settings of your other applications. rw-r--r--
by long pressing on your application you wish to change, select permissions from the menu. A pop up shows the follow titles.
Read Write Execute
Owner
Group
Others
Select the boxes to match your permission.
Owner: Read and Write
Group: Read
Others: Read
cyneogenmod
hello
new problem after having instaler miracle V1 and V2 I have this message when trying to open cyano
"closing process com.android.settings"
someone has a small idea to settle the problem?

[Q] SDcards internal and external are read only, can't write to it anymore

This worked (re-enabled writing to sdcard2) for me on my Sony Tablet SGPT112USS updated and rooted ICS 4.0.3. I used ROM Toolbox app to mount the file system as rw, used a text editor to make the change to platform.xml, then used ROM Toolbox to mount the file system back to ro. Hope this helps. Found this on the web. Thanks to the original poster (forgot their handle).
1. Using a root-enabled file manager, navigate to /system/etc/permissions and make sure you have mounted the file system r/w.
2. Edit platform.xml and find the WRITE_EXTERNAL_STORAGE permission.
3. Add an additional group definition for this permission...<group gid="media_rw" />
4. Save the changes to the file.
5. Restart your tablet.
After editing platform.xml file my both sdcards are not writable anymore...looking for some help on this
Your changes made the platform.xml file invalid and thus unusable causing more errors ont he way. Check it with XML parser for errors (loading it in browser like firefox or chrome, which supports xml will do) - the couse will be probably something trivial like using wrong quote characters or unclosed xml tag.

how to create xml file in android?

Guys i have a problem that my code gives an Exception as Permission Denied when we write a xml in android. can any one tell that How it will be removed.

access problem to files

Hi.
I have a problem.
i can see my files in this path : /data/media/0/android/obb ( i have read and Write access)
but i cant see any files in this path : /storage/emulated/0/android/obb . it is empty and i can't write any thing on it.
how can i fix it?
Android is able to mount a single partition into multiple point in system (which represented in folder).
As in each folder, a user and an application have a different permissions regarding any execution against the folder.
Thus, the difference that you're experiencing. To solve this is to set the permission of both folder in the same way.
To set the permissions, your phone have to be rooted and using an application that could change folder/file permissions.

Categories

Resources