[Q][SOLVED] Cannot install apk from sdcard suddenly - Samsung Galaxy J5 Questions & Answers

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
Code:
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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@classes.dex");
delete("/data/dalvik-cache/profiles/com.samsung.klmsagent");
delete_recursive("/data/data/com.samsung.klmsagent");(0.33);

tweakradje said:
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
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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@classes.dex");
delete("/data/dalvik-cache/profiles/com.samsung.klmsagent");
delete_recursive("/data/data/com.samsung.klmsagent");(0.33);
Click to expand...
Click to collapse
I would restore Nandroid backup. And debloat gradually if youre not sure about the things youre uninstalling. ???
---------- Post added at 05:07 PM ---------- Previous post was at 04:55 PM ----------
Taivotat2 said:
I would restore Nandroid backup. And debloat gradually if youre not sure about the things youre uninstalling. ???
Click to expand...
Click to collapse
Look at this Knox related too, may be you fins a solution.?

tweakradje said:
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.
Click to expand...
Click to collapse
Heloo
I did a little edited and use this Knox and apk cleaner by wowanbelousov
View attachment Knox_andAPP_cleaner_MM.zip
this zip delete knox and app dont needet for me,you can see in script apps willbe deleted.
ui_print("Removing Samsung Apps...");
delete_recursive("/system/app/AllshareFileShare");
delete_recursive("/system/app/AllshareFileShareClient");
delete_recursive("/system/app/AllshareFileShareServer");
delete_recursive("/system/app/ANTPlusPlugins");
delete_recursive("/system/app/ANTPlusTest");
delete_recursive("/system/app/AntHalService");
delete_recursive("/system/app/SPrintSpooler6");
delete_recursive("/system/app/SBrowser_4_LATEST");
delete_recursive("/system/app/SecurityLogAgent");
delete_recursive("/system/app/Stk");
delete_recursive("/system/app/Stk2");
delete_recursive("/system/app/talkback");
delete_recursive("/system/app/Photos");
delete_recursive("/system/app/OneNote");
delete_recursive("/system/app/WebManual");
delete_recursive("/system/app/CoreApps");
delete_recursive("/system/app/Drive");
delete_recursive("/system/app/Facebook_stub");
delete_recursive("/system/app/FactoryCameraFB");
delete_recursive("/system/app/FBAppManager_NS");
delete_recursive("/system/app/FlipboardBriefing");
delete_recursive("/system/app/GalaxyAppsWidget_Phone_Hero");
delete_recursive("/system/app/GearManagerStub");
delete_recursive("/system/app/Hangouts");
delete_recursive("/system/app/OneDrive_Samsung_v2");
delete_recursive("/system/app/OneNote");
delete_recursive("/system/app/SmartSwitchAgent");
delete_recursive("/system/app/MSSkype_stub");
delete_recursive("/system/app/Music2");
delete_recursive("/system/app/OneDrive_Samsung_v2");
delete_recursive("/system/app/Videos");
delete_recursive("/system/app/Kies");
#
delete_recursive("/system/priv-app/DiagMonAgent");
delete_recursive("/system/priv-app/SOAgent");
delete_recursive("/system/priv-app/FotaAgent");
delete_recursive("/system/priv-app/GalaxyApps_3xh");
delete_recursive("/system/priv-app/SCloudServiceHero");
delete_recursive("/system/priv-app/SecEmail_M");
delete_recursive("/system/priv-app/SOAgent");
delete_recursive("/system/priv-app/Excel_SamsungStub");
delete_recursive("/system/priv-app/FBInstaller");
delete_recursive("/system/priv-app/SCloudService");
delete_recursive("/system/priv-app/FotaAgent");
delete_recursive("/system/priv-app/SecEmail_M");
delete_recursive("/system/priv-app/HealthService");
delete_recursive("/system/priv-app/PowerPoint_SamsungStub");
delete_recursive("/system/priv-app/SamsungBilling");
delete_recursive("/system/priv-app/SHealth5");
delete_recursive("/system/priv-app/SKMSAgent");
delete_recursive("/system/priv-app/SPPPushClient_Prod");
delete_recursive("/system/app/BBCAgent");
delete_recursive("/system/app/Bridge");
delete_recursive("/system/app/ELMAgent");
delete_recursive("/system/app/KnoxSetupWizardClient");
delete_recursive("/system/app/UniversalMDMClient");
delete_recursive("/system/app/KnoxAttestationAgent");
delete_recursive("/system/app/KnoxFolderContainer");
delete_recursive("/system/app/MDMApp");
delete_recursive("/system/app/MyKNOXSetupWizard");
delete_recursive("/system/app/RCPComponents");
delete_recursive("/system/app/SwitchKnoxI");
delete_recursive("/system/app/SwitchKnoxII");
delete_recursive("/system/priv-app/SPDClient");
delete_recursive("/system/priv-app/KLMSAgent");
delete("/system/lib/libknox_km.so");
delete("/system/lib64/libknox_km.so");
delete("/system/tima_measurement_info");
delete_recursive("/system/container");
delete_recursive("/system/preloadedkiosk");
delete_recursive("/system/preloadedsso");
delete_recursive("/data/knox");
delete_recursive("/data/data/com.sec.enterprise.knox.attestation");
delete_recursive("/data/data/com.sec.enterprise.knox.cloudmdm.smdms");
delete_recursive("/data/data/com.sec.knox.bridge");
delete_recursive("/data/data/com.sec.knox.containeragent2");
delete_recursive("/data/data/com.sec.knox.knoxsetupwizardclient");
delete_recursive("/data/data/com.sec.knox.packageverifier");
delete_recursive("/data/data/com.sec.knox.shortcutsms");
delete_recursive("/data/data/com.sec.knox.switcher");
delete_recursive("/data/data/com.sec.knox.switchknoxI");
delete_recursive("/data/data/com.sec.knox.switchknoxII");
delete_recursive("/data/data/com.samsung.knox.rcp.components");
delete_recursive("/data/data/com.samsung.knox.knoxtrustagent");
delete_recursive("/data/data/com.samsung.knox.kss");
delete_recursive("/data/data/com.samsung.klmsagent");
delete_recursive("/system/etc/secure_storage/com.sec.knox.store");
ui_print("Removing Samsung KNOX and core files...");
delete_recursive("/system/app/BBCAgent");
delete_recursive("/system/app/Bridge");
delete_recursive("/system/app/ELMAgent");
delete_recursive("/system/app/KnoxSetupWizardClient");
delete_recursive("/system/app/UniversalMDMClient");
delete_recursive("/system/app/KnoxAttestationAgent");
delete_recursive("/system/app/KnoxFolderContainer");
delete_recursive("/system/app/MDMApp");
delete_recursive("/system/app/MyKNOXSetupWizard");
delete_recursive("/system/app/RCPComponents");
delete_recursive("/system/app/SwitchKnoxI");
delete_recursive("/system/app/SwitchKnoxII");
delete_recursive("/system/priv-app/SPDClient");
delete_recursive("/system/priv-app/KLMSAgent");
delete("/system/lib/libknox_km.so");
delete("/system/lib64/libknox_km.so");
delete("/system/tima_measurement_info");
delete_recursive("/system/container");
delete_recursive("/system/preloadedkiosk");
delete_recursive("/system/preloadedsso");
delete_recursive("/data/knox");
delete_recursive("/data/data/com.sec.enterprise.knox.attestation");
delete_recursive("/data/data/com.sec.enterprise.knox.cloudmdm.smdms");
delete_recursive("/data/data/com.sec.knox.bridge");
delete_recursive("/data/data/com.sec.knox.containeragent2");
delete_recursive("/data/data/com.sec.knox.knoxsetupwizardclient");
delete_recursive("/data/data/com.sec.knox.packageverifier");
delete_recursive("/data/data/com.sec.knox.shortcutsms");
delete_recursive("/data/data/com.sec.knox.switcher");
delete_recursive("/data/data/com.sec.knox.switchknoxI");
delete_recursive("/data/data/com.sec.knox.switchknoxII");
delete_recursive("/data/data/com.samsung.knox.rcp.components");
delete_recursive("/data/data/com.samsung.knox.knoxtrustagent");
delete_recursive("/data/data/com.samsung.knox.kss");
delete_recursive("/data/data/com.samsung.klmsagent");
delete_recursive("/system/etc/secure_storage/com.sec.knox.store");
delete_recursive("/system/app/KnoxAppsUpdateAgent");
delete_recursive("/system/app/KnoxAttestationAgent");
delete_recursive("/system/app/KnoxCOMModeCocktailProvider");
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/priv-app/KLMSAgent");
delete_recursive("/system/container");
delete_recursive("/system/etc/secure_storage/com.sec.knox.store");
delete_recursive("/system/etc/secure_storage/com.sec.knox.store!dex");
delete_recursive("/system/preloadedmdm");
delete("/system/tima_measurement_info");
delete("/data/dalvik-cache/arm/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@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/[email protected]@[email protected]@classes.dex");
delete("/data/dalvik-cache/profiles/com.samsung.klmsagent");
delete_recursive("/data/data/com.samsung.klmsagent");(0.33);
ui_print("Extracting files...");
package_extract_dir("system", "/system");
ui_print("Cleaning cache...");
delete_recursive("/data/dalvik-cache");
delete_recursive("/cache");
#
delete("/system/lib/libkerberos.so");
delete("/system/lib64/libkerberos.so");
delete_recursive("/data/dalvik-cache");
delete_recursive("/cache");
run_program("/tmp/busybox", "umount", "/system");
run_program("/tmp/busybox", "umount", "/data");
For remove knox is not inaf flash zip need to delete and edit this in build.prop
For me works great.
Code:
[COLOR="Red"]delete in build.prop:[/COLOR]
security.ASKS.policy_version=000000
[COLOR="Red"]edit in build.prop :[/COLOR]
ro.securestorage.support=[COLOR="Red"]true[/COLOR] --> ro.securestorage.support=[COLOR="DarkGreen"]false[/COLOR]
ro.config.knox=[COLOR="Red"]v30[/COLOR]-->ro.config.knox=[COLOR="DarkGreen"]0[/COLOR]

Found the global cause of the problem. It is somewhere in /data/system/users/0
After renaming that folder and reboot all went well (mind you with default settings for a new user, my settings were gone).
Now I will try to pinpoint the problem.

Ok got it now. How to solve it?
adb shell
su
cd /data/system/users/0
stop
mv runtime-permissions.xml runtime-permissions.xml.OFF
sync
reboot
Well that solves it.
Cheers
@lemlis: maybe you should add in build.prop ro.config.tima=1 -> ro.config.tima=0 too?

tweakradje said:
lemlis maybe you should add in build.prop ro.config.tima=1 -> ro.config.tima=0 too?
Click to expand...
Click to collapse
yes .Maybe

Related

[GUIDE][CWM][GPS]["GPS off-and-on" bug] without root

Hello
I use dungphp's RUNNYMEDE 1.05.401.4 R2 - Sense 3.5[v1.9][HierOS 1.8.5 noBTfix-2wcr] ROM and was not able to change gps.conf with ES Explorer (missing root) respectively searched a way to do with out the need of a ROOT-Explorer.
I will share what i've done to solve this problem for me:
1. Downloading Fix Flash player with video streaming from here
2. extracting the ZIP file
3. delete folders: sd-ext and system
4. create folders: system/etc and etc
5. create your own gps.conf.
Mine is:
NTP_SERVER=europe.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
GPS1_CLEANUP_ENABLED=0
Click to expand...
Click to collapse
6. copy gps.conf to the folders: etc and system/etc
7. edit the file: META-INF\com\google\android\updater-script
Should look like this:
ui_print("------------------------------------------------");
ui_print(" UPDATE anythings to the builds ");
ui_print(" From DUNGPHP ");
ui_print("------------------------------------------------");
show_progress(0.500000, 0);
mount("MTD", "system", "/system");
mount("MTD", "etc", "/etc");
delete("/system/etc/gps.conf");
delete("/etc/gps.conf");
package_extract_dir("system","/system");
package_extract_dir("etc","/etc");
set_perm(1000, 1000, 0644, "/system/etc/gps.conf");
set_perm(1000, 1000, 0644, "/etc/gps.conf");
show_progress(0.000000, 0);
unmount("/system");
unmount("/etc");
ui_print("All done !");
Click to expand...
Click to collapse
8. Pack the folders META-INF, etc and system to a zip file (Fix_gps_conf.zip)
9. Copy this zip-file to your sd-card
10. Shut down your device and start CWM
11. Choose Install zip file from SD card and choose your zip
12. When done, reboot

[ROOT][ECLIPSE] Installation failed due to invalid APK file

Hi guys,
Sorry if posting the wrong place, but I figured General would be the safest place to put this..
I just rotted my phone again yesterday, and it worked great (using Samsung Galaxy S3 ToolKit v7.0.0)
I have root access, and it all works as it should on the phone.
However, I do have one problem now.
When I was rooting the phone, I had to choose which model. I Have the I9300XXELL4 version, but I used ELLA (both is JZ054K).
I'm using Eclipse to develop apps to my device, and now I cant test my apps on my phone.
When I do "Run as-> Android Application" to puch it to my device, this is the error I'm getting:
Code:
[2013-01-24 11:44:56 - GameTutorial_001] Installation failed due to invalid APK file!
[2013-01-24 11:44:56 - GameTutorial_001] Please check logcat output for more details.
[2013-01-24 11:44:56 - GameTutorial_001] Launch canceled!
And from LogCat I get this:
Code:
01-24 11:44:51.186: D/AndroidRuntime(8724): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
01-24 11:44:51.186: D/AndroidRuntime(8724): CheckJNI is OFF
01-24 11:44:51.191: D/AndroidRuntime(8724): setted country_code = Nordic
01-24 11:44:51.191: D/AndroidRuntime(8724): setted countryiso_code = SE
01-24 11:44:51.196: D/AndroidRuntime(8724): setted sales_code = NEE
01-24 11:44:51.196: D/AndroidRuntime(8724): readGMSProperty: start
01-24 11:44:51.196: D/AndroidRuntime(8724): readGMSProperty: already setted!!
01-24 11:44:51.201: D/AndroidRuntime(8724): readGMSProperty: end
01-24 11:44:51.216: D/dalvikvm(8724): Trying to load lib libjavacore.so 0x0
01-24 11:44:51.226: D/dalvikvm(8724): Added shared lib libjavacore.so 0x0
01-24 11:44:51.236: D/dalvikvm(8724): Trying to load lib libnativehelper.so 0x0
01-24 11:44:51.236: D/dalvikvm(8724): Added shared lib libnativehelper.so 0x0
01-24 11:44:51.486: D/dalvikvm(8724): Note: class Landroid/app/ActivityManagerNative; has 153 unimplemented (abstract) methods
01-24 11:44:51.541: D/AndroidRuntime(8724): Calling main entry com.android.commands.pm.Pm
01-24 11:44:51.581: W/zipro(8649): Unable to open zip '/data/local/tmp/GameTutorial_001.apk': Permission denied
01-24 11:44:51.581: D/asset(8649): failed to open Zip archive '/data/local/tmp/GameTutorial_001.apk'
01-24 11:44:51.581: I/ApplicationPolicy(2287): isApplicationInstallationEnabled
01-24 11:44:51.581: W/DefContainer(8649): Failed to parse package
01-24 11:44:51.581: W/PackageManager(2287): verifying app can be installed or not
01-24 11:44:51.586: W/zipro(8649): Unable to open zip '/data/local/tmp/GameTutorial_001.apk': Permission denied
01-24 11:44:51.586: D/asset(8649): failed to open Zip archive '/data/local/tmp/GameTutorial_001.apk'
01-24 11:44:51.586: D/dalvikvm(2287): WAIT_FOR_CONCURRENT_GC blocked 0ms
01-24 11:44:51.586: W/DefContainer(8649): Failed to parse package
01-24 11:44:51.696: D/dalvikvm(2287): GC_EXPLICIT freed 319K, 33% free 29002K/43271K, paused 8ms+7ms, total 109ms
01-24 11:44:51.706: D/AndroidRuntime(8724): Shutting down VM
01-24 11:44:51.706: D/dalvikvm(8724): GC_CONCURRENT freed 128K, 87% free 568K/4096K, paused 0ms+1ms, total 2ms
01-24 11:44:51.711: D/dalvikvm(8724): Debugger has detached; object registry had 1 entries
01-24 11:44:51.711: I/AndroidRuntime(8724): NOTE: attach of thread 'Binder_3' failed
Cant seem to get any information on the net (even though I do find lots of results when searching for this). None is helping me.
I'm hoping someone here could help me out, as I want make this work..! =P
(Tried setting permision on data/local/tmp folder too..)
- - -
As a sidenote, I wanted to see if I could root it with my original firmware, but I'm not 100% sure how this all works. (Why the toolkit root file is only 5MB, but downloading firmware for my model is 800MB. I did this before with only Odin, but I cant remember which files I needed...)
- - -
Anyways, please help me out here, as I do need to be able to debug my apps on my device. No other aps (that previously worked) is deploying to the phone either, but I can install it if I manually copy it over.
Thanks guys!
Additional information:
So, I'm not sure what stock on my phone anymore.
I did root it once before, and it worked good (did it through Odin). Then the 4.1.2 update came, and I updated normally through Kies. Root was removed in the process. So, before I rotted it yesterday, I was developing on it, and that worked nicely. But I wanted to root it to connect ps3 controller to play games. So I used the Toolbox (V7.0.0) to root it, but they did not have my exact model, only XXELLA. I used that. And root works nice. But Cant develop to it anymore.
This is my information now:
I9300XXELL4
Kernel:3.0.31-742798
Did the rooting process change my kernel?
EDIT:
Ok, just to help me understand a little here. I do not know the connection between firmware and kernel, but was my kernel altered when I rooted my phone?
I see many others having problem with new kernels, but I only used the Samsung Toolkit v7.0.0 to root my device using XXELLA (my model is XXELL4).
Did this process do anything to my kernel? And how can I get the original kernel to my phone if I need that?
Fail to understand the confusing question .
Flash stock rom via Odin and root via
# http://forum.xda-developers.com/showthread.php?t=1719744
Its a question = Q&A .
jje
Helped me out
Hi Stianbl,
I got exactly the same problem, and this solution fixed it, so i hope it does for you too.
The reason for "permission denied" is that apk files uploaded to /data/local/tmp had to low permissions, and the installer process obviously did not have permissions to read any such file.
I never found a solution, but have a workaround that satisfies me. I have simply moved/symlinked the tmp directory to the SD card. Since SD card is formatted as FAT, it does not have owners/permissions and all files created there are always readable by everyone. So open a terminal emulator on your phone. Get root ("su") and type in:
# cd /data/local
# mv tmp tmp-old # (or simply rm -rf tmp)
# mkdir /mnt/sdcard/tmp
# ln -s /mnt/sdcard/tmp ./tmp
I hope i could help you
greets
and another way
m134boy90 said:
Hi Stianbl,
I got exactly the same problem, and this solution fixed it, so i hope it does for you too.
The reason for "permission denied" is that apk files uploaded to /data/local/tmp had to low permissions, and the installer process obviously did not have permissions to read any such file.
I never found a solution, but have a workaround that satisfies me. I have simply moved/symlinked the tmp directory to the SD card. Since SD card is formatted as FAT, it does not have owners/permissions and all files created there are always readable by everyone. So open a terminal emulator on your phone. Get root ("su") and type in:
# cd /data/local
# mv tmp tmp-old # (or simply rm -rf tmp)
# mkdir /mnt/sdcard/tmp
# ln -s /mnt/sdcard/tmp ./tmp
I hope i could help you
greets
Click to expand...
Click to collapse
i founded another way i edit /data/local/tmp to /mnt/sdcard/tmp in adb.exe file and working powerfull adb
try this adb file mediafire.com/download/n9u4evl6wj78zp6/adb.exe
if want edit i open exe file in exescripteditor search google:good:

