How to use your PC or NAS as internal sd. - Android Software/Hacking General [Developers Only]

How to use your PC or NAS as internal sd.
I want to show a method how to use a directory on a PC or NAS as inernal_sd.
With this method it is easy to test games and decrease the device storage write cycles.
Also no need to copy to the internal storage.
For example: You can load emu roms or put the obb files there and.
Even a swap file works but this involve further steps, which does not described here.
Only tried on kitkat 4.4.4 and Nougat 7.0.
Tested Devices: kitkat 4.4.4: GPD G5A, GPD G7A, GPD G7, GPD Q9, GPD XD (RK23288)
Nougat 7.0: Nvidia Shield Tablet K1
You need:
- root (SuperSu)
- xposed framework (2.7)
- xposed module XinternalSD (4.8 )
- cifs manager or Mount Manager (1.041) / for me, this work only if I disable Mount namespace seperation in SuperSu settings tab (2.49) and restart my device.
1. create a directory on your PC with the name: internal_sd2
2. share this directory
3. create a directory in your device with the name: cifs
4. Mount the share with cifs manager or Mount Manager to your device with the mountpoint: /mnt/internal_sd/cifs/internal_sd2
5. In XinternalSD settings
- select Custom path to internal SD Card
- set the path to the mountpoint of the share : /mnt/internal_sd/cifs/internal_sd2
- select Enable for all apps (new installed apps becomes enabled by default)
- select Disable for apps and choose apps you dont want to store their data on the mounted share.
6. Restart your device
Now this shared folder becomes a internal_sd and behave like this.
If your share is disconect than selected apps store their data in the folder selected in XinternalSD on your device.
If your share is disconnected and you create a folder with the name nomount in the folder selected in XinternalSD, then you know the share is connected when this folder dissappear and vica versa.
The folder names could have other names and it would work.
Ps:
With Network Monitor Mini it is easy to see if data is downloaded or uploaded:
I use this mainly to test if sideloaded games work.
Just extract the game data and put it in the Android/obb or Android/data folder in the shared folder instead of copy to the device.
An deinstall will not delete the files.
If you edit an apk file with apk editor, the app save the new edited apk file in the shared directory.
A apk backup with system app remover does the same.
The Android Game Morrowind Port is 1,2 gb in size and contain over 7000 files.
These files normally need to copy to device storage just to know if it will run or not.
The device I use to try out things is a GPD G5A and despite I use sd_boot with plenty 14gb data partition and 44gb internal_sd partition, it would take time and the 64 gb sd card would degrade do to write cycles.
I also use an GPD G7A and an GPD G7, with the shared internal_sd folder I dont need to copy the files to each device.
A mounted folder in the storage behaves like a real folder and all apps can read this as a regular folder.
A 1tb external hdd connect via usb to a router with nas can share plenty of roms, videos or music files which would be accessed immediately, without downloading like es file explorer does.
For example in epsxe you can choose this mounted folder as it would be on your device.
The download max with GPD G5A is 4,5 MB/s and this is obviously slower than the device internal_sd, but seems to be enough. It takes a lttle bit more time to load a game compared to store it on the device, but after this you would not notice any difference.

Related

DirectoryBind Move Download Data(Gameloft, GTA3, EA)

So I was trying to figure out a good way to move the download data, I know you can patch the apk with gameloft games but everytime there is an update having to backup and patch seemed like a lot of work. GL to SD works but I was only able to get it to work with older GL games and for some reason I couldn't get it to work with Modern Combat 3.
So I found an APK called DirectoryBind in the Galaxy S2 board
http://forum.xda-developers.com/showthread.php?t=1410262
I tried it out and it works really well so far. You just set it up and forget you can open all your apps like normal. I have this setup with all my Gameloft games, GTA3, Dead Space and NBA Jam. I have 4gb available on my Internal SD and 1GB on my External as I am only using a 8gb at the moment. The only part that was weird for me was it wouldn't save my directories at first every time I rebooted my list would disappear. So backup the database when you add a new entry just to be safe.
Simple steps to bind the directory.
1: download the data to your internalSD
2: use a file manager to create the directory you would like to move the data to in your externalSD
3: Open directory bind hit menu > preferences set the default data path to /sdcard/_ExternalSD/
4: Add a new, tap hold the locations and you will be able to select the directories(a lot better then typing)
5: check the Transfer files
6: Add the bind
7: wait until the files are copied to new directory then deleted out of the old directory
8: click the disk icon to enable and enjoy.
Now if you read the OP of the APK it says that if the directories doesn't unbind when the sdcard is mounted it may crash and you would need to restart your phone to get it working again. I am not sure if this is true as I use Multi Mount so my sd card can be mounted to both the phone and computer so my ringtones and such don't default.
All the links of mentioned apps
Directory Bind (free)
http://forum.xda-developers.com/showthread.php?t=1410262
Multi Mount SD-Card ($0.99)
https://play.google.com/store/apps/details?id=com.rafoid.multimountsdcard.widget&hl=en

[Q] Super Mount app Question - how to?

Hello there, sorry for this noob question, but I am really eager to let my external SD card to work. I have checked out some of the methods like directory bind etc., although some of them do not work and even complicated for a noob like me; I saw this app called Super Mount in google play and also it was previously suggested as what i have read in the forum here in XDA regarding how to run your apps or games in your ext SD so you can save your phones' (in case my mine its tablet) internal memory, did some research, and so I have tried what I could but I cannot seem to make it work... here is the path that I have been using in the Super Mount....(the one listed below that is the example path in google play)
source path : /storage/extSdCard/Android/obb/jp.co.sega.vtc (my tablet)
mount path : /storage/emulated/0/Android/obb/jp.co.sega.vtc
vs.
source path : /storage/extSdCard/DioDict3B (the example on the supermounts screen shot in google play)
mount path : /storage/sdcard0/DioDict3B
So I was kind of trying to copy how the directory should be...and by the directory that I did, whenever I launch my game its not working....its virtua tennis by the way.....and it says i need to download the extrafile over the wifi connection, though it works fine if I install it in my internal SD and put the SD data in the OBB folder. So, I am assuming it has something to do with the mounting. I have successfuly installed Lidroid File Manager and its plug-in the Super Mount, I can mount and unmount successfuly via the plug-in, only that I cannot seem to make it work.
By the way, I have Folder Mount installed and I'm using it for some big games in the tablet. Would that affect the directory or something if I have it installed? I just noticed there's an "emulated" in the directory, would that do anything to make the lidroid not to work? I did not uninstalled it since I have games which I have already mounted via the Folder Mount and it might mess things up more, so just want to consult few experts here in the forum first. Thanks and more power
Galaxy Note 8 N5100 user.
h4ckneyed said:
Hello there, sorry for this noob question, but I am really eager to let my external SD card to work. I have checked out some of the methods like directory bind etc., although some of them do not work and even complicated for a noob like me; I saw this app called Super Mount in google play and also it was previously suggested as what i have read in the forum here in XDA regarding how to run your apps or games in your ext SD so you can save your phones' (in case my mine its tablet) internal memory, did some research, and so I have tried what I could but I cannot seem to make it work... here is the path that I have been using in the Super Mount....(the one listed below that is the example path in google play)
source path : /storage/extSdCard/Android/obb/jp.co.sega.vtc (my tablet)
mount path : /storage/emulated/0/Android/obb/jp.co.sega.vtc
vs.
source path : /storage/extSdCard/DioDict3B (the example on the supermounts screen shot in google play)
mount path : /storage/sdcard0/DioDict3B
So I was kind of trying to copy how the directory should be...and by the directory that I did, whenever I launch my game its not working....its virtua tennis by the way.....and it says i need to download the extrafile over the wifi connection, though it works fine if I install it in my internal SD and put the SD data in the OBB folder. So, I am assuming it has something to do with the mounting. I have successfuly installed Lidroid File Manager and its plug-in the Super Mount, I can mount and unmount successfuly via the plug-in, only that I cannot seem to make it work.
By the way, I have Folder Mount installed and I'm using it for some big games in the tablet. Would that affect the directory or something if I have it installed? I just noticed there's an "emulated" in the directory, would that do anything to make the lidroid not to work? I did not uninstalled it since I have games which I have already mounted via the Folder Mount and it might mess things up more, so just want to consult few experts here in the forum first. Thanks and more power
Galaxy Note 8 N5100 user.
Click to expand...
Click to collapse
I cant find this app anymore.

Storage permissions issues, Nexus 5X 6.0.0 and 6.0.1

