Skip to content

Instantly share code, notes, and snippets.

View bendenoz's full-sized avatar

Benjamin Denozière bendenoz

View GitHub Profile
@bendenoz
bendenoz / Beep.java
Last active July 24, 2024 13:35
Basic class to play system sound without user interaction from adb command line. Must be compiled to .dex file
import android.media.MediaPlayer;
import android.media.AudioManager;
import android.util.Log;
import java.io.IOException;
public class Beep {
/**
* Command-line entry point.