Root LG G2 Korean Version

Hi I followed the method here: http://forum.xda-developers.com/showpost.php?p=48709232 and http://forum.xda-developers.com/showthread.php?p=45692679#post45692679
Unfortunately, the automatic rooting is not working, its say something see AUTOROOT MESSAGE BELOW . So I took the manual method but on Step 12:
12: adb shell "sync;mount -o remount,ro /system"
It says mount: Device or resource busy
So what should I do? Thanks
====AUTOROOT MESSAGE =======================================================================
Mounting system, pushing su binary and installing SuperSu...
2244 KB/s (1085140 bytes in 0.472s)
cp: can't create '/system/xbin/busybox': Read-only file system
failed to copy 'su' to '/system/xbin/daemonsu': Read-only file system
cp: can't stat '/system/xbin/daemonsu': No such file or directory
failed to copy 'install-recovery.sh' to '/system/etc/install-recovery.sh': Read-
only file system
failed to copy 'Superuser.apk' to '/system/app/Superuser.apk': Read-only file sy
stem
Unable to open /system/xbin/su: No such file or directory
Rebooting Phone.
***************************************************
***************************************************
You should hopefully now be fully rooted!!
Wait for your device to reboot and continue
with ioroot script to backup EFS...
***************************************************
***************************************************
/sdcard/modemst1.img: cannot open for write: Read-only file system
/sdcard/modemst2.img: cannot open for write: Read-only file system
remote object '/sdcard/modemst1.img' does not exist
remote object '/sdcard/modemst2.img' does not exist

