Commit Graph

9 Commits

Author SHA1 Message Date
Michael Bestas
e1363720b0 Read sensitive_pn.xml from product partition
Change-Id: I8bcc078b10c7bf822b2d9ebabaade626eca5fd1b
2021-07-23 01:04:31 +02:00
Luca Stefani
97c2e135f1 lineage-sdk: Move to schema parser
Change-Id: Id79656a4abed0d94e2af81f1935b663164ccc8d8
2021-03-13 17:36:20 +01:00
Luca Stefani
402a3860f4 lineage-sdk: Include SPN parser in org.lineageos.lib.phone
Change-Id: Ib87961a739d5494619c70ecc5f35df6aaadb2eb0
2021-03-13 17:35:59 +01:00
Luca Stefani
34c9267a74 lineage-sdk: Import SPN schema
* Will be used to verify SPN xml at build time
  and to automatically generate a C++/Java parser

Change-Id: Ic401c01b74a958b2e813f986725e6c677febabfb
2021-03-13 17:35:59 +01:00
Luca Stefani
0a32731db8 lineage-sdk: lib.phone: Compile against public SDK
* In order to be able to reference this package
  in non-platform packages, we need to compile
  this against the current sdk

Change-Id: Id87059d876854907d947e5802a04db634435c6ed
2021-03-13 17:35:55 +01:00
Michael W
9c5242de8b SensitivePhoneNumbers: Expand XML parsing
* Allow each item to carry additional infos:

<item>
   <name>SomeNameHere</name>
   <number>1234</number>
   <someTag>someValue</someTag>
</item>

* We treat all but <number> as optional
* This way we can show info we have and skip what
  we don't know

Change-Id: I724d9ac25ce8a0ae7f69ec513ba9796b06c9e7f2
2021-03-13 16:02:28 +01:00
Michael W
520e6e45a6 SensitivePhoneNumbers: Additionally check against the sim operator
* In order to also mark numbers as sensitive when calling to your home
  country, check the sim's operator as well
* Also move the fallback mechanism out of the "else" in order to perform
  as many checks as possible to not miss any case of hiding

Change-Id: I23b67145406793506be657df8b62f5d09b5a2a18
2021-03-13 16:02:24 +01:00
Sam Mortimer
fdf52b5ed0 lineage-sdk: Run bpfix
* Run bpfix -w .

Change-Id: I72bf80791a5053de06e5472b3d6fccb3d6b0ed55
2020-09-15 00:01:31 +02:00
Michael W
8505f77f36 sdk: Make phone a new compile target
* Moving SensitivePhoneNumbers to sdk got us significantly bigger
  zip packages due to libphonenumber being part of every package that is
  using org.lineageos.platform or org.lineageos.platform.internal
* In order to correct this, move the "phone" folder to an own library that
  statically links libphonennumber and subsequentially make use of that
  package where needed

Change-Id: I4effd7a9248290aeb23ab47ff8e30385dce4401a
2019-11-23 13:10:42 +00:00