Skip to content

Instantly share code, notes, and snippets.

@mozesa
mozesa / AppPermissionsExtension.kt
Created November 7, 2022 11:29 — forked from 10zgurr/AppPermissionsExtension.kt
AppPermissionsExtension
# your package name
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import android.provider.Settings
import android.util.Log

Patching ClickOnce Manifests

The following examples take on the example of deploying the fictional .NET application app.exe. NOTE: With ClickOnce you can only deploy .NET applications out of the box. Ho, cf. How can I deploy a non .net application with ClickOnce?.

Creating a ClickOnce deployment for any .NET application

Create the application manifest from the build output (binaries)

mage -n Application -t app\app.exe.manifest -fd app

@mozesa
mozesa / Osk.cs
Created September 5, 2023 07:47
OSK
public static class Osk
{
public static void Show()
{
if (InputPane.IsClosed())
TabTip.Toggle();
}
public static void Hide()
{