Can't update to ng2

Hi to all, I have received OTA update for the NG2 fw version. Currently I'm on nb7 version. It download correctly the update but when try to install it say that there is an error. Below there is the last_log content file
Code:
load : /res/images/icon_att_fota_error.png
load : /res/images/icon_tmo_fota_complete.png
load : /res/images/icon_tmo_fota_error.png
load : /res/images/progress_empty.png
load : /res/images/progress_fill.png
load : /res/images/installing_text.png
installing_text: it (384 x 71 @ 795)
load : /res/images/erasing_text.png
erasing_text: it (192 x 38 @ 663)
load : /res/images/no_command_text.png
no_command_text: it (225 x 38 @ 663)
load : /res/images/error_text.png
error_text: it (78 x 38 @ 663)
load : /res/images/indeterminate01.png
load : /res/images/indeterminate02.png
load : /res/images/indeterminate03.png
load : /res/images/indeterminate04.png
load : /res/images/indeterminate05.png
load : /res/images/indeterminate06.png
load : /res/images/icon_installing_overlay01.png
load : /res/images/icon_installing_overlay02.png
load : /res/images/icon_installing_overlay03.png
load : /res/images/icon_installing_overlay04.png
load : /res/images/icon_installing_overlay05.png
load : /res/images/icon_installing_overlay06.png
load : /res/images/icon_installing_overlay07.png
Command: "/sbin/recovery"
previous_runs = 0
send_intent = (null)
update_package = (null)
att_fota_update = 0
tmo_fota_update = 0
wipe_data = 0, wipe_cache = 0,wipe_sdcard = 0,delete_data = 0,wipe_data_crypto = 0,wipe_carrier = 0,no_wipe_custom=0
wipe_hdd_secure = 0
show_ui_text = 0
update_factory_csc = 0, update_home_csc = 0, factory_fota = 0
carry_out = (null)
tima_kernal_recovery = 0
[property list]
af.resampler.quality=4
mm.enable.qcom_parser=37491
mm.enable.smoothstreaming=true
ro.qc.sdk.izat.service_mask=0x0
ro.qc.sdk.izat.premium_enabled=0
ro.qc.sdk.audio.ssr=false
ro.qc.sdk.audio.fluencetype=none
ro.qc.sdk.camera.facialproc=false
ro.qc.sdk.sensors.gestures=true
ro.qc.sdk.gestures.camera=false
ro.sf.lcd_density=480
ro.adb.secure=1
ro.com.google.gmsversion=4.4.2_r1
ro.com.google.clientidbase=android-samsung
ro.com.android.dateformat=MM-dd-yyyy
ro.gps.agps_provider=1
ro.sec.fle.encryption=true
ro.boot.emmc=true
ro.boot.sec_atd.tty=/dev/ttyHSL0
ro.boot.baseband=msm
ro.boot.hardware=qcom
ro.boot.serialno=07e5b21f
ro.boot.bootloader=N9005XXUENB7
ro.boot.debug_level=0x4f4c
ro.boot.warranty_bit=0
ro.boot.boot_recovery=1
ro.boot.emmc_checksum=3
ro.boot.nvdata_backup=0
ro.boot.cp_debug_level=0x55FF
ro.data.large_tcp_window_size=true
ro.emmc=true
ro.hdmi.enable=true
ro.hwui.path_cache_size=8
ro.hwui.layer_cache_size=32
ro.hwui.shape_cache_size=2
ro.hwui.texture_cache_size=48
ro.hwui.gradient_cache_size=1
ro.hwui.drop_shadow_cache_size=4
ro.hwui.text_large_cache_width=2048
ro.hwui.text_small_cache_width=1024
ro.hwui.text_large_cache_height=1024
ro.hwui.text_small_cache_height=512
ro.wifi.channels=
ro.allow.mock.location=0
ro.board.platform=msm8974
ro.build.id=KOT49H
ro.build.PDA=N9005XXUENB7
ro.build.date=Thu Feb 27 20:05:04 KST 2014
ro.build.date.utc=1393499104
ro.build.host=SWDD5614
ro.build.knox.container=
ro.build.tags=release-keys
ro.build.type=user
ro.build.user=dpi
ro.build.scafe=americano
ro.build.scafe.shot=double
ro.build.scafe.size=short
ro.build.display.id=KOT49H.N9005XXUENB7
ro.build.product=hlte
ro.build.selinux=1
ro.build.selinux.enforce=1
ro.build.version.sdk=19
ro.build.version.release=4.4.2
ro.build.version.codename=REL
ro.build.version.incremental=N9005XXUENB7
ro.build.changelist=636608
ro.build.hidden_ver=N9005XXUENB7
ro.build.description=hltexx-user 4.4.2 KOT49H N9005XXUENB7 release-keys
ro.build.fingerprint=samsung/hltexx/hlte:4.4.2/KOT49H/N9005XXUENB7:user/release-keys
ro.build.characteristics=phone
ro.error.receiver.default=com.samsung.receiver.error
ro.hdcp2.rx=tz
ro.slook.ver=1
ro.config.knox=1
ro.config.tima=1
ro.config.ringtone=Over_the_horizon.ogg
ro.config.alarm_alert=Alarm_Morning_flower.ogg
ro.config.media_sound=Media_preview_Touch_the_light.ogg
ro.config.notification_sound=S_Whistle.ogg
ro.kernel.qemu=0
ro.secure=1
ro.secwvk=144
ro.vendor.extension_library=/vendor/lib/libqc-opt.so
ro.carrier=unknown
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.name=hltexx
ro.product.board=MSM8974
ro.product.brand=samsung
ro.product.model=SM-N9005
ro.product.device=hlte
ro.product.locale.region=GB
ro.product.locale.language=en
ro.product.manufacturer=samsung
ro.baseband=msm
ro.bootmode=unknown
ro.chipname=MSM8974
ro.hardware=qcom
ro.opengles.version=196608
ro.qualcomm.cabl=1
ro.revision=8
ro.security.mdpp.ux=Enabled
ro.security.mdpp.ver=1.0
ro.security.mdpp.release=2
ro.serialno=07e5b21f
ro.bootloader=N9005XXUENB7
ro.debuggable=0
ro.debug_level=0x4f4c
ro.factorytest=0
ro.setupwizard.mode=DISABLED
ro.product_ship=true
ro.warranty_bit=0
ro.boot_recovery=1
ro.emmc_checksum=3
ro.nvdata_backup=0
ro.securestorage.support=true
ro.cp_debug_level=0x55FF
ro.use_data_netmgrd=false
dev.pm.dyn_samplingrate=1
lpa.decode=false
lpa.use-stagefright=true
mmp.enable.3g2=true
net.bt.name=Android
net.change=net.bt.name
ril.subscription.types=NV,RUIM
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
qcom.hw.aac.encoder=true
rild.libargs=-d /dev/smd0
rild.libpath=/system/lib/libsec-ril.so
vidc.debug.level=1
debug.sf.hw=1
debug.egl.hw=1
debug.disable.bwc=1
debug.mdpcomp.logs=0
debug.composition.type=c2d
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=true
media.stagefright.enable-http=true
media.stagefright.enable-scan=true
media.stagefright.enable-fma2dp=true
media.stagefright.enable-player=true
media.enable-commonsource=true
media.aac_51_output_enabled=true
dalvik.vm.heapsize=512m
dalvik.vm.heapmaxfree=8m
dalvik.vm.heapminfree=2m
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=128m
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.heaptargetutilization=0.75
tunnel.audio.encode=true
tunnel.decode=true
tunnel.audiovideo.decode=true
persist.cne.feature=0
persist.gps.qc_nlp_in_use=0
persist.hwc.mdpcomp.enable=true
persist.sys.usb.config=mtp
persist.sys.wfd.virtual=0
persist.sys.dalvik.vm.lib=libdvm.so
persist.sys.logkit.ctrlcode=0
persist.sys.whitelist=/system/etc/whitelist_appops.xml
persist.sys.storage_preload=1
persist.sys.strict_op_enable=false
persist.data.netmgrd.qos.enable=false
persist.demo.hdmirotationlock=false
persist.rild.nitz_plmn=
persist.rild.nitz_long_ons_0=
persist.rild.nitz_long_ons_1=
persist.rild.nitz_long_ons_2=
persist.rild.nitz_long_ons_3=
persist.rild.nitz_short_ons_0=
persist.rild.nitz_short_ons_1=
persist.rild.nitz_short_ons_2=
persist.rild.nitz_short_ons_3=
persist.audio.fluence.speaker=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.voicecall=true
persist.debug.wfd.enable=1
persist.radio.add_power_save=1
persist.radio.apm_sim_not_pwdn=1
persist.timed.enable=true
persist.speaker.prot.enable=false
persist.fuse_sdcard=true
keyguard.no_require_sim=true
security.mdpp=None
security.mdpp.result=None
telephony.lteOnCdmaDevice=0
DEVICE_PROVISIONED=1
stat() of /dev/block/platform/msm_sdcc.1/by-name/efs succeeded on try 1
stat() of /dev/block/platform/msm_sdcc.1/by-name/system succeeded on try 1
open failed '/sys/fs/scfs/system_type' - No such file or directory
stat() of /dev/block/platform/msm_sdcc.1/by-name/efs succeeded on try 1
open failed '/sys/fs/scfs/system_type' - No such file or directory
read csc code = 'DBT'
just_reboot_after_update = 1
# MANUAL MODE #
No command specified.
[installing multi-csc]
#echo
#echo -- Appling Multi-CSC...
-- Appling Multi-CSC...
#mount /system
stat() of /dev/block/platform/msm_sdcc.1/by-name/system succeeded on try 1
open failed '/sys/fs/scfs/system_type' - No such file or directory
/system sucessfully mounted
#echo Applied the CSC-code : DBT
Applied the CSC-code : DBT
#cp -y -f -r -v /system/csc/common /
trace: __out_return: __scan_cp_dir :: cannot get src '/system/csc/common' (No such file or directory)
#unmount /system
open failed '/sys/fs/scfs/system_type' - No such file or directory
/system sucessfully unmounted
#mount /system
stat() of /dev/block/platform/msm_sdcc.1/by-name/system succeeded on try 1
open failed '/sys/fs/scfs/system_type' - No such file or directory
/system sucessfully mounted
#cmp -r /system/csc/common /
trace: __out_return: __scan_cmp_dir :: Can't open dir '/system/csc/common' .. skip (No such file or directory)
#cp -y -f -r -v /system/csc/DBT/system /system
trace: __out_return: __scan_cp_dir :: cannot get src '/system/csc/DBT/system' (No such file or directory)
#rm -v /system/csc_contents
removed symbolic '/system/csc_contents'
#ln -v -s /system/csc/DBT/csc_contents /system/csc_contents
create symbolic '/system/csc/DBT/csc_contents' -> '/system/csc_contents'
#unmount /system
open failed '/sys/fs/scfs/system_type' - No such file or directory
/system sucessfully unmounted
#mount /system
stat() of /dev/block/platform/msm_sdcc.1/by-name/system succeeded on try 1
open failed '/sys/fs/scfs/system_type' - No such file or directory
/system sucessfully mounted
#cmp -r /system/csc/DBT/system /system
trace: __out_return: __scan_cmp_dir :: Can't open dir '/system/csc/DBT/system' .. skip (No such file or directory)
#rm -v --limited-file-size=0 /system/app/*
#echo Successfully applied multi-CSC.
Successfully applied multi-CSC.
open failed '/sys/fs/scfs/system_type' - No such file or directory
/system sucessfully unmounted
running multi-csc time : 0.428s
[installing post-recovery]
#mount /cache
/cache sucessfully mounted
#mkdir system cache 0775 /cache/recovery
#cp -y -f -v /tmp/recovery_backup.txt /cache/recovery/last_recovery
/tmp/recovery_backup.txt -> /cache/recovery/last_recovery (79872 bytes)
transferred in writed time : 0.000s closed time : 0.005s progressed with 4096.00M byte/sec
src : -rw-r--r-- root root 79872 1970-06-19 05:12 recovery_backup.txt
dst : -rw-r--r-- system system 79872 1970-06-19 05:12 last_recovery
#mount /data
stat() of /dev/block/platform/msm_sdcc.1/by-name/userdata succeeded on try 1
/data sucessfully mounted
#mkdir system log 0775 /data/log
#cp -y -f -v /tmp/recovery_backup.txt /data/log/recovery_log.txt
/tmp/recovery_backup.txt -> /data/log/recovery_log.txt (79872 bytes)
transferred in writed time : 0.000s closed time : 0.004s progressed with 4096.00M byte/sec
src : -rw-r--r-- root root 79872 1970-06-19 05:12 recovery_backup.txt
dst : -rw-r--r-- system system 79872 1970-06-19 05:12 recovery_log.txt
/data sucessfully unmounted
running post-recovery time : 0.109s
create recovery log file '/cache/recovery/last_recovery'
create recovery log file '/data/log/recovery_log.txt'
stat() of /dev/block/platform/msm_sdcc.1/by-name/userdata succeeded on try 1
create recovery log file '/data/log/emmc_checksum_log.txt'
stat() of /dev/block/platform/msm_sdcc.1/by-name/system succeeded on try 1
open failed '/sys/fs/scfs/system_type' - No such file or directory
I:Saving locale "it_IT"
stat() of /dev/block/platform/msm_sdcc.1/by-name/cache succeeded on try 1
void copy_log_file(const char*, const char*, int) :: create recovery log file '/cache/recovery/log'
void copy_log_file(const char*, const char*, int) :: create recovery log file '/cache/recovery/last_log'
void copy_log_file(const char*, const char*, int) :: create recovery log file '/cache/recovery/last_install'
key press -> key (114), visible(1)
key press -> key (114), visible(1)
key press -> key (116), visible(1)
stat() of /dev/block/platform/msm_sdcc.1/by-name/cache succeeded on try 1
try 1: '/dev/block/mmcblk1p1' No such file or directory
try 2: '/dev/block/mmcblk1p1' No such file or directory
try 3: '/dev/block/mmcblk1p1' No such file or directory
try 4: '/dev/block/mmcblk1p1' No such file or directory
try 5: '/dev/block/mmcblk1p1' No such file or directory
failed to stat /dev/block/mmcblk1p1
failed to mount '/dev/block/mmcblk1p1' in vfat (No such file or directory)
failed to mount '/dev/block/mmcblk1' in vfat (No such file or directory)
failed to mount '/dev/block/mmcblk1p1' in exfat (No such file or directory)
failed to mount '/dev/block/mmcblk1' in exfat (No such file or directory)E :failed to mount /sdcard (No such file or directory)
E:failed to mount /sdcard (No such file or directory)
key press -> key (116), visible(1)
I:Saving locale "it_IT"
void copy_log_file(const char*, const char*, int) :: create recovery log file '/cache/recovery/log'

