Disable A2sd from source (ROM zip file) - G1 Q&A, Help & Troubleshooting

Hello XDA team
First of all, I think that this is the appropiate forum for this question, but if it doesn´t, please feel free to move to the correct thread.
I have a spanish Vodafone HTC Magic (32B) and after several combinations I have found that the most suitable partition system for my SD card is Fat32 + 128 MG of Swap. I really hate a2sd and Ext partitions because my device doesn´t really need them, and it only mess my apps.
I´m searching a way to disable a2sd from the .zip files of ROMs in order to be able to install in my phone, but I´m not sure hot to made it
If I take, for example, MightyMax latest ROM (MghtyMax1.9.1) and extract the contents, I find "a2sd" under /system/bin, so, if I remove this app and zip again the ROM, will I be able to "Skip" this feature? should I edite the user.conf and or userinit.sh files?
Many thanks for your help
Rgds

If its a question it goes to Q&A no matter what type of question it is. Just an FYI ^_^

u can try it. I dont know if it will work or not. Just remove all traces of a2sd and resign the update.zip. The other thing is, u can just not have an ext2 partition. That will disable a2sd from the first boot...

nephron said:
u can try it. I dont know if it will work or not. Just remove all traces of a2sd and resign the update.zip. The other thing is, u can just not have an ext2 partition. That will disable a2sd from the first boot...
Click to expand...
Click to collapse
The problem is that ROMs that require a2sd won´t boot (tried MLGIN, MightyMax, Sense Hero..) with my partition layout, they all keeps in the boot screen

thats because u they want ur layout to be like this
fat32,ext2,swap
the only thing u can do is
fat32,ext2,swap
then remove ext2 leaving a gap. After that, expand your fat32 to cover over the ext2.
so ur new layout would be fat32,swap but the swap partition would be on the third partition... (i think )

You could try using the script included in Wes Garner's update here to disable A2SD (should be able to replace the script in the update file of the ROM you are using).

Moved to Q&A

daveid said:
You could try using the script included in Wes Garner's update here to disable A2SD (should be able to replace the script in the update file of the ROM you are using).
Click to expand...
Click to collapse
Many thanks Daveid, sound very interesting, I will give it a try later..
I tried re-build the MghtyMax ROM removing the a2sd bin file and adjusting the user.conf and userinit.sh files but after installing the "new" ROM (it installs just fine) the phone keeps forever in the "Vodafone" bootscreen... Any ideas??
Rgds

iamarock said:
Many thanks Daveid, sound very interesting, I will give it a try later..
I tried re-build the MghtyMax ROM removing the a2sd bin file and adjusting the user.conf and userinit.sh files but after installing the "new" ROM (it installs just fine) the phone keeps forever in the "Vodafone" bootscreen... Any ideas??
Rgds
Click to expand...
Click to collapse
Your SD card has three partitions right? And, why remove the a2sd bin file? I would use the modified script I linked you to, make a very small ext2 partition - so you can put your user.conf & userinit.sh files on it, and see what that does.
What is the logcat (or ddms) output during boot up?

daveid said:
What is the logcat (or ddms) output during boot up?
Click to expand...
Click to collapse
Sorry but I think that I'm a newbee with this kind of issues, how can I get the boot logs???
Many thanks

daveid said:
Your SD card has three partitions right? And, why remove the a2sd bin file? I would use the modified script I linked you to, make a very small ext2 partition - so you can put your user.conf & userinit.sh files on it, and see what that does.
What is the logcat (or ddms) output during boot up?
Click to expand...
Click to collapse
Sorry guys but nothing seems to work for me...
-I have tried to disable a2sd editing the user.conf file and re-building the ROM. Nothing happens. The "new" ROMS installs just OK but it keeps forever in the Bootscreen logo
-The script mentioned by daveid in entry #5 neither seems to work for me, same bootloop
Any ideas??
Many thanks in advance, this is a very annoying issue for me

Anyone can help me with this issue?
Many thanks in advance
Rgds

