DAB+ App: (real)zoulou's DAB-Z app (official support thread)

Search This thread

voxmagna

Member
Jul 15, 2009
38
8
This is the best UK DAB out there and I tried a few, thanks for this. I have a Chinese Android 10 car head unit without root and it's pretty much locked down. I've been around the houses as a Beta Tester and finally concluded my problem is with DAB-Z or the USB interface. I was abe to get a factory build image, flush everything and re-install without any additional apps or usb devices. There were no crash reports from Sleep mode.

Most car head units are set to fast boot from sleep mode. You want to get in your car start it and have the radio up and running just like an analogue radio. When DAB-Z player starts from sleep mode crash files are generated each time in the local mnt sdcard and the folder just keeps filling up. If I set the head unit to normal slow boot or push the reset button (same thing) there are no crash errors. This has bugged me for while until I confirmed it's related to DAB-Z latest and previous versions. I'm not a programmer but I do understand Sleep modes can be difficult and the problem could be due to the USB receiver or even Android10? I've attached a typical crash file, but admit I don't understand what it's saying.

A less important issue is saving favorite stations and manually installing station logos. Station presets are saved and recovered ok and logos download and install o.k over wifi, but I don't want the car unit connected to the internet to re-install DAB-Z or logos each time. The benefit of the offline download is you get all the UK png logos, so if you drive out of area and rescan you have them.

I downloaded logos on a pc in correct png format and added them to the DAB-Z logos folder but 'Sync' does nothing. I suspect this may be because the radio is locked down and doesn't give permission to write into the system area?

Any help or advice would be appreciated.
UPDATE: I eventually managed to root the beast so I could copy all the logo files into the system area folder and they are now found and listed by the app. It would be nice if logo files insider a folder could be found on a external USB or the internal mnt/sdcard without moving them into a system folder?

The crashes when dab-z is run from Sleep are still there. For now the head unit option is set for normal slow reset boot, but it's not how a car radio should normally start up.
 

realzoulou

Senior Member
Nov 3, 2016
917
1,160
Greater Area Munich
I looked at 'crash-2022-10-01-11-44-20-com_android_launcher17.txt'. From the name of the file I suspect that the log is from your launcher app, not from DAB-Z.
The content of the file does not contain much. But I can say that it is for sure not coming from DAB-Z.
 

realzoulou

Senior Member
Nov 3, 2016
917
1,160
Greater Area Munich
UPDATE: [...] could copy all the logo files into the system area folder and they are now found and listed by the app.[...]
The folder where the logo png/jpeg files need to be present is not a system area, but the "usual" user's area:
<internal memory>/Documents/DAB/logos/
This "internal memory" has no standard name in Android and so all file manager apps call it differently, "Local", "Internal", "Flash", ...
The actual path name inside your Android device is printed on the Logo Import screen.
 
  • Like
Reactions: surfer63

voxmagna

Member
Jul 15, 2009
38
8
Thanks. Yes I wondered about the Launcher? It's the one thing in these head units that is very customised. Although you can get into developer mode, unlike Android phones and tablets, the launcher restricts what you can do. I couldn't even get in with adb. Now I have Root and the original firmware to restore to I can play some more. There's no restore partion I can find in the usual place and TWRP would have to be a customised version. For now I've managed to get the Boot.img file modified for Magisk.

I'll have another look at where the logo pngs are. What does the logo 'sync' command in DAB-Z do? My next challenge is to remove a lot of the bloat, most of which requires a mobile neteork data connection. I just want a reliable car radio with resident satnav and Bluetooth phone connections, not a complex Google Android platform with GAPPS I don't need. As shipped, my App storage is running at 16Gb from available memory of 32Gb which I hope to reduce since my satnav map data is only 1.5Gb.
 

realzoulou

