Bring back UMS to Galaxy S4 (Idea and WIP) - Galaxy S 4 Developer Discussion [Developers-Only]

Many Owner from a SGS4 miss the feature to use UMS... Yes its old and its completly removed. But with USB MassStorage Enable we can bring back UMS but here only for the external SD Card.
My Idea is we bring them back so we have the option to use them complete. With use both SD Cards.
Good, many User will say we dont need it and its a death feature. But i think we can look to make this possible. Users who dont need it can use MTP but user was miss this "old" feature can use UMS when they want. When i see the downloads from USB MassStorageEnabler, it give many User was would have this Feature
My question is, how can we make this possible? Witch Repos must modified? Let us talk about to make this usable and talk not we dont need them...

I know the feeling, I have tried to port it to the newer devices (s4) as well. but I didn't succeed. Anyways, it's not the fact that they are new devices but the fact that android has grown out of UMS. I also found it a shame a while ago but actually mtp works even better. the way its presenting itself is kinda lame, like a "camera/phone like device", but if you think that you can write files from your phone to sdcard, and be able to manipulate those files without any errors about mounted media, and it being ok with that, is actually kinda awesome if you think about it.
I 100% understand your concern, but I learned to like MTP. how ****ty it may feel at first. you will appreciate its gains when experiencing a lot of errors on UMS while doing the same things.
Been here, done that. and its a terrible job to de-implement this MTP and re-implement the UMS. its really not fun. although a advanced java developer wouldn't struggle to much with it I guess.
For some things its just better to leave them as they are. (I hate it when people tell me this but itś actually the truth for some cases, like this one )

I dont want deimplement MTP. I would just add UMS to the current options

The reason this can't be done isn't because OEMs don't want to add it. It's because you UMS involves exporting the whole block device over USB.
If the partition is mounted on two devices, the partition might become unstable enough that it would require a complete reformat, which is a matter of flashing your device.
To export the internal storage over USB, you'd need to unmount it. Doing that in Android will cause lots of stuff to stop working. /sdcard is just a fake fuse mount that actually resides in /data/media, so exporting the internal storage means unmounting /data.
The only way to do this right now is through recovery, and I've successfully mounted my internal storage on my PC, with all the files in /data showing fine.
I was thinking of releasing it, but not that many users would benefit from it. Windows still can't read ext4 (fun fact: it might even ask you to format it), and any device such as a car stereo will definitely not support ext4. so it's only useful for Linux users, and not much of those exist, let alone needs UMS.

MetaIIica said:
I dont want deimplement MTP. I would just add UMS to the current options
Click to expand...
Click to collapse
+1 I want to do that too. Much PC software doesn't recognize the 'portable device' (and the ext+int sd cards) .
Is there some pc software or android app that can do the trick ?

Lol, just posted this in themes and apps for the galaxy S4 T-Mobile variant. Someone willing to try on other variant? Should work.

This forum is for Devs. According to your post (OP) you are not a Dev. Otherwise you would know that UMS mode for internal SD card is impossble. At first: internal SD card doesn't use FAT file system, but fuse over ext4. At second: it's virtual SD card, it's part of /data partition which you cannot unmount without crashing Android OS.
In simple words: it's impossible to accomplish and won't happen regardles how strong your wish is.
UMS for external SD card is the only possible way for UMS.

sorg said:
This forum is for Devs. According to your post (OP) you are not a Dev. Otherwise you would know that UMS mode for internal SD card is impossble. At first: internal SD card doesn't use FAT file system, but fuse over ext4. At second: it's virtual SD card, it's part of /data partition which you cannot unmount without crashing Android OS.
In simple words: it's impossible to accomplish and won't happen regardles how strong your wish is.
UMS for external SD card is the only possible way for UMS.
Click to expand...
Click to collapse
Woah there buddy. You don't have to be a "dev" in order to post here. You simply have to be discussing developer topics here. This would fall under that because its pertaining to all devices, and pertaining to the source code of the ROM. They were asking for both UMS and MTP support, which i have successfully done in my Widget. There are just a few options to be ironed out. But you do not have any authority for flipping out on someone and posting posts like that. You are not a moderator. If you feel something doesn't belong, thats what the report button is for.

