OSDN Git Service

Drop compatibility with pre 2012 adb clients
authorNick Kralevich <nnk@google.com>
Tue, 12 Apr 2016 23:32:33 +0000 (16:32 -0700)
committerNick Kralevich <nnk@google.com>
Tue, 12 Apr 2016 23:32:33 +0000 (16:32 -0700)
commita50117e54a97aea5b3b2c279fb5643704c460b05
tree7b6bb213b46f7b7fcd7ee8230f41d5c9b1d4c74e
parent1600e269dbf9f2cd818886c55b3e0933dfec7a86
Drop compatibility with pre 2012 adb clients

On very old versions of adb, when "adb bugreport" was executed,
the command "adb shell dumpstate" was run. This was later changed
to "adb shell bugreport". Change
1e339878c128ef47271278779c2685a8dfa49cd1 added a backwards
compatibility hack (see bug 6391938).

It turns out that nobody has been able to execute
/system/bin/dumpstate as a non-root user for 2 releases now due
to SELinux restrictions, so maintaining the code bloat to support
this workaround is pointless.

Delete the code.

Bug: 6391938
Change-Id: I49eebcca1fcec5a39593c53e2e6d23ec87f65a35
cmds/dumpstate/dumpstate.cpp