Has anyone successfully relocated the Metadata folder with ROOT? - Shield Android TV Q&A, Help & Troubleshooting

I've seen quite a few posts on this and other forums claiming that with root one could move the metadata folder off of the Shield's internal memory using symlinks. I'm wondering if anyone has successfully done this and if they wouldn't mind outlining the procedure, as I've had mixed results. While I was, in fact, able to relocate the Plug-ins folder using symlinks, the same procedure failed for the metadata folder. I commented on this in another post so I'll paste that story here:
"...I tried doing this a couple of months ago and while I was able to successfully symlink the Plug-ins folder, thus allowing installation of plug-ins, the Metadata was less successful:
This was a couple of months ago so I can't remember exactly what happened, however, after creating the symlink and migrating the metadata to my external storage, the Plex app would no longer download posters or wallpapers. From what I remember, though, it would still download text information such as Titles, Plots, etc... I thought this was extremely bizarre behavior at the time. At first, it seemed that the data migrated successfully, but then new movies wouldn't have any artwork, so I was under the impression that the plex server app was refusing to write to the new folder. However, and this is where my memory is fuzzy, it seemed that Text info was still downloading (Title, plot, year, etc...). Also, the plex server app had no trouble writing to the Symlinked Plug-ins folder, so I don't understand why it couldn't do the same with the metadata (or at least the picture based metadata.)
I also remember trying to manually download artwork via the web interface but, let's say you were trying to manually update a poster for a movie, where you would normally see a grid of different posters to chose from, it was all just a bunch of blank boxes.
So to summarize, while symlinking does seem to work for Plug-ins, it doesn't actually appear to be a solution for migrating metadata off of the internal storage. If you have successfully done this and wouldn't mind outlining the steps you followed, that would certainly be extremely helpful to many users here. I've scoured this forum, the Nvidia forum, as well as XDA and Google and have yet to come across someone who has successfully migrated the metadata folder, only the Plug-ins folder."
If anyone has actually successfully done this and could clear up the procedure that would be a great help, as this question comes up often and people are always given the same answer: that with symlinks and root it is possible. It's my experience that it isn't however and it would be best to avoid spreading misinformation on this topic if that is, in fact, the case. (not just for the sake of current Shield owners but potential buyers as well.)

Related

My experience setting up Atrix file and folder security