Senior Member
Nov 3, 2016
917
1,160
Greater Area Munich
What does the logo 'sync' command in DAB-Z do?
It traverses the <internal memory>/Documents/DAB/logos/ folder (incl. sub-folders) and builds/refreshes a SQLite database, where it stores the relation from DAB station to logo file. Only the logo file name is used to guess from file name to which DAB station this may belong.
Because I did not want to scan this folder at every app launch (to see what the user may have changed there), I left it up to the user to press the "Sync" button.
 

TJF2

Member
Feb 15, 2020
19
5
Munich-Starnberg, Germany
I sometimes(!) have a problem starting the car when DAB-Z was active before. It is a current 64 bit top model from XTRONS with Android 11. The radio is basically in standby mode and is shut down after removing the car key.

After starting the car, the attached error message ("Fehler_1.jpg") is displayed ("Storage Location-> Please select 'Documents/DAB' in the next dialog..."). If you click on "OK", the next window appears ("Fehler_2.jpg": This folder cannot be used. Select another folder to protect your data) ...

If I switch the radio off and on at this point, everything works normally...
 

Attachments

  • Fehler_2.jpg
    Fehler_2.jpg
    695.8 KB · Views: 52
  • Fehler_1.jpg
    Fehler_1.jpg
    972.9 KB · Views: 52

realzoulou

Senior Member
Nov 3, 2016
917
1,160
Greater Area Munich
In "Fehler_2.jpg" you should select the folder "Documents" -> "DAB" and then press ok. Did you try that?
If you did that but the error comes again and again, try to change the status of DAB-Z Settings -> General -> "Re-enable startup dialog when storage access is needed". If it is checked, then un-check (or vice versa) then restart DAB-Z.
 
  • Like
Reactions: TJF2

okij

Senior Member
Oct 24, 2012
1,998
3,879
Düsseldorf
@realzoulou Today I checked the memory usage of the internal storage and saw that DAB-Z is collecting enormous amounts of cache files over time.

If you look at the attached screenshots, you can see that betweet 3rd May 2021 and today it has generated 1472 file directories named "ts_*", each containing "dabtmp_*.dab" files and "textuals" and "visuals" subdirectories.

According to my apps listing in Play Store, DAB-Z is occupying a whopping 23 GB by now, whereas according to the DAB-Z app page in system settings its "just" 12 GB of cache. I don't know if 23 GB or 12 GB is correct, but it's far too much of cache files anyway.

What is the reason for DAB-Z saving all these cache files and - more importantly - not deleting them again? Is it a bug?

I haven't found a setting in DAB-Z to influence this behaviour, but for sure it should be user controllable. If those cache files are needed, they at least should be purged every day / week / month.

Thanks in advance for some feedback on this. :)
 

Attachments

  • Screenshot_20221007-172730.png
    Screenshot_20221007-172730.png
    97.6 KB · Views: 40
  • Screenshot_20221007-172802.png
    Screenshot_20221007-172802.png
    105.4 KB · Views: 35
  • Screenshot_20221007-172836.png
    Screenshot_20221007-172836.png
    96.5 KB · Views: 27
  • Screenshot_20221007-172940.png
    Screenshot_20221007-172940.png
    54.8 KB · Views: 27
  • Screenshot_20221007-173353.png
    Screenshot_20221007-173353.png
    39.4 KB · Views: 38
  • Like
Reactions: rigattoni

surfer63

Senior Member
May 4, 2010
4,658
2,205
Zwolle
github.com
UPDATE: I eventually managed to root the beast so I could copy all the logo files into the system area folder and they are now found and listed by the app. It would be nice if logo files insider a folder could be found on a external USB or the internal mnt/sdcard without moving them into a system folder?
You make a big mistake here in confusing the necessity for root and the ability to write to "external memory" for which you need the DocumentsUI which is by default not in the FYT firmwares.
And even with root you can't copy/write inside the system area. It is read-only on your uis7862 or any Android 10. Root can't change that and has absolutely nothing to do with it..
Please read through the proper documentation about the documentsui and about dynamic partitions. You do things without knowing what you do and without understanding your system.
 
  • Like
