Related
King Klair Hero 0.6.01
First and Foremost this build was ported by Mssmison and the ril(radio interface layer), and audio libraries were written by Vilord!!! im pretty sure the gps library was written by Srwalter. vilord may have helped port it to eclair. (will get back to you on that). without DZO we would still be using windows mobile "" but were not ""
To Donate: to these fine gents visit http://sourceforge.net/apps/trac/androidhtc/wiki/WikiStart and scroll down to the donation links
B to the E to the T to the A
this is very beta, well almost alpha(first release for us vogue users so report any bugs that havent been mentioned in this post)
what works:
gps
calls
data
sync(dont sign in to google during htc wizard, wait till next boot!! you have been warned!!!)
market
gmail
what doesn't:
camera
bluetooth
gtalk
get more widgets
!!!THIS IS JUST A SQUASHFS BUILD AND MATCHING ROOTFS NO NAND!!!
This is too big to flash to the nand right now!
will add screenies later
for those brave souls:
0.6.01(few modifications by vilord to init.rc)
system.sqsh
http://sourceforge.net/projects/androidhtc/files/2009-12-14/system.sqsh/download
(vilords modified rootfs also in post #4)
rootfs.img
http://sourceforge.net/projects/androidhtc/files/2009-12-14/rootfs.img/download
ENJOY
Man, i love you...........
also big thanks to vilord, dzo srwalter and everyone i forget
Lookis like I gotta flash windows back to the Nand! Cant wait to try this out!
hey all, so uploaded to the sourceforge fileshare is an updated rootfs and another copy of this, version 0.6.01 I guess? should be no changes, but I haven't been able to test as I'm already late for work.
http://sourceforge.net/projects/androidhtc/files/
Oh yeah and yes I spent a few hours getting libaudio to where it is now, RIL require many MANY hours, but fortunately I'd already done that work, and it was a drop in with eclair... GPS is srwalter all the way, just a drop in here... the zImage has had many contributors, but mostly dzo.
contact sync should work, it works great on my end.
should this work on kaiser, too?
Hi,
How do we connect to the internet? It tells me to insert a sim card, but my phone is CDMA. I create an APN, but it still tells me to insert a sim card. Is there a work around for this?
Thanks.
scizzle said:
Hi,
How do we connect to the internet? It tells me to insert a sim card, but my phone is CDMA. I create an APN, but it still tells me to insert a sim card. Is there a work around for this?
Thanks.
Click to expand...
Click to collapse
ive only tested it at 320x480 i didnt think about 240x320. try changing the density to 120 if your are using 240x320
jamezelle said:
ive only tested it at 320x480 i didnt think about 240x320. try changing the density to 120 if your are using 240x320
Click to expand...
Click to collapse
Not entirely sure how that would fix the network issue. I originally had my res at 320x480 and 160 density and it still instructed me to inset a sim card. I have no data connection at all.
Looks good. Once the initial FCs go away it runs quite smoothly.
First issue I found was that the HTC Exchange app seems to be broken. It won't connect to the server.
skydirt said:
Not entirely sure how that would fix the network issue. I originally had my res at 320x480 and 160 density and it still instructed me to inset a sim card. I have no data connection at all.
Click to expand...
Click to collapse
I did originally also ask a question about resolution . But yes, I have no connection either.
UMMM....WOWW! McLovin it!! No sms errors er nothin!!
Great work!!
I have this partially working on the Kaiser, so I started a Kaiser thread about it.
Oh man, have you guys watched this build boot over adb? I think it's been 20 minutes and it's still churning these out:
Code:
V/MediaProvider( 1734): we got work to do for checkThumbnail: /sdcard/My Documents/My Pictures/IMAGE_261.jpg, there are still 130 tasks left in queue
E/MiniThumbFile( 1734): couldn't save mini thumbnail data for 88; disk full or mount read-only? class java.lang.NullPointerException
My sd card's not full, but it seems to be attempting to create thumbnails for ALL the photos on my SD card, but it can't, so it just goes on forever...
I'm also getting a lot of these after boot:
Code:
I/dalvikvm( 3020): Wrote stack trace to '/data/anr/traces.txt'
Should it be stack tracing? Do you guys want these logs?
The stack traces are probably for the NullPointerExceptions the thumbnailer is getting.
The swap on SDcard is activated in the custom.user.conf uploaded on sourceforge, isn't it?
I've read many times that it's not good for the SD. Can we use this conf file risk free or it's preferable to use a standard conf without swap?
By the way, thanks for this new hero build
No tattoo in the pipe?
@bri3d:
I don't think the stack traces are related to the thumbnails, the stack traces happen after the thumbnailing is finished, I haven't noticed a pattern yet. I also get a ton of WiMax daemon errors where it tries to start itself but can't, and tries to kill itself but can't since it never started. This build is still defnitely beta.
@Kiiv:
Hero builds are basically unusable without swap, if you don't want to use swap I suggest you use a normal Donut or Eclair build.
If you are worried about your SD card's life you can create a linux-swap partition as the last partition on your card and use the conf settings for swap partition. This is the setup I have, and you can grab an example conf file from my Kaiser thread for this build.
Thanks for the answer
I already have a swap partition, but I thought that break the SD card too..
This build is very promising, run very fast with swap.
I wouldn't worry too much about swap on the SD card - yes, it increases wear - anything which writes frequently to any type of flash memory is going to do that.
On the flip side, I've also never ever had a card go bad - wear-leveling and badblock marking keeps errors to a minimum these days.
I've seen consumer electronics do far, far worse silently - one media player settop I've messed with mounts an ext2 filesystem using a raw page driver (no wear-levelling) over and over - even if the FS is never written to it's hitting the same mount time bits every single time it boots.
Also, GBs of microSD are incredibly cheap now, and as long as you back up your important data it's not going to kill you to lose a card.
I keep getting a failed to find system.img on SD card errors.
I tried to rename system.sqsh to system.img and still no luck
does anyone know why when i run this it only loads up to the htc screen and then it just stays there? the htc animation keeps goin but thats all
Hi,
I've done a search and haven't been able to find anything solid on this so I apologize if it's been covered. I've been using the Atrix for a few days now and I noticed that when I view click on the "Files" app (the default file viewer that comes with the Atrix) it comes up with a list of the following options:
Internal phone storage
SD card
Shared folders
Protected Content
This is different than previous Android phones I've used in that I get a file structure instead of options of where to look. That's fine; I can just click on one of those options to view the contents. However, I use a application at work to use my phone as a glorified picture frame. It's called Slideshow Bob and it does not recognize the external SD Card. This hasn't been an issue with prior Android devices, but from little I can glean from doing an online search, this does seem to be a limitation with some Motorola models. Again, I have had no problem accessing my pictures in Slideshow Bob from any of the Samsung Android devices I own and this is my first Motorola phone with this OS so I'm wondering if this is a bug that will be remedied or if they've basically limited file access from apps on this phone. I'm sure that's not the case with every app, but it certainly is for some. Anyone else have any issues or workarounds they'd like to share?
iirc, none of the currently released Samsung Android devices have built-in storage plus an expansion slot, which is why you've likely never seen the issue.
Basically, Android was never designed to have more than one expansion slot, so that ends up being mounted in /mnt/sdcard (or /sdcard, with one symlinked to the other). Since there's no standard on where additional storage ends up being (and most programs assume there's no additional storage anyways), programs usually don't know where to look.
There is probably an option is Slideshow Bob of where to get the pictures, try /mnt/sdcard-ext/[folder name], where [folder name] is the name of the folder on the external sd card where the pictures are.
Sogarth said:
iirc, none of the currently released Samsung Android devices have built-in storage plus an expansion slot, which is why you've likely never seen the issue.
Basically, Android was never designed to have more than one expansion slot, so that ends up being mounted in /mnt/sdcard (or /sdcard, with one symlinked to the other). Since there's no standard on where additional storage ends up being (and most programs assume there's no additional storage anyways), programs usually don't know where to look.
Click to expand...
Click to collapse
Hi,
My Samsung Captivate had 16GB of built-in memory and an SD expansion card slot which I filled with an additional 16GB card. In the android file manager I could access the expansion card by going into the ext_sd (or something like that) under the main sdcard directory. I could also see this folder in Slideshow Bob.
harolds said:
There is probably an option is Slideshow Bob of where to get the pictures, try /mnt/sdcard-ext/[folder name], where [folder name] is the name of the folder on the external sd card where the pictures are.
Click to expand...
Click to collapse
Hi,
There is no such option. There is an option for the default folder, but it's a text field you have to type in, not a directory structure. I tried typing in the path to the external sd card, /sdcard-ext/MEDIA, directly (which ASTRO file manager shows exists), but the app says the directory does not exist. I really think Motorola is doing something to limit what apps can and cannot access for whatever reason. This has never been an issue with my Samsung Captivate or Galaxy Tab.
I think this actually has to do with the external sd card being mounted separate from the internal. In my previous devices the external card was seen as a directory on the internal sd card. With the Atrix it is an entirely separate item and some apps may not be able to access it as a result of having that different mounting. I don't have any other apps with which I need to navigate to a directory (other than various file managers) so I can't test how endemic this is. I imagine it might be an issue for apps that rely on a folder structure for data access such as music apps that are folder based instead of reading from what's in the media library.
I just tried another slideshow app. It is a problem, I think, with Slideshow Bob. It can't see any folders not on the internal sd card. In my Samsung devices the external card was viewed as a folder on the internal card and was, therefore, not a problem.
Apps having directory navigation problems on the Motorola Atrix
Kenny, I have the same problem with the PowerAmp app. My phone is also rooted and I have root explorer which shows me the music files exist. I can even play one file at a time with the power amp from explorer. But I get the same issue when I try to navigate to the music using poweramp. One more possibility is that the Atrix is running Android 2.2.1. Perhaps there is an issue with the upgrade. (I thing this "upgrade" is a disappointment compared to 2.2. I'd rather try Gingerbread.) AT&T has a 30 buyers remorse period and I've only had the Atrix for a week. I love the phone and I would hate to take it back but wtf? I'm just like the rest of you, I just want the damn thing to work!
p.s. My wife's Samsung Captivate never had this issue either.
Update: I found this issue in the Poweramp forum and I also spoke to an at&t support specialist and they verified what was said earlier about the problem is in the difference between the Atrix file system versus the Captivate. The Captivate mounts the external sd card as a folder inside the internal sd card while the Atrix has it mounted separately. The Poweramp administrators promise a fix in a week so I'm glad they are aware of the problem. This seems like an easy bug to fix. I will snoop around the market to see if an app can "trick" the Atrix file system to put the external sd in an internal sd folder. If anyone is aware of such an app, let us know.
The Atrix is promised the Gingerbread upgrade later this year. It has a new file system (ext4) which promises to be faster for phones like our Atrix or the Nexus. As I said, it seem an easy problem to fix, I'm sure this problem will be a thing of the past by then, I'm going to keep my Atrix and wait.
Kenny, you might want to check your app's web site to see if they have a fix in the making.
The Atrix being my first android phone im still learning things every day and I have had similar issues with the sd card and storage partitions. while checking out different files and what not I stumbled upon this default.prop file which contains the following..
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=0
EXTERNAL_STORAGE_MOUNT=/mnt/sdcard
I was wondering if any one with more android experience is familiar with creating and editing prop files for certain activities could confirm if we switch the last line to sdcard-ext if this would now read or set our external sd card to be the sd card that the system and most apps read and write to. I haven't tested it myself but being familiar with different registry edits in winmo and windows im thinking this will work.. anyone agree or have some information they can share?
Sent from my MB860 using XDA App
Creating a Boot Animation for Android Based Systems (specific to the Acer Iconia Tablet)
I have seen requests for a tutorial or some instructions regarding making/building boot animations.. This is a beginning and is in a rough stage of the editing process.. It may take some time to get all the pieces assembled and all the contingencies covered.
Thanks to all the themers, devs, and mods I have worked with and their support in learning and using my my boots in their work..
vache
nitsuj17
gunnermike53
GrainOsand
adrynalyne
and a bunch more that I cannot think of right now
You will need some tools – All that are listed here are free or you already have them:
First off to get your raw material (videos) you will need to get YouTube Downloader.
This will give you the option to pull down videos you may choose to use for your image sources.
Next you will need Free Video to jpg Converter.
This is the best tool (free) to extract individual images from the video that you have.
Some form of picture or image editor will also be needed: gimp, paint, or Photoshop works well.. Gimp is free.
Faststone Image Viewer.
This tool is used to batch change files. This is a nice program because it can rename, rotate, or completely convert whole batches of image files for you.
You may also need a video editing program that is capable of putting captions on the video sequence or can edit longer sequences to shorter or cut and piece them together. Any should work fine. I use MSLIve Movie Maker.. I am sure that there are many more available.
You can also get GifSplitter program to pull animated gif files apart into the respective images then those can be packed into a boot..
You will also need a file zip utility. 7zip works best for me:
This will be needed to package the image files so that they are playable by the device.
You will also need program to edit the desc.txt file.. best program out there is Notepad ++. I do not use any other program so if there is another out there I have not used it. Do not use MSWord or other word processor. It will corrupt the file in a fashion that makes the boot not play.
Once you have your tools you move on to the next step...
Part II - Assembly
Patience is the greatest principle from this point on. Much of this takes time and practice to get all the variables to work the first time. Expect lots of trials and errors.
Step 1:
Download and install all the programs that are listed above.. then go hunting for the video images that you will want to use. Once you find the vid you want to turn into a boot animation you download it using the YouTube downloader.
Step 2:
Once you have the file you can use the Video to jpg Converter to break it into the number of images you desire; or you can put it into your video editor to adjust the length or add a caption.. Keep in mind that when importing process lowers the overall quality of the end image output. It is not really noticeable on a phone but makes many boots on a tablet it can appear grainy.
Things to consider; If you are cutting up a HD video each image will be very large in memory size and you may have to reduce the number of images that you have.. A really good number is ~100. Sometimes a 100 image sequence will 20+ megs in size. There is a trade off with larger numbers of images.. big images means really clear images, awesome colors and great resolution… but – slow load times, animations may start and stop, blackouts or freeze ups. To ensure smooth image flow and good load times I have always tried to keep all my animations under 5 megs. The absolute max on a tablet that will still flow is 9 megs. But this all depends on image color and density, black is always better.
Step 3:
Once you have your images procured you can edit them in batches: use Faststone to change the numbering in batches.. Android OS is nice enough that it will follow the established sequence and will keep playing even if you leave a number out.. You can also do batch changes in file format from jpg to png. This program is nice for this process because it does not degrade the integrity of the image.
I recommend any image editing be done in batches as well.. I use Microsoft Picture editor to select all the images at once and then crop as I need to.. Warning: if you crop either left or right side of the image the corresponding crop has to occur on the opposite side. The same applies to the top and bottom of the image. If you cut 10 pixels off the top you have to cut 10 off the bottom. If the crop is not symmetrical your images will play skewed and you it will look like your boot animation shifted diagonally to one side or the other.. or will not play at all.
If you do not crop in batches it is very time consuming to crop each image.. If you have to color edit or colorize you will have to address each image individually.
Step 4:
When you feel that all your images are completely edited to your liking you can start to assemble the images into the boot animation. The bootanimation.zip file has to contain certain structures: Image Folders and the desc.txt file.
The folders that contain the images; each folder labeled so that when told to play it plays the specific folder first. Then a desc.txt file. This file is the commander for the os/kernel. (more on that later)
If you want to break up the images into different folders this is the time to do it. One folder can be made to be played one time where the next may loop over and over again.. There is no current limit on the number of images in any of the folders. Early phones had caps of about one meg per folder. I have not found this to be the case with any Android system after 2.1.
Folder labeling – really does not matter as long as the desc.txt file contains the direction to that specific folder in it. Almost all boot builders will use ‘part0’, ‘part1’, ‘part2’… etc. as respective names for the folders. It is usually helpful to set up a working folder where your images are located and then drop your images there for editing.. you can then change the name to the desired folder in the boot sequence.
Step 5:
The desc.txt file: This is where most errors take place if they are going to happen to prevent a boot from playing first time. Using Notepad ++ open an existing file from a boot that you have already.. you will notice that there a few lines of code :
Line 1: The first two numbers on line one are the resolution and the third is the frames per second to play the image sequence
Line 2: Left blank. Some boot builders put a blank line in here for unknown reasons. I have found that it is not needed but you can keep it in if you choose.
Line 3: p = play, 1 = number of times to play, 0 = pause in the number of frames/second, part0 = the folder containing the image files chosen for that section. Note: spelling must match identically with the folder name.
Line 4: p = play, 0 = (0 infinite) number of times to play, 0 = pause in the number of frames/second, part1 = the folder containing the image files chosen for that section. Note: spelling must match identically with the folder name.
Line 5: ALWAYS LEFT OPEN. If you do not have an open last line the line preceding it will NOT play work and the boot will stop playing.. or will not play at all.
The desc.txt file for a boot animation that will loop only one folder:
1 1285 805 35
2
3 p 0 0 part0
4
The desc.txt file for a boot animation that will play the first folder one time then loop the second folder:
1 1285 805 35
2
3 p 1 0 part0
4 p 0 0 part1
5
Step 6:
When you have your folders and your desc.txt file assembled you should move all of that to what I call a working folder and then select them using 7zip.. then zip them up… IMPORTANT!!! DO NOT compress the files.. they are to be ‘stored’ – to a file called ‘bootanimation.zip’.. if it is compressed in any fashion it will not work.. You also cannot open the archive and then drag and drop files to it. You must compile the file each time from the folder(s) and the desc.txt file.. and zip it. If you opt to go the drag n drop route it will not work.
Copy over to your device and try it..
Expect many attempts that do not work the first time.... do not give up.
There is an example boot attached.. it is set up to loop only the first folder (part0) - and the the desc.txt file is set to run it correctly.. the part0 folder contains only a few image files. Please feel free to download and use the example for parts.
Part III - Trouble Shooting
Trouble shooting:
Boot plays but is bent/skewed to one side: The images were edited incorrectly when cropped. The crop was not symmetrical. This will also happen if you compress the jpg images too much in a You will need to redo the images from the video sequence then crop and repack.
Boot starts to play then stops and goes to black: make sure that the folder names are the same between the desc.txt file. There may not be a blank line at the end of the desc.txt file. The file sizes may be too big and the files cannot be played. Boots with image files greater than 500K per image will lock up on some devices. You may have to run the video through a converter to get it to a resolution low enough to run on the device without locking it up, bogging down or failing to loop. This is more likely to happen with (HD files); 720 and 1080 files that are directly converted to jpgs and then run as the boot animation.. I do not know why this happens but by running the video through like Windows Live Movie Maker it will allow it to work.. This does not happen to all videos.. If it happens I suggest converting the wmv to an avi and then reprocessing the video to jpgs.
Boot plays but only loops the first folder: the number after the ‘p’ in the second line should be a ‘1’ not a ‘0’.
The boot plays very slow and cannot play all the way through before the device is done booting. Image sizes are too big, or the fps in the first line is too low and you need to raise the number. Reduce the size of the files (compression) – be cautious of this, it has been known to corrupt the images and will cause them to skew/bend or freeze up upon play.
Boot will play then flash and start over – or will loop (as designed) with flashes: Windows image editor side effect. When you are viewing files in the windows picture viewer it will place a hidden file in the folder usually thumbs.db or imagethumb.db or other *.db file. This will cause the boot to flash white as the player tries to play the image sequence. This file must be removed from the folder for your boot to work right – when it is in the ‘stored’ format you can right click then select 7zip in the dropdown go over to open archive and then examine the contents of each folder if you see a *.db file – delete it. That will correct the problem.
Reserved if needed.
Fantastic! I love your work, but wouldn't have known where to start with trying it on my own. This is something I have wanted to do for some time, and now...if I can find the time (!)....this is a start. Thanks!!
Someone should sticky this.
Thanks
wohoooo... and the procedure is so big thanks to you. but i guess i would let you know on the boot animation itself
This looks awesome will definitely give it a shot in my spare time is there any way to get sound boot animation on the iconia or no. Haven't seen any but was just wondering.? lets see if I don't blow up my tablet with my boot animation lmao
KrAsH-SSyKo a500 Minimalist 3.2.1 Netflix update OC 1.5 ghz like a BeAsT
crashpsycho said:
This looks awesome will definitely give it a shot in my spare time is there any way to get sound boot animation on the iconia or no. Haven't seen any but was just wondering.? lets see if I don't blow up my tablet with my boot animation lmao
KrAsH-SSyKo a500 Minimalist 3.2.1 Netflix update OC 1.5 ghz like a BeAsT
Click to expand...
Click to collapse
Hopes are that it is clear enough for people to have good success with making many boot animations..
Unfortunately boot sounds are not going to work on the Iconia at this point. All of my attempts have failed, and no reports of success in other forums.
do the images have to be in png?
If I download a 720p youtube video & convert, the images are @ 1280x720p,
can I use that resolution for the boot animation & enter the size in the desc.txt?
& when you say max file of 9 Megs.. will it not play if its around 11 megs?
Also: How do you edit the naming of all the images in FASTSTONE? I did each one individually.. Lol! 001,002.. if its up to 100 can the last one be "100"? or does it have to be 0001, 0002, 0100?
I'm just getting a black screen... Frustrating yes! lol..
HD87 said:
do the images have to be in png?
If I download a 720p youtube video & convert, the images are @ 1280x720p,
can I use that resolution for the boot animation & enter the size in the desc.txt?
& when you say max file of 9 Megs.. will it not play if its around 11 megs?
Also: How do you edit the naming of all the images in FASTSTONE? I did each one individually.. Lol! 001,002.. if its up to 100 can the last one be "100"? or does it have to be 0001, 0002, 0100?
I'm just getting a black screen... Frustrating yes! lol..
Click to expand...
Click to collapse
Good deal questions!
The images do not have to be in png format, png will make the images very large in size and the Android system will play either png or jpg... but I do not mix them. I prefer jpg (smaller and they get the job done).
The image resolution that I use (1285 x 805) is the best I have found for the Iconia. If you go smaller you get the weird border artifact.
The file size issue is tricky depending on what video file format you are using. If you download directly and then convert the vid to jpgs.. you will get black screen lock ups (sometimes) - to work around this I have used the YouTube Downloader to convert the video to either WMV or AVI to reduce the data density in the images.. this typically reduces the overall size.
It will play any size (11 meg is getting larger).. the larger the size (of the images) the longer it takes to render the images.. the boot will start and stop and sometimes start then just go black.. I can get some as large as 22 megs to play... it depends on the individual images.
To edit all the names at one time... open Faststone go to the folder that you are going to rename.. Select all the images that need to be renamed: go to Tools - Batch Rename.. the convention I use for renaming is ### this will start with 001... 999.. start it up and you are done.. You can choose to use the four digit extension if you want.
If you are just getting a black screen the first place to check is the desc file.. there may be an error there - easiest fix. You could have a naming convention off (folder names not right or spaces not in the right place).
The next issue may be that 7zip or the other zip utility may have compressed the file.. that will render it unplayable. If both of those are correct you may consider the image sizes.. and go with a lower def file at first to see if it will play..
Let us know how your efforts turn out. I struggled for 3 days on my first boot before it would play correctly.. don't give up.
FYI: There is an irc room on freenode #acer-a500 If anyone is interested in a location to dialog.
So, that means I can use .jpg since it's size is smaller than PNG format.
Will try it after I made some loop images.
Thanks a bunch!
Hi,
How many "parts" can we have? Is it limited to 2 "parts"?
Thanks
verdigny said:
Hi,
How many "parts" can we have? Is it limited to 2 "parts"?
Thanks
Click to expand...
Click to collapse
You are not limited by "part" folders.. I have used as many as eight in phone boots without complications.
But I don't reboot my tablet enough to really need to mod my boot animation.
How to post new animation
I'm still new here but I did throw together an animation. How to I post it like the ones I've seen here. I have tried to link to the Animated gif I created and put on Mediafire with no luck. And how to I post the link to the finished product?
Great work JaeKar99 !
How do you define the number of frames ?
sometime i see 22 or 30 or 33
TIA
z-control said:
Great work JaeKar99 !
How do you define the number of frames ?
sometime i see 22 or 30 or 33
TIA
Click to expand...
Click to collapse
It is going to be dependent on how long you want the images to run or loop.. For example if you have 150 frames and you want it to run for 10 seconds you set the fps at 15 (or about).
If you want it to run through the folder looping a number of times: for example you may have only one folder (part0) playing over and over - containing 75 images. One may set the frame rate at 25 to play those 75 frames over 3 seconds... then it will start the loop over at the beginning until the tab fully boots.
The faster the frame rate the smoother the animation.. The slower the more stop-action like it may appear.
Hope that helps.
yes of course !
thanks a lot
Thanks, could be very useful
Hey JaeKar99
Thanks for this tutorial......
Decided to give a boot animation a try.
I have a success finally. Was getting pissed off for a while. Those zip files are picky SOBs
Thumbnails is making phone storage very low for new data
While I have 64gb sd card that I have to move stuff to it regularly
I want some way to make the sd card is the default for everything
Or at least for these huge thumbnails as a start
I have Xperia z2 3g lollipop 5.1.1. The A.1. 232 version
Same problem here
Gesendet von iPad mit Tapatalk
Can you pinpoint the app that is storing such large tumbnail cache? This is not normal behaviour and can be considered as a bug. You can use CCleaner from the app store to clean this thumbnail cache. Try to do it regularly. I would uninstall the app that is causing this, this can happen if youre using more gallery apps or more file managers. You can use many cache cleaning apps like CM cleaner or Clean Master too to do this.
I think it is the Stock photo app
tre1980 said:
I think it is the Stock photo app
Click to expand...
Click to collapse
Then do a system cache cleaning, this is possible even trough recovery but the simplest way is to use CCleaner frim the app strore. Try it but if you get that huge cache again then something is definitely wrong.
Yeah some problem here, my thumbdata is only about 1gb but i don't have a ton of photos on my phone, i can imagine this file getting bigger if there are lot's of photos on the phone.
Deleting the files will not solve the problem as android will recreate them very fast. I see and understand the purpose of the thumbdata files but there should be a way to set max size and location for this files...
IF anyone figures a nice solution for this problem please post :good:
Edit: just had an ideia, maybe we could move the folder thumbnails to external sdcard and use foldermount or links2sd to link it to the internal memory? i can't test this right now cause i'm at work but i'll try it later if i have time.
Thanks.
I still insist this is too large thumbnail cache. There may be leftover pics thumbnails that are deleted but thumbs are still here and thats why I propose a cleaning. 5gb worth of thumbs would be equal to 50gb worth of pictures. Sony album app creates thumbs where images are located so its wise to move pics to sd card and set camera to store pics on the sd card and then thumbnails will be recreated on the sd card in DCIM folder.
- First remember the name of the /storage/sdcard0/DCIM/.thumbnails/.thumbdata file, f.e. .thumbdata3--1967290299
(if you have two files, like me, remember also the second name)
- delete this file (s)
- create a new file (or more) with the same name of the file (s) you just deleted, f.e. .thumbdata3--1967290299
that's it. Android from on is not able to create a new large thumbnail file.
Well, actually, this is not the solution for moving the .thumbnail file to sdcard, but it helps to free a lot of memory - forever.
My low budget old phone has limited internal storage and having less than 1 GB of free space i used cleaner apps to ged rid of unnecessary junk. One of the apps found 2 hidden .thumbdata files of 1.15 GB each.
I deleted them, but didn't get free space.
Tested the solutions found on the internet but it didn't work. A new file of aprox 68 MB was generated when gallery was opened again .
Because some people on the internet claim it's a sparse file, i wanted to check it by opening it in a text or hex editor. I managed to open
such a big file in a single one(NMM hex editor) and noticed there is some data only towards the end of the file, what is also confirmed by the "ls" and "du" command.
It is interesting what the editor info says - looks some kind of mounted partition/space(i don't know how to call it), other text editors call it 7190, so it's definety not a normal file with that size in the DCIM folder. Even when almost empty , the system "books" the space from the file and doesn't allow the phone user to benefit from it.
My opinion is that my first deleted files were also space left "mounted" after the erase of the 2 huge thumbdata files.
Has anyone an idea what it is ?
Hi all!
Just an idea, would it be feasible to use say 2GB of RAM for a drive used to store pictures on, for even better performance? Or is the UFS 2.1 just as fast?
This is an idea for a custom ROM feature, hence the chosen forum section!
Kind Regards
TwinAdk
LPDDR4 is much faster, But as we know RAM is a volatile memory and what ever you do goes puff!!!
Unless we create a dump of the ram when rebooting/shutdown-ing
shazzy1 said:
LPDDR4 is much faster, But as we know RAM is a volatile memory and what ever you do goes puff!!!
Unless we create a dump of the ram when rebooting/shutdown-ing
Click to expand...
Click to collapse
Good point! Possibly create a control panel to control the usage of the ram drive, and have the content moved from RD to defined destination when the app that saves the data (camera app, download manager, Chrome, Firefox, etc) is no longer in focus?
And then symlink between locations so the system is left clueless :good::victory:
Great ideas here!!
Sent from my NEM-L21 using XDA Labs
LOL! Almost the same question, 30 minutes earlier...
https://forum.xda-developers.com/oneplus-5/help/best-to-extra-ram-t3625570
Linux probably supports RAM drives out of the box, so I doubt it would be that much work.
What the heck are you doing with pictures on a phone that you require better performance than UFS 2.1?
Chaleman said:
LOL! Almost the same question, 30 minutes earlier...
https://forum.xda-developers.com/oneplus-5/help/best-to-extra-ram-t3625570
Click to expand...
Click to collapse
Yeah, though that's general cache thoughts, this is the creation of a drive, usable by any app, or the user Great minds think alike!
ABotelho23 said:
Linux probably supports RAM drives out of the box, so I doubt it would be that much work.
What the heck are you doing with pictures on a phone that you require better performance than UFS 2.1?
Click to expand...
Click to collapse
I'm just thinking of the write speed that will increase. Then the content can be loaded off the drive when the user is leaving it idle. It will give an even better experience when writing stuff to disk. Do you see the potential that the users write command is done instantly, so the user can move on with things. The system can then handle the offload in the background when the user do not have to wait
I would love that feature!
Kind Regards
TwinAdk
Sent from my NEM-L21 using XDA Labs
Not sure if swap is still in use, but on my old Xperia (and a couple of others) swap was created as a RD and supposedly it helped a lot. With a beast like OP5 though not sure if that would help and if this is still in place and used .. I stopped following a couple threads when I broke that Xperia so kind of digging from memory
caki25 said:
Not sure if swap is still in use, but on my old Xperia (and a couple of others) swap was created as a RD and supposedly it helped a lot. With a beast like OP5 though not sure if that would help and if this is still in place and used .. I stopped following a couple threads when I broke that Xperia so kind of digging from memory
Click to expand...
Click to collapse
On older phones I guess RD makes more sense, but as long as RAM is faster than disk (and you have RAM to spare) RD makes some sense :silly:
Sent from my NEM-L21 using XDA Labs
caki25 said:
Not sure if swap is still in use, but on my old Xperia (and a couple of others) swap was created as a RD and supposedly it helped a lot. With a beast like OP5 though not sure if that would help and if this is still in place and used .. I stopped following a couple threads when I broke that Xperia so kind of digging from memory
Click to expand...
Click to collapse
Swap created as ramdisk? That doesn't make any sense. Mounting a ramdisk as swap is worse than useless.
davfiala said:
Swap created as ramdisk? That doesn't make any sense. Mounting a ramdisk as swap is worse than useless.
Click to expand...
Click to collapse
it does, if you use compression to sort of extend the size of the memory. If configured properly, it might bypass android's swappiness, but still keep the app's data in RAM for faster switchover. Not the most elegant solution, but it just might work. With so much memory that the OP5 has, that it can't really exhaust it, it's a bit pointless.
TwinAdk said:
On older phones I guess RD makes more sense, but as long as RAM is faster than disk (and you have RAM to spare) RD makes some sense :silly:
Sent from my NEM-L21 using XDA Labs
Click to expand...
Click to collapse
yeah, agreed, was just thinking aloud. I don't see that much into the internals of Android, but as you said earlier, some sort of quick cache might be worth a shot.
Running a ramdisk as a mount for /tmp is a common trick on Linux to make processes that write a lot of tempfiles run a bit faster. I don't know how Android handles tempfiles, but if it stores them all in one place like on GNU-style systems in should work as well. But I suspect not many Android apps write tempfiles anyway...
TwinAdk said:
Yeah, though that's general cache thoughts, this is the creation of a drive, usable by any app, or the user Great minds think alike!
I'm just thinking of the write speed that will increase. Then the content can be loaded off the drive when the user is leaving it idle. It will give an even better experience when writing stuff to disk. Do you see the potential that the users write command is done instantly, so the user can move on with things. The system can then handle the offload in the background when the user do not have to wait
I would love that feature!
Kind Regards
TwinAdk
Sent from my NEM-L21 using XDA Labs
Click to expand...
Click to collapse
Of course the write speed will increase. But for pictures, would it not be negligible?
ABotelho23 said:
Of course the write speed will increase. But for pictures, would it not be negligible?
Click to expand...
Click to collapse
Yes, it would be :laugh:
Sent from my NEM-L21 using XDA Labs
using tmpfs would be much easier than a ramdisk.
off the top of my head you would need to work out a few things
if you wanted it to be 'persistent' you would need to run some kind of scheduled rsync or background process to sync the data (lsync) to a dir on the ufs filesystem
either way you open yourself to data loss if during the scheduled window, or during the lsync, the phone reboots or crashes
you would also need to write an init script to create the tmpfs mount and sync back the data from the ufs filesystem
What would be a good candidate for 'ultra fast data'? Maybe the dir the camera stores files? What about the cached data each app stores?... you would probably have to limit this to a certain set of apps because you could run into an issue with space depending on how large you make the tmpfs mount...is that even something possible? I can't remember I haven't look at where the cache is stored
A memcached style setup might be nice... But that's probably similar to how the "app priority" feature works.
I'm actually looking for a way to create a ramdisk on my OnePlus 3T.
Is there any detailed description/explanation of how to make one or if there are any apps available that can do it for me?
Respond asap.
LOS ER said:
I'm actually looking for a way to create a ramdisk on my OnePlus 3T.
Is there any detailed description/explanation of how to make one or if there are any apps available that can do it for me?
Respond asap.
Click to expand...
Click to collapse
Sorry to bump up old thread, but maybe other are googling and directed here. So I better post my finding here and maybe other can benefit.
I have been searching for the holy grail for so long and finally found it. I am using RN5 whyred and trying to reserve 100 MB RAM for temporary storage and file processing for my Automagic flow. It is meant to reduce write cycle on the emmc. I have been trying to mount tmpfs on the /storage/emulate/0 and found out not working, the file still stored on emmc. Because I tried to reboot and the file still there.
I am currently using custom ROM AEX 6.7 Pie 9.0. When I use command mount, I can find tmpfs is mounted on /storage/self. So I thought to create a new folder inside it and chmod 777, /storage/self/ramdrive. Then I copy file to it using MiXplorer. And the speed is amazing.
I then check on the command free | grep Shmem
The size is increasing, means the RAM is being used for the storage. Deleting the file will reduce it, so it is working !
Testing copying file to internal storage, 750 MB takes about 12 seconds, while copy to the ramdrive takes about 5 seconds. Leave the file at ramdrive and restart the phone, the file disappear. So it is confirmed that the file is stored at RAM.
So for other, if you want to mount ramdrive, you need root. You need at least terminal emulator. But MiXplorer with root access can also create the folder. Try to check your tmpfs file first using
Code:
mount | grep tmpfs
I found several and use /storage/self. So I create additional folder there
Code:
mkdir /storage/self/ramdrive
chmod 777 /storage/self/ramdrive
This folder disappear at every reboot, so I use Automagic startup to recreate it at every reboot.
I then point my flow to save or process file at that path. By default the limit is half from the total RAM, which is 2 GB from my 4 GB RAM. I am thinking to find the script to limit the size, but rather than playing with the mount script, I better disciplined my flow to not store too much here.
Using the ramdrive, now I can lavishly store and delete temporary file there without worrying reducing my emmc lifespan.
I know, topic is old... But I found this discussion while searching for a solution to my problem, which is as follows:
I want to run a Dos emulator on my android device (to play windows 3.11 and dos games). I will do it with Magic Dosbox or even Limbo PC Emulator.
Point is: given the poor lifespan of sd cards and internal storage of mobile devices, it would be great if I could run such DOS "virtual machines" on ram disks, to avoid degrading the mobile's storage with all the read/write methods on the disk image (in case of Limbo) or in the folder (in case of Magic Dosbox).
So, I ask:
a) do Magic Dosbox have this feature? (I didn't find it on the documentation)
b) can I prepare a ram disk before running Magic Dosbox, to load a specific folder content or a specific disk image?