OSDN Git Service

Relax APF version check in ApfGenerator
authorBernie Innocenti <codewiz@google.com>
Fri, 30 Mar 2018 04:08:26 +0000 (13:08 +0900)
committerBernie Innocenti <codewiz@google.com>
Fri, 30 Mar 2018 04:14:54 +0000 (13:14 +0900)
commitd6bf7ffea788f5753be48a487a2a3b34951dfcb8
tree9cc3d8efee8d350537e69d60d16b1082345bbbef
parente2e7b28c126ef836b67e3fb7a7a6ee8424334ccb
Relax APF version check in ApfGenerator

Instead of requiring an *exact* version, we now require a minimum
version. This is necessary if we wish to upgrade the APF interpreter in
vendor firmware independently of the framework code. Adding new opcodes
without changing the semantics of the old ones is always possible and
usually easy, so we can at least have a backwards-compatibility horizon
wider than a single version.

Change-Id: I4f1ed661afb2ede193188eb8086fbf2a8b45b33d
Test: Change extracted from aosp/647079 and tested there
services/net/java/android/net/apf/ApfGenerator.java