1. SSL Proxy/Charles + Android trouble https://stackoverflow.com/questions/17823434/ssl-proxy-charles-and-android-trouble/31945622#31945622 2. Enable SSL Proxy for Nougat+ Update your AndroidManifest.xml application section with networkSecurityConfig.xml <application android:name=”AppName” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:networkSecurityConfig=”@xml/network_security_config”> Add network_security_config.xml file to your xml resource folder app/src/main/res/xml/network_security_config.xml <?xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config> <trust-anchors> <certificates src="system" /> <certificates src="user" /> </trust-anchors> </base-config> <!-- For debug only --> <debug-overrides> <trust-anchors>… Continue reading Charles Proxy in Android
Category: Android
How to use Android Battery Historian
1. Install Docker: https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac 2. Run Docker docker run -p 5001:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999 3. Fetch battery report To obtain a bug report from your development device running Android 7.0 and higher: $ adb bugreport bugreport.zip For devices 6.0 and lower: $ adb bugreport > bugreport.txt Then the bugreport will be exported & downloaded to… Continue reading How to use Android Battery Historian
Android perssions group
https://developer.android.com/guide/topics/permissions/requesting.html All dangerous Android system permissions belong to permission groups. If the device is running Android 6.0 (API level 23) and the app's targetSdkVersion is 23 or higher, the following system behavior applies when your app requests a dangerous permission: If an app requests a dangerous permission listed in its manifest, and the app does… Continue reading Android perssions group
Java Effective
Chapter 2. Creating and Destroying Objects Item 1: Consider static factory methods instead of constructors Item 2: Consider a builder when faced with many constructor parameters Item 3: Enforce the singleton property with a private constructor or an enum type Item 4: Enforce noninstantiability with a private constructor Item 5: Avoid creating unnecessary objects Item… Continue reading Java Effective