| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Pixelflinger's code makes assumptions, at certain places,
that pointers can be stored as ints. This patch makes use
of uintptr_t wherever pointers are stored as int or cast
to int.
Change-Id: Ie76f425cbc82ac038a747f77a95bd31774f4a8e8
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes the FUSE daemon to synthesize an Android-specific set of
filesystem permissions, even when the underlying media storage is
permissionless. This is designed to support several features:
First, apps can access their own files in /Android/data/com.example/
without requiring any external storage permissions. This is enabled
by allowing o+x on parent directories, and assigning the UID owner
based on the directory name (package name). The mapping from package
to appId is parsed from packages.list, which is updated when apps are
added/removed. Changes are observed through inotify. It creates
missing package name directories when requested and valid.
Second, support for separate permissions for photos and audio/video
content on the device through new GIDs which are assigned based on
top-level directory names.
Finally, support for multi-user separation on the same physical media
through new /Android/user/ directory, which will be bind-mounted
into place. It recursively applies the above rules to each secondary
user.
rwxrwx--x root:sdcard_rw /
rwxrwx--- root:sdcard_pics /Pictures
rwxrwx--- root:sdcard_av /Music
rwxrwx--x root:sdcard_rw /Android
rwxrwx--x root:sdcard_rw /Android/data
rwxrwx--- u0_a12:sdcard_rw /Android/data/com.example
rwxrwx--x root:sdcard_rw /Android/obb/
rwxrwx--- u0_a12:sdcard_rw /Android/obb/com.example
rwxrwx--- root:sdcard_all /Android/user
rwxrwx--x root:sdcard_rw /Android/user/10
rwxrwx--- u10_a12:sdcard_rw /Android/user/10/Android/data/com.example
These derived permissions are disabled by default. Switched option
parsing to getopt().
Change-Id: I21bf5d79d13f0f07a6a116122b16395f4f97505b
|
|\
| |
| |
| |
| |
| |
| | |
plugins" into jb-mr2-dev
* commit '9e9ed1b40010745e709157a6977ba6d053d46c49':
Add a new group for MediaDrm engine plugins
|
| |\ |
|
| | |
| | |
| | |
| | |
| | | |
bug: 8702754
Change-Id: I3b7988b64b1dcf4685624e4c1af938e132b82696
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit '0db6600a60e8d604aaef5e43db9ae52ed7380979':
Remove DBUS from make and header files
|
| |/
| |
| |
| |
| |
| |
| |
| | |
DBUS had been needed by bluetooth bluz stack. It is not needed after
we replaced bluez stack with bluedroid stack.
bug 6872904
Change-Id: I3fa41c1dd4ac80bc679d5950b3b20c7f6d12265f
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Move the responsibility for rebooting the system from the
reboot command to init. Init is in a better position to take
actions to bring the system down cleanly, including making sure
filesystems are mounted read-only.
The only UIDs which can perform an init triggered reboot are
root, system, and shell.
Modify the reboot command so that it calls into init to perform
the reboot. The reboot command no longer requires CAP_SYS_BOOT.
Remove the -n reboot option and code which supports it. Anyone needing
to do an unclean shutdown can just do a 'echo c > /proc/sysrq-trigger'.
Modify adb so that it calls into init to perform a shutdown.
Bug: 8646621
Change-Id: I84c0513acb549720cb0e8c9fcbda0050f5c396f5
|
|/
|
|
|
|
|
|
| |
Set the CAP_SYS_BOOT filesystem capability on the new reboot
command and keep CAP_SYS_BOOT in adb bounding set so that the
shell user can run it.
Change-Id: I1dd6143445ee2a952254f0452ab6e544318431dd
|
|
|
|
|
|
|
|
| |
Make /vendor have the same permissions as /system/vendor for devices
that have a vendor partition.
Bug: 8341435
Change-Id: I077a2caf9da41fc072a4d3e334be28c24b70c7cd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
/system/bin/ping no longer requires CAP_NET_RAW, as we're now
using IPPROTO_ICMP. Please see the following for more details:
* http://lwn.net/Articles/443051/
* https://android-review.googlesource.com/52090
* https://android-review.googlesource.com/52072
We can now make ping a normal, unprivileged program.
/system/bin/run-as only requires CAP_SETUID and CAP_SETGID.
Explicitly set the capabilities of this file, and remove
the setuid bit.
This is equivalent to running the following commands:
* chmod 750 /system/bin/run-as
* chown root:shell /system/bin/run-as
* setcap cap_setgid,cap_setuid+ep /system/bin/run-as
Change-Id: I65df858b45e6de4e2190ac9d6d592c06ea9d28cf
|
|
|
|
|
|
|
| |
For now, remove linux/capability.h . We're haven't started using
capabilities yet, and this file doesn't exist on mac builds.
Change-Id: Id6ec7fdb408bcdfdd538dac65187194c8ee226ff
|
|
|
|
|
|
|
|
| |
Modify android_filesystem_config.h and add a capabilities
field. This field can be used to add filesystem capabilities
to a particular file.
Change-Id: If8953a322457ea7275aa6df75660b714e6dc678a
|
|\
| |
| |
| | |
Change-Id: Ie7a8b642dec0f07d4c8bfd9d8f736fd66c4febe0
|
| |
| |
| |
| | |
Change-Id: I1e996dfbaa0f187ec87b5318a214ab0b852193cc
|
| |
| |
| |
| |
| |
| |
| | |
SELinux policies use absolute paths, allow absolute paths in fs_config
as well.
Change-Id: Ic97ee0b4eb4df9eac965a8e819fde01df473de7e
|
|\ \
| |/
|/|
| |
| | |
* commit 'ee854b077766a85279fa1849b537c50837d1a204':
Allocate a UID for clatd
|
| |
| |
| |
| |
| |
| |
| | |
clatd(464xlat) runs as its own UID after it drops root privs
Change-Id: I2392f8127dcd90d16b0f20ff31bcc5aa096db464
Signed-off-by: Daniel Drown <dan-android@drown.org>
|
| |
| |
| |
| |
| |
| | |
bug 6925422
Change-Id: I8d371f8307dd6bea3909a56643819413ea829a98
|
|/
|
|
|
|
|
| |
remove system/bluetooth stuff.
bug 6849488
Change-Id: I81a94d34a4363562a74fa2e574828fd919cfe18c
|
|
|
|
|
|
|
| |
This will allow native tools to be able to know where the shared app
gids start and end.
Change-Id: Ie4529baf36b361c51c42f079b259c352e316647f
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Ief7bdbd8d09cabe3f11f3ed47a932a7faa81cad9
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It's safe to change the permissions on files in the root partitions;
incremental OTA now knows how to handle this case.
This reverts commit 08c370cc50e4bdae5a59f4ddfd1e3874bb36579d.
Change-Id: I503bf8ebd037fa9715494c6539e5430eee47acfe
|
| |
| |
| |
| | |
Change-Id: I21a991148fd1de604ecf87abad0b49970d2abe84
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of specifying in init what to mount, and having various hacks in init
itself to deal with encryption, use a filesystem manager library to do the
work, that can also be invoked by vold when mounting an encrypted volume.
Keep all the magic filesystem info an a device specific fstab file.
Change-Id: Ib988f1e4fb0638ba1d5fd98407fa6d8cf862aaca
|
| |
| |
| |
| |
| |
| | |
Adds both the new service and another socket for netd.
Change-Id: Ie0271a2c48aa55217ae3fcdcc8e121b86b5a589b
|
| |
| |
| |
| | |
Change-Id: Ib65fdf4211bef77057009e31295e610f8ba64b44
|
| |
| |
| |
| | |
Change-Id: I47f650e415e06c0b69790ffefea7f208c910ebd7
|
|/
|
|
| |
Change-Id: I302f89c102bc35dcd70168748e205b41fdbf6576
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The access control changes allow us to just use Nfc.apk with
the regular platform certificate, instead of the custom signed
NfcGoogle.apk. So we can compeltely get rid of vendor/google/apps/NfcGoogle
and just build it out of packages/apps/Nfc now.
The package name is also reverted from com.android.nfc3 to com.android.nfc
The NFC uid needs to get bumped (25 to 27) to allow the cert change.
Bug: 5608249
Change-Id: I5e178b469e5210cd231ba5f4ea57aa666b3d8893
|
|
|
|
|
|
| |
Bug 4598045
Change-Id: I5550203927146fd6864408b3ac2f5e6f5d2b1d77
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This can be launched from an 'on charger' section in init, which
is processed if androidboot.mode=charger is supplied on kernel
command line.
This is a standalone binary that has a simple "user interface"
and allows the standard production kernel to run while charging.
This removes the burden from the bootloader to get low-power mode
working.
Currently, the device will "power-on" (i.e. reboot) into normal
mode if the power key is pressed for X seconds, and will also
power down the device if the usb/ac cable is removed for Y seconds.
Change-Id: I780594b99211cb09de7f8519a69c5962eb91348a
Signed-off-by: Dima Zavin <dima@android.com>
|
|
|
|
|
|
|
| |
This reverts commit 6541ef1562ccf93e498d653598330a7fc80ad2b2.
Bug:4970237
Change-Id: I23a90eb89c1d19893d2ba7065fc624c0521cb06e
|
|
|
|
|
|
|
|
|
| |
Introduces new "net_bw_stats" group which will protect reading
detailed bandwidth statistics. Also introduce "net_bw_acct" group
which will enable specific applications to request that their network
traffic be counted against other UIDs.
Change-Id: Ic0ec04e0d2bb9573f3c2a094ebd6d6a8cae0aae6
|
|
|
|
| |
Change-Id: Id6738d7c97dd58b2043e2cba018797e3b2b4d77a
|
|\
| |
| |
| | |
Change-Id: I9f77e84d887dbe84bb94de0fdd369d8de24fbec3
|
| |\
| | |
| | |
| | |
| | | |
* commit '336bc321a6e978a273098148e13a82c5e7ec3be5':
Make the NFC UID forward compatible.
|
| | |
| | |
| | |
| | | |
Change-Id: Icfa302c22151b3d722ad0da7e58806f74730e1a3
|
| |\ \
| | |/
| | |
| | |
| | | |
* commit 'a6a36c0b799b84d06b695027d205f21d13a3275b':
Update the value for the NFC shared UID.
|
| | |
| | |
| | |
| | | |
Change-Id: I47edf39dbdf2ebd41f44ca69aac250d8991dec4c
|
| | |
| | |
| | |
| | | |
Change-Id: If3417e0c8728c7c74badb12de734cf06e794619d
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
aka /sdcard content.
* commit '57cd87d9ccf57a2c874fafd1a0b8cab7ebea646f':
Set default permissions for preloaded /data/media aka /sdcard content.
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: Ia67cbdbfbcd423cf163f0fce5c6edc215564e782
|
|/ / /
| | |
| | |
| | |
| | | |
Change-Id: Ie3b20b487c1466737921567ab2d043e230356bf4
Note: safe to re-use the drmio uid/gid as no files were ever created.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since the "usb" group and ACCESS_USB permission will be used by regular apps
to access USB devices in host mode, we need a separate permission for the
device side MTP driver.
Change-Id: Ibb546b8726d61e041fc7c273f71929624ad1575b
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
BUG: 3113970
Change-Id: I233bd57e36d1e65847ead503e378304a958f492d
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
Merge commit '67672e04111a6cfdf572023a154675749c3fb550'
* commit '67672e04111a6cfdf572023a154675749c3fb550':
Add AID_NFC for use by the NFC service.
|
| |\ \
| | |/
| | |
| | | |
Change-Id: I8c08cca033ef3efe6badd2a7ba4674dfb02d6b60
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: I5b92f87dbacb9d855d99e10b3811f290fb64a144
Signed-off-by: Nick Pelly <npelly@google.com>
|