elesbb said:
Woah there buddy. You don't have to be a "dev" in order to post here.
Click to expand...
Click to collapse
I recommend to read forum description before post this.
This forum is only for high-level discussion about Galaxy S 4 development (kernel modification, coding, building ROMs, etc). **Please do not post here if you are not a developer or your post will be deleted.**
Click to expand...
Click to collapse
There are other forums for Q/A and requests.
This forum is exactly about developing, not talks like "I wanna this feature! Please, someone do this for me!"
If you are developing application, or trying to implement some functionality in the ROM and have trouble, then welcome to discuss about it here. Otherwise post in other non-dev related forum.
This topic is a good candidate to be closed according to this forum rules.
elesbb said:
They were asking for both UMS and MTP support, which i have successfully done in my Widget.
Click to expand...
Click to collapse
I know you would like to advertise your widget, but you are off-topic. There is a clear request for UMS for INTERNAL SD card. Is your widget related to usage of INTERNAL *VIRTUAL* SD card? No!
So, before trying to correct someone, please read the OP carefully. Ok?
I've answered to OP and explained why his post is completely off-topic here. You jumped here with your advertisement bringing just more off-topic.
OMG... when people start to read before post...

sorg said:
I recommend to read forum description before post this.
There are other forums for Q/A and requests.
This forum is exactly about developing, not talks like "I wanna this feature! Please, someone do this for me!"
If you are developing application, or trying to implement some functionality in the ROM and have trouble, then welcome to discuss about it here. Otherwise post in other non-dev related forum.
This topic is a good candidate to be closed according to this forum rules.
---------- Post added at 02:35 PM ---------- Previous post was at 02:30 PM ----------
I know you would like to advertise your widget, but you are offtopic. There is a clear request for UMS for INTERNAL SD card. Does your widget support it? No! And will never be. So, before trying to correct someone, please read the OP carefully. Ok?
I've answered to OP and explained why his post is completely off-topic here. You jumped here with your advertisement bringing just more off-topic.
Click to expand...
Click to collapse
Lol i was not "advertising" anything. I was simply saying "hey look what ive done, ive gotten closer to what you are trying to accomplish! Lets work together and help each other out" (which is exactly what XDA is) and no he was saying about having the internal mounted as MTP, and the external mounted as UMS. Thats what made sense to me anyhow. And you contradicted yourself, the OP was on topic as this is a ROM/Kernel/Application development, adding functionality to a ROM/Kernel, it involves coding. So from what YOU just posted, this thread is on topic for this thread.
---------- Post added at 07:47 AM ---------- Previous post was at 07:40 AM ----------
broodplank1337 said:
I know the feeling, I have tried to port it to the newer devices (s4) as well. but I didn't succeed. Anyways, it's not the fact that they are new devices but the fact that android has grown out of UMS. I also found it a shame a while ago but actually mtp works even better. the way its presenting itself is kinda lame, like a "camera/phone like device", but if you think that you can write files from your phone to sdcard, and be able to manipulate those files without any errors about mounted media, and it being ok with that, is actually kinda awesome if you think about it.
I 100% understand your concern, but I learned to like MTP. how ****ty it may feel at first. you will appreciate its gains when experiencing a lot of errors on UMS while doing the same things.
Been here, done that. and its a terrible job to de-implement this MTP and re-implement the UMS. its really not fun. although a advanced java developer wouldn't struggle to much with it I guess.
For some things its just better to leave them as they are. (I hate it when people tell me this but itś actually the truth for some cases, like this one )
Click to expand...
Click to collapse
Hey missed your post!
I actually had major issues with MTP. Especially when trying to copy large files like ROM zips, UMS just simply works. Plus i think its a tad faster (placebo effect?) Also, UMS is supported by everything, my PS3 now likes my device and i can watch movies on the PS3 that are saved to the EXT sd card. And when browsing files in MTP on computer, it seems to take forever to load them. I have a 32GB card, which is i think why.

elesbb said:
hey look what ive done, ive gotten closer to what you are trying to accomplish
Click to expand...
Click to collapse
How you are closer than for example Easy UMS app existing several years already?
http://forum.xda-developers.com/showthread.php?t=1711009
This is for SGS3, but IIRC i saw this for SGS4 as well. I just don't use this app, because i'm using script in GScript.
he was saying about having the internal mounted as MTP, and the external mounted as UMS.
Click to expand...
Click to collapse
LOL Where you read this? quote it from OP, please. May be i'm getting old and don't see
OP clearly says "I don't like to use MTP. I wanna UMS for both SD cards." Most likely OP poster were user of SGS2 or other old phone where internal SD card was a separate FAT partition.
I know what OP want from even topic title. And developer having SGS4 will know what's this topic about. And believe me, it's not about widget to switch external SD card access mode.
What you are doing is just misleading other people. First, they will think "Oh, somebody made UMS for SGS4 at last!"
Then, after installing your widget, they will say "WTH? It's for external SD card only! I already have application for this."

MetaIIica said:
Many Owner from a SGS4 miss the feature to use UMS... Yes its old and its completly removed. But with USB MassStorage Enable we can bring back UMS but here only for the external SD Card.
My Idea is we bring them back so we have the option to use them complete. With use both SD Cards.
Click to expand...
Click to collapse
From this i took, granted there is a language barrier as this was totally translated xD, that "we can mount the external SD card as UMS" and since he referenced UMS Enabler from the market, which does not allow the internal SD card to be mounted, i though he meant "With use both SD cards" as in having access to both SD cards when plugged into the computer in UMS mode. Which, is possible with my widget, to answer you quite below.
sorg said:
How you are closer than for example Easy UMS app existing several years already?
http://forum.xda-developers.com/showthread.php?t=1711009
This is for SGS3, but IIRC i saw this for SGS4 as well. I just don't use this app, because i'm using script in GScript.
LOL Where you read this? quote it from OP, please. May be i'm getting old and don't see
OP clearly says "I don't like to use MTP. I wanna UMS for both SD cards." Most likely OP poster were user of SGS2 or other old phone where internal SD card was a separate FAT partition.
I know what OP want from even topic title. And every dev will know what's this topic about. And believe me, it's not about widget to switch external SD card access mode.
Click to expand...
Click to collapse
---------- Post added at 08:03 AM ---------- Previous post was at 08:01 AM ----------
Im going to bed now. But to get back to your little rant, his thread is on topic and does belong here. Plus we could actually modify the partitions and mount points to allow for an "internal" sd card to be used as UMS. But thats some serious work.

Actually, UMS for external SD card is nice feature, but not really important since you can remove SD card and put into card reader and then read/write it on a much higher speed. My custom made kernel supports UMS by default if you switch off the phone and connect it to computer (that mode with big battery on the screen). So, i can use my phone as a external store if i will really need it urgently not at home.
So, there are many ways to use external SD card as UMS.
The main problem is internal SD card which you cannot easily manage without direct access. MTP is not as good as UMS. Especially it's buggy and not always does what expected. So, everyone finds his best way to access internal storage. I'm using sFTP which gives me absolute control over whole android device and replaces UMS (if you use your own computer with everything set for sFTP).
Your widget has nothing to do with this (OP) problem. And not even close as any other solution relative to UMS. Because UMS is simply impossible for internal SD card.
---------- Post added at 03:32 PM ---------- Previous post was at 03:16 PM ----------
elesbb said:
From this i took, granted there is a language barrier as this was totally translated xD, that "we can mount the external SD card as UMS" and since he referenced UMS Enabler from the market, which does not allow the internal SD card to be mounted, i though he meant "With use both SD cards" as in having access to both SD cards when plugged into the computer in UMS mode. Which, is possible with my widget, to answer you quite below.
Click to expand...
Click to collapse
Yep, UMS Enabler, Easy UMS - they allow to use UMS for external SD card. But OP wants UMS for internal SD card as well. Isn't it clear?
elesbb said:
Plus we could actually modify the partitions and mount points to allow for an "internal" sd card to be used as UMS. But thats some serious work.
Click to expand...
Click to collapse
Ah, anti-offtopic sentence?
Yeah.. Everything possible. Even use hammer on SGS4 to make it more slim (we aren't talking about cons, right?).
Extracting internal SD card into separate partition is not what most users would want (i'm even not talking about that it's mission impossible for most of users) because there will be tons of other topics like "I have plenty of space on internal SD card, but OS tells me there is not enough space to install APK!", or "I have a lot space in my /data partition, but game require more space for cache on internal SD card. How to do?"
Having virtual SD card sharing the same space as /data partition is much more versatile way than having them separate.
And by the way, i did it long time ago for my SGS2, but opposite way - i've combined /sdcard and /data into one partition. The same as it in SGS3 and SGS4. I know the amount of work, so believe me it's not for regular user. I'm even not talking that you cannot edit PIT file for SGS4 anymore as you could it for SGS2/SGS3.

elesbb, thank you for the help so far
and thanks for being a jerk sorg. I thank you NOT

I like that gscript idea any way to share that and let us get our mtp working.. I see both parties with knowledge here can help the community and maybe make a script for mtp and have a widget then we will all be connected like a big party of hippies holding hands around a burning VWBus. =]

