Remove All Ads from XDA

Android Fork Bomb

3 posts
Thanks Meter: 0
By Spacegrass, Junior Member on 22nd April 2010, 12:30 AM
Post Reply Email Thread
Just out of curiosity does anyone know if any android devices can be affected by a fork bomb sent via text or email?
22nd April 2010, 02:20 AM |#2  
bunu's Avatar
Senior Member
Thanks Meter: 52
It is Linux so I'm guessing it will be affected. Maybe it won't be like OMG but it will be some what affected.
22nd April 2010, 06:08 PM |#3  
Thanks Meter: 0
If a text or email could execute a custom script on being received, there is probably a lot worse that it could do than a fork bomb... Might be possible to get two views to keep calling each other, in which case the bundle for that program will expand until it runs out of memory and android will kill the app. This is very much an app specific bug though, and isn't related to the "fork bomb" of a program making a new instance of itself.
23rd April 2010, 01:14 PM |#4  
jeremy89632's Avatar
Senior Member
Flag Singapore
Thanks Meter: 3
I thought Android runs on the sandbox environment for applications, which means the app can't execute much permissions as compared to Windows.

Just my $0.02
23rd April 2010, 09:23 PM |#5  
Thanks Meter: 0
Yes, the apps are sandboxed for the most part.

Now that I think on it, there is a launch flag to open a new instance of a program leaving any currently running ones alone, which could be used to make a forkbomb. In this case, it would not be stopped by memory as the earlier instances will shut down but the exponentially increasing new instances will keep going, probably making the phone unusable until a reboot.

This can only be done by compiling and launching a signed app though, no email client can do this unless it has a backdoor to trigger this code from itself or from a trojan-esque feature to download, install, and launch apps on its own. The user would be promted to ok the new app's permissions anyway, unless it uses and gets permission for root access.

Basically, forkbombs are possible, but not by email or text with stock or nonmalacious programs.
12th January 2012, 08:03 AM |#6  
Junior Member
Thanks Meter: 0
Task Management
If the script gained root access, it'd be just the same as on a Linux machine. But I believe the DalvikVM simply kills any apps/processes it needs to in order to keep the system running smoothly (in theory).
21st February 2014, 03:40 PM |#7  
nicandris's Avatar
Inactive Recognized Developer
Flag Amsterdam
Thanks Meter: 218
well it works...
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes