Is is possible to change the root folder of the sd card used by android? I don't like having it create so many files/folders in the root of my card...
HDR said:
Is is possible to change the root folder of the sd card used by android? I don't like having it create so many files/folders in the root of my card...
Click to expand...
Click to collapse
Of course, you can place Android where ever you wish... just adjust the rel_path statement on your startup.txt.
For example, my installs are in /sdcard/Androids/TP2Ref - from Android's perspective. So in my startup.txt, I have
Code:
relpath=Androids/TP2Ref
- Just make sure that goes in the cmdline section.
Pretty sure this is in the FAQ... Try searching before you post
My relpath is set to andboot, but Android is still creating files in / on my sd card, I want to move the media, cache, downloads directories and the FSCK001 files to a subfolder.
HDR said:
My relpath is set to andboot, but Android is still creating files in / on my sd card, I want to move the media, cache, downloads directories and the FSCK001 files to a subfolder.
Click to expand...
Click to collapse
Only way to do that is to modify the source. I could easily make the changes in init for you, but the next time rootfs is updated (which will probably be soon since stinebd has to prep it for GB), you will lose those settings.
I'm working on some NAND stuff at the moment, so if you feel adventurous, all you have to do is modify init in rootfs and "compile" it. I have a little guide on compiling stuff (see bottom of post #1 for rootfs): http://forum.ppcgeeks.com/tp2-andro...modules-tinboot-nand-boot-more-beginners.html
I'll have a look at that, thanks.
HDR said:
My relpath is set to andboot, but Android is still creating files in / on my sd card, I want to move the media, cache, downloads directories and the FSCK001 files to a subfolder.
Click to expand...
Click to collapse
I can at least give you a easy solution for the FSCK files (no offense Nate ). Put this in the "CustomCommands" section of your froyo.user.conf:
Code:
rm -f /sdcard/*.rec
im totally agree; i dont see the point of having the possibility of choosing android to start in whatever location we want....if anyways android will keep creating files/folders in the root of our sd card.
if i recall correctly the very first releases didn't have this problem it would be great if u devs can change this behaviour by default
elamodelmerol said:
im totally agree; i dont see the point of having the possibility of choosing android to start in whatever location we want....if anyways android will keep creating files/folders in the root of our sd card.
if i recall correctly the very first releases didn't have this problem it would be great if u devs can change this behaviour for default
Click to expand...
Click to collapse
This is what Android needs by default, and where they would normally be created by the system. It's nice to stick as close to AOSP as we can, because then there's this small group of devs that work for this company 'Google' that then become our system image maintainers. Thanks.
Related
need to remove all ruminants of Android, Than reinstalling with normal SD copy.
How to remove everythings from SD card?
Regards
Tunc
eresen said:
need to remove all ruminants of Android, Than reinstalling with normal SD copy.
How to remove everythings from SD card?
Regards
Tunc
Click to expand...
Click to collapse
To clean your SD card, simply just format it via your computer.
I need to keep SD there 14GB of data on it,
Delete default.txt (or startup.txt depeding on your setup), data.img, rootfs.img, zImage, system.sqsh, any of the FSCKxxxx.REC files, the "Android" folder (if you have one), the "AndroidApps" folder (if you have one), the "conf" folder (if you have one), the "cache" folder (if you have one), the "download" folder (if you have one), the "media" folder (if you have one), the "startups" folder (if you have one), and the "wallpapers" folder (if you have one). That should delete most or all of the Android files.
i always wished android was in 1 folder for this reason.
The Jack of Clubs said:
i always wished android was in 1 folder for this reason.
Click to expand...
Click to collapse
I just ended up putting everything else that was WM related in its own folder instead... that way when I clean my SD I only have to worry about making sure that my "WMStorage" folder stays on my card, and I can delete everything else without fear.
i keep what i can in folders but android is still mixed in with stuff that has to stay at the root of the sd card. it doesnt bug me that much but i still wished it was set up a little different.
---
Thanks
It is all sorted out..
Tunc
i just saw the gsensor is working? i might attempt to clear android off and reload it up. i wanna play abduction.
I'm new to whole linux\android stuff. Didn't really used lunux, so my knowledge of shell scripting is around 0.
Anyway the stalling issue of galaxy is quit annoying. Fortunately Paul at Modaco has found a fix for that (beleve he had also had script for that to). http://android.modaco.com/content/s...298/got-the-stalling-problem-rooted-try-this/
The faster section\mount of the memory where the apps data should be copied is not so large, so you shouldn't place games or apps that use a lot of space. So you want only copy only a specific set of data.
I managed to create a shell script that will seek unlinked apps data directories in /data/data/ move them to faster storage partition /dbdata/data/ and link it back in /data/data. The apps directories that are exists in a ignore_list.txt will be skipped and not moved to /dbdata/.
!!! Be aware, use it at own risk !!!
Requirements:
Rooted SGS
ADB or terminal on SGS
SU
Busybox
how to:
1. download app_data_hack01.zip
2. copy context of app_data_hack01.zip to /sdcard/sd/Scripts
Remove or add directories that should remain in /data/data using in ignore_list.txt file
Execute using adb:
Code:
adb shell
su
sh /sdcard/sd/scripts/app_data_hack.sh
Using terminal on SGS
Code:
su
sh /sdcard/sd/scripts/app_data_hack.sh
in the terminal: "To proceed type [yes]:" type "yes" or "y" (without the quotes) to proceed..
To recover (move from /dbdata/data back to /data/data) use
Code:
su
sh /sdcard/sd/scripts/app_data_hack_recover.sh
Any feedback is welcome!!
tried it on XXJG3
systems runs much faster now with tons of applications installed
great work and nice instructions
Agree GREAT work, thanks
If I install new apps, they will be stored in the original /data/data right? And if I wanted to move them to /dbdata/data I just add them to the text file and run the script again?
psychedelic'd said:
If I install new apps, they will be stored in the original /data/data right? And if I wanted to move them to /dbdata/data I just add them to the text file and run the script again?
Click to expand...
Click to collapse
You can just run the sript again. You add to ignore text file directories that shouldn't be copied.
It would be great if everyone will post the directory names of apps that shouldn't be stored in /dbdata/ (apps that occupied a lot of space or somithing...)
wow this is good. much more friendly for newbies and linux illiterates like me than those bits and pieces found at modaco.
cheers!
Development
Often we have people post rubbish in the development section because the simply carnt be bothered to go to where their information belongs, e.g. Q&A... however in this case i think a very fine peice of developing has been done and would be seen my many more if used to the development section. Therefore i am asking if a mod could please move this thread, and also well done
Just a thought BTW, instead of everyone messing with this dbdata partition, why done we just increase the size of the partition so we done have to SQUEEZE our big apps in a very small space? Seems much more simple...?
sunwee said:
wow this is good. much more friendly for newbies and linux illiterates like me than those bits and pieces found at modaco.
cheers!
Click to expand...
Click to collapse
Glad it helped and found easy to use!
bratfink said:
Often we have people post rubbish in the development section because the simply carnt be bothered to go to where their information belongs, e.g. Q&A... however in this case i think a very fine peice of developing has been done and would be seen my many more if used to the development section. Therefore i am asking if a mod could please move this thread, and also well done
Just a thought BTW, instead of everyone messing with this dbdata partition, why done we just increase the size of the partition so we done have to SQUEEZE our big apps in a very small space? Seems much more simple...?
Click to expand...
Click to collapse
I wasn't sure where to post as it's not really an development of something new but only a tweak of existing...
As for increasing the partition size, it would be indeed great, but how and if it's possible? Could it be done PIT file using Odin 3?
Yes
Yes from what i know the PIT file contains the partition structure so if this file can be adapted to create a larger /dbdata partition then this should in theory be possible.
bratfink said:
Yes from what i know the PIT file contains the partition structure so if this file can be adapted to create a larger /dbdata partition then this should in theory be possible.
Click to expand...
Click to collapse
That's interesting, but kind off-topic.. Odin seems to be able to interpret pit files, so on web should also be more info available...
Theoretically, this method eliminates the need for using GParted or any Linux Ubuntu to install Neopeek android ports (or XDandroid if babijoee decides release Ext2 ) Partition within Windows.
>> http://www.youtube.com/watch?v=oyO6DOS1leQ << Watch in 720p please
Recording program used: Camstudio
Partitioning program used: MiniTool Partition Wizard Home Edition
Operating system: Windows 7
Partitioning tool >>http://www.partitionwizard.com/free-partition-manager.html <<
If I did anything wrong such as partitioning as "primary" instead of "logical" please tell me...
I have also found a program (shareware) that can open, add files, and recompress tar.gz files (especially androidinstall.tar.gz) I have tried using 7-zip, Win-Zip, and Win-Rar to do this but Winrar and Winzip will not allow me to do thos. 7-zip just gives me a memory allocation error.
Normally, you would have to install .apk files one by one which is time consuming but by adding the apk files you want to install to the directory /sdcard/npkinstall/androidinstall.tar.gz/data/apps , you can save time and it will automatically install it when you run install.exe or when you first install a neopeek android port onto your device.
The program name is "PowerArchiver"
http://www.powerarchiver.com/ <<the official website. It gives you a 30 day trial, sort of like winrar but better
A video to demonstrate the process of installing neopeek builds..
http://www.youtube.com/watch?v=ArWYwjKEACo
I am going to use this video on my site if you don't mind!?!? Some users still have problems to get an EXT2 partition working! Especially windows users have this kind of problems! Anyway thank you for sharing this. Great work!
e334 said:
I have also found a program (shareware) that can open, add files, and recompress tar.gz files (especially androidinstall.tar.gz) I have tried using 7-zip, Win-Zip, and Win-Rar to do this but Winrar and Winzip will not allow me to do thos. 7-zip just gives me a memory allocation error.
Normally, you would have to install .apk files one by one which is time consuming but by adding the apk files you want to install to the directory /sdcard/npkinstall/androidinstall.tar.gz/data/apps , you can save time and it will automatically install it when you run install.exe or when you first install a neopeek android port onto your device.
The program name is "PowerArchiver"
http://www.powerarchiver.com/ <<the official website. It gives you a 30 day trial, sort of like winrar but better
Click to expand...
Click to collapse
I could add apk into the tar.gz with total commander with installed bzip plugin.
i didnt try to install the new androidinstall, but next time i'll add some apps before installing.
I haven't tried total commander for PC with the bzip plugin but I'm sure its a better method than using PowerArchiver but it works both ways.
I also tried G-zip but it wasn't very noob friendly.
2 build on same sd card?
hi. is it possible to install both neopeek build ang xdandroid build on same sd card? i am too lazy to clear my sd card each time a new build came out. tq
kazuya87 said:
hi. is it possible to install both neopeek build ang xdandroid build on same sd card? i am too lazy to clear my sd card each time a new build came out. tq
Click to expand...
Click to collapse
Yes, but to my knowledge you can only run one neopeek build.
I basically have a folder called "Androids" and then I have several builds in their own folders. You just have to adjust the startup.txt in each to reflect the folder location.
Oh and if you're having problems dual booting windows mobile and neopeek builds with GEN.Y dual boot (not dual booting 2 android builds though) follow this link..
http://www.neopeek.com/en/forum/12-...EODual-Boot-Neopeeks-Android-Ports-by-Mohamad
arrrghhh said:
Yes, but to my knowledge you can only run one neopeek build.
I basically have a folder called "Androids" and then I have several builds in their own folders. You just have to adjust the startup.txt in each to reflect the folder location.
Click to expand...
Click to collapse
did u mean by adding rel_path=XXXXXXXX on the startup.txt? i will give it a try to store neopeek build and xdandroid build on same sd card this way.
by the way, i already dual booting my winmo and android but i just can't resist the temptation to try latest android build by xandroid and noepeek. they both awesome
kazuya87 said:
did u mean by adding rel_path=XXXXXXXX on the startup.txt?
Click to expand...
Click to collapse
Yes, that is correct.
kazuya87 said:
did u mean by adding rel_path=XXXXXXXX on the startup.txt?
Click to expand...
Click to collapse
can someone elaborate on this, for a andn00b?
benjamminzIS said:
can someone elaborate on this, for a andn00b?
Click to expand...
Click to collapse
You add "rel_path=path/to/android" to the cmdline section... This would be if the build was 3 folders deep from the root. If you just have Android say in a folder 'andboot' off of the root of the SD, your statement would read "rel_path=andboot" - make sense?
You also realize this has absolutely nothing to do with the builds that require an ext2 partition right? It's just a way to organize multiple builds of Android, but only the "normal" builds that don't require an ext2 partition.
How about the 8 gigabyte sd memory?
I understand 2G sd rom format, but when I format 8G sd as you showen with my own size, android phone could not distinguish it exactly. Could you explain about the 8G sd card?
necafe said:
I understand 2G sd rom format, but when I format 8G sd as you showen with my own size, android phone could not distinguish it exactly. Could you explain about the 8G sd card?
Click to expand...
Click to collapse
From what i know on the sd card there must be 3 partition:ext2 and swap have to be always the same size (EXT2: about 350 mb and SWAP: 64 mb) and the fat32 one has to be the free space should be something like 6.5-7gb on 8 gb card,
What problem do you experience?
Added, how to change keymaps under linux
e334 said:
Added, how to change keymaps under linux
Click to expand...
Click to collapse
Great! Thanks e334, updating rootfs.img in Neopeek's ROMs should now be easier with your how to guide.
Do you think it should deserve a new thread instead of using this "howto format ..." thread? If I may, would suggest something like [Howto] Update rootfs.img in Neopeek ROMs. "Older ROMs" do not apply to XDAndroid ROMs because updating those even if older is straightforward.
Ok.. I will do that then..
thanks! mod may now delete off-topic post's from this thread ... including this & my previous post.
STARTUP.TXT File
set ramsize 0x8000000
set ramaddr 0x10000000
set mtype 2006
set FBDURINGBOOT 0
set cmdline "root=/dev/mmcblk0p2 init=/init rootwait rw rootdelay=3 console=tty0 rootdelay=3 fbcon=rotate:2 ro.sf.hwrotation=180 lcd.density=240 msmvkeyb_toggle=off msmts_calib=0x0366.0x04b.0x0c8.0x038e acpuclock.oc_freq_khz=600000 pmem.extra=1 no_console_suspend clock-7x00.mddi=0xa51 physkeyboard=kovsq hw3d.force=1"
boot
When I updated to 4.2 my files structure was thrown out of wack, folder inside folder inside the same name folder with all of the same directories. I tried twice to move thing to one folder but it is very difficult.
I need to know what the actual structure should be, should everything be in the first 0 folder (for my user) apps, and all other folders currently it is a 0 inside a 0 insides another 0 each level has different app files and saved files. I think a lot of stuff is duplicated also as im reaching my internal memory limit of 32gbs.
I just need a pointer of where everything should actually be so I can spend the time setting it up correctly. I also came across this, wonder if it would delete all duplicates while it does it's thing or if it actually works.
https://play.google.com/store/apps/details?id=com.file.sorter
Thanks in advance for any help, I am a computer guy so I do understand what is going on here, I am just not sure the best remedy.
The reason Google did this is because 4.2 added multiple user support. If you had multiple users on your device, the data would be separated in all those different "0" folders. But anyway, after using 4.2 for a while, you will notice stuff you download, app data, etc. being added to /sdcard/ or /storage/sdcard0/ which is the same location. Thats where you want all your stuff.
Yea I understand the multiple user support, but currently I have /sdcard/0/0/0/apps with an apps folder and an images folder inside each of those 0's.
Ciggyy said:
Yea I understand the multiple user support, but currently I have /sdcard/0/0/0/apps with an apps folder and an images folder inside each of those 0's.
Click to expand...
Click to collapse
Well like I said, everything on my device simply goes in /sdcard/
You can move it all if you'd like
Yea that's the plan, just needed to know exactly where things should actually be. Going to be a pain but ill get it done.
Thanks.
Ciggyy said:
Yea that's the plan, just needed to know exactly where things should actually be. Going to be a pain but ill get it done.
Thanks.
Click to expand...
Click to collapse
Cut then paste. Talk about a pain.
you also should update your recovery.
its not like this same topic has been beat into the ground or anything.
I have updated my recovery, and I also did a forum search about this first. Maybe you could point me to a thread about it?
Ciggyy said:
I have updated my recovery, and I also did a forum search about this first. Maybe you could point me to a thread about it?
Click to expand...
Click to collapse
A cursory search for sdcard will get you many results pertaining to the updated directory structure. What follows is but a small sampling of the results.
http://forum.xda-developers.com/showthread.php?t=2184927&highlight=sdcard
http://forum.xda-developers.com/showthread.php?t=2162925&highlight=sdcard
http://forum.xda-developers.com/showthread.php?t=2159491&highlight=sdcard
http://forum.xda-developers.com/showthread.php?t=2151646&highlight=sdcard
http://forum.xda-developers.com/showthread.php?t=2134720&highlight=sdcard
http://forum.xda-developers.com/showthread.php?t=1996263&highlight=sdcard
http://forum.xda-developers.com/showthread.php?t=2029743&highlight=sdcard
It's a simple cut and paste to put everything in its proper home. Go to the last nested 0 folder in /data/media/0 and paste everything therein to /data/media/0. After that, delete /data/media/0/0 and you're done.
Sent from my Nexus 7 using Tapatalk HD
Thank you for an answer with out an attitude, najaboy.
I never would have thought to search sdcard considering it's internal memory but thank you for pointing me in the correct direction.
My tablet decided to unexpectedly crashed on me but thankfully I had backed up some of my lecture notes. Sadly not all of them. When I back them up I didn't use the Zip function. I just had folder sync copy the LectureNotes stored them. I've tried just copying and pasting them back into the new Lecturenotes folder but it doesn't display them on the Notebooks Board.
How can I get LectureNotes to read the older files that it created?
I'm on the Wifi only Galaxy 10.1 2014 Edition running android 4.4.2.
If you need more information feel free to ask question. I'll do my best to answer them.
@Icon000: Copying the files back into the app directory should actually do the job.
Before the hardware crash, did you use a custom app directory in LectureNotes? If so, have you set it again?
acadoid said:
@Icon000: Copying the files back into the app directory should actually do the job.
Before the hardware crash, did you use a custom app directory in LectureNotes? If so, have you set it again?
Click to expand...
Click to collapse
I'm like 85% sure no. I did mess with a lot of the settings. I couldn't set it up again since it was pre-KitKat and it would have been on my SD card in Folders I created to be similar to the way it is set up by default.
The way I found the LN folder last time was by just creating a new notebook in the empty lecturenotes and give it an unique easy to find name like ln123456. Then just use search functionality of your filemanager to find that folder and copy your old lecturenotes files over.
@Icon000: To which location did you copy the files?
The standard app directory follows an Android standard and is Android/data/com.acadoid.lecturenotes/files, starting in the root of the SD card.
acadoid said:
@Icon000: To which location did you copy the files?
The standard app directory follows an Android standard and is Android/data/com.acadoid.lecturenotes/files, starting in the root of the SD card.
Click to expand...
Click to collapse
@acadoid, Sorry for the delay, I've been busy. So how do I now move that the contents of that director to the SD card considering the limitation of Kitkat, where apps can modify files they create?
@Icon000: The constraints in Android 4.4 (KITKAT) apply to the external SD card, not the internal one.
On the external SD card, the path that is accessible under Android 4.4 (KITKAT) is Android/data/com.acadoid.lecturenotes/files (in fact the same path as the standard app directory on the internal SD card).
acadoid said:
@Icon000: The constraints in Android 4.4 (KITKAT) apply to the external SD card, not the internal one.
On the external SD card, the path that is accessible under Android 4.4 (KITKAT) is Android/data/com.acadoid.lecturenotes/files (in fact the same path as the standard app directory on the internal SD card).
Click to expand...
Click to collapse
okay, I was trying to move it off the internal to the external so should something happen to the tablet the files aren't completely lost. I was told that the native file manager can do more than 3rd party managers as a result of these new restrictions.
@Icon000: It might be that a file manager app that shipped with the device has the permission to write everywhere on the external SD card.
Note that you can easily restore pre-KITKAT behavior of the external SD card if your device is rooted.
acadoid said:
@Icon000: It might be that a file manager app that shipped with the device has the permission to write everywhere on the external SD card.
Note that you can easily restore pre-KITKAT behavior of the external SD card if your device is rooted.
Click to expand...
Click to collapse
@acadoid, thank you for the recommendation of rooting. At this time I am considering it.
While I have your attention have you considered adding another way to view the folder structure where a list of the structure is on the left 1/3 and on the other 2/3 have the contents of the selected folder and relevant information such as modification dates.
I ask because I have a lot of folders and its getting hard to manage them even in the ultra compact view. What do you view and relevant settings do you suggest for when you have a lor of folders and notebooks?
@Icon000: I use `ultra compact´ with `display as tree´ and `display mini-icons´ (the latter allows a distinction by cover color).