markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 1 | # Keep class's integer static field for MessageUtils to parsing their name. |
Chiachang Wang | 14aaefc | 2020-07-29 12:05:04 +0800 | [diff] [blame] | 2 | -keep class com.android.networkstack.tethering.Tethering$TetherMainSM { |
markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 3 | static final int CMD_*; |
| 4 | static final int EVENT_*; |
| 5 | } |
| 6 | |
Tyler Wear | e8043ca7 | 2021-10-19 10:59:01 -0700 | [diff] [blame] | 7 | -keep class com.android.networkstack.tethering.util.BpfMap { |
markchien | 7052688 | 2020-11-12 00:17:15 +0800 | [diff] [blame] | 8 | native <methods>; |
| 9 | } |
| 10 | |
Patrick Rohr | b194dfe | 2022-01-20 22:06:24 +0100 | [diff] [blame] | 11 | -keep class com.android.networkstack.tethering.util.TcUtils { |
| 12 | native <methods>; |
| 13 | } |
| 14 | |
markchien | 7052688 | 2020-11-12 00:17:15 +0800 | [diff] [blame] | 15 | -keepclassmembers public class * extends com.android.networkstack.tethering.util.Struct { |
Remi NGUYEN VAN | 9a82bbf | 2021-04-14 01:30:55 +0000 | [diff] [blame] | 16 | *; |
markchien | 7052688 | 2020-11-12 00:17:15 +0800 | [diff] [blame] | 17 | } |
| 18 | |
markchien | 9d35382 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 19 | -keepclassmembers class android.net.ip.IpServer { |
| 20 | static final int CMD_*; |
| 21 | } |
Wayne Ma | 71d6639 | 2022-03-03 10:15:09 +0800 | [diff] [blame] | 22 | |
| 23 | # The lite proto runtime uses reflection to access fields based on the names in |
| 24 | # the schema, keep all the fields. |
| 25 | -keepclassmembers class * extends com.android.networkstack.tethering.protobuf.MessageLite { |
| 26 | <fields>; |
| 27 | } |