Warning
This is a rather old guide and may or may not work with modern versions of Android.
- Boot into TWRP
- Connect device to computer
- Terminal: List devices with
adb devices
private static void muteVolume(Context context) { | |
AudioManager audioManager = getAudioManager(context); | |
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, 0, 0); | |
PrefManager.putBoolean(K_MUTE_BACKGROUND_SOUND, true); | |
} | |
public static void autoBoostVolume(Context context) { | |
AudioManager audioManager = getAudioManager(context); | |
int currVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); | |
int volumeMax = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); |
# Fix detached head in a submodule | |
# Here's a good explanation on how to fix detached HEAD for submodules. | |
# https://stackoverflow.com/questions/18770545 | |
git branch | |
git checkout master | |
git submodule add -b <branch> <repository> [<submodule-path>] | |
git branch --set-upstream-to=origin/master master |
# This is a sample build configuration for JavaScript. | |
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: node:8.12.0 | |
pipelines: | |
branches: |
version: '2.3' | |
services: | |
mysql: | |
restart: always | |
image: mariadb:10.3 | |
container_name: mariadb | |
ports: | |
- "3307:3306" | |
volumes: |
// | |
// CameraController.swift | |
// | |
import AVFoundation | |
import Photos | |
import UIKit | |
class CameraController: UIViewController { | |
enum Camera { |
package br.com.hussan.mqttandroid | |
import android.content.Context | |
import android.util.Log | |
import org.eclipse.paho.android.service.MqttAndroidClient | |
import org.eclipse.paho.client.mqttv3.IMqttActionListener | |
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken | |
import org.eclipse.paho.client.mqttv3.IMqttToken | |
import org.eclipse.paho.client.mqttv3.MqttCallbackExtended | |
import org.eclipse.paho.client.mqttv3.MqttClient |
import android.app.Service | |
import android.content.Intent | |
import android.os.IBinder | |
import android.support.annotation.Nullable | |
import android.support.annotation.WorkerThread | |
import kotlinx.coroutines.* | |
import kotlinx.coroutines.channels.Channel | |
import kotlinx.coroutines.channels.SendChannel | |
import kotlinx.coroutines.channels.actor | |
import kotlin.coroutines.CoroutineContext |
package com.dwave.lyratica.music | |
import android.app.IntentService | |
import android.content.Intent | |
import android.content.Context | |
import android.media.MediaPlayer | |
import com.dwave.lyratica.R | |
private const val ACTION_PLAY = "com.dwave.lyratica.music.action.ACTION_PLAY" | |
private const val ACTION_PAUSE = "com.dwave.lyratica.music.action.ACTION_PAUSE" |
var UnityLoader = UnityLoader || { | |
Compression: { | |
identity: { | |
require: function() { | |
return {}; | |
}, | |
decompress: function(data) { | |
return data; | |
}, | |
hasUnityMarker: function() { |