iamarock said:
Sorry guys but nothing seems to work for me...
-I have tried to disable a2sd editing the user.conf file and re-building the ROM. Nothing happens. The "new" ROMS installs just OK but it keeps forever in the Bootscreen logo
-The script mentioned by daveid in entry #5 neither seems to work for me, same bootloop
Any ideas??
Many thanks in advance, this is a very annoying issue for me
Click to expand...
Click to collapse
Please, please, anyone can help me with this request? I tried to install the amazing Kink's Droid Eris port without sucesss, i guess that again due the a2sd issue
Is there any way to remove a2sd or to skip ext2 requirements when installing a rom?
Many thanks in advance
Best regards

Related

How do I remove Auto A2sd Script from boot?

I wanna know how to remove the auto a2sd scripting from running at all during boot tried to just delete it and got stuck in boot loop
i am currently trying to remove this script from the zeroxd 5.2r5
anyone who could impart some wisdom would be greatly appreciated
wrong forum lol! but that would be a feature request from days past
jaaronmoody said:
wrong forum lol! but that would be a feature request from days past
Click to expand...
Click to collapse
not a request
i wanna know how to remove the script from all hero roms or any rom that auto a2sd so that i can just internalize everything
i have a mt3g and its got a lot of internal storage i just wanna know how to remove this auto a2sd scripting on boot and i dont know where to start looking
it runs at first boot and i believe that might be packed in boot.img but i dont think so.... and its not in init.rc either so i wanna know where it initializes in the system boot process so i can then remove it
i tried just deleting the scripot from /system/bin with no success because the system still calls for it then when it cant find it... well it just gets stuck looking
Zarboz said:
not a request
i wanna know how to remove the script from all hero roms or any rom that auto a2sd so that i can just internalize everything
i have a mt3g and its got a lot of internal storage i just wanna know how to remove this auto a2sd scripting on boot and i dont know where to start looking
it runs at first boot and i believe that might be packed in boot.img but i dont think so.... and its not in init.rc either so i wanna know where it initializes in the system boot process so i can then remove it
Click to expand...
Click to collapse
wait... isn't a mt3g a magic device????
jaaronmoody said:
wait... isn't a mt3g a magic device????
Click to expand...
Click to collapse
doesnt matter would still apply to a 32b board wich is in g1 as well... and the rom posted, wich i am trying to modify, is for both g1/mt3g
Zarboz said:
doesnt matter would still apply to a 32b board wich is in g1 as well... and the rom posted, wich i am trying to modify, is for both g1/mt3g
Click to expand...
Click to collapse
from what i remember, "they" were using an automated lucid script or the like. someone please correct me if i'm off base
jaaronmoody said:
from what i remember, "they" were using an automated lucid script or the like. someone please correct me if i'm off base
Click to expand...
Click to collapse
i see the a2sd.sh script it is lucid style yes. but i dont see where it initiates in the system. and in the user.conf file it only has option 1 or 0 and 0 runs a2sd.sh located in /system/bin and from the notation on it 1 would run custom a2sd script
i tried setting the user.conf option for custom a2sd.sh to 1 isntead of 0 and it just stuck in boot loop
so at this point im baffled
Reference point: I am working with zeroxd 5.2r5 wich is pretty much Jacxhero 2.0
what he said ...
Zarboz said:
i see the a2sd.sh script it is lucid style yes. but i dont see where it initiates in the system. and in the user.conf file it only has option 1 or 0 and 0 runs a2sd.sh located in /system/bin and from the notation on it 1 would run custom a2sd script
i tried setting the user.conf option for custom a2sd.sh to 1 isntead of 0 and it just stuck in boot loop
so at this point im baffled
Reference point: I am working with zeroxd 5.2r5 wich is pretty much Jacxhero 2.0
Click to expand...
Click to collapse
Check changelog of ZeroXD 6.0 i think it does what you want. Twisted is working on internallizing stuff for us on magic
Updating this thread.
I think that a solution in order to disable a2sd can be very helpful for a lot of users
Any help will be appreciated
Rgds

