platform_system_core/adb
Nick Kralevich 268eb4f384 check if uid=0 before attempting remount
If "adb remount" is done without having done "adb root" first,
scary looking SELinux denials are emitted before the operation
eventually fails. Avoid the scary looking messages by refusing
remount attempts if we're not running with privileges.

Change-Id: I298621251a10e38345ef77875003a97c8b5a0270
2015-02-25 16:27:31 -08:00
..
tests Make Python tests only check the current device. 2015-02-24 14:36:03 -08:00
.clang-format Add .clang-format file. 2015-02-24 16:56:39 -08:00
Android.mk Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
CPPLINT.cfg Ignore another stupid lint warning. 2015-02-20 17:19:22 -08:00
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
NOTICE eclair snapshot 2009-11-12 18:46:23 -08:00
OVERVIEW.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
SERVICES.TXT adb: implement "adb reverse <local> <remote>" 2014-05-27 16:42:13 +02:00
SYNC.TXT Adding documentation on the sync part of the adb protocol previously missing. 2014-03-20 20:36:46 +01:00
adb.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
adb.h Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00
adb_auth.c Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00
adb_auth.h Move adb_main to its own file. 2015-02-18 18:32:54 -08:00
adb_auth_client.c Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00
adb_auth_host.c Verify token length before adb signs it 2015-01-27 17:19:35 +00:00
adb_client.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
adb_client.h Add extern "C" to all the adb headers. 2015-02-18 00:21:16 -08:00
adb_io.cpp Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
adb_io.h Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
adb_io_test.cpp Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
adb_listeners.c Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00
adb_listeners.h Move the listener code into its own file. 2015-02-18 18:22:52 -08:00
adb_main.c Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00
adb_trace.h Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
commandline.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
console.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fdevent.cpp Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
fdevent.h Begin moving code from adb to libadb. 2015-01-26 16:45:34 -08:00
file_sync_client.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
file_sync_service.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
file_sync_service.h Add extern "C" to all the adb headers. 2015-02-18 00:21:16 -08:00
framebuffer_service.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
get_my_path_darwin.c Remove explict use of ASCII encoding 2014-11-21 15:56:59 +00:00
get_my_path_linux.c Make get_my_path() safer 2009-10-22 02:55:00 +11:00
get_my_path_windows.c Make get_my_path() safer 2009-10-22 02:55:00 +11:00
jdwp_service.c Add more debug information. 2014-12-09 16:08:24 -08:00
mutex_list.h adb: Cleanup dead code 2013-04-24 21:31:45 -07:00
protocol.txt adb: Add public key authentification 2012-08-23 00:20:06 -07:00
qemu_tracing.c Move emulator tracing into its own file. 2015-02-18 17:21:17 -08:00
qemu_tracing.h Move emulator tracing into its own file. 2015-02-18 17:21:17 -08:00
remount_service.c check if uid=0 before attempting remount 2015-02-25 16:27:31 -08:00
services.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
set_verity_enable_state_service.c Protect from eng vs userdebug build breaks. 2015-01-26 17:49:17 -08:00
sockets.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
sockets.dia auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sysdeps.h Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
sysdeps_win32.c adb: Win32: set socket buffer sizes properly 2015-01-26 21:56:26 -08:00
test_track_devices.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
test_track_jdwp.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
transport.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
transport.h Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
transport_local.c Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
transport_test.cpp Add some basic tests to adb. 2015-02-25 10:57:26 -08:00
transport_usb.c Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00
usb_linux.c Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00
usb_linux_client.c Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00
usb_osx.c Fix the mac build. 2015-02-25 10:26:17 -08:00
usb_windows.c Move transport declarations into transport.h. 2015-02-24 21:30:22 -08:00