Is the format of the dumpsys output exactly the same for each android device? As in is it safe to read the output of the dump service in an app and perform exact string matching to parse the data returned?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do not expect the format to be 100% the same. There were slight changes between the different Android versions. Also some services are dependent on specific hardware components used (radio/chipset/peripherals/sensors/etc) – so actual service code might come from different OEMs rather than from Google.
But 98% might be just enough for your application.