Need Help From The pros

So I'm fairly new to android about three months now, and need help.....
1) How do you modify system files and apk's? (tried Estrongs but it won't let me use root access even when i click the always allow prompt)
2) Can someone explain exactly how i partition for Apps2SD ( PM me if possible)
3) Can you change bootscreens with a .zip flash? if so does anyone have a link for the cynanogen mod nexus boot as used in Darchvanilla??
4) How to change to a normal 2.1 lockscreen?
Thank you and any help is deeply appreciated.....
abov3dis said:
So I'm fairly new to android about three months now, and need help.....
1) How do you modify system files and apk's? (tried Estrongs but it won't let me use root access even when i click the always allow prompt)
2) Can someone explain exactly how i partition for Apps2SD ( PM me if possible)
3) Can you change bootscreens with a .zip flash? if so does anyone have a link for the cynanogen mod nexus boot as used in Darchvanilla??
4) How to change to a normal 2.1 lockscreen?
Thank you and any help is deeply appreciated.....
Click to expand...
Click to collapse
1.) no idea...try linda file manager.
2.) you partition it with the recovery image. swap/ext/fat32
3.) yes
4.) define normal?
Normal by the 2.1 vanilla lockscreen (I Sware I hate the HTC lock,lol)
and could you post a few instructions for apps2sd because i'm still not sure,
abov3dis said:
Normal by the 2.1 vanilla lockscreen (I Sware I hate the HTC lock,lol)
and could you post a few instructions for apps2sd because i'm still not sure,
Click to expand...
Click to collapse
to remove the htc lock screen just pull the lockscreen.apk via adb or using the new fresh kitchen.... or you could install fresh's new 2.1 rom. apps2sd should set up automatically as long as the rom you pick has it integrated. you have to make sure your sd card is partitioned before flashing the rom.
fixxxer2008 said:
to remove the htc lock screen just pull the lockscreen.apk via adb or using the new fresh kitchen.... or you could install fresh's new 2.1 rom. apps2sd should set up automatically as long as the rom you pick has it integrated. you have to make sure your sd card is partitioned before flashing the rom.
Click to expand...
Click to collapse
I can concur with this ^
If you want a good 2.1 rom then go with damage or fresh. If you want a 1.5 id go with pancake without sense, super fast!

How to use FROYO with OLD A2SD Method

