FORUMS
Remove All Ads from XDA

[APP] findutils 4.2.33 (updatedb / locate) for Android

417 posts
Thanks Meter: 402
 
By viulian, Inactive Recognized Developer on 19th September 2011, 04:43 PM
Post Reply Email Thread
Introduction

As I like to stay connected via Putty to my Android phone, from time to time I missed the functionality of updatedb / locate that I so got used to within Linux environment.

I've decided to cross compile the findutils package (I couldn't get the latest version 4.4.2, but an older before, 4.2.33).

Screenshot

You can see the updatedb command followed by some locate commands.



Installation

Busybox is required.

1. Copy the archive onto your /sdcard/ folder.
2. mount your /system folder as read-write
3. cd /system/
4. tar xf /sdcard/findutils-4.2.33.tar.gz

It is mandatory that you are inside /system/ folder when you extract the archive.

Then you have to create the database (using updatedb script). It will take a bit of time - but not too much.

Then you can use the locate command giving any part of a file name that you can remember, you can also use wildcards!

Observations

1. No integration with cron / etc. If you know your updatedb database is out of date, rebuild it using "updatedb"
2. Busybox comes with a /system/xbin/find command. The trouble with it is that it doesn't support the fstype argument, and thus, updatedb cannot prune some standard file system type paths. However, the bundled package here comes with its own find utility which unpacks into /system/bin/find.
3. Busybox is required for sort / sed, but updatedb script is patched to use the /system/bin/find (its own find executable) instead of the default busybox one.
4. My phone did not have an /etc/mtab file (list of mounts which mount is supposed to update whenever something happens). Thus, there is a line in the updatedb script which recreates that file on each updatedb invocation (mount > /etc/mtab). If you phone / tablet has it, please modify updatedb script and remove the mount command.

Download

Use it at your own risk!

findutils-4.2.33.tar.gz
The Following 8 Users Say Thank You to viulian For This Useful Post: [ View ] Gift viulian Ad-Free
 
 
26th September 2011, 01:13 AM |#2  
Junior Member
Thanks Meter: 0
 
More
This is great! Thanks for your work!
I hope that there will be a file manager for android which uses updatedb/locate to index/search files in the future, that would be sooooo awesome!
28th September 2011, 11:02 PM |#3  
OP Inactive Recognized Developer
Thanks Meter: 402
 
Donate to Me
More
Don't know about other software that searches - but it would be nice too.

Maybe I can create something, but I'm sure there are others more integrated - such as looking in SMSes or in mails too, etc.
1st December 2011, 07:32 AM |#4  
Senior Member
Thanks Meter: 202
 
More
nice! find takes for ever lol now i have locate!
11th December 2011, 09:03 PM |#5  
Member
Flag Columbus, OH
Thanks Meter: 6
 
Donate to Me
More
Any chance of getting the code. Did you create your own Android.mk? Did you use the FindUtils make?
9th March 2013, 06:11 PM |#6  
Member
Thanks Meter: 21
 
More
When I run updatedb, I get these errors:

/system/bin/find: /preload: Value too large for defined data type
/system/bin/find: /storage/sdcard0: Value too large for defined data type
/system/bin/find: /system: Value too large for defined data type
/system/bin/find: /data: Value too large for defined data type
9th November 2013, 02:49 AM |#7  
RobPitt's Avatar
Senior Member
Flag Brighton
Thanks Meter: 14
 
Donate to Me
More
Quote:
Originally Posted by yelkarama

When I run updatedb, I get these errors:

... <snip>

/system/bin/find: /data: Value too large for defined data type

I also get this error
9th November 2013, 06:41 AM |#8  
Senior Member
Thanks Meter: 202
 
More
This doesn't work. Might have worked a couple years ago before 4.x Android...

Use something like es file Explorer

Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
15th November 2013, 06:21 AM |#9  
OP Inactive Recognized Developer
Thanks Meter: 402
 
Donate to Me
More
I will rebuild it in the weekend I think back in the days the file systems were only 32bit, and now a lot of phones have 64bit file systems ...
The Following User Says Thank You to viulian For This Useful Post: [ View ] Gift viulian Ad-Free
16th November 2013, 08:03 PM |#10  
RobPitt's Avatar
Senior Member
Flag Brighton
Thanks Meter: 14
 
Donate to Me
More
Quote:
Originally Posted by viulian

I will rebuild it in the weekend I think back in the days the file systems were only 32bit, and now a lot of phones have 64bit file systems ...

Thanks for your efforts, I guessed it needed a rebuild from a google, but given how long ago you posted this I didn't think it would happen. Looking forward to the update!

Sent from my GT-N7100 using Tapatalk
12th June 2014, 09:36 PM |#11  
Member
Thanks Meter: 21
 
More
Please upload the new build
Quote:
Originally Posted by viulian

I will rebuild it in the weekend I think back in the days the file systems were only 32bit, and now a lot of phones have 64bit file systems ...

Hi

Please upload the new built binaries.

Thanks
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes