Jump to content
Posted

Hello @Quadzilla Power,

 

I've been having an issue since I installed my IQuadBT that I'd like to rectify. For the most part, everything is great. I have quite a few intermittent connection issues but I've learned to deal with them. The biggest problem is the "Failed to Export" message I get when trying to capture a data log, of any size. I really need to do some data logging on my primary device, an Android In-Dash head unit, running version 4.4.4. I can export on my Samsung Galaxy S4 running 6.0.1. However, my tunes are on the in-dash unit, and there is no easy way that I know of for switching tunes back and forth. And all of my tweaks and changes are on the primary device.

 

The device is rooted,and I ran fix permissions and wiped the dalvik cache. Still no go. I'm ready to try anything except for flashing a different android firmware. Can you guys help me out troubleshooting this? It seems that Iquad can't create the .csv for for export, so maybe there still is a permission issue of some kind. Any and all help is appreciated.


Thank you,

-Kole

  • Replies 44
  • Views 6.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Quadzilla Power
    Quadzilla Power

    This forum really is fantastic. We love these guys over here.  Also, just as an FYI, kzimmer really did have to do a lot of tweaks to the operating system on his stereo unit to get it to work. If

  • I bought mine off of eBay a couple years ago. It works extremely well. There's only a couple different manufacturers and different chinese companies constantly rebrand them and sell them with their ow

  • Mopar1973Man
    Mopar1973Man

    Ditto...    

Featured Replies

So where did this all ended, kinda curious. 

Is there a particular device that will work flawlessly with quad, I'll get one if I have to, or all devices have glitches. Not sure who developed it if it was aimed at particular device. 

Edited by Dieselfuture

  • 2 weeks later...
  • Author
On 8/14/2017 at 6:11 AM, Dieselfuture said:

So where did this all ended, kinda curious. 

Is there a particular device that will work flawlessly with quad, I'll get one if I have to, or all devices have glitches. Not sure who developed it if it was aimed at particular device. 

 

 I haven't had much time to play, busy summer. All I can say for sure is my samsung smart phones work great, and my android head unit does not.

 

-Kole

  • Author

 

On 12/07/2017 at 8:03 AM, Quadzilla Power said:

OK, Here is what I've found. The location of the export file will depend on the Android version. The call that is used is the File.createTempFile built into the Android OS. The temp folder moves depending on the version. A typical location for the file is /data/local/tmp/

 

If you have the ability, you can create a small app that all it does is create a small temporary file using the same call. Maybe it will help you identify what needs to change in the OS build or with our app. If you figure it out, let me know and I will get the change in the next version of the app as long as it doesn't break something else. 

 

As far as the differences between Android 5 and the Android 4.4.4, Android 5 does have special permission stuff, but since the app was compiled and targetting an SDK previous to the Android 5, you shouldn't have to worry about those permissions. However, I'm not 100% about that. 

 

@Quadzilla Power

I spent about 5 hours on this today and i'm frustrated.

Are you sure it's File.createTempFile ? I tore apart the APK today and couldn't find any reference to this.

 

I noticed today that I can't export tunes either. Same thing, "Export Failed". Does that give any clues? I can import fine. I thought I remembered exporting working, but I guess not.

 

I also tried modifying AndroidManifest.xml and adding every permission under the sun. No dice.

 

My head hurts. The only cure for this is being able to back up my tunes and do some data logging. And more cowbell.

I did listen to that song today and did find a disturbing lack of cowbell. I could have sworn it was more prominent in there. 

 

Regarding the createTempFile call, Here is the exact call: 

File file = File.createTempFile(filename, ".json", this.getExternalCacheDir());

 

This is the call for the "export tune" call. I think you are probably getting an error on the getExternalCacheDir() call. It is built in to the API for Android and should be used with Android 4.2 or higher. 

It appears that no permissions are required starting in Android 4.4 (KitKat) to use files in the directory. 

 

I do have a request out to the developer to see if an external SD card is required, but it doesn't look like it is. 

 

  • Author
8 minutes ago, Quadzilla Power said:

I do have a request out to the developer to see if an external SD card is required, but it doesn't look like it is. 

 

That reminds me, I should put my SD card back in.

 

One other thing, this particular OS is kind of strange. There are at least two internal "drives" in the unit. Maybe even 3, I need to double check. I wonder if it's trying to put the files inside a directory of one of the drives that are reserved for OS or OEM use.

 

I wish I could follow along to debug somehow and see what's hanging.

  • Author
50 minutes ago, Quadzilla Power said:

I'm seeing if I can build a version for you that doesn't use the external memory call and just uses the getCacheDir() call instead of the getExternalCacheDir() call. 

