Due to XSharedPreferences::reload being an expensive function in a SELinux-enforced device, creating a new instance every time getPref is called is not a good idea.
Adding @NonNull in XHookBase helped reduce some lines and contribute to the safety codebase.
I also extract some long functions into separate functions to ensure readability, such as getAsn1TaggedObject and getAsn1OctetString.
Description
XSharedPreferences::reload
being an expensive function in a SELinux-enforced device, creating a new instance every timegetPref
is called is not a good idea.@NonNull
inXHookBase
helped reduce some lines and contribute to the safety codebase.getAsn1TaggedObject
andgetAsn1OctetString
.