yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] elban:
New version 1.4:

- moved temporary dir inside download dir, in order to avoid free space problems

- added confirmation dialog for restarting partial downloads

- added "send to system downloader" to finished downloads menu

- added contextual color to the status text

- added dual network check: will disable it when the two interfaces can't be detected (value reset when starting a new file)

- added display of dual mode status

- added error dialog on multiple download attempts

- better interface detection logging: should help debugging phones which do not work properly

- added support for some newer phones with different interface naming

- fixed crash on devices not having a mobile interface

- fixed random elapsed time on invalid url

- made the initial window a bit nicer

Before releasing the app to the market, I'd like to get some feedbacks.

I'm concerned about the automatic suspension of dual mode: does it work well or does it disable dual mode when it shouldn't?

Please provide your experience.

Many thanks guys!
[Android Apps and Games] varun.chitre15:
Will test thoroughly for 1-2 days and will be back with bug reports if any as well as a review :D
[Android Apps and Games] varun.chitre15:
I just faced a force close when adding a url.

I have sent the stack trace from androids built in feedback reporter on Google play store ;)

More feedback tomorrow :D
[Android Apps and Games] elban:
I can't see it in the developer console yet :-/

android reporting tool bug?
[Android Apps and Games] elban:
Still no crash report in the developer console today. Maybe it has to do with the release which is not published yet.

If it happens again, could you please post the logcat? Thanks! :)
[Android Apps and Games] elban:
version 1.5:

- fixed background transparency on froyo and gingerbread

- new holo style settings icon (for android 2 as well)

- added link to my other apps
[Android Apps and Games] varun.chitre15:
Hey sorry, was busy.

I will post logcat :)
[Android Apps and Games] elban:
Published version 1.5 to the market.
[Android Apps and Games] elban:
I belive the app is getting very little downloads on the market: there are bogus apps in the same category that get 100 times the installs.

Maybe someone can help with a review and/or +1 (I will gladly exchange):

http://play.google.com/store/apps/details?id=it.opbyte.superdownload_lite
[Android Apps and Games] hungsolow:
Just +1'd both and left 5 stars. I bought the app day 1....

Sent from my HTC one™
[Android Apps and Games] sordna:
Hi, does this app work on android 4.3 ? I tested it briefly on a Nexus 4 but it only seemed to use my wifi, I did not see my mobile data icon turn on. Are we supposed to see both the wifi and the mobile data icon simultaneously in the notification bar ?

Could you actually add a button in your app that turns on both network interfaces (without downloading anything) and keeps both networks on until the user pushes the button again? That would be useful for testing as well as proxying (with the help of other apps).
[Android Apps and Games] elban:
It should work on android 4.3, I've tested it on my nexus 4. Did the app request root permissions? Were they granted? Unfortunately the behavior of this application depends on the device, the rom, the carrier etc. and it's not easy for me to make it work everywere. That's why I need users to report if they have problems.

Yes, both icons should turn on. If you still have issues, please post a logcat so I can see what's going on.

About the final question, please see the FAQs in post 2 of this thread.
[Android Apps and Games] sordna:
I have a nexus 4, rooted, latest stock ROM, franco kernel. Root was granted, and I could see from the logs that the app did the following:

ip rule del from x.x.x.x tab 2511 priority 100;ip rule add from x.x.x.x tab 2511 priority 100; ip route flush table 2511; ip route add default via x.x.x.y dev wlan0 tab 2511

I did read the FAQ, but it didn't answer my question. Since your app has the ability to maintain both networks on, why not add a button so the user can turn that on, even while not downloading? It would be useful for testing that particular functionality on one's phone.

Let me ask my question in a different way: How can I turn on both wifi and mobile data (so their icons are on simultaneously) with shell commands ? I tried with netfcg but could never get both wlan0 and rmnet_usb0 to be up and receive their IP addresses. One of them will always be unconfigured (0.0.0.0). I've never seen both the wifi and H icon light up simultaneously, and REALLY want to see this !
[Android Apps and Games] elban:
There should be some lines in the log about network interfaces: the problem might be detecting the mobile interface correctly.