Try it with the SD card as well to see if that fixes it. 

 

 

Nice! I would be extremely grateful.

  • Author
3 minutes ago, Quadzilla Power said:

well, I tried and got a permission denied error. I am looking to see if I can fix it real quick or if I need to get the developer involved. 

 

I wonder if changing that call would require access to the mediarw permission group?

There is nothing that I've found that says any special permissions are required. However, the total size of the "cache" section would need to increase to account for the data-log. The exported custom tunes are less than 1 kB so they shouldn't really  require anything extra. 

OK, I did a special build for you that doesn't use the createTempFile file call and instead creates a normal file in the "external" directory. Basically, all the external means is that it isn't hidden and you should be able to navigate to the file. 

 

Try this file: 

http://quadzillatech.com/TunesDownloads/AndroidApp/IQUAD_ANDROID_app-release(SPECIAL-BETA).apk

Like I said before, this is a special one-off build. If you get a warning saying failed to export or something else, tell me what it says. It may help identify what's going on. 

 

The files were created for me in the following directory: 

Internal Storage>Android>data>com.quadzillapower.iQuad>files

I tried it on two different devices and they were created in the same area. 

 

  • Author
4 hours ago, Quadzilla Power said:

There is nothing that I've found that says any special permissions are required. However, the total size of the "cache" section would need to increase to account for the data-log. The exported custom tunes are less than 1 kB so they shouldn't really  require anything extra. 

OK, I did a special build for you that doesn't use the createTempFile file call and instead creates a normal file in the "external" directory. Basically, all the external means is that it isn't hidden and you should be able to navigate to the file. 

 

Try this file: 

http://quadzillatech.com/TunesDownloads/AndroidApp/IQUAD_ANDROID_app-release(SPECIAL-BETA).apk

Like I said before, this is a special one-off build. If you get a warning saying failed to export or something else, tell me what it says. It may help identify what's going on. 

 

The files were created for me in the following directory: 

Internal Storage>Android>data>com.quadzillapower.iQuad>files

I tried it on two different devices and they were created in the same area. 

 

 

 

Awesome, thank you for doing this. Much appreciated. After work today I'm tackling Tappet cover gasket, front crank seal, front cover gasket, vacuum pump seal, and VP44 Oring. Will be nice to keep some of the oil in the crank case. If I finish all that tonight (wishful thinking) I will try this out tomorrow after work, and I'll keep you posted.

 

-Kole

  • Author

@Quadzilla Power

I gave that APK a shot. Same problem. I also tried installing the app on the external SD card with no change. I wish I had a way to tell exactly what was holding it up, other than just getting the "Failed to Export" message. I wonder if an app exists to debug and step through code of another app?

  • Author
5 hours ago, Quadzilla Power said:

Was there no other message regardging the state of the drive? It might have said something like:
"Cannot Use External Storage: xxxx" where xxxx is the reason it can't? 

 

 

Negative, all i see is the grey popup message "Failed to Export" on both Data Logging Export and Custom Tune Export.

  • 1 month later...

I’m not looking to export any logs at the moment but I’m looking to get the android head unit. But I haven’t heard if you can control the Iquadbt from it or just view it? Could anyone clarify that?

You can control it, but if you can't import and export I don't see a point.  

Ok I’ve been checking the iquad out for a very short period, import and export, what exactly are you importing and exporting? I have my truck basically for towing only with injectors and lift pump so really just looking for some power gain. Reason I’m after the iquad is if someone had a good tune it’s not hard to copy then tweak.

  • Owner

Tune data or data logs.

 

As for building tunes I would start with the default tune and tweak it slowly. Default Quadzilla tune isn't bad starting place. As for what works on my truck may or may not work for you. Like I'm running nearly 23* worth of cruise timing.

I see ya I’m not going competitive enough at the moment to be to worried about my data logs or to do that much custom tuning, but I can now change power levels on the stereo deck? That’s good news do you know what deck they were running and the add ons they needed?

  • Owner
3 hours ago, GrampoleCummins said:

I can now change power levels on the stereo deck?

 

Basically, any Android head unit or Android device (cell phone, tablet, etc.) should be able to do that task for you. 

 

3 hours ago, GrampoleCummins said:

I’m not going competitive enough at the moment to be to worried about my data logs or to do that much custom tuning

 

None of are in a competitive mode at all really other than tuning to clear up smoke and improve daily driver performance. Like I came from an Edge Comp that was rather dirty and impossible to clean up because of the lack of tuning and timing controls.  

 

Edited by Mopar1973Man