Skip to content

Instantly share code, notes, and snippets.

View vilmarbfilho's full-sized avatar
🤖
Trying make a world a better place

V1lm4r vilmarbfilho

🤖
Trying make a world a better place
View GitHub Profile
@vilmarbfilho
vilmarbfilho / permissions.txt
Created October 3, 2016 11:08 — forked from Arinerron/permissions.txt
A list of all Android permissions...
android.permission.REAL_GET_TASKS
android.permission.ACCESS_CACHE_FILESYSTEM
android.permission.REMOTE_AUDIO_PLAYBACK
android.permission.REGISTER_WINDOW_MANAGER_LISTENERS
android.permission.INTENT_FILTER_VERIFICATION_AGENT
android.permission.BIND_INCALL_SERVICE
android.permission.WRITE_SETTINGS
android.permission.CONTROL_KEYGUARD
android.permission.CONFIGURE_WIFI_DISPLAY
android.permission.ACCESS_WIMAX_STATE
[https://xgouchet.fr/android/index.php?article42/launch-intents-using-adb]
# specifying the action and data uri
adb shell am start -a "android.intent.action.VIEW" -d "http://developer.android.com"
# specifying the action, mime type and an extra string
adb shell am start -a "android.intent.action.SEND" --es "android.intent.extra.TEXT" "Hello World" -t "text/plain"
# specifying an explicit component name
adb shell am start -n "com.example.application/.MainActivity"
#Create a dump of alarms
adb shell dumpsys alarm > dump.txt
#Create a dump of activities
adb shell dumpsys activity
#list avd
android list avd
#start avd
emulator -avd name_avd
@vilmarbfilho
vilmarbfilho / library_buildconfig
Created January 9, 2017 11:13
Fix BuildConfig.DEBUG in module library
answer: http://stackoverflow.com/questions/20176284/buildconfig-debug-always-false-when-building-library-projects-with-gradle
Complete documentation can be found here http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-Publication
[LIBRARY - build.gradle]
android {
publishNonDefault true
}
[APP]