Karl-Johan Dahlström
  Head of Developer Relations
developer
                        world
                       sonymobile.com/developer
                       @sonyxperiadev




2   2013-02-21   PA1                              Confidential
Developers

       Application and Game Developers     Custom ROM Developers
       •Tools                              •Open Source Archives
       •Support                            •Support
       •Promotion                          •Unlockbootloader




3   2013-02-21   PA1                                               Confidential
Developer Tools




4   2013-02-21   PA1                     Confidential
Developer Tools

                                         •US, Canada: Phone
                                         loaner program

                                         •Europe and rest of the
                                         world… Need to raise
                                         our service level. We
                                         are working on it!




5   2013-02-21   PA1                                     Confidential
2013 breakthrough year for Sony Mobile




6   2013-02-21   PA1                              Confidential
2013 breakthrough year for Sony Mobile


         TVC
                        Awareness




7   2013-02-21   PA1                              Confidential
Sony Select.


                        20+ Million Xperia devices




8   2013-02-21   PA1                                 Confidential
Sony Select.




9   2013-02-21   PA1            Confidential
Some things we want you to think of:
     • Xperia Z has full HD - 1080p, 443ppi
             – Make sure you support: xxhdpi
     • STAMINA mode activated
             – AlarmManager class, won’t wake up the
               system



10   2013-02-21   PA1                                  Confidential
11   2013-02-21   PA1   Confidential
12   2013-02-21   PA1   Confidential
Pal Szasz
                        Software Developer




13   2013-02-21   PA1                        Confidential
CHKBUGREPORT
                            (open source)




14   2013-02-21   PA1                       Confidential
How to analyze the system?
        • Capture bugreports
                  –     contains logs (system, event, radio)
                  –     service state dumps
                  –     stacktraces
                  –     running processes
                  –     and more…
                  –     they are HUGE (6MB or more) text files
        • To get a bugreport:
                  – “adb bugreport > bugreport.txt”
                  – Settings -> Developer Options -> Take bugreport


15   2013-02-21   PA1                                                 Confidential
What does ChkBugReport do?
       In short: parses the single huge bugreport text file and outputs a
       set of html pages, charts, data files.




16   2013-02-21   PA1                                                  Confidential
Output




17   2013-02-21   PA1            Confidential
When and how to use it?
        •         There is an ANR or application crash
        •         Check service restarts
        •         Check memory usage after a while
        •         Check battery usage
        •         etc … … …

18   2013-02-21   PA1                                    Confidential
Check memory usage
          Memory usage chart created from GC (Garbage Collector) logs




19   2013-02-21   PA1                                               Confidential
Check battery usage




20   2013-02-21   PA1                         Confidential
Check battery usage




21   2013-02-21   PA1                         Confidential
Open Source: Extend ChkBugReport




22   2013-02-21   PA1                            Confidential
XAppDbg
                        (open source)




23   2013-02-21   PA1                   Confidential
XAppDbg




24   2013-02-21   PA1             Confidential
developer
                         world
                        sonymobile.com/developer
                        @sonyxperiadev




25   2013-02-21   PA1                              Confidential
developer
                         world
                        sonymobile.com/developer
                        @sonyxperiadev




26   2013-02-21   PA1                              Confidential
27   2013-02-21   PA1   Confidential

Sony working with sony and developing for xperia devices

  • 1.
    Karl-Johan Dahlström Head of Developer Relations
  • 2.
    developer world sonymobile.com/developer @sonyxperiadev 2 2013-02-21 PA1 Confidential
  • 3.
    Developers Application and Game Developers Custom ROM Developers •Tools •Open Source Archives •Support •Support •Promotion •Unlockbootloader 3 2013-02-21 PA1 Confidential
  • 4.
    Developer Tools 4 2013-02-21 PA1 Confidential
  • 5.
    Developer Tools •US, Canada: Phone loaner program •Europe and rest of the world… Need to raise our service level. We are working on it! 5 2013-02-21 PA1 Confidential
  • 6.
    2013 breakthrough yearfor Sony Mobile 6 2013-02-21 PA1 Confidential
  • 7.
    2013 breakthrough yearfor Sony Mobile TVC Awareness 7 2013-02-21 PA1 Confidential
  • 8.
    Sony Select. 20+ Million Xperia devices 8 2013-02-21 PA1 Confidential
  • 9.
    Sony Select. 9 2013-02-21 PA1 Confidential
  • 10.
    Some things wewant you to think of: • Xperia Z has full HD - 1080p, 443ppi – Make sure you support: xxhdpi • STAMINA mode activated – AlarmManager class, won’t wake up the system 10 2013-02-21 PA1 Confidential
  • 11.
    11 2013-02-21 PA1 Confidential
  • 12.
    12 2013-02-21 PA1 Confidential
  • 13.
    Pal Szasz Software Developer 13 2013-02-21 PA1 Confidential
  • 14.
    CHKBUGREPORT (open source) 14 2013-02-21 PA1 Confidential
  • 15.
    How to analyzethe system? • Capture bugreports – contains logs (system, event, radio) – service state dumps – stacktraces – running processes – and more… – they are HUGE (6MB or more) text files • To get a bugreport: – “adb bugreport > bugreport.txt” – Settings -> Developer Options -> Take bugreport 15 2013-02-21 PA1 Confidential
  • 16.
    What does ChkBugReportdo? In short: parses the single huge bugreport text file and outputs a set of html pages, charts, data files. 16 2013-02-21 PA1 Confidential
  • 17.
    Output 17 2013-02-21 PA1 Confidential
  • 18.
    When and howto use it? • There is an ANR or application crash • Check service restarts • Check memory usage after a while • Check battery usage • etc … … … 18 2013-02-21 PA1 Confidential
  • 19.
    Check memory usage Memory usage chart created from GC (Garbage Collector) logs 19 2013-02-21 PA1 Confidential
  • 20.
    Check battery usage 20 2013-02-21 PA1 Confidential
  • 21.
    Check battery usage 21 2013-02-21 PA1 Confidential
  • 22.
    Open Source: ExtendChkBugReport 22 2013-02-21 PA1 Confidential
  • 23.
    XAppDbg (open source) 23 2013-02-21 PA1 Confidential
  • 24.
    XAppDbg 24 2013-02-21 PA1 Confidential
  • 25.
    developer world sonymobile.com/developer @sonyxperiadev 25 2013-02-21 PA1 Confidential
  • 26.
    developer world sonymobile.com/developer @sonyxperiadev 26 2013-02-21 PA1 Confidential
  • 27.
    27 2013-02-21 PA1 Confidential