Skip to content

Instantly share code, notes, and snippets.

View keytrap-x86's full-sized avatar
๐Ÿ‘‹

keytrap keytrap-x86

๐Ÿ‘‹
  • France
  • 18:50 (UTC +01:00)
View GitHub Profile
@keytrap-x86
keytrap-x86 / Readme.md
Last active October 25, 2025 20:55
Prevent standard users from being prompt with UAC for basic tasks like task manager, event viewer, etc..

Context

You or your users are not able to start trivial processes like Taskmgr.exe or regedit.exe without being harrassed by the UAC. You have looked everywhere on Internet and cannot find a solution.

Hopefully this gist will help you out.

Solutions

There's a few solutions for this problem (I've struggled with many solutions and found the ultimate one).

package com.ute.eu.scannertest;
import android.media.AudioManager;
import android.media.MediaScannerConnection;
import android.media.SoundPool;
import android.os.Bundle;
import android.os.Environment;
import android.os.Vibrator;
import android.app.Activity;
import android.content.BroadcastReceiver;