From e4fc6322a4f89c97843ad82950fb6757050b0072 Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Tue, 5 Sep 2017 11:15:37 +0900 Subject: Change the netId to nethandle mapping. Being able to update this handle is necessary to ensure that system-only OTAs do not break vendor code that relies on nethandles. Bug: 63052780 Test: walleye builds, boots, networking works Test: MultinetworkApiTest CTS tests passes Change-Id: I049a4ad2610ca68b8f56377b63be7e5e8ce76039 --- native/android/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'native/android/net.c') diff --git a/native/android/net.c b/native/android/net.c index de4b90cc1956..60296a7bd00c 100644 --- a/native/android/net.c +++ b/native/android/net.c @@ -27,7 +27,7 @@ static int getnetidfromhandle(net_handle_t handle, unsigned *netid) { static const uint32_t k32BitMask = 0xffffffff; // This value MUST be kept in sync with the corresponding value in // the android.net.Network#getNetworkHandle() implementation. - static const uint32_t kHandleMagic = 0xfacade; + static const uint32_t kHandleMagic = 0xcafed00d; // Check for minimum acceptable version of the API in the low bits. if (handle != NETWORK_UNSPECIFIED && -- cgit v1.2.3-59-g8ed1b