[Samsung Galaxy J5 Questions & Answers] tweakradje:
After applying Knox_cleaner_MM.zip in recovery I cannot install ANY apk from sdcard (internal and external) anymore.

If I install same apk from /data/local/tmp folder it installs without problem.

On screen message when installing apk: Parse error... (well nothing very specific)

From logcat I get

Clock : received broadcast android.intent.action.TIME_TICK
: Unable to open '/storage/emulated/0/Download/SlimLauncher-1.2.apk': Permission denied
zipro : Error opening archive /storage/emulated/0/Download/SlimLauncher-1.2.apk: I/O Error
asset : failed to open Zip archive '/storage/emulated/0/Download/SlimLauncher-1.2.apk'
asset : failed to close Zip archive '/storage/emulated/0/Download/SlimLauncher-1.2.apk'
PackageInstaller: Parse error when parsing manifest. Discontinuing installation
ConnectivityService: returning getNetworkInfo for network type 1 : [type: WIFI[] - WIFI, state: CONNECTED/CONNECTED, reason: (unspecified), extra: "EnGenius
DateView: received broadcast android.intent.action.TIME_TICK
ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{30061e2 V.E...... R.....I. 0,0-0,0}
InputDispatcher: Focus entered window: 8062
PointerIcon: setMouseIconStyle1 pointerType: 1001 iconType:101 flag:0 pid:2005 uid:1000
PointerIcon: setMouseCustomIcon IconType is same.101
StatusBarManagerService: manageDisableList userId=0 what=0x0 pkg=Window{c63ca44 u0 d0 com.google.android.packageinstaller/com.android.packageinstaller.Packa
ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{2b7d548 I.E...... R.....ID 0,0-0,0}
InstallFlowAnalytics: Failed to hash APK contents
InstallFlowAnalytics: java.io.FileNotFoundException: /storage/emulated/0/Download/SlimLauncher-1.2.apk: open failed: EACCES (Permission denied)
InstallFlowAnalytics: at libcore.io.IoBridge.open(IoBridge.java:452)
InstallFlowAnalytics: at java.io.FileInputStream.<init>(FileInputStream.java:76)
InstallFlowAnalytics: at com.android.packageinstaller.InstallFlowAnalytics.getSha256ContentsDigest(InstallFlowAnalytics.java:593)
InstallFlowAnalytics: at com.android.packageinstaller.InstallFlowAnalytics.getPackageContentsDigest(InstallFlowAnalytics.java:576)
InstallFlowAnalytics: at com.android.packageinstaller.InstallFlowAnalytics.-wrap0(InstallFlowAnalytics.java)
InstallFlowAnalytics: at com.android.packageinstaller.InstallFlowAnalytics$2.run(InstallFlowAnalytics.java:462)
InstallFlowAnalytics: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
InstallFlowAnalytics: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
InstallFlowAnalytics: at java.lang.Thread.run(Thread.java:818)
InstallFlowAnalytics: Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
InstallFlowAnalytics: at libcore.io.Posix.open(Native Method)
InstallFlowAnalytics: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
InstallFlowAnalytics: at libcore.io.IoBridge.open(IoBridge.java:438)
InstallFlowAnalytics: ... 8 more
SurfaceFlinger: id=54 createSurf (97x97),1 flag=4, QackageInst
SurfaceFlinger: id=55 createSurf (720x1280),1 flag=404, QackageInst

other probably related? logcat entries:

libpersona: KNOX_SDCARD checking this for 10141

libpersona: KNOX_SDCARD not a persona

PersonaManager: mKnoxInfo is empty

SettingsProvider: edmUri: content://com.sec.knox.provider/RestrictionPolicy3

Attached Knox_cleaner_MM.zip with this script:

ui_print("Removing Samsung KNOX and core files...");

delete_recursive("/system/app/KnoxAppsUpdateAgent");

delete_recursive("/system/app/KnoxAttestationAgent");

delete_recursive("/system/app/KnoxFolderContainer");

delete_recursive("/system/app/KnoxSetupWizardClient");

delete_recursive("/system/app/KnoxSwitcher");

delete_recursive("/system/app/MyKNOXSetupWizard");

delete_recursive("/system/app/RCPComponents");

delete_recursive("/system/app/UniversalMDMClient");

delete_recursive("/system/app/BBCAgent");

delete_recursive("/system/priv-app/KLMSAgent");

delete("/system/lib/libknox_km.so");

delete("/system/tima_measurement_info");

delete_recursive("/system/container");

delete_recursive("/system/preloadedmdm");

delete("/data/dalvik-cache/arm/system@app@KnoxAppsUpdateAgent@KnoxAppsUpdateAgent.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.samsung.knox.appsupdateagent");

delete_recursive("/data/data/com.samsung.knox.appsupdateagent");(0.33);

delete("/data/dalvik-cache/arm/system@app@KnoxAttestationAgent@KnoxAttestationAgent.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.sec.enterprise.knox.attestation");

delete_recursive("/data/data/com.sec.enterprise.knox.attestation");(0.33);

delete("/data/dalvik-cache/arm/system@app@KnoxCOMModeCocktailProvider@KnoxCOMModeCocktailProvider.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.sec.knox.cocktailprovider3");

delete_recursive("/data/data/com.sec.knox.cocktailprovider3");(0.33);

delete("/data/dalvik-cache/arm/system@app@KnoxFolderContainer@KnoxFolderContainer.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.sec.knox.foldercontainer");

delete_recursive("/data/data/com.sec.knox.foldercontainer");(0.33);

delete("/data/dalvik-cache/arm/system@app@KnoxSetupWizardClient@KnoxSetupWizardClient.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.sec.knox.knoxsetupwizardclient");

delete_recursive("/data/data/com.sec.knox.knoxsetupwizardclient");(0.33);

delete("/data/dalvik-cache/arm/system@app@KnoxSwitcher@KnoxSwitcher.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.sec.knox.switcher");

delete_recursive("/data/data/com.sec.knox.switcher");(0.33);

delete("/data/dalvik-cache/arm/system@app@RCPComponents@RCPComponents.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.samsung.knox.rcp.components");

delete_recursive("/data/data/com.samsung.knox.rcp.components");(0.33);

delete("/data/dalvik-cache/arm/system@app@UniversalMDMClient@UniversalMDMClient.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.sec.enterprise.knox.cloudmdm.smdms");

delete_recursive("/data/data/com.sec.enterprise.knox.cloudmdm.smdms");(0.33);

delete("/data/dalvik-cache/arm/system@app@MyKNOXSetupWizard@MyKNOXSetupWizard.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.sec.enterprise.knox.myknoxsetupwizard");

delete_recursive("/data/data/com.sec.enterprise.knox.myknoxsetupwizard");(0.33);

delete("/data/dalvik-cache/arm/system@priv-app@KLMSAgent@KLMSAgent.apk@classes.dex");

delete("/data/dalvik-cache/profiles/com.samsung.klmsagent");

delete_recursive("/data/data/com.samsung.klmsagent");(0.33);