[GUIDE]Error 7 while flashing new ROM (version 7.1.2) or while flashing MIUI 8.3

Starting from the 7.1.2 ROMs most of the developers decided to follow the process of checking modem version at the time of flashing the rom. This is to know that the bootloader is unlocked officially or unofficially. Many people ended up in
"Error 7- assert(xiaomi.verify_modem("MSM8976.LA.1.0.c3-30041-STD.PROD-1.77504.1.83742.1") == "1")"
Searched the net and haven't found any concrete solution?
Don't worry. It is very easy to solve this error.
If you have unofficially unlocked and/or are using a custom ROM and are getting the error follow the following steps:
1. Download the latest Redmi Note 3 Fastboot ROM from Here (Don't download .zip file.. Download the .tgz file and download the latest version)
2. Download the MI Flash tool from the Mi Forums ( the latest version recommended)
3. Extract the .tgz file in Step 1 and start Mi Flash tool
4. Boot your device in fastboot mode by the vol down+power button combo
5. Select the extracted folder in step 3 in Mi flash tool
6. Attach your phone through usb and press refresh.
7. Select clean all and lock in the bottom bar and then press flash. (WARNING: You will lose your data. Thus a backup is recommended)
8. After the flashing completes successfully, your device will reboot. Complete the set up and Login into your mi account on the device.
9. Request Permissions from Xiaomi to unlock your bootloader from Here.
It's very easy to get the permission. If lucky, you might get the permission in about 15 mins.
10. Unlock your bootloader using the steps provided by the site itself.
11. After unlocking your device, download twrp from here.
12. Flash twrp using "fastboot flash recovery ~path to twrp.img~" in the command line
13. Boot into twrp using vol up + power button combo
Ta-da! You now have a custom recovery and can now flash whichever ROM you want to. I'd personally suggest you to flash MIUI 8.6 but you have the liberty to flash any ROM.
If you have a locked bootloader, follow from Step 9.
If you still have any issues drop em down.
Reference: https://forum.xda-developers.com/redmi-note-3/how-to/guide-error-7-solution-flashing-7-1-2-t3621767
The above site also mentions a temporary solution if you fail to get your bootloader officially unlocked.
You can also download a firmware update package for Redmi Note 3 from Here. Haven't tried it though but I guess this can be an alternative solution for those who failed to get permission to unlock their bootloader.
just a small edit..
its not fastboot mode that you require for flashing via miflash tool its edl mode..
the firmware by REEMAR given at last worked for me but the other firmware didn't , anyway thanks mate
I had the same problem, you need to unzip the zip file of the lineage rom, and edit updater-script with notepad, located in the \ META-INF \ com \ google \ android folder. You remove all the lines and place the following. It is a problem in the criterion of the command "assert"
Assert (getprop ("ro.product.device") == "kate" || getprop ("ro.build.product") == "kate" || getprop ("ro.product.device") == "kenzo "Getprop (" ro.build.product ") ==" kenzo "|| abort (" E3004: This package is for device: kate, kenzo; this device is "+ getprop (" ro.product.device ") + "."); Ui_print ("Target: Xiaomi / kenzo / kenzo: 6.0.1 / MMB29M / V8.2.1.0.MHOCNDL: user / release-keys"); Ifelse (is_mounted ("/ system"), unmount ("/ system")); Package_extract_dir ("install", "/ tmp / install"); Set_metadata_recursive ("/ tmp / install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644); Set_metadata_recursive ("/ tmp / install / bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755); Mount ("ext4", "EMMC", "/ dev / block / bootdevice / by-name / system", "/ system", ""); Run_program ("/ tmp / install / bin / backuptool.sh", "backup"); Unmount ("/ system"); If is_mounted ("/ data") then Package_extract_file ("META-INF / org / lineageos / releasekey", "/ tmp / releasekey"); Run_program ("/ tmp / install / bin / otasigcheck.sh")! = "31744" || Abort ("Can not install this package on top of incompatible data. Please try another package or run a factory reset"); Else Mount ("f2fs", "EMMC", "/ dev / block / bootdevice / by-name / userdata", "/ data", ""); Package_extract_file ("META-INF / org / lineageos / releasekey", "/ tmp / releasekey"); Run_program ("/ tmp / install / bin / otasigcheck.sh")! = "31744" || Abort ("Can not install this package on top of incompatible data. Please try another package or run a factory reset"); Unmount ("/ data"); Endif; Show_progress (0.750000, 0); Ui_print ("Patching system image unconditionally ..."); Block_image_update ("/ dev / block / bootdevice / by-name / system"), package_extract_file ("system.transfer.list"), "system.new.dat", "system.patch.dat") || Abort ("E1001: Failed to update system image."); Show_progress (0.020000, 10); Mount ("ext4", "EMMC", "/ dev / block / bootdevice / by-name / system", "/ system", ""); Run_program ("/ tmp / install / bin / backuptool.sh", "restore"); Unmount ("/ system"); Show_progress (0.050000, 5); Package_extract_file ("boot.img", "/ dev / block / bootdevice / by-name / boot"); Show_progress (0.200000, 10); Set_progress (1.000000);
After saving, without modifying the file extension, recompress the file in .zip
Now you can flasher via TWRP
Just update your firmware to 7.7.6 extracted by Thestrix,issue will be settled.
It worked for me.

Categories

Resources