Use SD for Apps under Windows 8.1 - Microsoft Surface

Hello,
The tips that modify registry key (PackageRoot) no longer works under 8.1 RT.
Any idea in order to move apps to SD ?
Anybody tried with mklink ?
Regards

Symbolic links (mklink) may well work, especially if your SD card is formatted NTFS. You may want to check "fsutil behavior query symlinkevaluation" to see if symlinks are fully enabled (you'll also need to be an admin to create them, unless you've mucked with security policies).
I don't run anything with 8.1 at this time, so I haven't tested.

Related

"Stale NFS file handle"

Hi all
I have all my apps and data moved to the sdcard a while back but my phone crashed and I decided to move only the apps to the sdcard.
I'm trying remove the /system/sd/data folder on the sdcard and keeps getting that error message. How to fix it?
Thanks
This should only happen if an NFS export is mounted to a linux box of some sort, and that export has changed or otherwise become inaccessible.
any idea how to fix it?
i have this problem, i'm not able to delete the data folder beacause of that error. :/
your ext2 partition is corrupted. this happens quite a lot if data is moved to the sdcard. boot up linux and run fsck on the sdcard and that should fix it.
cool. I'll give that a try.
Thanks
I'm having this problem too. Can you provide some basic instructions for how to mount and fix under linux? I have an ubuntu vmware image I can boot to on my windows pc and a usb card reader. Will that suffice?
When you plug the card into an ubuntu box it should automatically mount it as the next available drive. You'll have to figure out what device node the card shows up as, unmount it (umount /dev/<insert device name here>), and then run a filesystem check (fsck /dev/<insert device name here>) on the unmounted card. The utility will report various problems about "inodes" which you will want to say yes to fix. Once it has run through the file system should be in a consistent state and ready for use again.
You run the risk of losing stuff written to the card (which is probably corrupt anyways) when you run the fsck so you may want to take a copy of the data first.
On a side note: I am not sure what the default mount options are listed for moving the stuff onto the sd card in the faqs but I suspect it may help prevent corruption to mount the card on android with the sync option. Though, this will definitely slow writes to the card. It would definitely be a bad idea to remove the card while your G1 is running either way.
equid0x said:
On a side note: I am not sure what the default mount options are listed for moving the stuff onto the sd card in the faqs but I suspect it may help prevent corruption to mount the card on android with the sync option. Though, this will definitely slow writes to the card. It would definitely be a bad idea to remove the card while your G1 is running either way.
Click to expand...
Click to collapse
I was thinking of using the sync option, but then I read this at http://linux.die.net/man/8/mount:
sync
All I/O to the file system should be done synchronously. In case of media with limited number of write cycles (e.g. some flash drives) "sync" may cause life-cycle shortening.
Click to expand...
Click to collapse
Busybox seems to have an fsck command built in, but I don't think all the supporting stuff is there. I'd like to have a way to fsck my ext2 partition while on the go and not near my linux box.
I know that you can't fsck without unmounting the partition and of course it would be bad to unmount the partition with apps on it while the phone is running, but I was thinking it would be nice to be able to boot into the recovery console.
I tried this and attempted to do a fsck on /dev/mmcblk0p2 with the fsck in busybox as follows:
Code:
busybox fsck -t ext2 /dev/mmcblk0p2
But the error I got was that fsck.ext2, which is the actual executable that should be used, isn't there.
What would it take to get this onto the system so that I could boot into recovery and do a quick fsck and then reboot back into phone mode?
I was thinking of using the sync option, but then I read this at http://linux.die.net/man/8/mount:
Click to expand...
Click to collapse
Where flash lifetime is concerned... I agree, this will certainly have some impact. However, the amount of wear concerned really depends on the number of write cycles the particular flash you are writing to can handle, and how good any wear leveling in the memory controller is. Modern flash memory will likely last on the order of years even with tons of writing going on. If all you are moving to the card are the apps, that data will likely be written once (or maybe a few times over the life of an app) and only re-read from that point forward. The caching will eventually commit any data in the buffer to "disk" regardless of how much is actually there. The idea is to line up all the writes so they can be done efficiently. Where ext3 is concerned, the commit interval is 5 seconds by default, I am not sure what it was in ext2 but I imagine it is similar. Ext2 is not really a flash optimized filesystem, but it is readily available on basically any linux distro, and is supported on Android. A better fs for flash drives where write cycles are an issue might be something like jffs2 or yaffs.
At any rate, sd cards are cheap. Why not just throw it away when it starts to die?
But the error I got was that fsck.ext2, which is the actual executable that should be used, isn't there.
What would it take to get this onto the system so that I could boot into recovery and do a quick fsck and then reboot back into phone mode?
Click to expand...
Click to collapse
You would have to compile an ARM6 compatible version of fsck and get it onto the recovery partition so you could run it.
just turn off your phone, pull out the sdcard, boot on a linux os and
then in console type :
fsck -p /dev/your_ext2_partition
Is there any way to clear this error message on a windows xp computer?
Maybe use pargon partion manager, but where do I go to fix it in pargon?
equid0x said:
Ext2 is not really a flash optimized filesystem, but it is readily available on basically any linux distro, and is supported on Android. A better fs for flash drives where write cycles are an issue might be something like jffs2 or yaffs.
Click to expand...
Click to collapse
Hmm... Well, we know that yaffs is supported on Android because that's what the onboard storage uses. So I wonder why the tutorial for apps-on-sdcard suggests creating an ext2 partition? Couldn't we create a yaffs partition on the sdcard and use that instead?
Maybe because yaffs isn't as commonly supported in non-Android partitioning tools (which you would have to use to set up the card initially)?
In any case, if there's no real downside to having the partition be yaffs, how can I go about formatting it as such? I don't recall seeing such an option on gParted or anything, but then again I didn't look that carefully.
So can anyone clue me into how I might add yaffs/yaffs2 support to my desktop linux box? I'd like to try using a yaffs2 partition rather than ext2 to see if I get better reliability, but I need to add support for that filesystem first. Can't seem to figure out how to do that quite yet...
You will likely need to create the partition from the terminal using something like fdisk or cfdisk which will allow you to select the proper filesystem ID. The command for creating the filesystem is mkyaffs. The fstab in android will need to be modified to enable mount of this file system at boot. You will need to install all of the yaffs support tools on a linux desktop to get access to the mkyaffs command.
Yaffs is designed to be used directly on NAND or NOR flash memory (not abstracted through the controller built into an SD card) but it may work anyways. I am not very familiar with the specifics of this particular FS. Most of these flash filesystems are designed to provide a bootable root filesystem for an embedded device.
Yaffs kernel support can be built into a custom kernel with the instructions here:
http://yaffs.net/howto-incorporate-yaffs
Its not likely you will find pre-made packages for any of this in a common distro like Ubuntu. So, you will need to know how to compile it all by hand. A good starting point for a lot of linux info is The Linux Documentation Project at:
http://www.tldp.org/
FWIW I have built homebrew linux based routers for dual ISPs, IPSEC VPN and the like using a lightly modified version of CentOS and 4GB CF cards plugged into an ATA adapter. I used EXT2 on these and they were in production use at a small 13 server farm for a couple of years before being replaced with newer equipment without any failures whatsoever.
I have also used CF cards in small 200Mhz cube PCs as basic web kiosks for extended periods of time without any failures as well.
Under normal usage patterns on a mobile device probably does not require a large amount of writes in the grand scheme of things. I'd say it is fairly likely that your card will outlive the device you are using it in regardless of the filesystem in use.
If you are seeing lots of corruption I would suspect a flakey/failing SD card or some other hardware related problem. It definitely pays to buy high quality flash media. I would also suggest not allowing the phone to constantly run dead if you know things are being written to the SD card, since random power failures during a write to flash can permanently damage the media.

