No permission for Download Folder in Lineage OS 14.1 on Nexus 5 - LineageOS Questions & Answers

Hi,
sorry if I ask something that was maybe already answered, but i didnt find a matching Thread. If i am in the wrong section please move the Thread to the correct one.
I have a Nexus 5. Lately i replaced the original Marshmallow with Lineage 14.1. The process seemed to word as I could launch and use it. But when I tried to download something through my Browser i get an error. I tried Chrome, Firefox and Opera, too. When i wanted to copy a File by MyPhoneExplorer into Download Folder igot an error "unautorized". When i try to create a folder in Download i get prompted that I need root.
So I think somehow I dont have writing permissions there. Is this a known thing?
For installing i unlocked Bootloader by adb and flashed latest TWRP (3.0.3.-0) formated userdata and then copied lineage-14.1-20170124-nightly-hammerhead-signed.zip and a gapps.zip.
My old Backup from google was restored, i can use camera, take calls, play games, install apps etc. So I think the installation worked. Any ideas why I cant write in Download folder? (I can write in Movies though, tried it with MyPhoneexplorer)
I also tried the nightlys from January 31 and February, still no change.
Thank you very much in advance.

I had a similar problem with my Music directory, but after a reboot it came good.
Sent from my Nexus 6 using Tapatalk

I already did several reboots. I also tried to switch back to older images or the latest one. Still no change. You think i should wipe it an do fresh install?
Edit: Did wipe System, Cache and Data before giving it a new try. Now it works.

Related

GNexus Can not access "sdcard" or "sdcard0" - AOKP 4.2.1

Hello!
Background:
I flashed aokp_maguro_jb-mr1_build-3 yesterday and everything worked fine until I wanted to change kernel to a franco one. I already had the fraco.kernel updater free installed so I figured I'd just download and flash it automaticly. though somehow it downloaded and flashed an older version (milestone4 I think) so after I rebooted it got stuck at "Google".
I tried rebooting a few times and changed to a kernel.zip I had on the phone from earlier (not the one that came with the original aokp) and the phone got stuck at "starting apps" after the upgrading android sequence.
Anyhow I then read up on some stuff on how to push a proper kernel and pushed the newest nightly franco(r364) through adb.
The actual problem:
So I now had a phone that booted properly again! Only problem was that somewhere along the line something happened and now non of my apps have access to the storage..
If I use my phone explorer total commander I can access the file system root but under /storage there's only a file that takes 0B that's called "sdcard0". All the stuff I had on my sdcard is still under /data/media/0/. There's also the /data/media/legacy and /data/media/obb.
Something to note is that I can still use clockwork recovery as normal and access the sdcard through /sdcard/0/.
What I'm wondering now is what my next course of action should be. I read that some people with similar problems didn't get it fixed through a simple wipe/reflash so I figured I'd ask the pros here first before I do something more stupid..
If something is unclear, feel free to ask and I'll try to rephrase it or explain it further.
Thank you for your time!
Update: Grew tired and factoryreset/wipe + dalvik wipe and reflash seems to have sorted the issue. rebooted a few times and changed kernel to the same franco nightly as before and I still don't get the problem again.
although my stuff seems to be mirrored to a few places now including in storage where I'm used to be seeing the stuff (storage/0) but also under legacy and in root where there's a new folder called "sdcard". But I'm guessing this is normal with 4.2.

[Q] Unable to connect to PC properly after rooting

