[HELP Please] How to delete the app2sd option in a ROM file - Hero, G2 Touch Q&A, Help & Troubleshooting

Hi all
I would like to know how to delete the app2sd option in the .zip of villainRom 12.0.
i don't use it, and would like to have a more "light" file.
I tried to delete the "data" repertory, sign the rom, but can't flash
Thx in advance for help

just remove your ext partition?

Fabulous691 said:
Hi all
I would like to know how to delete the app2sd option in the .zip of villainRom 12.0.
i don't use it, and would like to have a more "light" file.
I tried to delete the "data" repertory, sign the rom, but can't flash
Thx in advance for help
Click to expand...
Click to collapse
You can remove/disable app2sd by removing the following file:
/system/etc/init.d/04apps2sd

so if i delete this file, i can too delete the data repertory, containing all the app2sd elements isn't it?
Thx for your help !!
edit: i deleted the file in /system/etc/init.d/04apps2sd and the data repertory , and during the flash, the phone said me can't chown "data" etc repertory....
it seems i must delete another thing to tell to the phone that there is no missing repertory...but which one..?

Why? It's built into the kernel that was custom developed for the rom.
There is no notable overhead or space that you can recover. I can't think of any legitimate reason to remove it that would benefit your user experience.
If you simply want to learn how to do it though speaking as a developer who's learning how to build your own rom, maybe it would be easier to look at a less customized rom than vr12.
Does someone know where the developer docs for apps2sd are for this person to get his answer from?
Sent from my HTC Hero using XDA App

hi dkelley
the problem is that in the data/app directory, the applications dont want to install them if i dont have an ext2 partition
but i must let at least one app in this folder , because if not, he will deseapear automatically and during the flash, the phone will tell me that the "app" directory is missing..
and the application in the folder don't appear in the list of my apps, whereas that it should be installed on the internal memory..

Moved to Q&A as not development

Related

[Q] Can someone please help me with two things?

Hey everyone, I have successfully made a few ROMS for myself (using the DSIXDA HTC Android ROM kitchen v 1.00). I am making a ROM for the HTC Evo.
I know how to do most of it, I have managed so far:
To add my own ringtones
To add my own notification sounds
To set the default ringtone, notification, and change the default wallpaper
Add a theme to my ROM
But there is a few questions I have. I have Googled, looked around on here, and done what I can to find the answers but I am so far unsuccessful.
My first question: Ok, I know that the default wallpapers reside in the system/customize/resource directory. I have attempted to replace the wallpaper (and small preview) wallpapers with my own custom ones. I tried using Paint.net for Windows to resize to the same dimensions as the default wallpaper. For example, to replace htc_wallpaper_01.jpg, I edited a 960x800 wallpaper to have the same size and name (everything the same) and changed htc_wallpaper_small_01 with a matching 80x60 smaller version of the new graphic. I have found sometimes it works, but if I do a few using the method mentioned above, the ROM fails to load up. Can someone help and explain why?
Question 2: I am trying to place the removed apps automatically on the SD Card. I made a "sdcard" folder in the root directory of my ROM. I tried editing the update.zip to include copy_dir PACKAGE:sdcard /sdcard and when I do a check for errors I get none, yet when I try and install the ROM it gives me the "E:syntax error in update script" meaning I am not doing it right. I tried doing it the same way Fresh did it and it also threw me the same error.
So can anyone please tell me how to do this? I know I am close with both and I have tried dissecting other ROMS to see how they did it but I cannot figure it out.
First question:
It could be many possibilities. Maybe not enough room on system, file names not matching, etc...
Try each png on seperate flashes to find the culprit.
*The best way to find out for sure is to use "adb logcat" on boot. This tells you all your errors the OS has.*
Second question:
Im not understanding what your trying to do?
Root of a rom is /
sdcard is mounted to a folder on /
If you want to store the apk on sdcard then,
the proper code to install in /sdcard from update.zip:
Code:
copy_dir PACKAGE:sdcard SDCARD:
If this is not what your asking please explain to me what your asking.
RichieDaze said:
First question:
It could be many possibilities. Maybe not enough room on system, file names not matching, etc...
Try each png on seperate flashes to find the culprit.
*The best way to find out for sure is to use "adb logcat" on boot. This tells you all your errors the OS has.*
Second question:
Im not understanding what your trying to do?
Root of a rom is /
sdcard is mounted to a folder on /
If you want to store the apk on sdcard then,
the proper code to install in /sdcard from update.zip:
Code:
copy_dir PACKAGE:sdcard SDCARD:
If this is not what your asking please explain to me what your asking.
Click to expand...
Click to collapse
Thank you RichieDaze for the response.
You mentioned png., but all the ROMS I have seen have the wallpaper in .jpg format. I was just wondering if there was a certain size they have to be (I mimic the exact size of the default ones).
I think I got this part worked out by doing exactly that, installing 1 at a time until I find the culprit.
For question 2: Thanks to using the DSIXDA kitchen, I cannot use updater.script, which seems to be the way ROM makers like Calkulin, Hero_over, and other have used to set their removed apps to automatically copy on to the SD card when you install the ROM.
I have to use update.script instead, and when I try and do it using that I run into an error.
What I am trying to is remove the usual bloat from the ROM, but copy the removed apps so that users can have the option of installing them if they use any of them.
You are answering my question and are on the right track to helping me. I will try to add that (the way you wrote it out) and see what happens to my update.script.
Thank you very much for your help, greatly appreciated and please let me know if there is some other way to do this if you are aware of any or if someone is using update.script instead of updater.script.