I was considering storing financial and personal information on my phone in the form of files and realized that though the fingerprint scanner is ok to prevent the casual browser from logging into the phone when it is left unaccompanied, a real hacker could easily see whats on there with very little effort.
The Atrix on the face of it looks like a secure phone with the fingerprint reader; however XDA users would know that nothing prevents a thief from entering fastboot and mounting the files and folders to see whats on there. No security app can prevent that.
Using the android built-in option and encrypting the entire sdcard is NOT an option for me at this time. I think its going to slow down the phone operation if the OS files are encrypted and each time it needs to decrypt each and every file and folder. Also it may present issues when testing new ROMs. (And I am dual booting - so my extSD also has a ROM which I would not want to slow down anymore than it already is)
So I searched for methods and apps to encrypt individual files or folders on the Atrix. There are quiet a few in the market and a few are free as well with good reviews. However most -even the ones with the best reviews seem to be just changing the file name and location and not doing real encryption. Also most of these use proprietary algorithms or methods to hide information. A really good app would be one that uses an open source algorithm to encrypt the files and folders - so that the algorithm would be tested and verified as being strong by the world.
Also another requirement was for the ability to frequently sync and update the files on the phone with the PC. The app should have a PC equivalent - that is the file can change on my PC and then I should be able to sync the changed file with the phone in some automated way.
Yet another requirement would be the ability to quickly encrypt and decrypt huge audio or video files. A few good apps could encrypt small audio and video files but not files of size 1GB or more. The apps would either freeze after some time or not encrypt them at all.
Finally I was looking for an option by which the files if I unencrypt them to be available across all apps for the duration of that session - not just in the app that encrypts and decrypts them. So in other words, once I enter the password, the folder should be mounted and available in any app that can browse the phone - until I decide to end or unmount the encrypted store.
I found only Cryptonite doing all of this. Unfortunately Cryptonite does not support Truecrypt containers on Motorola phones. There is some info here on the truecrypt port to android here:
http://forum.xda-developers.com/showthread.php?t=872297&page=7
However I could not get it working with the Atrix. Has anyone had success getting Kryptonite and Truecrypt to work on the Atrix?
Cryptonite also supports Dropbox, but I am not a big fan of storing sensitive info in the cloud - however well known the company is.
Cryptonite does support encFS and I was able to successfully create encFS encrypted folder on my Atrix. I would have liked to have TrueCrypt than encFS, just because I have been reading that Truecrypt has better overall support.
The method I use now for storing and synching encrypted information is:
for the first time only: create the encfs folder on the PC, then mount Atrix as a USB drive and copy the encrypted folder to Atrix.
To sync the encrypted files with the PC, I have to connect the Atrix as USB drive, open EncFS on the PC and select the folder on the Atrix to mount as a drive volume. Also mount the PC encFS folder as another drive. Now sync with the PC using any sync tool like MS SyncToy.
I went through a lot of searching and came to this which I think is good enough at the moment. I would like to hear if anyone else has a better app or method to secure and sync secured files on the Atrix - especially if you have got Truecrypt to somehow work on the Atrix. And I post this so that is anyone else needs this information, it is here.
shenoyh said:
Yet another requirement would be the ability to quickly encrypt and decrypt huge audio or video files. A few good apps could encrypt small audio and video files but not files of size 1GB or more. The apps would either freeze after some time or not encrypt them at all.
Click to expand...
Click to collapse
I don't know about the rest of it, I never used any strong security on my phone nor do I intend to, but I think you shouldn't ever expect to be able to "quickly encrypt and decrypt huge files". You're pretty much asking for impossible here. It's like asking to build a full-featured house, furnished and all, in 30 minutes or less. A lot of data will always require a lot of time to process. Heck, even, say, straight plain copying such a file to a computer would take quite a while.
No.
Your not going to get business class security on your atrix, or any current phone most likely.
LUKS manager is the closest thing to legitimate encryption (not gimicky BS) i have seen, but it has some fatal flaws.
Passwords and such are safe and easy to store with KeePass, which is also on windows/linux for syncing and has years of reputation (also free/open source). It isnt for files though.
-------------------------------------------------
Atrix 4G
Rom: Cyanogenmod 7.2 [20120805]
Recov: Romracer 5.0.2.7-atrix5
Radio: N_01.97.00R
Kernel: Faux 1.00ghz-026b1
UV: -0/-25/-50/-100/-150/-225/-300

Trying to understand file system

