Skip to Content
Testing and securing Android Studio applications: debug and secure your Android applications with Android Studio

Testing and securing Android Studio applications: debug and secure your Android applications with Android Studio

If you are a developer with some Android knowledge, but you do not know how to test your applications using Android Studio, this book will guide you. It is recommended that you are familiar with Android Studio IDE

eBook, Electronic resource, Book. English. Electronic books.
Published Birmingham, UK : Packt Pub 2014
Rate this

This resource is available electronically from the following locations

Details

ISBN: 1783988800, 1783988819, 9781783988808, 9781783988815
Note: Online resource; title from cover (Safari, viewed Sept. 24, 2014).
Physical Description: 1 online resource (1 volume) : illustrations
Series: Community experience distilled
Subject: Android (Electronic resource); Application software Development.; TECHNOLOGY & ENGINEERING Mechanical.
Series Title: Community experience distilled.
Local note: eBooks on EBSCOhost EBSCO eBooks for FE Collection (UK)

Contents

  1. Cover
  2. Copyright
  3. Credits
  4. About the Authors
  5. About the Reviewers
  6. www.PacktPub.com
  7. Table of Contents
  8. Preface
  9. Chapter 1: Introduction to Software Security
  10. Software security terms
  11. Threats, vulnerabilities, and risks
  12. Threat
  13. Vulnerability
  14. Risk
  15. Secure code-design principles
  16. Testing the basics
  17. Summary
  18. Chapter 2: Security in Android Applications
  19. The mobile environment
  20. An overview of Android security
  21. Permissions
  22. Interapplication communication
  23. Intents
  24. Content providers
  25. Summary
  26. Chapter 3: Monitoring Your Application
  27. Debugging and DDMS
  28. Threads
  29. Method profiling
  30. Heap.
  31. Allocation TrackerNetwork Statistics
  32. File Explorer
  33. Emulator Control
  34. System Information
  35. Summary
  36. Chapter 4: Mitigating Vulnerabilities
  37. Input validation
  38. SQL injection
  39. Permissions
  40. Handling a user''s data and credentials
  41. Interapplication communication
  42. Securing Intents
  43. Securing the content providers
  44. Summary
  45. Chapter 5: Preserving Data Privacy
  46. Data privacy
  47. Shared preferences
  48. Files in the internal storage
  49. Files in external storage
  50. The database storage
  51. Encryption
  52. The encryption methods
  53. Generating a key
  54. Using encryption to store data
  55. Summary
  56. Chapter 6: Securing Communications.
  57. HTTPSSSL and TLS
  58. Server and client certificates
  59. Keytool in the terminal
  60. Android Studio
  61. Code examples using HTTPS
  62. Summary
  63. Chapter 7: Authentication Methods
  64. Multifactor authentication
  65. The knowledge factor
  66. The possession factor
  67. The inherence factor
  68. Login implementations
  69. AccountManager
  70. Summary
  71. Chapter 8: Testing Your Application
  72. Testing in Android
  73. Testing the UI
  74. The uiautomator API
  75. The UiDevice class
  76. The UiSelector class
  77. The UiObject class
  78. The UiCollection class
  79. The UiScrollable class
  80. The uiautomatorviewer tool
  81. The UI test project
  82. Running UI test cases
  83. Summary.
  84. Chapter 9: Unit and Functional TestsTesting activities
  85. The test case classes
  86. Instrumentation
  87. The test case methods
  88. The Assert class and method
  89. The ViewAsserts class
  90. The MoreAsserts class
  91. UI testing and TouchUtils
  92. The mock object classes
  93. Creating an activity test
  94. Creating a unit test
  95. Unit test setup
  96. Clock test
  97. Layout test
  98. The activity Intent test
  99. Creating a functional test
  100. The functional test setup
  101. The UI test
  102. The activity Intent test
  103. The state management test
  104. Getting the results
  105. Summary
  106. Chapter 10: Supporting Tools
  107. Tools for unit testing
  108. Spoon
  109. Mockito
  110. Android Mock.
  111. FEST AndroidRobolectric
  112. Tools for functional testing
  113. Robotium
  114. Espresso
  115. Appium
  116. Calabash
  117. MonkeyTalk
  118. Bot-bot
  119. Monkey
  120. Wireshark
  121. Other tools
  122. Genymotion
  123. Summary
  124. Chapter 11: Further Considerations
  125. What to test
  126. Network access
  127. Media availability
  128. Change in orientation
  129. Service and content provider testing
  130. Developer options
  131. Getting help
  132. Summary
  133. Index.