In Queensland, it is considered a weed. However, in countries like Malaysia it's used as a vegetable. Many people use the rootstock for grafting eggplant. It's a cultivated crop specially in South East Asia.
Because this wild species is used as an eggplant root stock it should be considered a cultivated crop. In addition the wild fruits are edible and collected and eaten in many areas. Finally the wild species has compatability with improved eggplants and is being exploited in eggplant crop improvement programs.
Solanum torvum is a common weed of tropics and sub-tropics, which is often gathered from the wild for local use as a food and medicine. It is a plant of immense medicinal value.
Please see the below given links.
https://www.cabi.org/isc/datasheet/50559
Article Phytochemistry and pharmacological studies on Solanum torvum Swartz
Article Antibacterial and Antifungal Activity of Solanum torvum (Solanaceae)
Article Solanum torvum: A review of its traditional uses, phytochemi...
It grows in a wide range of habitats throughout the tropics and subtropics. It grows best in warm moist fertile conditions, but once established it can withstand drought by shedding its leaves. This plant is seen on vacant lands, roadsides, pastures, river banks, and other such areas.
Pls. see the links To learn more about its benefits