PoC: Add a few constant strings (EBC number, username and password for bahn.de) and view your BahnCard in this application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Fynn Godau f29c285cff More robust parsing of images 4 months ago
app More robust parsing of images 4 months ago
.gitignore Load Android template 2 years ago
README.md Update README 6 months ago
build.gradle Implement two-fragment layout 7 months ago
gradle.properties Load Android template 2 years ago
settings.gradle Load Android template 2 years ago

README.md

How to find out your EBC (electronic BahnCard number) – suggestion. Other and more efficient ways are possible

  1. Create bahn.de account
  2. Attach your BahnCard by signing up for BahnCard services
  3. Root your phone
  4. Install DB Navigator
  5. Sign in to your account
  6. Download BahnCard in DB Navigator
  7. Do the following commands on your computer after attaching your phone:
$ adb root
restarting adbd as root
$ adb shell
:/# sqlite3 /data/data/de.hafas.android.db/databases/DBWallet.db
SQLite version 3.22.0 2019-09-03 18:36:11
Enter ".help" for usage hints.
sqlite> .tables
DBC_BAHNCARD           DBC_ORDERS             DBC_SECONDARY_TICKETS
DBC_BARCODES           DBC_ORDER_LABELS       DBC_SECTIONS         
DBC_BC_SELFSERVICES    DBC_POSITIONS          DBC_STOPS            
DBC_FAVOURITES         DBC_RESERVATIONS       DBC_TICKETS          
DBC_HVV_TICKETS        DBC_SCHEDULES          DBC_VERBUNDFAV       
DBC_MAIN_TICKETS       DBC_SCI_STATUS         android_metadata     
DBC_MOREAPPS           DBC_SEAT             
sqlite> SELECT * FROM DBC_TICKETS;

The last command will list all tickets including BahnCards that are stored in your DB Navigator installation.

How to install

At the top of TicketCollector, look for

private static final String EBC = "";
private static final String AUTH_USERNAME = "";
private static final String AUTH_PASSWORD = "":

and fill in your details.