Linux with KVM and Google DNSs
~/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5_API_24 -qemu -enable-kvm -dns-servers 8.8.8.8,8.8.4.4 &
AOSP build
emulator -skindir ~/Android/Sdk/skins -skin nexus_5x
echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf |
pulseaudio -k && sudo alsa force-reload |
Linux with KVM and Google DNSs
~/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5_API_24 -qemu -enable-kvm -dns-servers 8.8.8.8,8.8.4.4 &
AOSP build
emulator -skindir ~/Android/Sdk/skins -skin nexus_5x
if [ ! -z "${IDE}" -a "${IDE}" == "AndroidStudio" ]; then | |
cd $OLDPWD; | |
fi |
Log relevant stuff for some Office 365 projects
adb -s [device] logcat -s Retrofit AuthenticationContext StorageHelp TokenCacheItem HttpWebRequest Oauth BasicWebViewClient BasicWebViewClientonPageStarted MyMeetingsService eglCodecCommon:S *:s
bash -o igncr <script_file> |
/* | |
* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file. | |
*/ | |
package com.microsoft.office365.profile; | |
interface Constants { | |
public static final String AUTHORITY_URL = "https://login.microsoftonline.com/common"; | |
public static final String DISCOVERY_RESOURCE_URL = "https://api.office.com/discovery/v1.0/me/"; | |
public static final String DISCOVERY_RESOURCE_ID = "https://api.office.com/discovery/"; | |
public static final String MAIL_CAPABILITY = "Mail"; |
private void disconnect(){ | |
//Clear tokens. | |
AuthenticationManager | |
.getInstance() | |
.getAuthenticationContext() | |
.getCache() | |
.removeAll(); | |
//Set manager objects to null. | |
MailManager.resetInstance(); |
// base OData library: | |
compile group: 'com.microsoft.services', name: 'odata-engine-core', version: '0.12.1' | |
compile group: 'com.microsoft.services', name: 'odata-engine-android-impl', version: '0.12.1', ext:'aar' | |
// choose the discovery and outlook services | |
compile group: 'com.microsoft.services', name: 'discovery-services', version: '0.12.1' | |
compile group: 'com.microsoft.services', name: 'outlook-services', version: '0.12.1' | |
// Azure Active Directory Library | |
compile group: 'com.microsoft.aad', name: 'adal', version: '1.1.1' |
<!-- Required to connect to Office 365 --> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<!-- Required to use outlook services --> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |