Intent for Installing .apk via Web URL

From an Android app, I like to install an apk file from a web server. This apk file contains an update for the app.

All tutorials do this in two steps:

  1. Download the file and save it to the phone’s sd card memory.
  2. Create a new Intent(Intent.ACTION_VIEW) and run the method setDataAndType(Uri.fromFile(new File(“…. of this intent.

However, since Android Nougat, you get into trouble with permission to access the sd card memory. There are (complicated) solutions for this problem.

My question: is there a way to create an Intent, which gets a web URL as source for the apk file. Something like intent.setDataAndType(new URL(“http://….”)

This is easy for the programmer and it provides as clear interface from the program to the Android system.

Unpatching (Disable .APK Signature Verification & Signature verification status always true) in Lucky Patcher?

I applied the patch (Disable .apk Signature Verification and Signature verification status always true) in Lucky Patcher by going to Lucky Patcher >> ToolBox >> Apply Patch to Android.

Now I want to unpatch, but there is no option to do so kindly help!

Screenshot