Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2022, 12:53 PM   #1
cearp
Member
cearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enough
 
cearp's Avatar
 
Posts: 17
Karma: 512
Join Date: May 2022
Device: 📚
Question Way to re-init/recover appreg.db?

On my PW4, I was making some edits to /var/local/appreg.db - Kindle now gets stuck at bootup (boy under tree). No backups, my fault.

Thankfully I can still SSH via wifi to the device.

I do have a backup from another device (PW5).
Will copying over the PW5's appreg.db work?
Worst case would be it applying some different wifi settings, thus locking me out of SSH.

Am I able to do a factory reset to recreate the database?
Just wary to attempt without advice as would certainly lose ability to SSH.

Any help appreciated, thank you!
cearp is offline   Reply With Quote
Old 05-10-2022, 02:34 PM   #2
cearp
Member
cearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enough
 
cearp's Avatar
 
Posts: 17
Karma: 512
Join Date: May 2022
Device: 📚
Strange, did a few reboots, no change.
Plugged in device to computer, usb mounted fine.
I noticed 25 files with names like:
Code:
rcm_1621_059-juno_1402_moonshine_rex-380714.core
Removed the cable, rebooted again, working fine...
Not sure why, but won't complain
cearp is offline   Reply With Quote
Advert
Old 05-12-2022, 02:03 PM   #3
cearp
Member
cearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enough
 
cearp's Avatar
 
Posts: 17
Karma: 512
Join Date: May 2022
Device: 📚
I still wanted to look into this, and from looking at /etc/init/prereg.conf, we can see that there's a file in /opt/var/local/reg/prereg.db that is copied to /var/local/appreg.db.
Look at the .conf file I mentioned as it looks like some operations may need to be done to the prereg.db file before it's actually usable as the appreg.db.
cearp is offline   Reply With Quote
Old 05-12-2022, 04:05 PM   #4
katadelos
rm -rf /
katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.
 
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
Code:
rm /var/local/appreg.db
start prereg
katadelos is offline   Reply With Quote
Old 05-12-2022, 04:53 PM   #5
cearp
Member
cearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enoughcearp will become famous soon enough
 
cearp's Avatar
 
Posts: 17
Karma: 512
Join Date: May 2022
Device: 📚
Very slick - thanks!
cearp is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to communicate with "/interface-data/init? Network Error? bcantrell Devices 3 01-31-2018 10:38 AM
init.d services sencer Kindle Developer's Corner 6 12-05-2012 02:29 PM
PRS-T1 HOWTO: e2fsck on init, fix_permissions afterwards uboot Sony Reader Dev Corner 25 02-15-2012 12:38 PM
Cannot edit init.rc sjkevin Nook Developer's Corner 4 02-15-2011 06:44 PM
SmartQ5 - modem init string and login data saving Drakon Rider Alternative Devices 4 09-27-2009 05:09 AM


All times are GMT -4. The time now is 06:11 PM.


MobileRead.com is a privately owned, operated and funded community.