Reactions: rigattoni

rigattoni

Senior Member
Apr 27, 2010
1,966
634
Fuerth
@realzoulou Today I checked the memory usage of the internal storage and saw that DAB-Z is collecting enormous amounts of cache files over time.

If you look at the attached screenshots, you can see that betweet 3rd May 2021 and today it has generated 1472 file directories named "ts_*", each containing "dabtmp_*.dab" files and "textuals" and "visuals" subdirectories.

According to my apps listing in Play Store, DAB-Z is occupying a whopping 23 GB by now, whereas according to the DAB-Z app page in system settings its "just" 12 GB of cache. I don't know if 23 GB or 12 GB is correct, but it's far too much of cache files anyway.

What is the reason for DAB-Z saving all these cache files and - more importantly - not deleting them again? Is it a bug?

I haven't found a setting in DAB-Z to influence this behaviour, but for sure it should be user controllable. If those cache files are needed, they at least should be purged every day / week / month.

Thanks in advance for some feedback on this. :)
Hi @okij ,
I just checked that on my setup... That look quite different in my PX6.
 

Attachments

  • Screenshot 2022-10-08 111042.png
    Screenshot 2022-10-08 111042.png
    185.2 KB · Views: 18
  • Screenshot 2022-10-08 110909.png
    Screenshot 2022-10-08 110909.png
    305.2 KB · Views: 22
  • Screenshot 2022-10-08 104409.png
    Screenshot 2022-10-08 104409.png
    179 KB · Views: 19
  • Screenshot 2022-10-08 110818.png
    Screenshot 2022-10-08 110818.png
    276.4 KB · Views: 21
  • Like
Reactions: okij

okij

Senior Member
Oct 24, 2012
1,998
3,879
Düsseldorf
Hi @okij ,
I just checked that on my setup... That look quite different in my PX6.
That looks fine on your device.

I'm using a PX6 too, it's an MTCE device running on Hal9k v4.2.1.

@realzoulou So is this a bug of DAB-Z on my device or is there some (hidden) setting that controls the purging of DAB-Z's cache? Can I help you with some logs for debugging this issue?
 
  • Like
Reactions: rigattoni

surfer63

Senior Member
May 4, 2010
4,658
2,205
Zwolle
github.com
@realzoulou So is this a bug of DAB-Z on my device or is there some (hidden) setting that controls the purging of DAB-Z's cache? Can I help you with some logs for debugging this issue?
Are you using the "timeshift" function? That writes ~32MB per hour constantly, when using DAB-Z, to your memory/cache.
Maybe it should be removed on a restart of DAB-Z. Or is DAB-Z already doing that?
 

okij

Senior Member
Oct 24, 2012
1,998
3,879
Düsseldorf
@surfer63 Thanks for the hint. :)

I had the timeshift function enabled and indeed it is writing the cache files. After disabling it, no cache files were written.

The best thing is that after re-enabling the timeshift function, DAB-Z now only keeps the latest cache files, i.e. when closing and opening DAB-Z, the old "ts_*" directory is deleted and a new "ts_*" directory is created, which should be the way it's supposed to work.

Since still about 12 GB of older files were in DAB-Zs cache directory, I purged its cache via the system settings. This took about ten minutes to complete because of the vast number of files.

So now everything's fine again on my setup. (y)

@realzoulou: Maybe you should still have a look into this issue, because for some reason DAB-Z didn't clear the timeshift cache until I toggled the timeshift function off and on again. There might be other users who fill their internal storage without noticing it. ;)
 

realzoulou

Senior Member
Nov 3, 2016
917
1,160
Greater Area Munich
@okij Yes, one portion of dir/files is from the Timeshift functionality. By design the App should delete all timeshift folders it created at runtime when the App is closed. Seems it does not always do so properly.

