Android Arbitrary class loading and...

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

The protobuf library includes the "javanano" compiler, commonly used in many Android applications (due to its tiny resource footprint). The "javanano" compiler supports a variety of Android-specific compilation flags which can be used to modify the generated message classes. One such compilation flag is "parcelable_messages". Enabling this flag causes the generated Android classes to implement the Parcelable interface, allowing them to be serialized into Parcels (and placed in Bundles). By default this flag is switched off. Message classes that are generated using the "parcelable_messages" option either extend "ParcelableExtendableMessageNano" (if they need to support unknown fields) or directly extend "ParcelableMessageNano". Both of these classes use the helper class "ParcelableMessageNanoCreator" in order to serialize the nano messages to a Parcel and deserialize them back again. In order to keep track of the specific message class serialized to a Parcel, the...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息