okay i am not an experienced android/java developer but i would really like to give my 2 cents on this topic.
While MTP has its benefits, being stable is not one of them. I am not sure how many times I brought my Windows Explorer to crash just be trying to rename a directory/file. Uploading/Downloading most of the times work, but renaming apparently not so much. So this one of the reasons I favor UMS over MTP.
The other reason is that my car stereo simply does not support MTP and whenever I want to listen to music I HAVE to switch my phone to UMS and mounting just the SD Card is sufficient for me. MTP is not an option for my car stereo.
The third reason is simple, UMS does not require drivers. I can connect my phone to any computer even without admin rights and my phones sd card becomes visible.
I can understand the reasons why the internal space (not calling it sd card here) can not be mounted but the external sd should at least be an option to mount it via UMS.
elesbb ideas with the internal being mounted via MTP and the external via UMS sounds really like the way to go. Something like that should be implemented as an option at least to the ones (like me) who even depend on it!

I hate MTP soooo much. It sux and its slow. UMS worked great for me because i would transfer stuff from phone to ps3 hdd. Nothing recognizes MTP besides my pc

i had today tested following was based on this: http://forum.xda-developers.com/showpost.php?p=39342162&postcount=10
for our S4 it use this to change to Mass Storage in Terminal Emulator (if that fine works we can made a Script for S.Manager to use as Widget:
Steps:
Disconnect Device
now open Terminal Emulator and enter:
Code:
su
setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:33 > /sys/devices/platform/msm_hsusb/gadget/lun0/file
Connect Device with your USB-Cable
You have now Access to the external SDCard
Internal SC-Card will not work

Here the S-Manager-Scripts:
UMS-Enable
Code:
#!/system/bin/bash
setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:33 > /sys/devices/platform/msm_hsusb/gadget/lun0/file
UMS-Disable-bring back MTP
Code:
#!/system/bin/bash
echo "" > /sys/devices/platform/msm_hsusb/gadget/lun0/file
vold
setprop persist.sys.usb.config mtp,adb
Work fine with KitKat (tested with PAC-Man 4.4)

MetaIIica said:
Here the S-Manager-Scripts:
UMS-Enable
Code:
#!/system/bin/bash
setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:33 > /sys/devices/platform/msm_hsusb/gadget/lun0/file
UMS-Disable-bring back MTP
Code:
#!/system/bin/bash
echo "" > /sys/devices/platform/msm_hsusb/gadget/lun0/file
vold
setprop persist.sys.usb.config mtp,adb
Work fine with KitKat (tested with PAC-Man 4.4)
Click to expand...
Click to collapse
worked like a champ,...using stock rooted galaxy s4 tmobile on kitkat 4.4.2

Related

[ZIP][CM7] Nook Color SDcard and emmc swap!

Ok after many hours tonight I have managed to put together a couple .zip files that will install a modified vold.fstab on your Nook Color. (I am a total n00b at this)
The EMMC of the Nook Color has a partition for the ROM and a 5 GB partition that's mostly if not completely unused. Presently, there aren't any 3rd-party managers to move apps to that unused partition, so I modified the vold.fstab and am now able to use that partition for apps, files, etc.
NC.SWAP.VOLD.ZIP swaps the way the SD and EMMC directories are mounted. By swapping the mount points, and renaming EMMC to SDCARD, your apps, etc., will install to the internal storage, vs. installing to your SDCARD. Your physical SDcard is automatically mounted as "EMMC."
This also means that the music player still finds files, you can move files to "EMMC," and you can still eject the SDcard ("EMMC"), put it back in and it still shows up automatically. Now your NC won't freak out if you pull the card out without unmounting it - all of the apps are on the actual EMMC. You'd just find the SDcard under /mnt/emmc instead of /mnt/sdcard.
Because this ZIP file maps the change at an OS level, when you boot to recovery, your NC sees SD as the SDcard, so no issues occur. When you boot into your ROM, the mount points are swapped and you'll have access to the renamed "SDCARD" (5 GB) on your NC.
Use CWR 3.0.1.0 to install the .zip and check out the results with File Manager.
Thanks go out to Clark008, luciferii and Cali^Gal from #nookcolor, Loonacy and Raymondull from #Cyanogenmod, and EpicFail1236 from XDA.
Sorry if this is a bit crude, it's my first script ever. I would be happy to get any advice on how to make this better!
EDIT: I have been looking into renaming the emmc mount to say SD-External or better yet making it mount as /mnt/sdcard/sd-ext. it might be possible, ill be looking into it as soon as I can got laid up for a bit.
"Because this ZIP file maps the change at an OS level, when you boot to recovery, your NC sees SD as the SDcard, so no issues occur. When you boot into your ROM, the mount points are swapped and you'll have access to the renamed "SDCARD" (5 GB) on your NC."
/\/\ That clarifies a lot compared to the brief orig post. Will likely be flashing it this weekend.
BTW, if this expands and you need this 2nd post just have a mod give it to you. Thanks again!
BRILLIANT. Will be definitely testing this later today. Can't wait to run SD Tools on this
Sent from my NookColor using Tapatalk
it works! interesting how it'll work out as to unmounting, flashing roms. but with emmc being useless this is fantastic.
Thank you for the effort and time place in this mod
Yeah. The whole point of this was to utilize the 5GB internal emmc and not waste it. The next step is to mod the CWM to mount emmc as /sdcard so you can flash your zips from where you download them to (usually /mnt/sdcard/download), which in this case, goes to your emmc. But CWM will mount your external sdcard instead. For the time being, we can just put the zips we need to flash to the external sdcard, ie. /mnt/emmc.
I don't know if anyone noticed it yet, but if you usb mount after the swap, the transfer speed is kind of slow (~1.5mbps). I don't know if this is due to the emmc or that the read ahead cache needs to be tweaked.
We're open to make this even better. Feel free to comment and provide feedback.
This sounds like a step in the right direction, however, what I would like to see would be merging the emmc with the internal storage. What I mean is this; right now, when I go into "Storage", I see an "SD card" (8gb), "Internal Storage" (0.92gb), and "/mnt/emmc" (5gb). Why can't we combine the .93 Internal and the 5gb emmc together to make a 5.92gb Internal storage and eliminate the emmc from teh storage area? I'm sure there is a reason that I'm not aware of, but it seems that this would be the same as just about every other device. I am pretty sure the ROM is running from the emmc partition, so that has to have something to do with it, but I don't see a purpose for 3 storage places. I keep getting errors when I try to download apps and I don't even have very many installed. I have had to move most of them to the SD card to make room and some apps don't like to be installed on the SD card.
Another option would be to swap the emmc with the Internal storage. Then we'd be using the 5gb and the .92 gb would be sitting there doing nothing instead. Again, I'm sure there are reasons for this, I'm just asking to learn.
I agree.. ideally having the emmc mount be part of the system would be ideal.
Calla969 said:
This sounds like a step in the right direction, however, what I would like to see would be merging the emmc with the internal storage. What I mean is this; right now, when I go into "Storage", I see an "SD card" (8gb), "Internal Storage" (0.92gb), and "/mnt/emmc" (5gb). Why can't we combine the .93 Internal and the 5gb emmc together to make a 5.92gb Internal storage and eliminate the emmc from teh storage area? I'm sure there is a reason that I'm not aware of, but it seems that this would be the same as just about every other device. I am pretty sure the ROM is running from the emmc partition, so that has to have something to do with it, but I don't see a purpose for 3 storage places. I keep getting errors when I try to download apps and I don't even have very many installed. I have had to move most of them to the SD card to make room and some apps don't like to be installed on the SD card.
Another option would be to swap the emmc with the Internal storage. Then we'd be using the 5gb and the .92 gb would be sitting there doing nothing instead. Again, I'm sure there are reasons for this, I'm just asking to learn.
Click to expand...
Click to collapse
i have no idea TBH but thats far beyond my ability. really it would be nice to symlink emmc to the SD card or the other way around. the issue is that you cant symlink with fat partitions :-/
This is neet. I don't know enough to comment, but it looks valuble for some people.
I just use my stock emmc for music storage and let apps sit on SD w/ videos.
WobbleTheHutt said:
i have no idea TBH but thats far beyond my ability. really it would be nice to symlink emmc to the SD card or the other way around. the issue is that you cant symlink with fat partitions :-/
Click to expand...
Click to collapse
No, but you can symlink to them. Why not set vold.fstab to mount the partitions onto other names and make symlinks named /sdcard -> /othername? That way, the symlinks can do their jobs or rearranging the namespace to suit our needs.
The ramfs isn't FAT32, is it?
I'm an old cmdline type, tricks like this are used all the time to fool software with stubborn opinions about filenames.
Dennis
Jiggity Janx said:
If this works as effectively as it sounds like it will it's gonna rock! With the multiple wifi/bluetooth file transfer options I can say bye bye to the need for an sd card!
EDIT: I think this thread is eerily quiet because of the popular advice written up HERE. Specifically #5...
IMO, with a great write up on the best ways to work with this, all of the things it will affect (positive and negative), and the proper words of warning then the individuals that take it upon themselves to modify their devices are the only ones that can be held responsible if it doesn't work out as they had hoped. They also have to understand that when they work outside the boundaries of an accepted "standard" that they are somewhat desolate and will need to come back into the fold before they can/will be helped...
Just my .02...
Click to expand...
Click to collapse
This may be slightly off topic, but I cannot for the life of me figure out what that post is complaining/ talking about, I have had no trouble bouncing between HC, CM7 and stock.
All you have to do is flash to stock and then worst case you force the boot failure and the nook resets its self automatically
The last few posts on that message are myself and another person who have had not trouble with that now the OP hasn't responded so i'm not sure what to make up that post.
Is it real and an actual issue?
Or did the poster overreact to something?
Can some one please explain it to me if I am wrong about something in using a EMMC version of HC?
chisleu said:
This is neet. I don't know enough to comment, but it looks valuble for some people.
I just use my stock emmc for music storage and let apps sit on SD w/ videos.
Click to expand...
Click to collapse
Seems neet to me also. Always interested in using both emmc and sd space.
@ chisleau - I like the concept of putting all my music on emmc. Do you use an option in CM7 to install or move all your apps to your SD card?
thinking out loud (and not actually doing it) -- but we know that /data is /dev/block/mmcblk0p6 and and the "media" or "emmc" is located at /dev/block/mmcblk0p8 -- can't we just repartition and merge the two?
minotauri said:
thinking out loud (and not actually doing it) -- but we know that /data is /dev/block/mmcblk0p6 and and the "media" or "emmc" is located at /dev/block/mmcblk0p8 -- can't we just repartition and merge the two?
Click to expand...
Click to collapse
We can repartition but don't do it for this Reason -#5 http://forum.xda-developers.com/showpost.php?p=12494638&postcount=1
http://forum.xda-developers.com/showpost.php?p=12494666&postcount=2
ROMs that follow proper packaging - This emmc swap mod is one of them. So we're fine for those who are still hesitating.
Clark008 said:
ROMs that follow proper packaging - This emmc swap mod is one of them. So we're fine for those who are still hesitating.
Click to expand...
Click to collapse
Yep, I was hesitating, but between your post above and the "Thanks" from fattire to the OP, that is all the encouragement I need to take the plunge.
A few questions, tho, if someone can help me to understand this better....
I guess until I saw the OP, I did not realize that all apps in CM7 are installed to the SD card, as when I look at my installed apps in App Mgr, they don't show as being on the SD card. Is this some sort of CM7 voodoo or are my apps really on the internal memory?
Right now, with CM7, I am using the EMMC partition to store my music, under "My Files/Music". Power Amp can see this folder and it will play all my music just fine from within that directory on the internal partition, so if I install this update, what will that do to the 5Gb of internal storage I have now and the music on it?
Also, if I do install this update, what will happen to the apps and their associated data that I already have installed? Is this best done on a fresh build or will everything (apps/data and music) be A-OK after the Swap update is applied?
Just want to know what I am getting into by applying this update, as I have things pretty stable right now. If I could roll with apps on internal and music on SD, I would be more than fine with that, as long as I don't lose any of my apps/data/music in the process. If this is just mere partition re-naming/re-pointing, then I suspect my assets will remain intact?
Thanks to all who collaborated on this project!
why can't the entire internal partitions be imaged?
i use dd all the time to backup my sd card installs in case a test kernel or nightly goes poorly- or to burn a fresh install for multiple people. I just pop in the sd card into my laptop and burn the image back to the sd card.
if this was possible i'd have no issues with running off internal entirely if i could just burn the img. and get everything back as stock, including important device identifiers incase those were erased.
Need undo
This did what it's supposed to do but it seems to be causing a problem with the way I'm booting from sd. Is there a way to undo this?
Bump since I found this useful. +1 for CWM sdcard/emmc swap to enable SDcard-less flashing goodness from ROM Manager.

Internal Storage showing up as SDcard... What's going on?

I don't have an SD card in my phone, but when I go to an app like Aldiko(book reader) and try to access a file, I'm able to explore higher level directories than normal. When I first browse for a file I'm in the area that my phone calls internal storage, but if I go one level higher I see that its actually mounted under the name SD card... What's going on? Why does this app see it as an SD card and why is it mounted as an SD card?
just like the samsung galaxy s phones, the 16gb internal storage is considered 'sdcard' to the system. your external sd is called sd-ext i believe
Wait, so if a tutorial says something will be written to your SD card, should you assume internal storage if you don't have one and external if you do have one? I was looking at the tutorial here: [it won't let me post the link because I'm a new user... google this and its the first result: "how to fully backup and restore your android"]
and it said "This image will be written to your SD card which you are then free to copy around and back up on your computer."
well. this phone isnt like a lot of other android phones. like the galaxy S line, there is more onboard storage than what prior phones had. a lot of the older phones came with 512mb/1gb/2gb/4gb of onboard storage that the OS resided on, and you had to add an sdcard to give yourself enough storage for music/pictures/backups/etc
i suspect you will see a lot more of this same thing in the future as flash memory gets cheaper and cheaper, and manufacturers begin putting more and more storage on board.
as for your link, you do realize that the atrix isnt like ANY of those other phones listed as examples?
nandroids dont work quite the same with the atrix
Pirateghost said:
as for your link, you do realize that the atrix isnt like ANY of those other phones listed as examples?
nandroids dont work quite the same with the atrix
Click to expand...
Click to collapse
I did not realize that. I'm an expert with apple but a n00b with android. So you're saying I shouldn't use that guide? Any other suggestions to backup then?
gsingh2011 said:
I did not realize that. I'm an expert with apple but a n00b with android. So you're saying I shouldn't use that guide? Any other suggestions to backup then?
Click to expand...
Click to collapse
you cannot flash CWM recovery on the atrix like you can a lot of other devices (for which that article was written for)
http://forum.xda-developers.com/showthread.php?t=1019143
I'm having some trouble with that. I'm going to continue with this question in this thread even though the topics changed, let me know if you want me to make a new thread.
The first thing I did after installing the CWM recovery for the atrix app was click the install recovery button. It said install successful. I assume this made a backup image of my phone's ROM. Then I clicked recovery mode and I tried booting holding the down key and selecting fastboot. I also tried some other options like RSD... I think I'm missing something though because the screen just got stuck on the "starting fastboot" line and I had to remove the battery each time it gets stuck to reboot it.

[Q] Mounting Internal SD Card Help

I'm not able to get the Internal SD card to mount after installing the pre-beta cyanogenmod 7. Is there some setting I'm missing or something that I need to do in particular?
Prior to install I was on the alien build and everything worked fine. Now when I go to the root directory using RootExplorer it says 'the sd card is not currently mounted'.
I've had my atrix for a while and i'm not a complete noob, just not an avid poster. Any help would be appreciated.
Edit: I have checked the storage menu and i do have 1.17GB of free space.
It can be found under /mnt/emmc. Unfortunately, I have to inform you for future reference that this is the wrong forum for such a question. Q and A exists for a reason, but I hope I helped.
Please post in the correct sections. Thread moved.
MyronJ906 said:
It can be found under /mnt/emmc. Unfortunately, I have to inform you for future reference that this is the wrong forum for such a question. Q and A exists for a reason, but I hope I helped.
Click to expand...
Click to collapse
Thanks for the help. I found that but how do I get, for example, Rom Manager or other applications to recognize that location?
Mr Clown, My apologies for posting in the wrong section.
nalomo said:
Thanks for the help. I found that but how do I get, for example, Rom Manager or other applications to recognize that location?
Mr Clown, My apologies for posting in the wrong section.
Click to expand...
Click to collapse
+1 wondering the same
i would also like to know, as i have only a class 1 microsd card and it creates wakeup lag. if i take it out, there is no wakeup lag but my phone wont recognize the internal storage.
I think it varies by application. Some will let you browse there and set it as a default directory for things, but many will not. I have just gotten used to having duplicates of random stuff for now :S I think it is pretty unfortunate, but it is what it is.
Maybe someone will develop something like this:
http://forum.xda-developers.com/showthread.php?t=1034939
http://forum.cyanogenmod.com/topic/20724-nook-color-sdcard-and-emmc-swap/
http://forum.cyanogenmod.com/topic/27030-questions-on-5gb-emmc-just-hacked-nc/
That's for the Nook, but I can't see why someone couldn't do that for the Atrix. However, I would imagine it won't be our own CM7 team because their task is to port CM7, and thus they are following the CM standards.
I have this problem too, i dont hae a external SD Card
im used to the internal 16 gb as my memory
now iwth CM7 , the phone is lost, browsr wont download, titanium wont find the sd card, nothing is working
so is an EXTERNAL sd card a pre-requisite for CM7, i never knew this..
and if so, what does CM7 do with the huge internal memory if it saves everything to the external (atleast thats where apps see it)

Swap internal storage with external storage(/sdcard with /sdcard/external_sd/)

I'm trying to get more storage by swapping them but having trouble found so. I tried most of the other internal external swap tutorials but they haven't work either. Is there an guide compadible with the optimus g or does any one knows how to do it. Thanks in advance. Currently on Tom the base 0.7.3 I believe is the version.
This wont answer your question but remember something. Memory can fail and the more its written to and read from the more chances it has to do so. Now im not saying using your internal memory would break your phone. You could use it for years and have no problems at all. But if and when it does fail wouldnt you rather it be a replaceable external sd card?
Look here: http://forum.xda-developers.com/showthread.php?t=1422158
I already tried to do some research on it. But I didn't want to mess up my phone to try to get it to work. I know that it would have to be edited to match our dev blocks and mount points but I'm not a dev and would be blind trying to get it to work. I did how ever do the next best thing to recover some space; see my thread here: http://forum.xda-developers.com/showthread.php?t=2056662.
If another dev or experienced person could get the SD Swap working it would be great. I used it for the longest and never had issues. Also, even with the SD Swap if you booted without an External SD Card the swap wouldn't occur and it would use the internal sd. It was perfect.
First thing I did when I realized this internal/external sdcard thing was to open up my terminal app and attempt a simple symlink (deleting sdcard and putting a symbolic link in its place to external). when I got the error message, the hideous reality of it hit me... this is linux on fat32 filesystem. :vomit:
Joecascio2000 said:
Look here: http://forum.xda-developers.com/showthread.php?t=1422158
I already tried to do some research on it. But I didn't want to mess up my phone to try to get it to work. I know that it would have to be edited to match our dev blocks and mount points but I'm not a dev and would be blind trying to get it to work. I did how ever do the next best thing to recover some space; see my thread here: http://forum.xda-developers.com/showthread.php?t=2056662.
If another dev or experienced person could get the SD Swap working it would be great. I used it for the longest and never had issues. Also, even with the SD Swap if you booted without an External SD Card the swap wouldn't occur and it would use the internal sd. It was perfect.
Click to expand...
Click to collapse
Thanks. I have already tried the first one and it failed. But the secound one aka. Your tutorial is the next best thing. Saved me a load of space. Thanks man.
This was on the XDA home page today. http://forum.xda-developers.com/showthread.php?t=2036796
Can anyone with more skill and knowledge adapt if for our device??

Mount external SD Card as Mass Storage on PC: App

Hi folks,
I own a Padfone S, and the thing which bothered me about it when I got it was that it (like every KitKat device) uses MTP protocol for transfer of files to PC instead of USB mass storage (UMS), which in my opinion is a really good thing with regard to the phone's internal storage, but which was a really bad decision by google with regard to external SD cards.
It took me a really long time of googling and trying things I found on the internet until I finally found something that works for me, so I thought maybe I write my solution down here for others to find. All the apps I could find on XDA developers for that purpose didn't work for me, probably because they were written for different phones (what I could find here were apps for Sony, Samsung and LG devices).
What you need:
a rooted Padfone S (probably works on X as well)
an app called "USBMounter_v1.1_Panda"
For your convenience, I have attached the app. Now, what's funny about this app is that I couldn't find any reference to it on any of the sites written in a language I understand (English, German and a bit of French), I just happened to find this app while googling by accident, seems to be written by some Chinese or Taiwanese guy. I thought this was noteworthy, as of course I can't tell you anything about the app's origin, reputation or license, since I don't understand a word of what's written on any of the sites which have this file, but since it's publicly available on so many mirror sites, I think it's okay to share it with you. But keep in mind, use at your own risk (I personally didn't see any signs of malicious behaviour).
How to make it work:
install app
unmount your external SD card
enable USB debugging
open app, and set switch to UMS
connect your device to PC
You will see your SD card in your Windows explorer as a drive with a drive letter, just the way it used to be with every Android device in the good old days.
Now, it is VERY important that you unmount your SD card from your device BEFORE using it with your computer! If you forget that, the SD card will still appear in your Windows PC's Explorer, and at first file operations seem to be carried out normally, but you'll soon end up with inconsistencies in your file system! Sort of makes sense anyway, two devices accessing a file system at the same time doesn't seem to be a good idea.
Unfortunately, I still haven't found a working widget to mount/unmount my SD card, so I always have to go to the settings screen to do that. I tried the "Switch Pro" widget from the Playstore, which supposedly has a mount/unmount functionality, but that doesn't work with the Padfone S, when I tap the relevant button, nothing at all happens. So if anyone knows of a solution to mount/unmount SD card with a shortcut, feel free to post it here.
Finally, two more pieces of information:
My Padfone is on the latest stock rom (UL-ASUS_T00N-WW-11.10.7.18-user), the only changes I have made to my phone is rooting (of course), and chaning the recovery to ClockworkMod.
My SD card is a 128GB MicroSDXC, formatted in NTFS. The Padfone is able to handle this SD card, both size and NTFS file system do not cause any problems at all.
Well, I hope my post can help a few people who want to make the most of the Padfone's SD card slot. ^^
Have a nice day!

Categories

Resources