app2sd how does it works? - Hero CDMA General

hello every body i am new in the android community.
i've just got a htc hero.
i've rooted it at http://theunlockr.com/ by using the
How To: Root Your HTC Hero in One Click! methode.
now i've put the modaco custom rom in by useing the recovery image.
so i've put it in the sd rename it to update.
applyed it in the recovery image so i've got a new rom.
and what now? to put apps to my sd?

Back up your as card. Go into recovery loader again. Use the format as: fat / ext / swap
I think modaco and fresh both default aps2sd so nothing else is required other than removing and reinstalling your apps so they get put on the sd.
Good luck and make sure you do step 1!

so anytime you install an app from the app market, it will automatically install on your sd card? (i have modacos rom) and how can you check to make sure it does?

all of my apps are on my SD card, maybe with the exception of WiFi teether since it is in the rom and I think needs to be in /system/ to work.
It's nice, my apps are persistent with factory resets and rom flashes.
If I pull my SD card they stop working, if I put it back the spring back to life.

so you dont have to install any apps for this to work, you just have to partition the sd card?

1. Backup your SD card, the Repartition wipes everything out
2. Boot into recovery
3. Run the Partition Fat16/EXT/Swap
4. Reboot
5. Reinstall your apps so they are moved to the SD card.
In really basic terms we trick the phone into thinking nothing happened but we move the App directory to the SD card and point to the card instead of internal memory.
You have to understand how the linux kernel works to really understand the whole "don't have to install software". One of the things Linux beats the crap out of micro$oft about is "things just work".

Related

wierd htc hero problem help save my phone!

Today it opened my phone and it shows my sd card as damaged and all the apps are crashing all over the place, so i reverted to a backup and same deal, i installed the stock htc hero rom and it worked fine, i did a wipe and installed modacos 3.1 again and it finished but all the apps started crashing again and it had all the apps that i had installed previously, how do i restore my phone to a clean stock version of modaco 3.1 without keeping all my apps installed!?
mike390 said:
Today it opened my phone and it shows my sd card as damaged and all the apps are crashing all over the place, so i reverted to a backup and same deal, i installed the stock htc hero rom and it worked fine, i did a wipe and installed modacos 3.1 again and it finished but all the apps started crashing again and it had all the apps that i had installed previously, how do i restore my phone to a clean stock version of modaco 3.1 without keeping all my apps installed!?
Click to expand...
Click to collapse
Sounded weird, can agree with that. Are you using apps2sd? Try do a backup of your sd-card, format it, wipe and install ROM. Dont restore a backup or something.
Now copy ur files back to the sd-card and see if it makes any difference
Yeah, it sounds like your ext2 (or ext3/ext4) partition for apps2sd is corrupt. It may even be an issue with your SD card. SD cards are not optimized for ext2/3/4 partitions, and as I learned through running android on my Vogue, it's rare, but your SD card can become permanently damaged by using this filesystem on it.
If formatting your SD card like sinnadyr suggested doesn't work, I would re-partition the entire card, making your FAT32 partition smaller by maybe 512MB and have everything else the same size. This will obviously result in 512MB less usable space on the card, but at that point I don't think you'd have another option anyway.
(I may be off about the size of 512MB... I'm tired and drunk and can't be bothered to look up the actual size of the swap/ext2 partitions.)
If all else fails, try a new SD card.
Your Hero can be saved
Ok... I've had this... and this is how I solved it:
-save what you have to from sd to pc
-format sd
-partition from scratch
-reboot
-put what you saved previously back on
-done
sounds easy, but it actually took me AGES in between finding out and doing it.
In my case it was due to a combination of using a program to move the cache to SD AND mounting the SD card WHILE some app was doing something (APP2SD was enabled). All I know is I never used the cache to SD program again and 3.1 is now running smooth on my hero.
Good luck
Ciao
p.s. If the steps above do not seem to work just do all the Wipes, load another rom, play with it for 2 mins, then re-do all the wipes and start off. I know I'm being a bit confusing but trust me, problem will be solved eventually. Just make sure u have plenty of time when u start the whole process
V.
There's a guide somewhere how to repartition your SD card through ADB, this is what I did when the same thing happened to me and the partitions were corrupted.

