Some quick tips for using QEMU from the command line (on macOS, but should work on Linux too).
Download an OS ISO, e.g., the netinstall Debian 9.7 ISO:
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.7.0-amd64-netinst.iso
Some quick tips for using QEMU from the command line (on macOS, but should work on Linux too).
Download an OS ISO, e.g., the netinstall Debian 9.7 ISO:
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.7.0-amd64-netinst.iso
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] |
#list avd | |
android list avd | |
#start avd | |
emulator -avd name_avd |
#Create a dump of alarms | |
adb shell dumpsys alarm > dump.txt | |
#Create a dump of activities | |
adb shell dumpsys activity |
[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" |
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 |
android.applicationVariants.all { variant -> | |
def appName | |
if (project.hasProperty("applicationName")) { | |
appName = applicationName | |
} else { | |
appName = parent.name | |
} | |
variant.outputs.each { output -> | |
def newApkName |
public class BaseFragment extends Fragment{ | |
private static final String TAG = "base_fragment"; | |
@Override | |
public void onAttach(Context context) { | |
super.onAttach(context); | |
Log.i(TAG, "onAttach()"); | |
} |
public class BaseActivity extends AppCompatActivity{ | |
private static final String TAG = "base_activity"; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
Log.i(TAG, "onCreate()"); | |
} |
Device Real: | |
adb forward tcp:4444 localabstract:/adb-hub | |
adb connect localhost:4444 | |
Emulador: | |
adb -d forward tcp:5601 tcp:5601 |