The other portion is from RadioDNS logos. I noticed this myself also.
I will fix both in 2.0.x, not in 1.9.x anymore.

Btw. Cleaning the cache of any app can be done in the Android settings of the app. I see no benefit to add an option in DAB.Z itself.
 

okij

Senior Member
Oct 24, 2012
1,998
3,879
Düsseldorf

Top Liked Posts

  • There are no posts matching your filters.
  • 62
    Last updated: 2022-10-13
    Release notes of currently active release on Google Play 1.9.127
    Release notes of currently active PUBLIC BETA on Google Play: 1.9.127
    If you want to become beta user, subscribe in Google Play or open this link from the device : https://play.google.com/apps/testing/com.zoulou.dab

    The app is available in Google Play named DAB-Z with package name "com.zoulou.dab".
    It can be installed in parallel to any original preinstalled DAB+ Player.

    Get DAB-Z on Google Play

    Get previous versions on Apkpure

    Compatible devices:

    all DAB USB dongles with VID/PID = 16C0/05DC (decimal 5824/1500) ("VOTI", "Van Ooijen Technische Informatica", "shared ID for use with libusb", "[email protected]")
    Examples (for sure not complete!)
    XTRONS USBDAB01
    Joying DAB+
    Pumpkin Y0251
    Hotaudio Dasaita DAB+
    (and dozends or hundreds more, they are all quite the same, if not equal.)
    Use this link to find out more

    NOT SUPPORTED:

    * Any SDR ("Software Defined Radio") devices (e.g. based on Realtek RTL2832U R820T)
    * Fulljoin adapter
    * Dension DAB+U
    * Dasaita DAB box


    Frequently asked questions FAQ:

    DAB-Z's expected behavior regarding Play/Pause, Mute/Unmute, Navi App announcements

    Q: Does DAB-Z support fallback to FM Radio?
    A: No and it is not planned due to technical reasons.

    Q: Why do some stations appear several times in the list but have all the same content?
    A: This is an annoying behavior of the broadcasting stations. DAB-Z does not lump them together to give the user the choice to pick one into the favorites list that has the best signal strength.

    For testers ...​

    ... that want to actively support me and help everyone to have a better DAB-Z app:

    If you encounter an issue with DAB-Z, I will maybe ask you to provide a) logcat logs or b) raw recordings.

    a) logcat logs are created by pressing the logcat button in DAB-Z Settings -> Info (at the very bottom)
    A zip file is created and you will be able to choose what to do (send via Email, add to Google Drive, etc...). Get this zip file to me somehow.
    If I additionally ask you to enable "OMRI verbose logging", then follow these steps before creating the logcat as above:

    1. Enable Developer Menu: tap 7x on DAB-Z Settings->Info->Version , then go back, a new menu item appeared "Developer options" at the very bottom
    2. Enable OMRI verbose logging
    3. Close DAB-Z
    4. Reopen DAB-Z
    ... reproduce the issue ...
    5. Create the logcat DAB-Z Settings -> Info (at the very bottom)

    b) raw recording are created by this procedure:

    raw recordings are done using this procedure:
    1. Enable Developer Menu: tap 7x on Settings->Info->Version , then go back, a new menu item appeared "Developer options" at the very bottom
    2. Enable OMRI raw recording (you don't need to activate verbose logging)
    3. Close DAB-Z (raw recording enable/disable requires a restart of DAB-Z)
    4. Reopen DAB-Z
    ... reproduce the issue ...
    6. Go to DAB-Z Settings and disable OMRI raw recording. Restart DAB-Z again.

    Afterwards, files with ending .raw exist in:
    <internal memory>/Documents/DAB/rec/
    Download them all from the head unit, zip them and send to me.
    18
    Release ZOU-DAB+171119 "Master Piece"

    Release of the "Master Piece" version of the DAB+ App mod.
    ZOU-DAB+171119

    Download: REMOVED

    ZOU-DAB+171119-Flip-AutoHide.gif

    Credits for translation to Norwegian goes to again to XDA member @[email protected]
    Credits for translation to Italian goes to china-rns.com member John Dai

    Changes (see also Changes.txt from the download):

    New:
    - Station logos
    Station logos can be downloaded from Volkswagen for >20 countries across Europe and automatically installed to a User accessible location. More than one country can be installed. User can add own station logos in subfolder "<extStorageDir>/DAB/logos/user" in JPG or PNG format. No width/height restrictions for the logo. The app will automatically scale to fit.
    Settings allow to enable/disable showing station logos in station list and in Slide Show area. Scaling can be limited to 1x,2x,3x if needed.
    Settings list any issues in finding a matching logo for a certain station. The search is based on the station name. If no exact (substring) match can be found in the list of logo files, then a default logo is presented. The User has to fix this by renaming logo files or adding additional logo files outside(!) of the DAB app using a File Manager.
    - Layout:
    * new button icons
    * button bar moved from left to right side to gain more space for the slide show area
    * Changed the "logic" of the favorites button: Shows what will happen when pressing it, not what the current status is.
    * new "radio.png" logo. Using now a new DAB logo used in Germany (www.digitalradio.de)
    * the background boxes are not disabled by default. Can be reactivated in Settings.
    * General layout optimization for
    - 800x480 @ 320 dpi
    - 800x480 @ 240 dpi
    - 1024x600 @ 320 dpi
    - 1024x600 @ 240 dpi
    - Removed the previously added "Large SLS" activity. Replaced with an animated fade out of the station list.
    - Added an option to automatically hide the stationlist after a selectable timeout.
    - Added Audio format (MP2 or AAC) and Sample rate (44,1 or 48 kHz) to Station details. As before in the Large SLS, still accessible via "flipping" the slide show picture.
    - Added an option in Settings to move the App to background when the DAB App was started by the "USB device attached" event. Useful eg. when using certain launchers.
    - New logo in the notification bar.
    - Settings->Info shows the reason why the DAB App is running: Either started by "LAUNCHER" or "USB DEVICE ATTACHED"
    - Settings->Info shows the screen resolution and density (e.g. 1024x600 @ 160 dpi)
    - When scanning with type "update", old stations no longer received are now deleted. The favorite setting will be kept.
    - Added Italian translation. Thanks to John Dai @ china-rns.com

    Changes:
    - Replaced old "Connecting..." behaviour with a completely new implementation
    - Audio recording now stored in <extStorageDir>/DAB/rec/ (instead of <extStorageDir>/dab_rec/)
    - Fixed: Channels "10N, 11N and 12N" not shown in station details
    - for developers: BroadcastIntent generation is now disabled by default. Can be reactivated in Settings.
    BroadcastIntent definition has changed w.r.t. "artist", "track" and "playing". See change documentation in BroadcastIntent-definition.txt

    Note that the high pitch sound issue is not fixed in the 171119 release.

    Video tutorial for station logo download from Internet:
    http://youtu.be/zVTGYbXsG7I

    Video tutorial for adding own logo pictures :
    http://youtu.be/Bux3LEJoML8
    16
    Release ZOU-DAB+180804 "Master Piece Maintenance Release 5"

    Release of the "Master Piece Maintenance Release 5" version of the DAB+ App mod.

    ZOU-DAB+180804

    Download: http://bit.ly/2Kqp7HB
    (Please only share the bitly link with others)

    Changes (see also Changes.txt from the download)

    - BroadcastIntent: added slsBitmap which contains currently displayed logo or DAB slideshow picture
    Goal: Allow launchers (e.g. FCC Car launcher) to display album art
    INFO: DAB App now also has a fairly complete implementation of Android's android.media.browse.MediaBrowserService interface
    This allows for using pure Android APIs to view metadata instead of using the proprietary BroadcastIntent
    - Add buttons for PREV and NEXT to Notification and use Media style notification
    - PREV/NEXT steering wheel behavior can be swapped in Settings->General
    - Fixed: Volume adjustment in Settings->Audio is lost after station change
    - Fixed: After several station scans, App completely fails to work until re-install.
    - Fixed: Duplicate entries in station list
    - Removed feature to delay the USB connection on automatic start, which was introduced with ZOU-DAB+180210
    - Removed option to avoid that DAB App is started twice from Settings->General. This is now avoided by using Android manifest launchMode=singleTask
    - Removed feature to download a country-specific station logo zip file and automatically extract it.
    Note: You can still copy an extracted folder of such station logos to /DAB/logos/ folder and after pressing "Sync" button in Settings->Station Logo the logo files will be scanned for a match between filename of a png/jpg file and the name of a station.
    13
    Release ZOU-DAB+180618 "Master Piece Maintenance Release 4"

    Release of the "Master Piece Maintenance Release 4" version of the DAB+ App mod.

    ZOU-DAB+180618

    Download: REMOVED

    Changes (see also Changes.txt from the download)

    - Fixed: Adopt Station Logo download to new VW website
    - Add a button to Settings->Info to show hints picture about how to use the UI
    12
    Release ZOU-DAB+170909

    Release of my next major version of the DAB+ App mod.
    ZOU-DAB+170909
    This is not the "master piece" release yet.

    Download: REMOVED

    There are (again) two versions of the App:
    a) the "normal" one
    b) one with no usb_device_filter.xml included, which makes Android remember already granted access of DAB+ App to the USB DAB device.
    However, Android then also starts the DAB+ App whenever it finds the USB DAB device as newly connected, which is the case when you power on the
    head unit.
    Some people don't want that the DAB+ app starts automatically when the DAB USB device is detected at startup. This is the reason why this version exists.
    Note: When running on Android >= 6, this version will most likely ask for permission to access the USB device at *every* start of the app.

    Credits for translation to Norwegian goes to XDA member @[email protected]

    Changes (see also the Changes.txt from the download):

    New:
    - Most (not all) of the texts are now available in: English, Deutsch and Norsk bokmål
    Credits for translation to Norwegian goes to XDA member [B @[email protected][/B]
    - Swipe to right in station list shows a delete button. On swipe left again, delete button disappears. On click on delete button an alert dialog appears to allow the user to confirm. Deletion of stations cannot be un-done. A new scan is needed to get the station back.
    - Additional info (channel and ensemble name) in station list can be deactivated via Settings->Layout
    - "Service Following" feature can be activated in Settings->General. NOTE: This is treated as "Experimental". This activates the original app functionality, which was always in the app, but was not connected to the UI. Do not blame me if you find it not working.
    - Audio recording button can be activated via Settings->General
    - The borders around the slide show picture and around the station list can be deactivated via Settings->Layout
    - A click on the slide show picture creates a large version of the picture. I call this "Large SLS".
    - Swipe left or right on "Large SLS" switches between the picture and some detailled info about the current station.
    - When starting a re-scan one can choose now between "Replace all stations" and "Add new stations"
    - The app sends out broadcast intents containing all information that you can also find on the screen.
    The definition of the intent is in file "BroadcastIntent-definition.txt"

    Changes:
    - Fixed: no audio after standby when using NoKill mods.
    - Fixed: when USB connection suddenly drops, the App remains active but with no audio. My fix is to close the app.
    - Settings layout improved
    - Notification now contains station name instead of "Make DAB+ great again ..."
    - A second way to enter the settings screen is via the "Large SLS" screen
    - Optimization of memory allocations. Results in less Garbage Collector runs, which is good for overall performance.


    Main.PNG Large_SLS.jpg
    ChannelDetails.PNG Credits.PNG

    Videotour through the DAB+ App:
    https://www.youtube.com/watch?v=hHVRfX5n8eM