Hello,
I have had my HTC One M8 for a while now but I wasn't really happy with the soundquality while playing through my headphones, so I looked for ways to improve it. I found a few methods and finally decided to give it a try. These methods require a root so yesterday I have rooted my phone for the first time. Unfortunately I am experiencing some problems now.
The rooting process went without too much trouble. I used hasoon2000's toolkit and have TWRP version 2.7.0.2 installed as recovery and used it to install the provided SuperSU, which didn't work at first. On the forums I found a newer version and installed that one, updated it and got it to work.
Now this is where I think I messed up: I read somewhere that when rooted, you are able to delete pre-installed apps from the phone. I downloaded SD maid and deleted Kid Mode, Zoe and 7digital. When I deleted Kid Mode I got an error saying it has crashed. I tapped away the error but from this point I couldn't go back to my homescreen anymore because my launcher kept crashing (com.htc.launcher crashed). I rebooted the phone and the launcher worked again, but the phone still seemed to be buggy.
After this I tried to install the snapdragon audio+ (this was my first choice for an equalizer). I downloaded the apk and moved it to the system folder using ES file manager. I installed but when I tried to use it (through settings in google play music app) my phone would crash. I uninstalled it and tried again, but when I tried to move the apk to the system map like before, my phone would crash everytime. I then found out the file I used doesn't work for lollipop so I figured that's what caused the crashes.
My next move was to try and install viper4android. I downloaded it from the Play Store and opened it. It told me it needed an installation of BusyBox so I downloaded that too. But when I opened the BusyBox app and clicked install my phone would crash again. After some searching I found that the HTC One M8 requires BusyBox to be flashed manually so I downloaded the file but when I tried to load it onto my phone I noticed this wasn't possible anymore.
Now when I connect my phone to my PC the PC recognizes it, but when I open the map in Windows Explorer it only shows three maps; .showme, _nero_sync and Ringtones. I know there should be more as they were there before. It also shows my phone's capacity as a total of 10GB (shouldn't this be 16GB?). Also when I try to connect it with Sync Manager it gives me an error everytime I reconnect the phone; Device unavailable. Please reconnect your device [4].
I have tried to reset the phone through settings, wipe with TWRP and fix permissions with TWRP. I also tried reinstalling Sync Manager and the drivers on my PC. What I'm thinking now is I maybe have done something wrong in the ES file explorer that would make the folders unaccessible.
My phone is running stock android 5.0.1 and my PC Windows 7 64-bit.
I hope someone can help me, Thanks.
P.S: Sorry for the long post, I figured I'd give as much info as possible.
@Steef076 First update recovery to the latest one (2.8.6.0)
Second if you go and delete vital or integrated parts of the stock rom you will get a lot of bugs. Third, viper4android requires to write system and you can't write system with the stock kernel, you need an unsecured kernel or unsecure it yourself.
10GB is right since 6 is eaten by android. At this point I would just revert to a backup or install any custom rom around here. Most are close to stock and with no bloatware and come with root. You can even clean them further using a tool called ROM Cleaner. It will most likely solve all your problems
Did the deleted system apps reappear after reboot, or do they remain "uninstalled"? If the system is write protected like TempestZ states, any deleted system apps should reappear after a reboot.
Revert your nandroid to restore the system apps. And you didn't make a nandroid, you really should before making any system modifications for the very reason that it allows you to revert if you run into problems.
Another good practice, is if you don't know what effect deleting a system app will have (such as "safe to delete" lists that can sometimes be found on XDA) you should first freeze the app with Titanium Backup. If freezing doesn't cause any issues, then go ahead and delete. If you do have issues, just unfreeze the app.
Steef076 said:
Now when I connect my phone to my PC the PC recognizes it, but when I open the map in Windows Explorer it only shows three maps; .showme, _nero_sync and Ringtones. I know there should be more as they were there before. It also shows my phone's capacity as a total of 10GB (shouldn't this be 16GB?). Also when I try to connect it with Sync Manager it gives me an error everytime I reconnect the phone; Device unavailable. Please reconnect your device [4].
Click to expand...
Click to collapse
No, Windows will never show 16 GB. It only shows "internal storage" partition, or the user accessible portion of the storage. A good chunk is reserved for the OS.
Does what is shown in Windows differ from what is shown in ES if you browse to internal storage?
Thanks for the replies. @TempestZ @redpoint73
First of all I managed to update twrp to 2.8.6.0 using adb/fastboot.
To answer your question @redpoint73 the system apps I had deleted indeed reappeared after reboot. Also I didn't make a nandroid before I deleted the files, as I did not even know this was possible. Now I have made a nandroid of my stock ROM that is working decently, except for the TV app keeps crashing (I'm not opening it) and the connection to the PC is not working properly (not sure if this is ROM based?). I have noticed when the phone is in recovery I CAN see the folders through windows explorer. HTC sync manager still doesn't find it though. I am working on finding a proper stock ROM or maybe flash a custom one to see if that will fix it.
I understand now that the OS is taking up the storage space. The space windows is showing is the same as ES file manager so I guess this is fine.
HTC Sync is a hot mess. It often causes more troubles than it solves.
One thing you can try (to see if it fixes the USB connectivity) is uninstall HTC Sync and all HTC drivers. Than connect the phone. Don't let it install HTC Sync. Go to Windows Device Manager, find the device. Then pick the option to manually select the drivers, and pick the generic "Android MTP device" (or something to that effect) drivers.
This doesn't work for everyone. But it worked for me to be able to "see" the internal storage of my M8 on my home PC (Win 7). Annoyingly, it seems to vary from one PC to another. My work laptop (also Win 7) works fine with HTC Sync.
Steef076 said:
So if I understand correctly, 'version-main' is the same as 'firmware' and 'software number' (found in settings)? If so, my current firmware seems to be 4.19.114.2.
Now, what you're saying is I should do an OTA but this isn't possible because I have a custom recovery right?
Also, when I want to flash stock rom and stock recovery or do a nand don't I need the files that fit my cidnum? How would your file work for me?
Click to expand...
Click to collapse
If yours already on 4.19.114.2 then no need to do OTA as that the latest.
and my backup will bring back your device back to stock as you first bought it when restore with a full wipe.
Try to solve your problem first, only when you really need the backup then only I will upload ... let me know
ckpv5 said:
If yours already on 4.19.114.2 then no need to do OTA as that the latest.
and my backup will bring back your device back to stock as you first bought it when restore with a full wipe.
Try to solve your problem first, only when you really need the backup then only I will upload ... let me know
Click to expand...
Click to collapse
Hello, sorry for the late reply.
I have decided to give a custom ROM a try. I now have ARHD 41.0 installed and it seems this took care of my problems. All the maps are showing in windows explorer and HTC sync manager is connecting properly with my phone again. Also no more crashing apps. Your backup would still be of much use for me as I am not sure I want to stick with a custom ROM and therefore would like to have a stock ROM backup.
Thanks in advance.