Froyo sux....with apps i get all types of complications...ive done everything re-format and used all methods...no A2SD method works including Google's. I want the Old Method on the Ext.....but not even Rodriguez' works...anyone solutions or people suffering? cuz its either i cant put all my apps or they dont install....i even had a 'Contact Storage' problem where it bloated so big...my phone said i had low memory
+1
Anyone has a working solution for FRF50?
how bout you wait till froyo source is out then when can have all kinds of goodies
teflon252 said:
Froyo sux....with apps i get all types of complications...ive done everything re-format and used all methods...no A2SD method works including Google's. I want the Old Method on the Ext.....but not even Rodriguez' works...anyone solutions or people suffering? cuz its either i cant put all my apps or they dont install....i even had a 'Contact Storage' problem where it bloated so big...my phone said i had low memory
Click to expand...
Click to collapse
Try this rom
http://forum.xda-developers.com/showthread.php?t=644438
I'm not sure but I heard that Froyo doesn't like EXT partitions ...
Perhaps the kernel on the upper link should work. Give a try =)
i'm trying it now....let u kno how it works..and thanks for the suggestions
NO LUCK....DOESNT EVEN READ EXT PARTITION...I DUNNO what the hell KING is talking about
I have stock rooted froyo, and the apps that can be pushed to the sd card go to the fat32 part.
I have not tried using a2sd yet.
I will try pushing an app thru adb tonight to sd and see if it installs.
Update: I installed a couple of apps to the sdcard with ADB. One I don't use anymore, and one that I had installed from the market. I had to uninstall Google Earth, but I now have it installed on the sdcard and it is working just as well as if it were on the phone. Also tried Tower Raiders Free, and it also installed to the sdcard and plays with no problems. So I don't know if froyo needs the ext partition or not, but the newest ADB release does not in order for apps to work.
the benefit of EXT is space and i already have so many apps installed already from previous....the new method allows me only half and i would have to re-install all and for some reason...regular froyo doesnt sit well with my phone....like in 'manage application' it just says calculating...and i can never install certain apps
paul's (MoDaCo) r16 + have apps2sd on ext partition as an option.. i've been using it on ext4 since r16 dropped have about 75 apps including google earth and flash and have 135mb left on internal .. advanced task manager says 223mb with 20 apps running
did u have to activate the option? and how?
no .. its automatic... there are 2 ways... google (froyo) crappy apps2sd and our way of doing things.. just have your sd card fat32 /ext2/3/4 and thats it .. disregard the google froyo a2sd
You can try Darktremor A2SD and see if that works.
The rom you are on would need to have some form of a2sd launch command in the init.rc. In the old stuff, it would be a matter of putting the following lines in the init.rc:
1. Look for a line called class_start default. Add the next two lines above the class_start line:
start a2sd
on property:cm.filesystem.ready=1
2. Go to the end of the file and type the following:
service a2sd /system/bin/logwrapper /system/bin/sh /system/bin/a2sd
disabled
oneshot
Now, I'm not sure about Froyo and its Apps2SD...I'm not sure if you need to find the lines in init.rc (assuming they are actually in that file) and comment them out.
But try the program and see if it works.
http://www.darktremor.info/files/a2sd/a2sd-2.7-2-signed.zip
teflon252 said:
Froyo sux....with apps i get all types of complications...ive done everything re-format and used all methods...no A2SD method works including Google's. I want the Old Method on the Ext.....but not even Rodriguez' works...anyone solutions or people suffering? cuz its either i cant put all my apps or they dont install....i even had a 'Contact Storage' problem where it bloated so big...my phone said i had low memory
Click to expand...
Click to collapse
+1 (topic)
Anyone tried the above post on froyo?
A link to step by step instructions will be appreciated.
Some steps here: http://wiki.cyanogenmod.com/index.php/Apps2SD but dont know what else is needed for froyo.
I want this because my /data partition is completely out of space, and no more apps can be moved using the froyo method.
Forcing all apps to install by default on the sd card is buggy at best.
update: works, see the below post, http://forum.xda-developers.com/showpost.php?p=6952103&postcount=16
Is SWAP partition still necessary ?
I've read that swap is not needed. Works without one for me
@britoso - i see you talk of this file - a2sd-2.7-update3-signed.zip - is that a rom?
milomak said:
@britoso - i see you talk of this file - a2sd-2.7-update3-signed.zip - is that a rom?
Click to expand...
Click to collapse
its a flashable update that installs the a2sd components to your system.
Here is the thread, first message has instructions: http://forum.xda-developers.com/showthread.php?t=670087
britoso said:
+1 (topic)
Anyone tried the above post on froyo?
A link to step by step instructions will be appreciated.
Click to expand...
Click to collapse
just wanted to note that this works fine on Froyo FRF83 too.
I used Paul Obrien's FRF83 rooted, deodexed rom.
1)nandroid+ext
2)flash frf83
3)flash apps2sd
4)reboot
5)bootloop!
to fix it:
Code:
adb remount
adb shell mkdir /system/sd
adb shell
/system/bin/a2sd install
a2sd repair
a2sd check
6)success!
edit: it does not start automatically on reboot, flash leofroyo's boot.img in bootloader mode to fix it
fastboot flash boot leofroyoboot.img
Click to expand...
Click to collapse

Vanishing directories Official Froyo

