are the past notification are some where saved ?

97 views
Skip to first unread message

perry

unread,
May 6, 2019, 11:03:53 AM5/6/19
to comp.mobile.nokia.8110
Hello,

Does anyone know if the past notifications will be saved and where?

greetings perry

speeduploop

unread,
May 6, 2019, 11:09:13 AM5/6/19
to comp.mobile.nokia.8110
They must be saved someone because they 're-fire' on a reboot if you didn't open them...
(at least the unread notifications...)

But I can't say where.

PuriShnit

unread,
May 6, 2019, 11:16:03 AM5/6/19
to comp.mobile.nokia.8110

I would try:

-Change date to a later date.
-Send myself a SMS etc.
-Now execute 'find /data/ -mmin -2'

Then, we can easily pinpoint the file-location...

perry

unread,
May 6, 2019, 11:21:13 AM5/6/19
to comp.mobile.nokia.8110
adb shell do not support  -mmin

PuriShnit

unread,
May 6, 2019, 11:24:52 AM5/6/19
to comp.mobile.nokia.8110

I recently did it with adb in 8110 with Gerda recovery.

However, some 'find' applets don't contain this function, so you could try adding 'busybox' at the beginning of the command, as busybox should definitely contain this function...

perry

unread,
May 6, 2019, 11:36:01 AM5/6/19
to comp.mobile.nokia.8110
thanks @PuriShnit with busybox find -mmin works

the notifications are saved in different sqlite db's

speeduploop

unread,
May 6, 2019, 11:57:18 AM5/6/19
to comp.mobile.nokia.8110
Yes - Android (and therefore KaiOS) are trying to get rid of 'busybox' because of it's license... so they implement more and more applets in their own 'toybox' -- so once they implemeted all commands they need they can stop shipping busybox.

But the applets of toybox are often simpler or even broken...
Good examples are find, sed or even ps.
(toybox sed can easily kill files because it's 'in-place' option doesn't work as expected...)

But 'busybox mount' doesn't work sometimes on the 8110 - so here it's better to use the built-in 'mount'.

speeduploop

unread,
May 6, 2019, 11:59:43 AM5/6/19
to comp.mobile.nokia.8110
There is a 'sqlite3' binary usable in 8110's shell in my cloud-drive if you're in need.
(but be carefull: if you only want to 'look' use the '-readonly' flag to be sure you can't accidently mess something up)

perry

unread,
May 7, 2019, 1:46:53 PM5/7/19
to comp.mobile.nokia.8110
@speeduploop how to use sylite3 binary ?

speeduploop

unread,
May 7, 2019, 9:58:48 PM5/7/19
to comp.mobile.nokia.8110
It's an unmodified sqlite3 -- so all tutorials/how-tos on the web are matching...

You have copy it to your device... and don't forget exec-rights.

./sqlite3 -readonly /path/to/the/db.sqlite
will open it read-only.

Then it's sqlite commands (starting with a 'dot') -- or SQL to work with the db...

perry

unread,
May 11, 2019, 4:37:16 AM5/11/19
to comp.mobile.nokia.8110
I would try to write a script to get the next coming events from the calendar app.
It is right all event are downloaded and saved in a sqlite db ?

speeduploop

unread,
May 11, 2019, 8:16:52 AM5/11/19
to comp.mobile.nokia.8110
How about inspecting the DBs of the calender app? Then you would know... ;)

perry

unread,
May 11, 2019, 9:52:14 AM5/11/19
to comp.mobile.nokia.8110
okay it's new stuff to learn for me :-)

I think the data is saved in table: object_data -> data
Can I use a js library to read out the sqlite db ?

speeduploop

unread,
May 11, 2019, 10:20:59 AM5/11/19
to comp.mobile.nokia.8110
I thinks it's only sqlite on the low-level -- it's indexdb on the higher-level...
I really can't say if it's allowed/possible to open indexdb of another app.
(but IIRC there was such an import/export app for FFOS so there probably is a way to do it)