[SOLVED] Downloads get paused right after starting them

Hello guys!
I've recently ran into a problem, where whenever I try to download anything from the internet using a browser, the download starts, but immediately gets paused and I'm not able to resume the download.
The download shows up in the Download Manager, but I'm not able to restart it from there.
The issue came of after installing the leaked Open Beta 9 few weeks ago, and present since. Currently I'm using FreedomOS 2.1, but before that, I was on Open Beta 9, first on the leaked one, then on the official one.
I've been through multiple full wipes, full flashes, the problem keeps sticking.
Tried to download with other browsers, Chrome Dev, Chrome Canary, Firefox, Dolphin, even tried using multiple Download Managers, none of them solved my problem.
Also tried clearing the cache of the Download Manager system app, resetting permissions for each app, tinker with Data Saver settings, without any luck whatsoever.
Please, if anybody has any possible solutions, suggestions, or anything regarding this problem, help me solve this.
Thank you!
Solution:
Somehow, I managed to find a solution.
When I wiped my entire phone storage, including the internal one while installing open beta 9, I made the Download folder manually to put the flashable files in. This was the problem, after renaming the folder, the OS created a new one and now all of my downloads are working correctly.

NEED HELP! Cant/Denied access internal/emulated storage

i wanted to install new stock rom from here but fastboot wont install it so i went to twrp and tried to flash it from there but during flashing twrp just rebooted itself and saying installation wasnt sucessful, i figured this is due to S-On but prior to flashing it i did possibly the stupidest thing, i went to ADVANCED WIPE and wiped every option on the list(dalvik,system,data,internal storage,cache) except for micro sdcard ofcourse. i then went to FIX PERMISSIONS and stupidly select the ALSO FIX SELINUX CONTEXTS. when those done i then went and install another image which is on the sdcard that i downloaded from here E9pw_Android5.0_Sense70_E1.zip . the installation went well and rebooted itself and got to the homescreen and whatnot. but the troubles came when i tried to install apps from playstore and it gave me all kind of errors known to man, even going into file manager to access the internal storage gave me problem it says something along ACCESS IS DENIED or CANT ACESSS EMULATED OR SOMETHING LIKE THAT. when i opened chrome to download something the browser just crashed because apparently it wont able to access the emulated storage. yeah i fcked up badly here. dont know whatelse to do.
see below of the files that i currently have in my external microsd card:
E9pw_Android5.0_Sense70_E1.zip -WORKS
open gapps arm64 android 5.0 stock
RUU 0PJXIMG_A55ML_DTUL_L50_SENSE70_hTC_Asia_WWE_1.35.7 07.2 - DONT WORK
0PJXIMG_A55ML_DTUL_L50_SENSE70_hTC_Asia_WWE_1.35.7 07.2 - DONT WORK
Thanks!
Got it fixed! by going to TWRP-->WIPE-->FORMAT DATA and reinstall the ROM. if anybody experiencing the same problem please do the same.
Zorg The Great said:
Got it fixed! by going to TWRP-->WIPE-->FORMAT DATA and reinstall the ROM. if anybody experiencing the same problem please do the same.
Click to expand...
Click to collapse
hy i am in exactly same situataion. S ON with twrp installed i accidentaly formatted all and it showd no storage later on i formatted system too and now device has no os. I can still boot in to recovery. DOnt kow what to do now

App Installation Issues Lineage OS 14.1 nightly OPO, Error 492

Hi,
I recently upgraded to Lineage 14.1 bacon for my Oneplus One. I installed it using TWRP. I had made a backup of important apps via Titanium Pro Rooted (Dunno if this is relevant).
Also I made a backup of the system and data via TWRP just in case. After the first successful install, like a fool I tried to revert to the old build from TWRP Backup by using the restore process, where I tried to just restore the data part of the backup and not the system as well.
It got stuck at 50% during this process for more than 6 hours. I just rebooted the phone midway during the restore process, wiped the phone again to factory and re-installed Lineage 14.1 (with Gapps Micro which I did the first time as well).
Now for some reason after that, some of the apps that I try to install, just refuse to download from the App Store. They are permanently stuck at the downloading stage where the download progress bar never shows. After a few minutes they return with an Error 492. This is happening for apps like google chrome, microsoft excel, powerpoint & word, Line, Snapchat, Candy Crush, Magic Rush Heroes and few more apps. The rest of the apps just download fine.
My guess (since I am not an expert at any of this stuff) is that the restore process is where things got screwed up. I have wiped everything except internal storage (including dalvik cache and cache) to reinstall Lineage with gapps a few times and there is still no success in installing those few apps mentioned before. I have no clue how to solve this issue.
The Lineage and Gapps packages to be flashed are in internal storage and this device doesn't have an external SD Card. So I cannot wipe internal storage as well. IF there is a way to install Lineage with Gapps in spite of wiping internal storage then I dunno that process.
I am in a major fix here. Please help!
You can use adb push to put data on your internal memory. Ensure that you have usb debugging on when connect your phone.
rk92 said:
You can use adb push to put data on your internal memory. Ensure that you have usb debugging on when connect your phone.
Click to expand...
Click to collapse
Thanks for the suggestion! But here is the issue now! My friend in haste, wiped the whole internal storage. Now I had the data backed up luckily. But, there is no ROM or gapps zip available to flash and I am using TWRP 2.7.0.0 and I am unable to find an option to connect TWRP to an external memory such as USB OTG or USB Mass Storage to load the flash files onto the phone. It seems like my phone is bricked with only TWRP as the only recovery mode! Any way I can flash to Lineage again?
Here is the issue now! My friend in haste, wiped the whole internal storage. Now I had the data backed up luckily. But, there is no ROM or gapps zip available to flash and I am using TWRP 2.7.0.0 and I am unable to find an option to connect TWRP to an external memory such as USB OTG or USB Mass Storage to load the flash files onto the phone. It seems like my phone is bricked with only TWRP as the only recovery mode! Any way I can flash to Lineage again?
Ok I was able to push the zip files for Lineage and Gapps using adb from the computer. But now the problem is that TWRP is stuck in a permanent loop mode. The Teamwin screen appears and refreshes back to the same screen all the time. Should I switch to CWM?
Upon further research I found that using fastboot mode I can flash the latest TWRP image. I did that and thankfully the image that I had sideloaded through ADB was available and I was able to install Lineage and Gapps. Question now remains is that should I install SuperSU and root my device as it still says that the device is unrooted!
Ok back to square one! The apps listed in my original question still dont seem to be installing even after completely wiping the phone and installing Lineage OS 14.1 and gapps afresh. Any suggestions???
rk92 said:
You can use adb push to put data on your internal memory. Ensure that you have usb debugging on when connect your phone.
Click to expand...
Click to collapse
Thanks for the suggestion @rk92. I used adb push to install the rom and gapps per your suggestion! But the issue of above said apps not installing still persists in spite a clean wipe of the phone.
GanZ
When I login to Google Play Store using my google account, the apps that wont install show as installed. I do not own any other device except the oneplus one that I flashed from Cyanogenmod 12.1 to Lineage 14.1 Bacon Nightly. The apps are showing as installed in the same device, whereas they are clearly not! I checked all apps under the settings section and not one of these apps are installed. This is really something strange as an issue! Any ideas forum members? Is there any thread on XDA with a solution to this problem? Please help!
ganz.dev said:
When I login to Google Play Store using my google account, the apps that wont install show as installed. I do not own any other device except the oneplus one that I flashed from Cyanogenmod 12.1 to Lineage 14.1 Bacon Nightly. The apps are showing as installed in the same device, whereas they are clearly not! I checked all apps under the settings section and not one of these apps are installed. This is really something strange as an issue! Any ideas forum members? Is there any thread on XDA with a solution to this problem? Please help!
Click to expand...
Click to collapse
What is your version of Gapp. I think for Lineage 14.1 you need 7.1.1. Sometime back I had an issue when the play service would suddenly stop. I had flashed from cm13 to slimrom. I flashed the stock rom and then flashed to slimrom and this didn't happen. May this is not properly cleaning up your /system.
rk92 said:
What is your version of Gapp. I think for Lineage 14.1 you need 7.1.1. Sometime back I had an issue when the play service would suddenly stop. I had flashed from cm13 to slimrom. I flashed the stock rom and then flashed to slimrom and this didn't happen. May this is not properly cleaning up your /system.
Click to expand...
Click to collapse
I flashed gapps nano arm Nougat 7.1.. So guess that isnt the issue?
Ok even my storage seems to be blocked! I am not able to transfer files via MTP, OTG, Shareit and my camera isnt recognising the internal shared storage. The camera has permissions to access storage though. Using all file explorers available in the market, I am still not able to create folders, transfer files etc. Could this be a corrupt storage????
I have the exact same problem. I use Lineage 14.1 (2017 04 10) and android 7.1.1. I Also have certain apps which don't install (facebook, facebook messenger, snapchat). The download does not progress and after a couple minutes i also get error code 492. I just got this phone off a friend of mine, meaning i just did a factory data reset, but that didn't solve the problem.
I've always used apple or nokia in my life, thus i am a real noob at android. If a solution is found in this forum thread i'd be really happy as i can than fully use my 'new' oneplus one.
rk92 said:
What is your version of Gapp. I think for Lineage 14.1 you need 7.1.1. Sometime back I had an issue when the play service would suddenly stop. I had flashed from cm13 to slimrom. I flashed the stock rom and then flashed to slimrom and this didn't happen. May this is not properly cleaning up your /system.
Click to expand...
Click to collapse
@rk92 which Stock Rom did you flash? Coz as far as I remember reading there is no AOSP Build for OPO.
Kees de Groot said:
I have the exact same problem. I use Lineage 14.1 (2017 04 10) and android 7.1.1. I Also have certain apps which don't install (facebook, facebook messenger, snapchat). The download does not progress and after a couple minutes i also get error code 492. I just got this phone off a friend of mine, meaning i just did a factory data reset, but that didn't solve the problem.
I've always used apple or nokia in my life, thus i am a real noob at android. If a solution is found in this forum thread i'd be really happy as i can than fully use my 'new' oneplus one.
Click to expand...
Click to collapse
@Kees de Groot Welcome to the club! Hope there are other active expert devs who can solve our problem!
@rk92 thanks a lot for your help! My internal storage permissions was the problem. It got fixed when I ran some adb shell commands from my laptop with USB Debugging enabled. Everything is normal now. Error 492 fixed.
@Kees de Groot I have a feeling that your app permissions are a problem. Check access to your internal storage. If you are able to access internal storage on your Oneplus using File Explorer to modify internal storage data, then fixing app permissions for the ones not installing will help you install them. Because all the apps that you are unable to install are due to permissions issues. These apps are not able to get access to internal storage. If internal storage access is the issue for you as well (in spite of being a rooted user), then run the commands posted on this thread. https://forum.xda-developers.com/showthread.php?t=2222297
It should fix your permissions.
Hope that helps.
Could a moderator close this thread as solved?
Regards,
GanZ

Categories

Resources