If you don't want to post a logcat here, you can send it to me via mail or PM. Thanks for the information.

About you question, here is the answer from the FAQs:

Q: Why can't you do the same system wide, for all the applications?

A: That would need to modify android internals and probably every application that needs it. Currently Super Download merges the packages from the two connections at the application level and there is no simple way (that I know of) to do it differently.

You can't just turn on the two interfaces: the packages must be routed thru them and merged when they come back, otherwise they will just use one single connection.
[Android Apps and Games] sordna:
I read this carefully and fully understand. I do not want to load balance or speed up anything, neither do I expect any apps to take advantage of this.

I simply want to turn on both interfaces for the sake of having them on at the same time for testing purposes. For the average user it will be useful for them to evaluate the app and see if the dual network feature is compatible with their phone.

For the advanced user, it will allow them to add routes to different networks on the different interfaces and try stuff out on a terminal.

For the longest time I have been searching high and low on how to get both my networks up simultaneously! Can you please share the steps and shell commands to achieve this ? Do I start with both networks enabled in my settings (and then do certain shell commands) or should one of them be off (before doing any shell commands to enable it) ? Thank you so much for your help!
[Android Apps and Games] elban:
Ok now I understand.

There are many different ways of doing this. Some people wanted to route different traffic thru the interfaces and just ended up using commands like "ifup" and "ifdown" for the purpose. Of course you'll have just one default gateway and internet traffic will be routed thru one interface only.

Some just wanted to access LAN services and static routing was enough for them.

SD does it differently as it tries to do the most via android api for compatibility. It uses ConnectivityManager for that and some linux advanced routing commands to differentiate the traffic.

But since android expects a single interface up, it just bring the second down automatically after some seconds. That's why, on SD, you'll see the mobile interface intermittedly going down. That method is not right for your needs...

Again the way SD works is peculiar to the download itself, it's not "sharable" :)
[Android Apps and Games] sordna:
Ok, I understand the proprietary nature of the app. I also find it very nice that you handle the mobile interface going down automatically, even if it's intermittent, I'm fine with that. Therefore I would like to ask again, can you please add a button that turns on both interfaces for *testing purposes*? Especially if the app can already monitor the interface and bring it up if android takes it down, that is super cool and I'd like to see that, without having to find an appropriate file on an compatible webserver to download.

You have all the functionality implemented, all I'm asking is a button to turn on the dual networks without actually downloading.

If you can add this to a test apk I can try it out. This is xda-developers, and we like to experiment with interesting stuff, and this featuer is the most interesting thing I've seen in a long time!
[Android Apps and Games] elban:
It's not that I do not want to do it. It just doesn't make sense to me.

If I was to make such a button, I would need to make a timer thread that checks for the connection to be up, at least every 2/3 seconds, eating resources and battery along the way. And consuming mobile traffic. Then someone will contact me in anger because I've eaten their data plan in a couple days.

I think that a better way for me to contribute to the development of something related to SD is to share my knowledge about the matter, so I'm here to help.

Also please note that bringing up a network device is the easiest part: what is really complicate and use-specific is routing and merging of the packets.

May I ask you what type of application are you developing? maybe I can help you better.
[Android Apps and Games] sordna:
It would be a test button, and you can add a warning. Besides most people have their mobile data turned on all day. I've had the app for several hours and I still have not been able to test it if dual networks work, and I don't know if it's the webserver's fault. I want to see both my wifi and H icons light up. Even your screenshot on the play store does not have the H icon light up even though the app says that it uses mobile.

No app, my quest started when my ISP had trouble and my home network was without regular internet. So I want to be able to ssh to my phone, and then ssh to my work. But of course when I turn on wifi on the phone, the mobile data turns off. You mentioned ifup and ifdown, they don't exist on my phone. Can you tell me how I can bring up both interfaces with existing shell commands? The rest I know how to do with static routes, and I don't need any merging of packets. I'm quite proficient with routing on Linux, I would only have a default route via the mobile data interface, and only my local LAN route on the wlan0 interface. This way I can ssh to my phone from my home LAN, and from my phone ssh to the outside world. But unlike linux that allows you to bring up multiple network cards at the same time, I have not been able to bring up BOTH interfaces on hte phone, can you tell me the shell commands to simply turn on both interfaces that will work on a rooted nexus 4 with stock 4.3 ? I tried "ifconfig xxx up" and "netcfg xxx dhcp" but neither have worked, one of the 2 interfaces will never get an IP address. Thanks in advance for your help.
[Android Apps and Games] elban:
Bringing the interface up many times will generate much more traffic than having it always up. Just think of the ppp protocol exchaging information about the ip, gateway, etc.

The icons will light up together, just not for the whole download, because of the mentioned drops and because it takes some seconds for the interface to come up.

Maybe I'm oversimplificating, but couldn't you just use the wifi hotspot function of you phone?

Sorry for mentioning "ifup", I may have confused android with ubuntu ;)

Try insmod-ding the related kernel module and then ifconfig up the interface. But I don't use such a method nor I have experience with it.
[Android Apps and Games] sordna:
I've never seen them light up together, not even your screenshot on the play store shows this :) It only shows wifi on.

I can do that to thether a laptop, but in my case I want a desktop computer without wifi to talk to the phone, so I want the phone to remain a wifi client of my wireless router. The desktop is connected to the same router via ethernet cable. I have done USB tethering as well, it works, but where my computer is the cell signal is terrible, so I need the phone to be away from the computer.

Ok, thanks to this thread and some more digging I found a way to make it work on my nexus 4:

# enable dual-networking:
pkill dhcpcd
svc wifi disable
svc data enable
netcfg wlan0 up
cd /data/misc/wifi/.
wpa_supplicant -B -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
dhcpcd wlan0
ip route add x.x.x.x via x.x.x.y

# disable dual-networking:
ip route del x.x.x.x/x via x.x.x.y
pkill dhcpcd
pkill wpa_supplicant
rm -rf /data/misc/wifi/wlan0
netcfg wlan0 down
svc wifi disable
svc data disable

I'm happy now! It works, however I only see the mobile data icon (H, or E, or G), the wifi icon remains off, even though wifi is working under the hood. Do you really see both icons on in your case? Can you post a screenshot since the play store screenshot only shows wifi on ?
[Android Apps and Games] elban:
Here it is.
[Android Apps and Games] sordna:
I don't see mobile data icon in this screenshot either. I see wifi and cell network bars, but normally when mobile data is on, you see (on the nexus 4 at least) a letter next to the bars such as H (for HSPA) E for edge or G, and on other phones you see "3G" or "4G" next to the cell network bars. I thought you mentioned that while downloading a file with dual-networking, you see both icons turned on.
[Android Apps and Games] elban:
Omg!

It never changes to h or e or whatever, but you can clearly see it's transferring. And the speed of the mobile part is the same as if wifi was off.

Please believe me: I don't want to make other screenshots or anything else just because you don't believe me.
[Android Apps and Games] sordna:
You misunderstood, I believe you but wanted to see if it's technically possible to have both icons on, I did not question whether your app works. You said the icons turn on, but the mobile data icon does not.

However I was able to verify that both networks are up, by running: netcfg | grep UP

while a download was happening, and indeed both wlan0 and rmnet_usb0 interfaces had IP addresses !

So this is interesting, with my script I can turn on wifi (but the wifi icon does not show up), and with your program, you can turn on mobile data, but the mobile data icon does not show up :)

For educational purposes, can you please let us know the command or api you call in your app to turn the mobile data interface on and off? Thanks!
[Android Apps and Games] elban:
In order to use a second network interface (and also getting information on the main one), I'm using android.net.ConnectivityManager:

http://developer.android.com/reference/android/net/ConnectivityManager.html

The key is using:

requestRouteToHost(int networkType, int hostAddress)

to route the traffic of a specific target thru a different interface than the default.

Very useful is also:

getAllNetworkInfo()

Which returns information about all the network types supported by the device.

Actually there is no specific instruction (that I know of) to bring the interface up: the system will do it when needed, which I believe is the aforementioned requestRouteToHost() call.
[Android Apps and Games] sordna:
Thanks, this is very interesting that ConnectivityManager will turn on a 2nd interface. Looks like a bug on Android that it does not light up the 3g/4g icon.