And yes: developing is reading/learning most of the time...
--> one of my tutors long time ago said: read, read, read, think, think, write... :D

ProgrammAbel

unread,
May 11, 2019, 10:36:04 AM5/11/19
to comp.mobile.nokia.8110
I believe the import/export app for Firefox OS simply copied the .sqlite databases somewhere, and then downloaded them onto the new device.

perry

unread,
May 11, 2019, 10:38:43 AM5/11/19
to comp.mobile.nokia.8110

perry

unread,
May 11, 2019, 5:25:44 PM5/11/19
to comp.mobile.nokia.8110
to work with database is new for me,
what kind of database are used in FirefoxOS ?

speeduploop

unread,
May 11, 2019, 5:36:58 PM5/11/19
to comp.mobile.nokia.8110
as already mentioned...
-- sqlite on backend
-- indexedDB on frontend (javascript)

perry

unread,
May 11, 2019, 5:39:44 PM5/11/19
to comp.mobile.nokia.8110
so the indexDB pass the data to sqlite or that are not connected ?

speeduploop

unread,
May 11, 2019, 6:30:04 PM5/11/19
to comp.mobile.nokia.8110
The official API on javascript-side is IndexedDB - the browser implements it in sqlite...
(this is only an implementation-detail... they could have choosen any other way to store this data)

perry

unread,
May 11, 2019, 6:36:23 PM5/11/19
to comp.mobile.nokia.8110
do you think the calendar events are saved in the indexDB ?
I tried to busybox find /data -name indexDB but without success

speeduploop

unread,
May 11, 2019, 7:03:39 PM5/11/19
to comp.mobile.nokia.8110
You still didn't get it...
-- on the javascript-side --> indexedDB API
-- on the linux-side (at least for this version of firefox) --> sqlite-files because the browser uses sqlite to store the date to disk.
(so the browser 'translates' - transparently for the js-devloper - between indexedDB and sqlite)

A normal app would use the indexedDB-API.
(which is a standard API all recent browsers implement and it's well documented - you should probably read the docs)
-- only if this isn't possible you would use sqlite directly - but that's more or less a hack.

perry

unread,
May 12, 2019, 3:09:55 AM5/12/19
to comp.mobile.nokia.8110
okay in my case I must use indexDB to read the calendar data,
I dont know the name of the indexDB of the calendar app, 
To open the db : window.indexedDB.open("????", 1);

speeduploop

unread,
May 12, 2019, 3:23:36 AM5/12/19
to comp.mobile.nokia.8110
So how about actually reading in calendar.app's sources?
--> should be in there...

perry

unread,
May 13, 2019, 9:51:31 AM5/13/19
to comp.mobile.nokia.8110
I tried to read out  indexedDB b2g-calendar but without success, I guess security reason.

But what about to do it with node.js ?

/perry

speeduploop

unread,
May 13, 2019, 12:17:58 PM5/13/19
to comp.mobile.nokia.8110
First you should check if you need additional permissions to use IndexedDB... WebIDE will show you all possible permissions for the runtime of your phone -- if you find something related to DBs you should try it.

For sqlite from NodeJS you would need to port the NodeJS/sqlite3-module to your phone - then it might work.
(it doesn't seem to be an inbuilt module of NodeJS - so you have to port and provide it to the NodeJS-Runtime on your phone)

perry

unread,
May 13, 2019, 12:45:45 PM5/13/19
to comp.mobile.nokia.8110
Is it not the security concept of indexedDb only the app that created the db can read/write it ?

speeduploop

unread,
May 13, 2019, 12:58:41 PM5/13/19
to comp.mobile.nokia.8110
It's your job to read the docs - not mine ;)

But yes and no --> it seems to be restricted - not to the app which created the DB but to appS served from the same domain...
(so if you use an app-path in gaiamobile's domain it could work -- won't get into official store but might work :D )

The browser on the device is quite outdated - so you can't say what works and what not without testing...
-- when it comes to such things you might have to write 5 apps until one works... ;)
Reply all
Reply to author
Forward
0 new messages