Skip to content
Snippets Groups Projects
Forked from Dhina17 / platform_frameworks_base
Source project has a limited visibility.
  • Aaron Huang's avatar
    746f2aa0
    Fix proto invalid write type · 746f2aa0
    Aaron Huang authored
    While dumpProtoLocked is called, InvalidProtocolBufferException
    occurred because types are mismatched between platform side and
    module side.
    
    netstats.proto was moved into connectivity module, both the
    platform(incident.proto) and the module uses protoc-gen-javastream
    to generate the Java classes from it. It should be fine since
    platform includes the source of the proto, and jarjar the generated
    classess in the module to avoid conflict with platform.
    
    Bug: 218566849
    Test: adb shell incident 3001
          adb shell dumpsys netstats --proto
          atest CtsIncidentHostTestCases:IncidentdTest#testIncidentReportDumpAuto
    Change-Id: I4654350a59dc1ca1a925785ad37f34aa7b481235
    746f2aa0
    History
    Fix proto invalid write type
    Aaron Huang authored
    While dumpProtoLocked is called, InvalidProtocolBufferException
    occurred because types are mismatched between platform side and
    module side.
    
    netstats.proto was moved into connectivity module, both the
    platform(incident.proto) and the module uses protoc-gen-javastream
    to generate the Java classes from it. It should be fine since
    platform includes the source of the proto, and jarjar the generated
    classess in the module to avoid conflict with platform.
    
    Bug: 218566849
    Test: adb shell incident 3001
          adb shell dumpsys netstats --proto
          atest CtsIncidentHostTestCases:IncidentdTest#testIncidentReportDumpAuto
    Change-Id: I4654350a59dc1ca1a925785ad37f34aa7b481235
Code owners
Assign users and groups as approvers for specific file changes. Learn more.