Adding a security exception to an app

לעברית לחצו כאן

To switch from edit view to read view

To search in the Wiki

Home page > Security certificate > Installation of certificate in Android > Adding a security exception to an app ‎‎


From Android 7 onwards, by default apps do not trust the security certificates that the user adds but only the system certificates so most apps will not work even after installing the certificate as the instructions provided here.

But the app file can usually be edited and configured to support the security certificate that the user has installed.

In this tutorial we will learn how to do this, the tutorial consists of two main steps, the first step is only relevant for those who do not have access to the Linux system, those who have access to the Linux system can go directly to the second part (script run):

The tutorial is based on screenshots, the numbers shown in parentheses mark the step in the screenshots'.

Installation of the Windows Linux subsystem for Windows 10

This step will allow us to run bash commands in windows, (Windows subsystem for Linux is only available in 64-bit versions of windows 10 version 1607 or higher).

First we need to enable this option, we will open PowerShell as an administrator(2) (3), And run the following command there(4):

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

After the operation (5) is complete, a message appears asking you to confirm a computer restart by pressing Y and Enter (6).

Now, download this file and install it (7) (8) , run the app, wait for the installation to complete (9) , first set username (10) and password (11) , and again ' '(11)' verificat password.

(12) Run the command sudo apt-get update,

Wait until the action is ends (13) then run the command (14)

sudo apt install default-jdk

(15) Approve by typing Y,

Wait until the action is ends (16),

That is, we have now installed the Linux running environment on the computer. You can close the terminal.

Running script

Now download this file (zip file), extract it to the folder, put in the same folder the apk file that we want to handle.

In the address bar of the folder (where the path register) write wsl and press enter (17) , a Linux terminal will open in the location of the folder (18)< / small>,

(18) There run the command:

./addSecurityExceptions.sh app-name.apk

Insted of 'app-name.apk' write the name of the app

(19) In the initial session we will need to update details, we can write down our name or any other word and finish typing yes.

That's it. (20)

Now you will see that in the script folder a file was added(21).


Sources:

https://docs.microsoft.com/en-us/windows/wsl/install-win10

https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04

https://github.com/levyitay/AddSecurityExceptionAndroid


Photos tutorial:

שלב א - הוספת חריגה.jpg שלב ב - הוספת חריגה.jpg שלב ג - הוספת חריגה.jpg שלב ד - הוספת חריגה.jpg שלב ה - הוספת חריגה.jpg שלב ו - הוספת חריגה.jpg שלב ז - הוספת חריגה.jpg שלב ח - הוספת חריגה.jpg שלב ט - הוספת חריגה.jpg שלב י - הוספת חריגה.jpg שלב יא - הוספת חריגה.jpg שלב יב - הוספת חריגה.jpg שלב יג - הוספת חריגה.jpg שלב יד - הוספת חריגה.jpg שלב טו - הוספת חריגה.jpg שלב טז - הוספת חריגה.jpg