[HOWTO] WORKAROUND for BELL i9000m Internal SD Card Failure!!!!!

Hello Everyone,
I like most people upgraded my Bell i9000m from Kies to Froyo, only to have it bricked with the "can't mount /dev/block/mmcblk0" error at the recovery screen during boot-up. I upgraded it last week, where it took the firmware from JL8 to I believe JK3 or JL8 (not sure at this point).
Unfortunately I bought my phone from some guy on Kijiji using it on Rogers, so I doubt Bell is going to handle the return or give me any love
Anyways, I spent many days long days trying to get it back working, and I found a work-around that requires using an external SD card. and going back to Android 2.1 ECLAIR
Steps (This is what I did):
1. Install JK3 stock ROM via Odin (with re-partition at the pit on samfirmware.com, didn't update boot loader)
2. Install K13c speedmod kernel via Odin
3. Insert 16GB External SD card
3. Boot phone to Froyo
4. Reboot to recovery console and wipe data/everything
5. Install JL8 stock ROM via Odin (no re-partition, didn't update boot loader)
6. Phone will boot-up into recovery mode and automatically do wipe data
7. Phone will boot into ECLAIR
8. You will see internal storage of 1.85GB free.
9. Install Market apps - I installed twitter
10. If you remove external SD card, twitter will crash.
11. If you reboot phone without external SD card, you will get rebooting logo
12. If you put external SD card back it, phone boots!
This wasn't a fluke - I was able to reproduce if I flashed other ROMS (XXJPY or similar) instead of JK3.
Background:
Even though the phone can't boot with stock ROM, if I install JK3 ROM + speedmod K13b speedmod kernel, I can get the phone to boot to Froyo, but there is no internal storage (it shows up as 0 bytes available). So you can't install Market apps, and therefore is useless. I can't even mount the external SD card under the Settings app!
So I tried to log in the Froyo device using adb shell, and what I found is that internal SD card is no longer showing up under linux, and the OS thinks that the external SD card is the internal one. This is probably why the external SD card can no longer be mounted.
I figured out that the external SD card shows up as /dev/block/mmcblk0!!! WHich is the same block device as the internal SD card...so I'm thinking if I reboot into recovery and format SD card, how come it's not working? I even tried to partition the external SD card with android partitions, but still nothing!
I think Froyo is 'smarter' in that it knows the external SD card is not internal (whether it's grepping the device-info for manufacture data, don't know).
But if I go to JL8 Eclair, the Android 2.1 is 'dumb' enough that is doesn't see the difference between internal and external, so formats the external to look like internal.
Once I boot to ECLAIR, the external SD card is greyed out under Settings app, but I get 1.85GB internal storage!! OK I can't access the whole 16GB of the card, but at least my phone is not toast.
I can go ahead an install apps, which will install to the external SD card. But if you remove the external SD card, the phone will no longer boot. If I remove the card and apps are running, apps will crash (case in point: I tried twitter).
It will be nice if others can re-produce my findings. But for now my Samsung Galaxy S has been saved!
Kashif Shaikh
this sounds promising, can some more people confirm this solution to use External SD to imitate internal SD?
It worked for me as well! I have i9000M version, with internal SD failure. I'm also using 8GB external microSD card. I tried several 2.2 Android firmwares - specifically I9000XXJPY, I9000XXJPU. With update to speedmod-kernel I'm able to load device, but it doesn't see neither internal nor external SD card. So I couldn't install any applications, upload data or even shot with camera.
Based on this thread, on top of XXJPY with speedmod kernel I uploaded I9000XWJM8 firmware (Android 2.1) with Odin 1.7, no repartitioning. It worked right away - device loaded and I can see ~2GB of program storage (assume they storage is located on my external card). Both internal and external cards are shown as "Not available" in settings. I can install applications now, which made "brick" a bit better then it was before. Unfortunately, I still can't upload any data, i.e. a book for FB2Reader. And can't make a photo with my camera. And it's now Android 2.1, which looks slower.
First of all - thanks for the advice! It would be good to have this topic "sticked" and distributed - there might be other guys with no chance to repair phone under warranty.
Secondly - if someone can do a "hack" for Android 2.2 firmware so it can use external SD card for program storage specifically for I9000M device? And it would be terrific, if the remaining part of SD card (or at least some fixed size, like 4 GB) can be mounted as storage, so the data like music or photo or books can be uploaded.
I'm able to connect to the phone using adb tool, but I can't find a folder on the device where I can upload (push) a file to. I'd like to upload a book to the device so I can finally use it as a reader. I tried all "root" folders (adb shell -> ls) and all don't work. It says "No such file or directory" or "Permission denied".
Is there a folder on the device which I can push file to using adb tool? Maybe somewhere where applications are installed to, i.e. Program Storage location. Please help!
Anyone else following this thread with I9000M with internal card dead?
This isn't much of a fix. This will only work with phones with slightly corrupted (and not fully corrupt) sdcards; eventually your phone will probably stop booting with this "fix" as well. You're going to eventually loose some of the other partitions such as stl10 to corruption, and then you're screwed.
The OP's phone is corrupt in a specific way that allows this - and there are various procedures that will get your phone to a semi-bootable state if you only have a partially dead sdcard. Like the OP said - just installing speedmod kernel with an external SD in will allow your phone to boot, for example (I got my dead sd i9000m to boot froyo with the speedmod kernel, and others had reported the same as well). Then if you're technical enough you can switch around your mount configs and get it to work without the internal mmc device.
It doesn't matter if you bought your phone off kijiji or craigslist 2nd hand; send it back to samsung (or go thru futuretel or a similar provider). No receipt is going to be required (if they ask... just say you can't find it). Products like this will always be repaired under warranty based on manufacture date code.
Send your phone back; don't try to fix it - it's a hardware problem with the mmc connection.
Unfortunately, I'm 10 thousand miles away from Canada with no chance getting there. If I had option to send it back for repair I would do it right away. So I'm searhing an option to use this semi-brick as much as possible.
My i9000M phone has totally corrupted internal SD card - it failed two months ago and I tried all options for it reformatting / remounting / whatever. With speedmod kernel it loads even without external sd card. It just allows loading without internal storage - not use external card to mimic internal. Unfortunately, it doesn't see any storage then - no internal, no program, no external card. So it just loads.
With Android 2.1 and external card it loads _and_ see 2GB of program storage (on external card). It doesn't see any other storage - so I can't upload any file. But at least I can install applications.
I'll try this solution after buy a Microsd card. My i9000M internal sdcard dead in two days ago after fixlag use ext2 partitions.
hi all. i didn't find JL8 stock ROM for sumfireware.com.where can find it ?
i flash my phone step by step as top post.
but after flash 2.1 rom with insert SD card , my Phone still cannot boot into ECLAIR .
who can help me? thanks. my phone can boot to 2.2 system without internal card.
SHINE.YANG said:
hi all. i didn't find JL8 stock ROM for sumfireware.com.where can find it ?
i flash my phone step by step as top post.
but after flash 2.1 rom with insert SD card , my Phone still cannot boot into ECLAIR .
who can help me? thanks. my phone can boot to 2.2 system without internal card.
Click to expand...
Click to collapse
Samsung or bell can help you. Send your phone in for repair....
for same reason .i cannot send my phone to bell. so i very want to know find JL8 rom to let me phone canbe use . please help.
HI guys . thanks for your help.
actually ,every I9000 2.1 rom CAN use this solution. just need your external SD same as your phone internal SD size. if you are 8G internal SD , you must use 8G external SD card with 2.1 ROM . you can get 1.85G system space.
I've just tried XWJVB firmware - stock Android 2.3.3 - and it also works! Phone loads without flashing custom kernel.
I wonder, if there is a way to upload any file to the phone - so I can put there a book and read it.
does this mean this workaround still can't recover the files that were originally in my internal sd?
Nope. the internal sd is gone, probably forever.
workaround allows running the phone and having 2GB out of microsd card available for programs storage. it allows downloading and installing application from app market. still, you don't have other storage - can't upload a file or even make a photo with camera.
very wierd. if anyone would suggest a workaround to upload file to the device - even using any hacked way, like from abd or whatever
I flashed custom Kernel (CF-Root-XW_XEE_JVB-v3.1-CWM3RFS) over latest JVB. The device is now rooted.
Using adb tool I was able to push fb2 file to device - specifically to dev folder. (adb push file.fb2 /dev). Using Moon Reader I can open and read it! That's terrific after long time of finding a way of doing this.
Unfortunately, Moon reader is the only app that works. FBReader tries to open the book but fails with writing cache to sd card (which is broken).
This is a most useful post, thank you. I get the phone working on 2.2 which is great but I am unable to find the JL8 stock ROM, I locked for it everywhere but could not find it, would someone please indicate where to find it...
raullugo said:
This is a most useful post, thank you. I get the phone working on 2.2 which is great but I am unable to find the JL8 stock ROM, I locked for it everywhere but could not find it, would someone please indicate where to find it...
Click to expand...
Click to collapse
Why would you need old stock ROM?
Just flashed XXJVP stock ROM to my I9000M. This is Android 2.3.4. Taken from http://forum.xda-developers.com/showthread.php?t=1011901
Flashed CF-Root-XX_OXA_JVP-v3.7-CWM3RFS on top of it for rooting
Phone works
It needed some tricks this time to upload a file to deivce. For some reason all folders appear to be read only, including dev. So I used abd shell command to change folder permissons
adb shell
$ su
# chmod 777 /data
then exit and
adb push file.fb2 /data
File is stored and is not lost on reboot, like it was for dev folder
stuck on step 6..
first of all, this is a great post for those who still stuck with a dead i9000m and no help from Sammy!
Steps (this is how i followed)
1. fine
2. fine
3. fine (i inserted a 16gb Sandisk class 2 in FAT32 format)
3a. i couldn't 'boot to froyo' i'm not sure if you mean fully boot into the OS or not, but it was in a bootloop
4. i was able to get to step 4 somehow to the recovery (3e) and wipe data (there was still the cant mount error when wiping data but no error when wiping cache partition - is that normal?)
5. i cant find JL8 but others here suggested any other 2.1 ROM works so i tried JM8 (no repart/no update bootloader)
6. the phone did do something other than boot loop! (first time wow!) it was trying to copy something but it didn't go all the way through.. there was an error saying 'efs format failed /dev/block/mmcblk0p2' after/during 'coping media files'.
- could it be the wrong format going in (should it be something other than FAT32?)
- could it be that class 2 was not the right class (no fast enough??)
- the copying process stopped after it finished copying media files.. (the micro sd card did have some media files
- there was 2 folders Samsung folder (with media files) and svox (i think that was the name of the folder)
can anyone shed some light on where i did wrong, thanks everyone, love this forum btw.
pavbul said:
Why would you need old stock ROM?
Just flashed XXJVP stock ROM to my I9000M. This is Android 2.3.4. Taken from http://forum.xda-developers.com/showthread.php?t=1011901
Flashed CF-Root-XX_OXA_JVP-v3.7-CWM3RFS on top of it for rooting
Phone works
It needed some tricks this time to upload a file to deivce. For some reason all folders appear to be read only, including dev. So I used abd shell command to change folder permissons
adb shell
$ su
# chmod 777 /data
then exit and
adb push file.fb2 /data
File is stored and is not lost on reboot, like it was for dev folder
Click to expand...
Click to collapse
Thank you for the instructions, tha only reason to look for the jl8 rom is to follow the instructions to the letter. I trying your method right now, thank you for taking the time to give me another shot at my SGS, I will let you know how it goes

2 questions...

Hi!
I forgot to format my SD card when I installed android, so I was thinking doing it now (just in case, it might get a little better). Do I connect the phone and do the formating through ''My PC'' ? (I don't have a SD Reader or adapter) Or i will have a problem with that?
I've installed Frankstine, and its very good, but I want to test a few so I choose wich one I keep is there any other cool rom? (I'm looking for some rom with Sense )
Thanks!
you can simply format it from android or CWM. if you format it from windows however make sure you keep FAT32 file system, android doesn't recognize ntfs
Some ROMS write files to the sd card for use with the ROM,so formatting it may cause the ROM to stop working properly.
You should really format your sd card BEFORE you install a new ROM.
After you format it you want to make sure you have the correct partition for the ROM you want to install.
ALWAYS BACK UP YOUR SD CARD BEFORE YOU DO ANYTHING TO IT.
P.S. check my sig for a good sense ROM
Yeah keep backup of everything that you want in a folder on your PC. Do you know what program you need to create an Ext partition with? If you do well then its easy.
But I suggest you buy a card reader - they're not too pricey and they will always come in handy. The easiest way to do it is through MAGLDR (supposedly buggy but I've never had any problems personally) or CWM. I've found that using CWM I would regularly get 'Bad Disk' on Minitool after using it though. Don't do it when you're booted up in a ROM as it might mess up the ROM, and some ROM's that use Data2SD make sure you don't mount your SD card while using it as it will most likely cause your phone to reboot and it won't mount, so its useless basically.
Btw, good to see you getting Android working or your HD2 haha.
Sent from my HTC Vision using XDA App

[Q] Help i can't flash roms. Tried several ways

All this on a new vibrant using the stock 2.1
I've rooted the phone with one click. I've used oneclick as admin to run the 3s update.
I have update.zip loaded onto the root of my phone(not sd card)
I have clockwork recovery on my phone and i have done a backup
I have booted to recovery mode from Rom Manager then when i try to install zip from sd it takes me to a directory.
I select zip from sd card
I select sd/ and my nothing is showing there just keeps taking me back to the directory and telling me "no files found"
Sooo then i tried flash rom from sd in rom manager and it starts to flash then give a message "no sd-ext found. skipping backup of sd-ext" then it tells me to reboot.
What am i doing wrong I've been working on this since yesterday morning with no success.
sd-ext is the external sd card not the build in 16gb.
Put one microsd in with the rom you want to flash.
You need to put the rom you want to flash in the internal sd card, not the external sd.
djquick said:
You need to put the rom you want to flash in the internal sd card, not the external sd.
Click to expand...
Click to collapse
I had done that in the first place and then when i went to boot the screen was all distorted and i couldn't see what it said so i flashed the stock rom back.
I just tried again and it said to reboot so i did and now my toxic rom seems to be working just fine. Thanks for the input

heres my gameplan for buddies phone.. what u think?

hes got a sprint cdma hero that he is complaning that theres no room to install programs and its slow.
he has a 8gb sdcard in the phone and another spare
today i tried rooting but it appears that the phone is already rooted
installed titanium backup and backed up all his apps to the sdcard
installed sms backup and restore, backed up to sdcard
went to contacts, settins, and exported to sd card
Q. I rooted and custom romed my other buddies phone and not all his contacts were exported. Is there something else i need to do to get all contacts backed up?
Q. i couldent find "Call Logs Backup & Restore" in the market. Do i really need it?
ok so this point i plan on plugging the phone into ubuntu, and copying all the data on the SD card to my laptop. This should backup all his pictures, contacts, craps onto my laptop.
Then i will install clockworkmod recovery from market. Reboot into recovery.
The use ADB to manually partiton the 8 gb SD card
1 - 7.5GB FAT32
2 - 512MB ext4
3 - 32MB swap
Q. Is this sound like a good layout?
Now that the card is partitioned i will install clockworkmod via the market and make a backup of the current system state, just incase he wants to go back to original. and copy the new rom from the laptop to the sdcard
as far as roms / kernels
i am overwhelmed and confused by the choices, he just wants something fast without bugs and without the sprint preloaded crap. But i dont think he wants any fancy custom hacker looking ****, just something plain fast and works.
Q. would cynagonmod be a good choice?
Q. Do i need to load a custom kernel in addition to loading the ROM ?
Q. after the new rom is installed is that when i copy his original sdcard data back to the newly formatted sd card?
sorry about the questions, this is a guy i work with and i wanna show off my leet, but i dont wanna **** his phone as hes goin on vacation soon and needs it to just work. I have a galaxy tab, acer tab, but never messed with a htc phone. i am curious to hear if this sound like the best way to go at it?
thanks
gophet said:
hes got a sprint cdma hero that he is complaning that theres no room to install programs and its slow.
he has a 8gb sdcard in the phone and another spare
today i tried rooting but it appears that the phone is already rooted
installed titanium backup and backed up all his apps to the sdcard
installed sms backup and restore, backed up to sdcard
went to contacts, settins, and exported to sd card
Q. I rooted and custom romed my other buddies phone and not all his contacts were exported. Is there something else i need to do to get all contacts backed up?
Q. i couldent find "Call Logs Backup & Restore" in the market. Do i really need it?
ok so this point i plan on plugging the phone into ubuntu, and copying all the data on the SD card to my laptop. This should backup all his pictures, contacts, craps onto my laptop.
Then i will install clockworkmod recovery from market. Reboot into recovery.
The use ADB to manually partiton the 8 gb SD card
1 - 7.5GB FAT32
2 - 512MB ext4
3 - 32MB swap
Q. Is this sound like a good layout?
Now that the card is partitioned i will install clockworkmod via the market and make a backup of the current system state, just incase he wants to go back to original. and copy the new rom from the laptop to the sdcard
as far as roms / kernels
i am overwhelmed and confused by the choices, he just wants something fast without bugs and without the sprint preloaded crap. But i dont think he wants any fancy custom hacker looking ****, just something plain fast and works.
Q. would cynagonmod be a good choice?
Q. Do i need to load a custom kernel in addition to loading the ROM ?
Q. after the new rom is installed is that when i copy his original sdcard data back to the newly formatted sd card?
sorry about the questions, this is a guy i work with and i wanna show off my leet, but i dont wanna **** his phone as hes goin on vacation soon and needs it to just work. I have a galaxy tab, acer tab, but never messed with a htc phone. i am curious to hear if this sound like the best way to go at it?
thanks
Click to expand...
Click to collapse
Q. would cynagonmod be a good choice?
Yes
Q. Do i need to load a custom kernel in addition to loading the ROM ?
No
Q. after the new rom is installed is that when i copy his original sdcard data back to the newly formatted sd card?
Yes
I wouldn't do the swap partition tho. It will kill the SD card in a less than a month. Cyanogenmod and AOSPCMod are good choices and have settings under the Cyanogenmod settings for memory management and caching so the swap partition really isn't needed. It wouldn't help unless it was at least a class 6 sd card too.
fpineda thank you for the prompt reply
Yea, Cyanogenmod 7 is best. Make sure it's the Heroc one. It will say "aospCWMod-HEROC" on the file name, then the version number. Download it and copy it to the root of the microsd card.
I also agree with gophet about partitioning the SD card. Just leave it alone. You won't have to restore any of the data but it's good that you backed it up on the laptop just in case.
Once you install clockworkmod, shut down. Then turn on the phone while holding down the home key. It will put you in recovery.
From there go to "flash zip from sd card" --> and pick the Cyanogenmod. It will take a while but you should have no problems. Also, the first boot will take a long time.
Sounds like you should look into firerating it, if that's even a word.

Categories

Resources