[Q] Lollipop: SD Card Write for Legacy Apps

Hey Guys -
Amongst other devices, I have a rooted Nvidia Shield Tablet which I primarily use for gaming (of course) and love. Recently, I upgraded to Lollipop and soon after even completely reset the tablet by reapplying the recovery image, then upgrading to Lollipop via OTA (since recovery files still haven't yet been updated.)
There's just one main issue I cannot find a solution for: I have many legacy apps / games and for some of them need to have SD Card write access. Take for instance "Star Wars - Jedi Academy." It's a paid app and when downloaded installs a small APK as well as a folder with the Demo version of the PC game's files. The app says if you copy the retail version files to a folder and point it to them, it will play the full game and does - however - these files are 3.5gb therefore I copied to a folder on my SD. When I open the app/game and point it to the SD Card folder (which it sees), it says the target isn't writable.
When Lollipop first came out, I know many apps needed to be upgrade to be able to write to the SD card - due to Storage Access Framework I believe. They must know that some legacy apps probably may never get updated. How are we to use these? I'd think the fix would come in one of the following forms:
- Xposed Add-on (Installer/Framework still not compatible with Lollipop, though )
- Play Store App - Non-official workaround like ones offered for KitKat
- Lucky Patcher modification?
- Some other method which may require root
- A base Android setting I've overlooked
So... does anyone know a method which is currently out and working? Thanks!
I recently wrote a post about this. Tl;dr you need to reformat your card as ntfs to get it to work, and then do some craziness with the Google Storage Access Framework on command.
Wait a second. Can't you write a simple app like SD fix to repair the way the SD card is accessed?
bzowk said:
Hey Guys -
Amongst other devices, I have a rooted Nvidia Shield Tablet which I primarily use for gaming (of course) and love. Recently, I upgraded to Lollipop and soon after even completely reset the tablet by reapplying the recovery image, then upgrading to Lollipop via OTA (since recovery files still haven't yet been updated.)
There's just one main issue I cannot find a solution for: I have many legacy apps / games and for some of them need to have SD Card write access. Take for instance "Star Wars - Jedi Academy." It's a paid app and when downloaded installs a small APK as well as a folder with the Demo version of the PC game's files. The app says if you copy the retail version files to a folder and point it to them, it will play the full game and does - however - these files are 3.5gb therefore I copied to a folder on my SD. When I open the app/game and point it to the SD Card folder (which it sees), it says the target isn't writable.
So... does anyone know a method which is currently out and working? Thanks!
Click to expand...
Click to collapse
Not sure it will solve your problem, but when I first upgraded to Lollipop I could not write anything to my sd card. Someone else mentioned that if you install Folder Mount, https://play.google.com/store/apps/details?id=com.devasque.fmount, upon first launch it would recognize the issue and offer to fix it. I tried it (used Folder Mount on my old Hisense Sero Pro 7 for a long time so I trust it), and sure enough it works great. Then just uninstall it once you've rebooted. End of problem for me...
Easy fix. If you have root use SD Card Fix by NextApp
https://play.google.com/store/apps/details?id=nextapp.sdfix
Gives you read write back to your ex SD.
Sent from my SM-N910T using XDA Free mobile app
this fix did it for me without installing any app:
http://forum.xda-developers.com/showthread.php?p=44370296#post44370296
Wow - Thanks for all the replies guys! I got it to work!
After reading each, I decided to first try w.0.o.t's suggestion which is a direct but simple edit of a system file instead of installing an app for which I don't know what it does exactly. The example in the link he sent was a bit different as it was for 4.3, so here's what I ended up doing to make it work for 5.0:
1. Opened Root Explorer Pro on my tablet
2. Browsed to the file "/etc/permissions/platform.xml"
3. Copied it to the root of my internal storage (sdcard0) for backup
4. Held down touch on it and choose to Edit in Text Editor. It asked if I wanted to mount volume as RW to which I replied yes
5. Located the section "WRITE_EXTERNAL_STORAGE" and made the edits listed in the "EDITS" section below these steps
6. Saved file, held touch on filename again, went to permissions, and verified that it was set to "644" - it was
7. Restarted tablet
EDITS
Original Data in permissions.xml
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
Edited Data in permissions.xml What I changed the above values to...
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_rw" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Notes when editing:
- Make sure that you change "r" to "rw" on the first listed group - may easily be missed when coming above two
- When typing extra line, my tablet auto-corrected the word "gid" and changed it to "god" without me noticing. After rebooting and it not working, I went back and saw the error, fixed it, rebooted, then it worked
To test, I opened FX File Editor and browsed to a file on my SDCard which I previously could not delete. This time, I was able to delete it without issue
Thanks again guys!
glad you sorted it out.
primetechv2 said:
I recently wrote a post about this. Tl;dr you need to reformat your card as ntfs to get it to work, and then do some craziness with the Google Storage Access Framework on command.
Click to expand...
Click to collapse
Do you have a link to some instructions for that method? And does it require root?
KingDestruct said:
Do you have a link to some instructions for that method? And does it require root?
Click to expand...
Click to collapse
No root is needed.
It requires a computer, and probably for you to eject your SD card from your shield and insert it into the computer in a different way, so it's recognized by Windows Explorer.
So you plug in the SD card as mentioned.
Open it up in Windows Explorer. (This usually comes up when you insert the card, but if it doesn't you can usually open the Start Menu or Start Screen and type Explorer to find it.)
Copy everything you want to save out of the card.
Right click in an empty space, then choose Format...
Format the thing as NTFS. Turning off Quick Format probably won't hurt. Don't bother with any other options.
Cross fingers. Try the card again.
primetechv2 said:
No root is needed.
It requires a computer, and probably for you to eject your SD card from your shield and insert it into the computer in a different way, so it's recognized by Windows Explorer.
So you plug in the SD card as mentioned.
Open it up in Windows Explorer. (This usually comes up when you insert the card, but if it doesn't you can usually open the Start Menu or Start Screen and type Explorer to find it.)
Copy everything you want to save out of the card.
Right click in an empty space, then choose Format...
Format the thing as NTFS. Turning off Quick Format probably won't hurt. Don't bother with any other options.
Cross fingers. Try the card again.
Click to expand...
Click to collapse
I'm sorry I should have clarified, I know how to and have formatted the SD card, I was referring to the fiddling around with the Google Storage Access Framework on command. Sorry for the confusion.
KingDestruct said:
I'm sorry I should have clarified, I know how to and have formatted the SD card, I was referring to the fiddling around with the Google Storage Access Framework on command. Sorry for the confusion.
Click to expand...
Click to collapse
The GSAF will only pop up on apps that have been wired to support it. Among others I know ES and FX file explorers are now capable. Any luck with those?
primetechv2 said:
The GSAF will only pop up on apps that have been wired to support it. Among others I know ES and FX file explorers are now capable. Any luck with those?
Click to expand...
Click to collapse
No luck whatsoever. I'm getting the same issue as the original poster. I've tried with both ES File Explorer and FX and Documents crashes as soon as I select the SD Card. The SD card is in NTFS format, would exFAT format make a difference?
---------- Post added at 06:47 AM ---------- Previous post was at 06:19 AM ----------
primetechv2 said:
The GSAF will only pop up on apps that have been wired to support it. Among others I know ES and FX file explorers are now capable. Any luck with those?
Click to expand...
Click to collapse
I have tried using ES File Explorer on my LG G3 running Android 5.0.1 and I was able to write to the SD card. So at this point its an issue with the tablet, which is immensely infuriating since I can't install games to the SD car properly, which is the main thing this tablet is for isn't it?! I really want to play some Hearthstone on it!
You know, at this point, any change in format might make a difference. I'm scratching my head as to why you need to explicitly provided Storage access to ES File Explorer, maybe it just no longer assumes it has the permissions (stock Samsung apps are okay with writing anywhere and preliminary documentation about OEM installed apps said the same thing).
The good news is that I've never destroyed an SD card by formatting formatting it. Go nuts. Try things other than what I suggested... At this point there's a good chance I'm missing something. And I'm sorry for botching my suggestions.
Here's an idea. Between switching formats and maybe allocation sizes (I'm leaning towards trying the smallest one), try formatting your SD card in the system's Storage settings.
Here's another: try the SD Formatter application available here. Raspberry Pi SD cards are sometimes as cranky as Shield ones.
http://www.raspberrypi.org/help/noobs-setup/
I got it to work! I used the SD Formatter you suggested, although it only let me format it to FAT32. I did see some other threads though that said something about renaming the SD card too, so I decided to rename the volume label to "Shield_SD", and I'm guessing that this is the problem, as I never named the SD card. I noticed also that on my LG G3 that the external SD card had a name that was a bunch of random characters, but I could write to it.
dgjenkins said:
Not sure it will solve your problem, but when I first upgraded to Lollipop I could not write anything to my sd card. Someone else mentioned that if you install Folder Mount, https://play.google.com/store/apps/details?id=com.devasque.fmount, upon first launch it would recognize the issue and offer to fix it. I tried it (used Folder Mount on my old Hisense Sero Pro 7 for a long time so I trust it), and sure enough it works great. Then just uninstall it once you've rebooted. End of problem for me...
Click to expand...
Click to collapse
After upgrade to lollipop, then downgrade to KK 4.4.4, had a sd card write pb.
This one solved my problem.
Thanks for that, you made my day.
Best regards
Franck

[Completed] Decryption Issue Ext SD Multimedia

Ok, here's the story, I encrypted my Phone(LG V10) and SD. I went to upgrade the devices so I removed the encryption from the device. I have full access to the SD(read/write), but the multimedia files on the SD are Read Only(with a square instead of the check box). My new device is rooted and I tried several recovery programs, but since its readonly I cant recover them. I even inserted SD into a PC and used CMD to attempt to remove the attribute, but it returns soon as its remove. I even tried to use Total Commander, to change the permissions and they wont stick either. Im stumped, wondering if anyone had any work around?
Hi !
There are some missing info in your description. It would be great to mention the android version , ROM version ( stock or custom), as from KK some sdcard permissions access has been changed , marshmallow also has a different implementation
A workaround may be by using HandleExternalStorage module for Xposed
Or , save your files and reformat the sdcard in windows using a third-party application , Gparted , Easeus , Paragon
Good luck !

Android phone as windows to go device?

Im wondering if its possible to create windows to go on android phone. I need as test device for laptops. But it would be awesome if this is even possible. Maybe creating additional partition from storage and them making that partition in rufus bootable. When connecting phone so u have option to make thar partition behave as usb stick so it will boot windows directly from that phone storage. Is this possible
Get drivedroid it's on the play store. IT REQUIRES ROOT ACCESS!!!!
wallor77 said:
Im wondering if its possible to create windows to go on android phone. I need as test device for laptops. But it would be awesome if this is even possible. Maybe creating additional partition from storage and them making that partition in rufus bootable. When connecting phone so u have option to make thar partition behave as usb stick so it will boot windows directly from that phone storage. Is this possible
Click to expand...
Click to collapse
Awesome! Why not have a try and let us know the result!
Hello, booting an iso or any kind of image file from your phone to pc is possible, but you may encounter some problems.
DriveDroid is a good app but it requires root
here is a guide
http://www.geekomad.com/2013/08/how-to-make-android-phone-as-bootable.html
good luck!

Does any app exist that does not require root permissions that will allow me to reformat an SD card with a format of my choosing

Minor update I'm no longer really needing a solution to this problem although it would be very helpful for everyone if one was found as I'm sure this has been a problem too many people at this point)
I'm over here trying to root my S6 Lite tablet without a computer just a bloody cell phone and I am oh so close but I have no way of reformatting this SD card cuz xxxxx Android wants to put it as FAT32 for god knows what reason it's an 8 gig SD card and I've even tried reformatting it in both devices I have same result Android just being stupid and I am at the end of my rope here cuz I have not been able to find any apps once so ever that actually allow me to reformat an SD card with a format of my choosing or at least one that's usable
Now please tell me that someone on this xxxxx website has a solution to this problem because once again the weird stuff I'm doing has led me down a path no one else has seemingly took
(And if anyone's asking why I'm rooting this tablet it's because Android 12 works like crap)
Mod Edit: Some content removed.
I am kind of stuck between a rock and a hard place as I have not been able to figure out any method of formatting this SD card with something usable because Android is for some unknown reason only formatting it with FAT32 despite using two different devices to attempt to format it normally and I have not been able to find a single application that exists that does not require root permissions that would allow me to change the format of the SD card I have legitimately spent like three or four hours now trying to figure something out and have come up with nothing please someone here help
I'm just going to add this year that I obviously don't have access to a computer or this wouldn't be a problem
Root your phone and use twrp to change filesystem.
But in your case when you don't want to root. Unplug SD card and connect with adapter to your pc.
Go to this computer and right click on the SD card
Click format And select filesystem
Quick format is fine
Format and when finished
Put SD card back.
Done
Odinsinces3 said:
Root your phone and use twrp to change filesystem.
But in your case when you don't want to root. Unplug SD card and connect with adapter to your pc.
Go to this computer and right click on the SD card
Click format And select filesystem
Quick format is fine
Format and when finished
Put SD card back.
Done
Click to expand...
Click to collapse
Both of those are a problem because I don't have a computer to use and I am trying to root my tablet and the only other device I have is an a20 cell phone that's not rooted either and I am so close but I can't Flash the modded firmware because Android is formatting the SD card with xxxx FAT32 so besides this SD card the only other option I have is to attempt to do the flash over wireless ADB I mean seriously if I had a bloody computer I would have been done like 3 days ago
Mod Edit: Some content removed.
Can you try to use this app https://play.google.com/store/apps/details?id=com.scnc.fixsdcardmemory&hl=nl&gl=US
let me know
Odinsinces3 said:
Can you try to use this app https://play.google.com/store/apps/details?id=com.scnc.fixsdcardmemory&hl=nl&gl=US
let me know
Click to expand...
Click to collapse
That's a scam app that I kept running into if I recall it didn't even boot although it's hard to tell cuz I tried a couple that look pretty much identical to that so once again something that's completely useless I came here cuz I was hoping somebody would have an actual solution not the same garbage I kept running into trying to Google my way through this
it's an actual solution youre just being silly.
Odinsinces3 said:
it's an actual solution youre just being silly.
Click to expand...
Click to collapse
It's not or I would have found it by now I've tried everything you can find easily on Google and the Play Store absolutely nothing has worked or been anywhere near what I'm looking for besides a couple of apps that require root permissions I was coming here hoping that somebody would have an actual tool for this application not someone giving me the same
trash that google did, now I do appreciate you attempting to help but I need somebody here that is a lot more knowledgeable than you
z3ro_<00l said:
It's not or I would have found it by now I've tried everything you can find easily on Google and the Play Store absolutely nothing has worked or been anywhere near what I'm looking for besides a couple of apps that require root permissions I was coming here hoping that somebody would have an actual tool for this application not someone giving me the same
trash that google did, now I do appreciate you attempting to help but I need somebody here that is a lot more knowledgeable than you
Click to expand...
Click to collapse
Normally a person would update the result and from there we look for another solution. Goodluck finding someone knowledgeable lol, if you weren't such a special one I would have suggested something more advanced
Greetings from a well respected Samsung SSD technician

Categories

Resources