I noticed a bug in your app, with some links that fail it reports that the download finished, instead of reporting an error, and the file saved is 0 bytes. This link for example fails if I try to download it directly without going to the webserver first, but while wget gives me an error like 'forbidden', Super Download just says the download finished at 0 bytes

http://www.prohost.com.tw/app/network_utility/test_040m.zip

Maybe some more error checking is needed ? Anyway, thanks again for a very innovative app! The requestRouteToHost trick would be nice to implement in a Proxy Server app, I hope someone will implements this.

In the mean time I found some pages with further related info (they talk about enable HIPRI network feature)

http://stackoverflow.com/questions/...ction-in-android-application-instead-of-wi-fi

http://stackoverflow.com/questions/5883777/android-force-data-to-be-sent-over-radio-vs-wifi

https://groups.google.com/forum/#!topic/android-developers/1B-FUFSE0ps
[Android Apps and Games] elban:
Thanks for the report, I will look into it asap.

About the proxy idea, it's one of the most interesting development which could be done on superdownload: it's already on my todo list. Another one for example is extending the system downloader on custom roms like cyanogenmod.

Unfortunately, currently I do not have enough time to start such a project. But, I hope I'll have in the future ;)
[Android Apps and Games] sordna:
If you add that button to turn on both networks when the user wants, it would be amazing, because no other app does that.

Except for this Wireless Analyzer, which apparently is for older versions of android since it didn't work for me:

https://play.google.com/store/apps/details?id=br.com.redrails.wa

For now I use the script I mentioned earlier, and this proxy server app:

https://play.google.com/store/apps/details?id=com.icecoldapps.proxyserver

It's great since I can make my desktop computer browsers access the web via my phone, whenever my ISP connection goes down.

But it would be nice to do it in an app and avoid the scripts !
[Android Apps and Games] elban:
I suppose you change the proxy on the clients to use the phone as a "gateway" when the isp goes down.

Is any special configuration needed on the proxy server app?
[Android Apps and Games] sordna:
Exactly, I only need to change the proxy setting on the browsers (or I can use a centralized proxy.pac file to autoconfigure them).

In any case, the computer network configuration settings can be left alone.

No, at least the proxy server I'm using doesn't need any configuration, other than a port to run it on, and then I point the computer browsers to the phone's wifi IP address and port.
[Android Apps and Games] elban:
I've added a new crucial FAQ entry (the last one) ;)

Please let me know if the question and the answer are clear and complete.
[Android Apps and Games] shmuel6:
Love your APP bought it in the play store.

So I was having a problem with links due to the infernal Capcha. I was wondering if this bad boy could be integrated with fire fox to allow such downloads to be processed as well. I already use fire Fox to download all my files and integration with this app will make it so much more appealing. Also torrent integrating would be awesome the folks over at ttorent would be ecstatic to talk. They already have the torrent client market by the balls this will help keep them the king of the hill.
[Android Apps and Games] elban:
Hello and thanks for your report. I've added captcha support to my todo list! :)
[Android Apps and Games] elban:
Hello,

Just wanted to know if anybody's having problem with kitkat or 4.3 on their devices.

I had some reports of problems on 4.3 but I couldn't reproduce them.
[Android Apps and Games] unknown25:
does not use dual network for me in 4.4
[Android Apps and Games] sordna:
The only problem I had with this is that when trying to download something in Chrome, this app would get launched to do the download, even when I didn't want it to (I wanted Chrome to perform the download). I checked both apps for defaults in the system settings, but neither had any defaults. So why would this app get invoked by chrome without my choice? Ended up uninstailling it because of this.
[Android Apps and Games] elban:
Unfortunately that's how it works for downloaders in android: they register for file types, then some browsers like chrome will trigger the downloader automatically if there is only one, will trigger a choice dialog if more than one, or the internal downloader if there is none. Firefox and opera might work differently: some browser may run their own downloader with no choice to the user.

I suggest you install another downloader with different features along with superdownload, so you have a choice.

See also FAQ number 2 and 3.
[Android Apps and Games] elban:
I've been testing with a nexus 5 and it seems to work for me.

Could you please provide some information:

- which device/rom?

- does it trigger a superuser request?

- if you have a bit of time, please send the logcat of a failed dual network download attempt.

Many thanks!
[Android Apps and Games] unknown25:
Yes it asks for super user permission.

I have Samsung infuse running beanstalk 4.4

Wen ever i download I see a line which says dual network mode :suspended.
[Android Apps and Games] elban:
Please see FAQ number 6.
[Android Apps and Games] elban:
The new galaxy S5:

"...it supports LTE Cat-4 mobile broadband and Wi-Fi 802.11ac wireless networking with one really impressive feature: the "download booster." This bonds the Wi-Fi and LTE connection to maximize the downlink bandwidth, which apparently can go as high as 650Mbit/s as a result of the coupling.

Download booster is a spot-on name because while it will provide fabulous download speeds, the latency stinks, as you'd expect from an LTE/Wi-Fi bonded connection, so it’s no good for smooth web browsing nor online gaming, for example."

Finally someone has integrated a superdownload-like feture in their rom! :)

It took some years, but....

http://www.theregister.co.uk/2014/02/25/samsung_s5_launch/
[Android Apps and Games] Qthink:
Hello I love this app, but there is somthing problem

If Downloaded mp4 file then play it some pict are broken

If downloaded apk the file canot be isatalled

I use Xperia Z on 4.3

View attachment 2613743
[Android Apps and Games] 1droidmod:
Awesome! Thanks..

XT912 RaZR SpYdEr CDMA

hit ThAnKs if I was helpful!!!
[Android Apps and Games] elban:
Can be many reasons: the web server limiting multiple access from the same client, some network problems, etc.

Would you mind posting a sample link so I can test myself?
[Android Apps and Games] Qthink:
I use free Download from here....

http://davvas.com/d0nnukmczpsm

I think it caused from agrresshive threding.

Where is network priority on Download? Wifi or data?

I have mobile data more fast and stabil than the wifi .
[Android Apps and Games] elban:
I'll try your url asap. There is no manual network priority, but since the threads are launched on demand, it should compensate automatically for a faster wifi or mobile.

Keep in mind that, if one of the two is much slower than the other, you'll probably end up with a slower download than using the best connection alone.
[Android Apps and Games] rumbles17:
Connect to WiFi and mobile data connection at the same time

I reconfigured an Android tablet into an Info-taiment system and installed it in my car. I've worked out all the problems except one, that I think Super Downloader might have solved.

Problem: Android can only connect to a single WiFi network at a time, but I need both a WiFi connection and an AT&T network data connection at the same time.

Usage Details: I have a WiFi backup camera installed, that looks like a WiFi network to Android. The rest of the infotainment functions are handled via Apps (like Pandora, Maps, WeatherBug, etc.) that require a AT&T mobile data connection. As a result, Apps like Pandora lose their data connection when the WiFi camera is on.

Question: Super Downloader opens both the WiFi and mobile data connections to speed up file downloads. Is there a variation of Super Downloader that opens both the WiFi and mobile data connections for other apps to use?

Tablet info:

Tablet: Samsung Galaxy Tab 3 7" with AT&T-4G, 16GB (SM-T217A)

Android: 4.2.2
[Android Apps and Games] elban:
Hello!

Currently this will not work with super download. But it may be possible by doing some tweaking similar to what SD does.

In this same thread there are a couple of similar discussions, but you must be prepared to dedicate some time to command line and advanced networking ;)
[Android Apps and Games] sordna:
Yes, the user can see my pointers earlier in this thread.

Elban, maybe you should make an app that does what myself and other folks are doing with scripts, to keep both networks on! Or maybe you can enhance Super Download to do this? There is demand for that :)
[Android Apps and Games] rumbles17:
That would be wonderful!

I think there is a "dual network" hole in the Apps market. Currently, there aren't any apps in that space.
[Android Apps and Games] elban:
Right. Now, If only I had... time! :)
[Android Apps and Games] SherlooSkye:
My download is at 90%, then suddenly, downloading failed. Happened 6 times already.