Firefox download folder location

I can't seem to locate the directory folder that the new firefox app downloads to. anyone?
Nevermind, it goes right to the sdcard, no folder. I didn't see the files because the downloads failed...
can't seem to get the download folder to change.
I went into:
about:config
created a new string: browser.download.dir
set the value to: /mnt/extSdCard/Downloads/
Restarted Firefox
But still the downloads go into the sdcard/downloads
I've also tried:
/extSdCard/Downloads/
/sdcard/
/extSdCard/
/mnt/sdcard
none of these have any effect.
Any ideas?
Bump:beer:
Sent from my SGH-I747M using Tapatalk 2
Im also looking for changing my dl directory. It have work once for me when modifying the "browser.download.folderList" after creating the browser.download.dir string. But after reboot of firefox the next dl will go back again to the sdcard.
Wonder if anyone else could tell how to do it
creating a new string is a good step for changing your dl directory. But you should also add this step to make it work.
Modify the value of "browser.download.folderList" from 1 to 2
Thats it!!
Click to expand...
Click to collapse
When editing your old posts, try not to delete the original information that could have been useful to others.
People won't have known what value to put into the string.
Sent from my SGH-I747M using Tapatalk 2
I hate managing folders so now I use directory bind which allows me to bind two folders together. Basically you create another downloads folder on your external sd card and use directory bind to "bind" them. Checkbox to transfer contents and your downloads (source) folder will be dumped into the empty folder you've created automatically (destination must be empty when checking the box). When altering files in either downloads folder, the changes appear in both. When you look at storage, the original source folder is not calculated into your used internal storage amount even though every other app sees files in there (since that would defeat the purpose). I use it for my downloads, camera and several apps and game folders not designed to be pushed to SD. Instead of continuously resetting app download destinations, I sit back and relax knowing every app downloads to the proper place (minus the rogues who think they deserve their own folder lol). When flashing a new ROM, simply unbind everything first and disable autostart, backup with titanium backup, after restore, you should be good (depending on your new version of android in which case you may need to adjust some settings). If setting up from scratch again, assuming your working folder structure is still in tact, you can bind again without ticking the box (since the files are in their proper place and a transfer is no longer necessary).
You can get it here, it looks like it hasn't been updated in a while, but I've tested it from Android 4.0 through 4.2.2 and it's perfect (settings adjustments will likely be required): http://forum.xda-developers.com/showthread.php?t=1410262
Hi everyone, was a solution found to that still issue? I tried to move the default download folder to the ext SD card with settings into about:config, I changed as well the "browser.download.folderList" value to 2 and add a "browser.download.defaultFolder" string, but everything failed, please does someone know what to do? Or is there another setting menu or mod/Exposed module to achieve this..?
Thanks in advance for the help!
May I Taste said:
Hi everyone, was a solution found to that still issue? I tried to move the default download folder to the ext SD card with settings into about:config, I changed as well the "browser.download.folderList" value to 2 and add a "browser.download.defaultFolder" string, but everything failed, please does someone know what to do? Or is there another setting menu or mod/Exposed module to achieve this..?
Thanks in advance for the help!
Click to expand...
Click to collapse
Use this config (I am assuming you're on 4.4 and have used SDFixer)
SeraphSephiroth said:
Use this config (I am assuming you're on 4.4 and have used SDFixer)
Click to expand...
Click to collapse
Hi, thanks for your help, but it still don't work for me. What I don't understand is that the path can be whether
/storage/sdcard1/Download
or
/ext_card/Download
Maybe you know why? I'm running CM11 nightlies (4.4.4) on Xperia Z2
May I Taste said:
Hi, thanks for your help, but it still don't work for me. What I don't understand is that the path can be whether
/storage/sdcard1/Download
or
/ext_card/Download
Maybe you know why? I'm running CM11 nightlies (4.4.4) on Xperia Z2
Click to expand...
Click to collapse
With a r/w sd? Use a root explorer to find the path to the r/w sd
I'm very busy and sorry not to say anything for long but thank you much for your answer and help.
My path is correctly pointing the SD, I checked carefully the settings and got no success. Then suddenly Firefox began to write on ext sd, but still this is only sometimes! I tried to see if the files type or size had something to do with that behavior but it seems to be just erratic..
It actually seems that it's the "Flash Video Downloader" module who sends files into the internal storage regardless of the browser settings..

[ROM] [DEVS ONLY] Incredible S and Desire S for Nexus One

Over the last few days, I've been cooking up a ROM using the Incredible S system dumps and nandroids. Problem is, it doesn't work It flashes fine, everything works there, but when I boot up my N1, it stays on the Nexus splash screen (the one with the X on the padlock on it). If any devs could have a good look at it, and see if they can find the source of the problem I'd be eternally grateful When you've found the problem and confirmed it works, PM me the file, tell me how you solved the problem, and I'll just check everything is in working order, then upload it. I will also put your username in the thread!
I used the HTC Android Kitchen (link here) to make this, so you might want to use that.
Incredible S
Link to latest ROM
The zip is: 224.0 MB (234929825 bytes)
Desire S
Link to latest Desire S ROM.
The zip is: 233.1 MB (244429351 bytes)
Thank you devs,
redbullcat
I doubt you could get the whole image on the phone, 224mb is way to big without scripts to move files over to another partition.
http://forum.xda-developers.com/showthread.php?t=784260
That is 268mb and is a Sense ROM, so 224mb should fit.
I think that the system directory is way too big to be installed on a nexus one.
You should move some of the system content to data or move it to an ext3 sdcard partition.
What they said.
Put attention that even the ROM you linked REQUIRES A2SD partition, which it'll set up and use.
So to move the content from system to data: is that just a straight drag and drop procedure, or is some converting to make it work in data rather than system required?
Sent from my Nexus One using XDA App
I am not an expert in the porting roms topic but if I am correct you will have to symlink the things that you move.
This can be done modifying the updater-script.
OK, thank you
Sent from my Nexus One using XDA App
How would I move the stuff from system to an ext3 sdcard partition?
Sent from my Nexus One using XDA App
Good thread. Sounds like a simple matter of setting up a2ext.
Nice work dude!
I would take a look at eViL's desire HD port since its going to be the most similar to this ROM....
That should help you in figuring out what is/isn't okay to move to SD....
Sent from my Nexus One
Thank you thanks also for the tip
Sent from my Nexus One using XDA App
How big should the system and data directory's ideally be?
System - 140 MB is the phone limit, so I wouldn't go above 120-125 MB.
Data - all the rest, as much as you need. You're installing to EXT anyway.
Can you provide a LOGCAT when booting up?
MrNameless said:
Can you provide a LOGCAT when booting up?
Click to expand...
Click to collapse
I can certainly try
OK, so I've moved stuff to a folder in the root of the ROM called ext, as that is what was in the NXSense-HD ROM by eVil. Problem is, the system directory is still 20mb too big. The folders in system:
bin
etc
framework
lib
media
sd
usr
xbin
and build.prop
What can I move to ext/data from this selection of folders? I moved from system to ext:
app (now called system-app)
customize (now called system-customize)
fonts (now called system-fonts)
Thanks,
redbullcat
I'm not a developer, but if you move one folder to ext partition and create a symlink to this folder in system partition? Shouldn't it work?
Sent from my HTC Desire using XDA App
Atento said:
I'm not a developer, but if you move one folder to ext partition and create a symlink to this folder in system partition? Shouldn't it work?
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
I don't know if any folder can be moved though. For example, framework may not be movable.
EDIT: So I've moved some stuff from system to ext, but now the update-script is giving me grief. I'm trying to follow eVil's update-script, but it doesn't seem to be working. Does the update-script have to be done manually, or is there an automatic generator?
I've tried and tried, and I can't seem to get it to work. Could somebody either link me to an update-scipt generator, or help me build an update-script? I'd be so grateful

creating flashable ".zip" of my apps

hello everyone, i just wanted to know how to make a flashable ".zip" file, with all my apps that i want to install, in it. this is not because im lazy to install apps, its because my sd card is messed up and i cant install from my sd card, or market, so plz help, becuz this is the only way i can install apps, and i dont know how to use it.
please help me. thanks
dude no need to open a thread with the same text AGAIN
use the search button and stop creating threads with the same question
i did try searching couldnt find anythiung, if you can find a link plz post it here, thanks
haszan1172 said:
hello everyone, i just wanted to know how to make a flashable ".zip" file, with all my apps that i want to install, in it. this is not because im lazy to install apps, its because my sd card is messed up and i cant install from my sd card, or market, so plz help, becuz this is the only way i can install apps, and i dont know how to use it.
please help me. thanks
Click to expand...
Click to collapse
surely this makes it a moot question. but the answer is yes but you would have to flash it from your sd card with xrecovery.
edit: heres mine with the apps removed, open in 7zip and drag your apks into the apps folder.
away said:
surely this makes it a moot question. but the answer is yes but you would have to flash it from your sd card with xrecovery.
edit: heres mine with the apps removed, open in 7zip and drag your apks into the apps folder.
Click to expand...
Click to collapse
I think he was asking how to make it himself. Like how to properly make the things in that META-INF folder. I've searched too and come up with nothing. It'd be nice to be able to make a custom zip and flash back my arc phone apps, I flashed the honeycomb theme from that guy who's not go3asy, and I only hate its dialer/phonebook/calllog/favorites.
maybe you can try the HTC kitchen,which requiers your computer has a JAVA environment.

[Q] Removing unwanted applications from rom

The cookers of roms are by default including bunch of applications to ROM which i dont want to have and each time flash new version i need to manually remove them (like all google applications which takes quite a while and i am quite successfull at missing some). The rom is a zip file so i could make a program to kick apks out of rom automatically and repack it which isnt much of work to do but i am worried if such rom would still work. There is also a second problem, the digital signature which from expirience produces the yellow warning triangle at boot, i dont have problem with creating my own public/private keys and signing the rom but again i have no clue where the signature should be and where to register a private key (or maybe the samsung one is known?).
Is there some document on this topic or someone is prepared to help me out?
takes 20-30 seconds to open titanium and do a batch uninstall of the apps you dont need
Hmm... i dont use it but i will try, although i would still rather do a batch remove of all unwanted applications on my own before they even get installed. And adding a new application to install first also wouldnt be a bad idea (LBE privacy guard)
You can just extract the rom zip and from that delete the apks you dont want from the System --> App folders or Data --> App folders if there is anything in there. You could also use this 'opportunity' to choose which Kernel and Modem etc you wanted if you plan on changing / flashing different ones later. Re-zip and flash!
I will say this though, in the past i've done this and for some reason certain apps that I left in the zipped rom didn't install, no biggy though
Ok, this was the answer i was searching for. One more thing, what to do with digital signature?
Custom rom .
Open with Win Rar do not extract.
Open System Open Apps
Delete whatever you dont want and is safe to do so .
Close Win Rar and flash rom .
jje
Hmm, i am just playing with one thought, if the android is tied to apk extension for installing, the changing of zip header (actually from historical reasons it is footer ) to rename the apk to ap_ for unwanted application would acctually kill it from installing without ever unpacking it... and the code is actually even more trivial, search and replace...

Categories

Resources