I use Solid Explorer and am not rooted. When I look at ways to get to a "file" at root, I see:
Root/sdcard/file
Root/storage/sdcard0/file
Root/storage/emulated/legacy/file
Root/storage/emulated/internal memory/file
Root/mnt/sdcard/file
Why so many and what does it all mean? Can I delete any of the folders? Any of them open in my browser if the file is an html file with file:///
understand filefystem
tcat007 said:
I use Solid Explorer and am not rooted. When I look at ways to get to a "file" at root, I see:
Root/sdcard/file
Root/storage/sdcard0/file
Root/storage/emulated/legacy/file
Root/storage/emulated/internal memory/file
Root/mnt/sdcard/file
Why so many and what does it all mean? Can I delete any of the folders? Any of them open in my browser if the file is an html file with file:///
Click to expand...
Click to collapse
I would not recommend trying to delete any of the folders; most of them are basically symlinks, and deleting them will NOT reclaim storage. As to understanding the filesystem after the move to 'multi-user android 4.2', I have problems in that aspect myself. Indeed, on my (rooted) nexus, I have difficulties in getting my folders visible for other applications (where on 4.1 they were very visible indeed).
As one of the cracks on this forum, Chainfire, who releases the StickMount app, has similar problems (he has not been able to make StickMount work yet on Android 4.2), I guess there are some real questions out there.
Chances are, within the next few days or weeks, more is known about the way the filesystem is working, and perhaps tips as how to make it better will come floating about.
For now though, I would just "sit still" if I were you, and just ignore all the other ways, and just use one of them.
(And which one? I guess I would go for /sdcard/file myself...
Kind regards,
Roel
Happy I'm not the only one. Before the update "Root/storage/sdcard0/file" seemed to be the path. Now it looks like each app chooses it's path randomly. I would guess many developers are pulling their hair out (or cursing Google)
I think I've got my head round the symbolic links but can't, along with tcat007, understand the reasoning. Another question that I hope is proper here is "How does Windows 8 (and earlier) decide what is "Internal Storage" - I've got a subdirectory that can be seen through either the sdcard or storage paths but will not display in W8.

ERROR: “Documents.library-Ms Is No Longer Working”

Hi All, I seem to have a repeating error where my Windows 8 Pro Libraries keep breaking. The error message is "<libraryname>.library-ms" is no longer working. Fixing the error is well documented, here for example: http://www.winhelponline.com/blog/fix-error-library-ms-is-no-longer-working-windows-7/
My problem is that it keeps happening, and it's happening the day after I fix it with the above solution. Plus it's happening for all 4 libraries (music, documents, videos, pictures). So it's a bit of a hassle.
To be clear, I always add my Windows Home Server 2011 folders to the libraries, as that's where my files are stored. I am wondering weather adding a network location is causing the repetition of this error. Has anyone else experienced this? To note, the files on my WHS 2011 server are not mapped to a drive on my Windows 8 Pro PC, and furthermore I have not added the WHS 2011 to the Homegroup - I prefer to keep things basic, but obviously will try something if it might help.
Also, I was running Windows 7 in the exact same configuration for over a year and this problem never happened. So it's definitely Windows 8, I'm just not sure if it's Windows 8 plus WHS 2011 not playing nicely. Any help appreciated.
>I always add my Windows Home Server 2011 folders to the libraries, as that's where my files are stored. I am wondering weather adding a network location is causing the repetition of this error.
Then you should find out. Replicate the WHS content on local storage and use that vs WHS for a few days to see what happens. The mantra of troubleshooting is to minimize your config until you have a known-good setup, then add new stuff one-by-one until you hit the bug. Then (hopefully) you'd have narrow down the culprit.
It's a good thing the corruption happens quickly, as ascertaining cause should be easy. The worst are the intermittent ones that occur over weeks or months.
Assuming there's no permanent fix, a workaround is to write a script for the delete/add fix mentioned. Then at least the hassle is limited to a single click per day.
Just to follow up on this. Thanks for the suggestion, I did try and reset the library's without adding the Server locations. All was fine for a bit, but then the same corruption happened and and the links to the libraries corrupted again. Not sure why. As you can see in the attached, all the libraries except the Videos one is now corrupted Seems like no one else is having this issue though (on XDA anyway).
I've experienced it myself, actually, on the machine where I moved my Documents, Pictures, Videos, Music, etc. folders out of %USERPROFILE% and onto my data drive (as in, D:\Music) then changed the library links. I just added actual links and stopped bothering with the libraries; I pretty much only use one folder for each of those content types anyhow.
Suggest reviewing your search hits more thoroughly for underlying cause(s) and not only the fix.
http://google.com/search?q="music.library-ms+is+no+longer+working" nets
http://answers.microsoft.com/en-us/...89?msgId=a51a4bb9-5c62-4881-bfa2-fa8e56fce092
suggests possible user account corruption.
http://all4naija.blogspot.com/2012/06/musiclibrary-ms-is-no-longer-working.html
"The cause of the problem is not far fetched. It could have been a program one installed previously. It could as well have been shutting down a program using the folder without following appropriate means. Like powering of Windows when a program making use of any of the Library folder is working. For example, when converting video files and shutting the computer off without finishing with the converting files."
http://www.lockergnome.com/windows/...y-ms-is-no-longer-working-error-in-windows-7/
"Windows 7 introduced libraries as a way to allow users to easily access folders containing certain data from all over their file structure without having to keep them in a specific documents directory within their user profile. The library itself can be accessed and controlled by third-party programs using an API. Unfortunately, that opens the library structure up to occasional crashes and other bugs."
Etc.
If searches don't help, minimize to a known-good setup: clean reinstall, install drivers (and nothing else), create your libraries, and run this minimal setup for a few days. If problem persists, then hardware could be the cause, and you'd need to minimize hardware config. More likely, problem disappears; add your programs back in small batches to ferret out the cause.
From the frequency of search hits, it does appear WMP libraries are susceptible to corruption. The ultimate workaround is to use a 3rd-party media manager as replacement.
BTW, I assume this isn't a hacktivated Win8, ie no system files were modded to bypass activation. If the latter, replace it. An upgrade install can also be problematic, and a clean install is suggested.

[TIP] IndexService Error Solution ...

As some of you may remember, my first Note 3, which I got a week ago yesterday, was returned for a full refund the next day due to a Nandroid restore failure through TWRP.
However, some of you may also remember that I had an extremely annoying error message pop up continually for the entire 24 hours I had the device.
The error: Unfortunately IndexService has stopped
This error revealed itself every 1-2 minutes. I could not figure out why as there was little information anywhere on the Internet.
However, after picking up a new Note 3 yesterday, and after many hours of trial-and-error file transfers, I think I found the reason ... a corrupt or otherwise damaged/flawed PDF file.
All other files, Word, Excel, Images, Videos, etc., were NOT the cause, and it had nothing to do with the SDCard. It doesn’t matter if you use a 64MB, 32MB, Class 6, Class 10, or UHS-1 type card. The card is not the problem. I know this because, this time, with my new Note 3, I never put in an SDCard. I transferred all files directly to internal storage and, unfortunately, the IndexService error still appeared … every 1-2 minutes.
This time, however, I noticed that the error message appeared only AFTER I transferred all my files to the device, so I knew it had to do with these files, and that’s where I focused my attention.
It took about 9 hours last night and early this morning. I began by deleting all personal files from the device. Result: No error messages. Then, directory-by-directory (I have 12,554 files and 371 directories), I transferred them back to the device, each time waiting about 3-4 minutes to see if the error message would appear. I read in other forums that the problem might be related to PDF files, so I first transferred all other file types. Result: No error messages. Then I begin transferring PDF files. I did so in groups of about 50 at a time. Yes, I have many PDF files; about 2,100 of them. It all came down to two PDF files. Wow, 2 out of 2,100! I can’t explain why, but when I transferred those two files to the device, the error message appeared, and when I deleted them, the error message disappeared.
Fortunately, the two files were not important, so I permanently deleted them; however, before doing so, I thought that they might have originally been written using a very old version of Adobe, and that they simply couldn’t be “read” by the Adobe reader on the Note 3. With this in mind, I opened them in the latest version of Adobe on my PC, and then re-saved them with a new file name; however, the result was the same. They still caused the indexing error. So, at this point I have no idea why they are causing the problem.
Finally, after all my files were transferred to internal storage, without the 2 problem files, I waited 1 hour. No error message. I then put in my Sandisk 32GB UHS-1 card, copied all the files over, and then waited another 30 minutes. No error message. This morning I deleted all the files from internal storage so that I only had them on the SDCard. No error message. It has now been over 24 hours, and still no error message.
SUMMARY:
1) The indexing error is NOT caused by the external SDCard.
2) The indexing error is PROBABLY caused by a problem PDF file(s)
3) The size of the PDF file is irrelevant. My problem files were each about 10MB; however, all smaller sizes, and even the remaining larger-sized PDF files do not cause a problem.
4) Others have suggested that I turn OFF a particular service, but it didn’t work for me.
5) Others have suggested that the error relates to files larger than 200MB. This does NOT appear to be the case in my situation. I have many files that are more than 200MB, and there isn’t a problem.
6) Another xda member said to create a file called .nomedia and place it in the root of the directory where the problem files are located. I tried this, but I still get the error message.
I hope this helps others.
Peter
PeterGuru said:
As some of you may remember, my first Note 3, which I got a week ago yesterday, was returned for a full refund the next day due to a Nandroid restore failure through TWRP.
However, some of you may also remember that I had an extremely annoying error message pop up continually for the entire 24 hours I had the device.
The error: Unfortunately IndexService has stopped
This error revealed itself every 1-2 minutes. I could not figure out why as there was little information anywhere on the Internet.
However, after picking up a new Note 3 yesterday, and after many hours of trial-and-error file transfers, I think I found the reason ... a corrupt or otherwise damaged/flawed PDF file.
All other files, Word, Excel, Images, Videos, etc., were NOT the cause, and it had nothing to do with the SDCard. It doesn’t matter if you use a 64MB, 32MB, Class 6, Class 10, or UHS-1 type card. The card is not the problem. I know this because, this time, with my new Note 3, I never put in an SDCard. I transferred all files directly to internal storage and, unfortunately, the IndexService error still appeared … every 1-2 minutes.
This time, however, I noticed that the error message appeared only AFTER I transferred all my files to the device, so I knew it had to do with these files, and that’s where I focused my attention.
It took about 9 hours last night and early this morning. I began by deleting all personal files from the device. Result: No error messages. Then, directory-by-directory (I have 12,554 files and 371 directories), I transferred them back to the device, each time waiting about 3-4 minutes to see if the error message would appear. I read in other forums that the problem might be related to PDF files, so I first transferred all other file types. Result: No error messages. Then I begin transferring PDF files. I did so in groups of about 50 at a time. Yes, I have many PDF files; about 2,100 of them. It all came down to two PDF files. Wow, 2 out of 2,100! I can’t explain why, but when I transferred those two files to the device, the error message appeared, and when I deleted them, the error message disappeared.
Fortunately, the two files were not important, so I permanently deleted them; however, before doing so, I thought that they might have originally been written using a very old version of Adobe, and that they simply couldn’t be “read” by the Adobe reader on the Note 3. With this in mind, I opened them in the latest version of Adobe on my PC, and then re-saved them with a new file name; however, the result was the same. They still caused the indexing error. So, at this point I have no idea why they are causing the problem.
Finally, after all my files were transferred to internal storage, without the 2 problem files, I waited 1 hour. No error message. I then put in my Sandisk 32GB UHS-1 card, copied all the files over, and then waited another 30 minutes. No error message. This morning I deleted all the files from internal storage so that I only had them on the SDCard. No error message. It has now been about 6 hours, and still no error message.
SUMMARY:
1) The indexing error is NOT caused by the external SDCard.
2) The indexing error is PROBABLY caused by a problem PDF file(s)
3) The size of the PDF file is irrelevant. My problem files were each about 10MB; however, all smaller sizes, and even the remaining larger-sized PDF files do not cause a problem.
4) Others have suggested that I turn OFF a particular service, but it didn’t work for me.
5) Others have suggested that the error relates to files larger than 200MB. This does NOT appear to be the case in my situation. I have many files that are more than 200MB, and there isn’t a problem.
6) Another xda member said to create a file called .nomedia, and place it in the root of the directory where the culprit files are located. I tried this, but I still get the error message.
I hope this helps others.
Peter
Click to expand...
Click to collapse
I have been trying to get this problem solved as well -- thanks for spelling out what *isn't* working; I've tried several of these things as well. Killing the app/service, asking the s-finder not to index files, putting the .nomedia files in place have all failed to make it go away. It is a little mind boggling that this is an issue as I've had the same loaded SDcard data (fresh card now, same data) on a note1 and note2 and never had this sort of trouble.
Even when I've killed the indexing service it seems to come back without power cycling, perhaps there is something triggering it to come back.
Hopefully there is an official answer on this soon, the phone becomes unresponsive for seconds all too regularly.
Lance
Looks like we've gone through the same thing ...
lance_lascari said:
I have been trying to get this problem solved as well -- thanks for spelling out what *isn't* working; I've tried several of these things as well. Killing the app/service, asking the s-finder not to index files, putting the .nomedia files in place have all failed to make it go away. It is a little mind boggling that this is an issue as I've had the same loaded SDcard data (fresh card now, same data) on a note1 and note2 and never had this sort of trouble.
Even when I've killed the indexing service it seems to come back without power cycling, perhaps there is something triggering it to come back.
Hopefully there is an official answer on this soon, the phone becomes unresponsive for seconds all too regularly.
Lance
Click to expand...
Click to collapse
It looks like we've gone through the same thing. Sadly, when the IndexService error exists, it REALLY sucks battery power.
I hope you get yours resolved.
Peter
P.S. So far today ... no errors.
Peter a big thank you for the effort on this one. Im not having the issue(yet) but i had been wondering about the cause after reading your posts.
Sent from my SM-N900W8 using xda premium
PeterGuru said:
It looks like we've gone through the same thing. Sadly, when the IndexService error exists, it REALLY sucks battery power.
I hope you get yours resolved.
Peter
P.S. So far today ... no errors.
Click to expand...
Click to collapse
Since I'm going to be travelling this week and need the phone to be reliable, I tried just deleting my document archives for now ( ~ four thousand PDF files mostly)... and what a difference in battery life and keeping that error message away. I hope they fix it so I can have my docs back.
Lance
I'm not sure if they will fix it ...
lance_lascari said:
Since I'm going to be travelling this week and need the phone to be reliable, I tried just deleting my document archives for now ( ~ four thousand PDF files mostly)... and what a difference in battery life and keeping that error message away. I hope they fix it so I can have my docs back.
Lance
Click to expand...
Click to collapse
To be honest, I'm not sure if "they" will ever fix it.
At least you know, for sure, that it has to do with your PDF files, just like my situation. Perhaps you can now do what I did, and start copying all the PDF files back to your device, but in large groups ... perhaps 100 at a time. Then wait about 5 minutes, and try another 100.
Logically speaking, though, it would be best to try half your PDF files, so about 2000 first. Then, if you get the error message, remove them all, and re-copy 1000 of them. Slowly but surely you'll narrow down the culprit files. Yes, it may take you a few to several hours, but it can be done, and you'll probably discover that it's simply a few files, or even just ONE file that's causing all the problems.
Peter
PeterGuru said:
To be honest, I'm not sure if "they" will ever fix it.
At least you know, for sure, that it has to do with your PDF files, just like my situation. Perhaps you can now do what I did, and start copying all the PDF files back to your device, but in large groups ... perhaps 100 at a time. Then wait about 5 minutes, and try another 100.
Logically speaking, though, it would be best to try half your PDF files, so about 2000 first. Then, if you get the error message, remove them all, and re-copy 1000 of them. Slowly but surely you'll narrow down the culprit files. Yes, it may take you a few to several hours, but it can be done, and you'll probably discover that it's simply a few files, or even just ONE file that's causing all the problems.
Peter
Click to expand...
Click to collapse
Peter,
I appreciate your comment -- but the issue is pretty widespread and I suspect the noise level will rise as people start really using their devices (only released on Verizon in the US this past week). They would be unwise not to fix it; the two previous generations of the stock note phones did not show this problem. A bit selling point is the ability to have so much storage (between internal and SD). It is possible that I will someday put the effort in to find any specific files that cause the problem, but the whole directory is synchronized with dropbox and I don't want to have to separate it and lose sync just to work around samsung's bug.
I guess I will give some of it a shot, at least I will copy the folder with mostly books (large files, a few hundred) before the archives of technical literature -- that is a start to see if I can narrow it down. I'll have my nexus7 with me, which happily deals with the same files...
Cheers,
Lance
So if I let this service to run long enough to do its job, will it ever finish? As I noticed it runs only when the screen in on. And the culprit pdf (600Mb) in my case is the only one I really need. Is there any way to block it without root access and permanently?
Thanks!
I think if you add a file named .nomedia to a folder it will prevent any indexing in that folder. A very similar problem can occur with a corrupt music or video file. In that case also, the battery life is killed quickly since it can't complete its scanning. Best to identify the bad files and get rid of them, but if that's not an option, add a .nomedia file to the directory.
Sent from my SAMSUNG-SGH-I317
This is what I was going to suggest; however, it doesn't always work ... but give it a try.
The ".nomedia" file should be created within your device.
Peter
Sent from my mobile device
Im surprised you couldn't find anything on the Internet about this issue as it was discussed here in several threads a couple of weeks ago & corrupted .PDF files were seen to be the cause.
I think you could have saved yourself A LOT of time by simply searching XDA for posts "Note 3 indexservice" ....
http://forum.xda-developers.com/showthread.php?t=2463788
Sent from my SM-N9005 using xda app-developers app
I'm astounded at your brazen reply. Yes, I searched everywhere, including xda, and there were, at the time, no concrete answers. There were many ideas, but nothing definitive.
Case in point, the ".nomedia" idea from another member on xda seemed believable, but it didn't work for me. Also, and I repeat, AT THE TIME, the majority of suggestions had to do with files over 200MB, but this was also not the case with me.
If you want to help, offer ideas and suggestions. Simply trying to make a person feel bad is counter-productive.
Peter
Sent from my mobile device
Please don't blame the messenger.
Search is your friend.
Sent from my SM-N9005 using xda app-developers app
What you don't seem to understand is that the unit I have now is the second Note 3. My problem began with my first unit, which I got on release day in Canada, which was October 4. I returned this particular unit the next morning for a full refund. Believe me, I looked at your link, and the date was October 5, AFTER I returned the original unit.
Peter
P.S. Had YOU done a search, you would have known about my issue, which I posted in a few threads on October 4.
Sent from my mobile device
Yes so anyway just in case it's still not clear, i just posted to explain that we found out about the .pdf file corruption causing it a week or so ago.
Sent from my SM-N9005 using xda app-developers app
So is there any way to change pdf files so our Note would not go ballistic about it? How to distinguish between ''good and bad'' pdfs?
Deleted lost interest...
Yeah... I use ezPDF from my S2 on, mainly because it does not have problems with handling any kind of pdf... Adobe and Polaris on the other hand are inferior in my opinion. Any way I am thanking everybody who contributed information on the issue! Hope permanent solution emerges and it should not be the one by eliminating pdf files from my collection.
Regards!
Hi,
This is my temporary solution to the problem…
1. Create folder named ''.nomedia'' (not file in folder) - (I didn't try, but I think that you can name it whatever you want as long as it starts with ''.'')
2. Reboot
3. Copy pdfs to your phone or SD card
4. Unplug USB and move pdfs to folder .nomedia
5. Reboot – because as soon as pdf file that is causing the problem is on the phone's memory, Index service starts and will not stop until you reboot your phone
6. You can access your pdfs through file manager and open them from there.
Unfortunately there is no option to sync your files with any cloud storage, but at least they can be in the memory of the phone to make good use of them.
IMPORTANT: if my solution is already mentioned somewhere on XDA I sincerely apologize!
(and there was a bit of a sarcasm in the final notice)
Pat. said:
Deleted lost interest...
Click to expand...
Click to collapse
..

'Storage Access Framework' woes..

TLDR at bottom!
I am needing to finally update a specialized app to support newer frameworks. I haven't had to touch this app about 8 years or so, because it was running fine, and it did its job. Sadly, because of some of the new library requirements by Google Play, it's gotta be updated. One of these changes is handling the new Storage Access Framework / writing to storage on the device. I've read the docs that searching has pointed me, and even looked at some of the examples. Sadly, the examples seem rather limited in nature, and my app doesn't seem to fit any of the 'given' examples.
The ultimate end goal is to have the users select an output directory once. And then IN that directory, the app creates folders based on the user's project. (like, 'FrontLine', 'RearLine', 'Cement', etc..). In each of these sub-directories, then, pictures and txt files are stored. (Either downloaded via http client, or taken/generated by the user.)
I was able to implement an intent calling 'ACTION_OPEN_DOCUMENT_TREE', and I get a content URI back. However, hooking that to a Camera library (for example, the androidx.camera library) needs a File or an output stream. Trying to create an output stream then gives me an error stating that access needs to be granted using the external storage permission.
I feel liek I'm missing something 'big' and obvious to connect my user's chosen output direcory into a File or some converting that will let me mkdirs, and write out files.
TLDR; Needing user to select a base output directory, in which my app creates Project directories in it, and then allows storage of pictures or text into these directories. Tried Storage Access Framework, and despite having the user select a directory, am still getting a permission denied error when trying to create output stream.
Any pointers are more then welcome, as googling I have reached dead ends, sadly. Kinda peeved at this new 'framework' and the limited scope it seems to have. (At least, in examples..)
Thanks guys!

Categories

Resources