Hi
I'm trying to get app2ext working on official Froyo on my MM but every time I create sd-ext directories via root explorer or AOR the directories disappear after reboot.
Do I need to change the chmod of the directories? If yes to what number?
Is there a security system in Froyo that prevents creation of such directories?
I am kinda at a loss here.
thanks in advance for your help.
Which script are you using?
Sent from my Milestone using XDA App
sileshn said:
Which script are you using?
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
I was planning to use the script from CM7. Thats why I wanted to create the sd-ext directory. I did try your guide, the one written in *.docx, but it did not work. The modules did not load...however, I did create /system/sd directory which is still there.
ROBINGAZI said:
I was planning to use the script from CM7. Thats why I wanted to create the sd-ext directory. I did try your guide, the one written in *.docx, but it did not work. The modules did not load...however, I did create /system/sd directory which is still there.
Click to expand...
Click to collapse
Well, I have got it working with all stock froyo roms that I have used. Have you installed busybox? Sometimes it takes more than one reboot to work.
I have tried that.
I used all three zip files mentioned in this thread:
//forum.xda-developers.com/showpost.php?p=10934421&postcount=37
but they did not work.
ROBINGAZI said:
I have tried that.
I used all three zip files mentioned in this thread:
//forum.xda-developers.com/showpost.php?p=10934421&postcount=37
but they did not work.
Click to expand...
Click to collapse
You only need to use the full version. Anyway, I don't know abt the sd-ext problem.

[Q] how to enable init.d support

I'm using the the stock 2.3.4 from Spice website and this is by far the best considering wifi important.
My question is, can we enable init.d support or we need a special kernel for that?
I tried a tut. from zeppelin but failed miserably...
Any idea guys???
whyzee,
I followed this http://forum.xda-developers.com/showthread.php?t=1017291 and was able to use init.d without any issues.
cowsgo said:
whyzee,
I followed this http://forum.xda-developers.com/showthread.php?t=1017291 and was able to use init.d without any issues.
Click to expand...
Click to collapse
Thanks for the link but that was the one I tried without success .... Should try again when I have some real time...
whyzee
did you get an error when you ran the script? If you didn't then get root explorer from the market and see if you have the folder. It should be in the \system\etc folder. When I ran it I had no issues and followed the instructions that were on the page. Dumb question, did you reboot your phone once you ran this? If you got a error then you could try pm Zep and see if he has ideas that might help.
cowsgo said:
whyzee
did you get an error when you ran the script? If you didn't then get root explorer from the market and see if you have the folder. It should be in the \system\etc folder. When I ran it I had no issues and followed the instructions that were on the page. Dumb question, did you reboot your phone once you ran this? If you got a error then you could try pm Zep and see if he has ideas that might help.
Click to expand...
Click to collapse
The script you are executing is not meant for our device. Its trying to mount system partition as mtd type, while we need emmc partition type. Also, our device does not have moto-boot-mode file which this script is trying to replace.
So my suggestions are :
If you are using MIUI or CM, then they already support init.d scripts. (I guess)
Or
If you are using stock or andro - id then just copy following code in post boot.sh (something like that) found in /system/etc/, at the end of file.
Code:
for BOOT in "/system/etc/init.d/"*; do
.$BOOT
done
P.S. Note that you have enabled executable permission for all of your scripts placed in /system/etc/init.d
Sent from my CSL-MI410 using XDA App
Thanks for the replies guys, I've jumped to MIUI 1.10 now and as Napstar said it natively supports init.t...
whyzee said:
Thanks for the replies guys, I've jumped to MIUI 1.10 now and as Napstar said it natively supports init.t...
Click to expand...
Click to collapse
hi
correct me if im wrong. To my knowledge u need init.d to use apps2sd so u can put ur apps on ur SD and now since our phone has around 1GB phone storage which i feel is more than enough to install all the apps u need I dont see a reason why we need the init.d
haree said:
hi
correct me if im wrong. To my knowledge u need init.d to use apps2sd so u can put ur apps on ur SD and now since our phone has around 1GB phone storage which i feel is more than enough to install all the apps u need I dont see a reason why we need the init.d
Click to expand...
Click to collapse
init.d is a folder on /system/etc folder which runs whatever scripts you put in it during boot.....

Categories

Resources