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 January 10, 2024 02:58
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.