I'm having an issue with my internal storage. Sometimes I cannot modify files or folders using either a file manager (e.g. ES File Explorer or free version of Root Explorer) or when connected via USB to my computer. For a bit more backstory, please refer to my previous thread, which has received no replies and so I am asking for help here.
Basically, I would like to be able to move files and directories freely across my internal storage. Not much to ask for, really. However, some files and folders can't be moved (cut and paste) or simply copied (copy successful, paste fails). This first started when I was on PureNexus (6.0.0, 12/01/2015) with ElementalX 0.07 and rooted with SuperSU 2.62 (not systemless root). I've since returned to complete stock 6.0.1 (flashed factory image using fastboot), and now on systemless root (2.61) for a couple apps that I use.
Symptoms are:
1. could "copy" any file, but could not paste into any directory. ES File Explorer throws an error "/sdcard/directory/file_name: open failed: EACCES (Permission Denied)". Root explorer (free version) would say "Copy failed, file_name to /sdcard/directory"
2. when connected to a computer over USB, can copy files from computer to any directory on phone's internal storage, but cannot delete anything. When I try to delete a file or folder, I get the Windows error message that the destination has been disconnected, etc., even though it's not.
3. if I've copied a file from computer to phone (say music), some files cannot be copied to another location in internal storage, some files can.
Previously when I was on PureNexus with normal root,
If I am on my device and using ES File Explorer and if I am in the path /storage/emulated/0/* then I am unable to copy/move files and directories, as I've described above.
If I am on my device and using ES File Explorer and if I am in the path /sdcard/* then I am unable to copy/move files and directories, as I've described above.
If I am on my device and using ES File Explorer and if I am in the path /data/media/0/* then I am able to do anything I damn well please.
Now that I've reverted to stock 6.0.1 from factory image and with systemless root,
If I am on my device and using ES File Explorer and if I am in the path /storage/emulated/0/* then I am unable to copy/move files and directories, as I've described above.
If I am on my device and using ES File Explorer and if I am in the path /sdcard/* then I am unable to copy/move files and directories, as I've described above.
I do not see anything under /data
Having said all of this, none of my apps have any problems accessing internal storage, be it for data, cache, or writing anything to /Android/data (or obb)/*
Is this a hardware issue? I didn't think it would be, because it doesn't seem like the internal storage is faulty, since everything else runs perfectly fine.
OK, an update to this.
After further investigation, I am finding that my issue perhaps has to do with permissions on files that have been cross copied. By "cross copied", I am referring to anything that I created by file manager or by computer, and attempted to modify using the other device. An example of cross copying would be if I created a folder called "Report PDFs" while connected to a computer via USB, and then tried to copy a bunch of PDFs into it using ES File Explorer. Inversely if I create a folder using ES File Explorer, I cannot modify it or files within it when connected to a computer via USB.
Using the File Manager in TWRP (2.8.7.2) I am able to modify all files at will, without any restrictions. It's only when I'm booted up into Android and accessing storage through a file manager app or via USB connection.
I can repeatedly reproduce this problem now. Any thoughts as to why I don't get access to files/folders due to cross copying?

Fouldermount trick for those device in which link2sd is not supported

THIS GUIDE IS ONE OF ITS KIND. PLEASE DO NOT SPAM IT ALL OVER INTERNET.
FOR THOSE WHO DO NOT WANT TO USE LINK2SD OR THEIR DEVICE DOES NOT SUPPORT LINK2SD.
BY USING THIS METHOD YOU CAN INSTALL ENDLESS APPS ON ANDROID DEVICE WITHOUT FILLING INTERNAL SPACE.
THIS IS NOT THE ABSOLITE SOLUTION OR ALTERNATIVE OF LINK2SD.
REQUIRMENTS
1- ES FILE EXPLORER
2- FOLDERMOUNT
3- EXTERNAL SDCARD (WITH R/W)
4- ROOTED DEVICE
INSTRUCTIONS
1- Install es file explorer and fouldermount.
2- open es file explorer and goto path "/data/app".
3- cut all the apps (excluding foldermount) and paste them in external sdcard inside a folder named app.
4- now open foldermount and hit the add sign.
5- hit options and select path and select the app folder inside data.
6- for destinaltion do not auto create it. select the app folder in external sdcard.
7- when done click the tic symbol. it will say that source is not empty. click no
8- now do not pair it up now. goto foldermount settings and disable mount on boot.
9- reboot the device.
10- now open foldermount and tap on the pin symbol of the pair you created. when it turns green then you can run all apps ok.
tutoral ends.
now troubles
1- after mounting you cant unmount them without rebooting.
2- if device have 1gb free space then you can install apps of more than 1gb by managng apps inside external sdcard app folder in different folders max size 1gb and mounting them one at a time.
3- this is a trick i successfulley did on samsung kitkat devices. not tested any other device.
please tell me the device name if this trick works on your device.
for any question you can ask in this post.
to contact me my gmail id is
[email protected]
i also use hangouts for conversations.
hit thanks for this hardwork of mine. it will be appriciated.
peace!
Will be trying this. Hoping to work on my device

Why is Android phone's internal storage showing twice on PC in USB-MTP mode?

Hi all,
Samsung S21 FE 5G (SM-G990B/DS) stock ROM/no root, Linux Mint 19.3, USB connection in MTP mode >> phone's internal storage appears twice in the desktop's file manager. (See image at the bottom for storage info)
There is no microSD card in the device, but a 2nd SIM-card.
Folder and file timestamps seem to match when comparing those two storages (10001, 20001) side-by-side.
Copying a file from the desktop to (10001) led to file also showing in (20001).
Having given it a swift look, I did not see where the delta of the 664 files might be. (I'll run a diff on what appear to be two mounts the next time I get access to the device.)
I did not see hidden files or folders at the top of the directory structure that is presented in this unrooted stock ROM MTP mode connection.
Any idea why the internal storage is shown twice (and how to best figure out which those 664 files are)?
Thanks in advance.
rogerwilco75
https://imgur.com/a/TtTbQcS

Categories

Resources