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 11-27-2023, 07:49 PM   #1
Daviteusz
Connoisseur
Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.
 
Daviteusz's Avatar
 
Posts: 56
Karma: 3900
Join Date: Nov 2023
Device: KOA3
Arrow BinaryRenamer - Block OTA Updates & Device Logging

BinaryRenamer
Block OTA Updates and Device Logging


Screenshots:
—————————————
Click image for larger version

Name:	lbL5pQ3.png
Views:	918
Size:	34.6 KB
ID:	205176Click image for larger version

Name:	gQxQ2GN.png
Views:	680
Size:	35.3 KB
ID:	205175

Important:
—————————————
• Use at your own risk!

• If you are new to jailbreak, turn off WiFi! (via Aeroplane/Airplane mode).
• Remove the update.bin.tmp.partial file (if it exists) from the Kindle root directory.
• If you use renameotabin, you must disable WiFi and Restore OTA Binaries before using BinaryRenamer.

• Tested and works on these devices:
- Oasis 3: 5.16.2.1.1

Usage:
—————————————
Block OTA Updates:
Spoiler:
This button works similar as Rename button in renameotabin extension by @hius07

The following files will be renamed:
• /usr/bin/otaupd --> /usr/bin/otaupd~
• /usr/bin/otav3 --> /usr/bin/otav3~

As you might have noticed, the suffix ~ has been added to the binary files.

Warning!:
• UYK (Update Your Kindle) will stop working.
• You will not be able to update your Kindle via UYK.


Restore OTA Updates:
Spoiler:
The above changes will be revoked, UYK will operate again.


Block Device Logging:
Spoiler:
Warning!: One user bricked system in PW2 after selecting this option, it stays in boot logo and nothing happends. Avoid using this option, if you have very old device and firmware.

Amazon logs and sends to servers EVERYTHING you do on a Kindle, even every single tap and time in milliseconds precision.

When you select this button, backups will be created for the files below:
• /usr/sbin/syslog-ng --> /usr/sbin/syslog-ng~
• /usr/sbin/loginfo --> /usr/sbin/loginfo~
• /usr/sbin/tinyrot --> /usr/sbin/tinyrot~
• /usr/bin/showlog --> /usr/bin/showlog~

You can still find files with their original names, but they are empty because they are linked to /dev/null.

What are these files responsible for?:
syslog-ng - syslog server and logging daemon
loginfo - extracts specific information from syslog
tinyrot - rotates log files to be fetched from remote servers
showlog - specifies which log file to send

Warning!:
• Reading logs will not be possible anymore, the showlog -f command no longer works (it does not exist).
• Sometimes it is necessary to troubleshoot issues (manually or by entering in search bar ;dm command), especially after a Kindle Update.
• Log-dependent extensions, such as scripts displaying reading time will also stop working.

Thanks to @mergen3107 for the commands
• Source: 4PDA.to


Restore Device Logging:
Spoiler:
The above changes will be revoked, Device logging will operate again


Installation:
—————————————
1. Copy the BinaryRenamer folder:
• Via USB: to /extensions folder
• Via SFTP: to /mnt/us/extensions folder
2. Run KUAL
3. Open BinaryRenamer
4. Block or restore what you like!

Download:
—————————————
Attached Files
File Type: zip BinaryRenamer v1.0.zip (1.9 KB, 1447 views)

Last edited by Daviteusz; 07-08-2024 at 05:34 PM.
Daviteusz is offline   Reply With Quote
Old 11-28-2023, 01:07 AM   #2
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,331
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Cool! Thanks for making this and testing it.

For your todo #1, have a look at NiLuJe’s fbink.
On JB device, you should already have it. fbink is really easy to use, just type fbink in the ssh to see all options.

BatteryStatus is a great example of fbink printing.
mergen3107 is online now   Reply With Quote
Advert
Old 11-28-2023, 04:21 AM   #3
Daviteusz
Connoisseur
Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.
 
Daviteusz's Avatar
 
Posts: 56
Karma: 3900
Join Date: Nov 2023
Device: KOA3
Quote:
Originally Posted by mergen3107 View Post
For your todo #1, have a look at NiLuJe’s fbink.
Thanks! Looks promising:
Attached Thumbnails
Click image for larger version

Name:	photo_2023-11-28_09-20-22.jpg
Views:	837
Size:	168.8 KB
ID:	204957  
Daviteusz is offline   Reply With Quote
Old 11-28-2023, 11:00 AM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I would also strongly suggesting double-checking whether this doesn't cause random stuff to busy retry-loop like crazy (... which is going to be harder to double-check without logs ;D).
NiLuJe is offline   Reply With Quote
Old 11-28-2023, 12:22 PM   #5
Daviteusz
Connoisseur
Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.
 
Daviteusz's Avatar
 
Posts: 56
Karma: 3900
Join Date: Nov 2023
Device: KOA3
Quote:
Originally Posted by NiLuJe View Post
I would also strongly suggesting double-checking whether this doesn't cause random stuff to busy retry-loop like crazy (... which is going to be harder to double-check without logs ;D).
I did multiple tests with different conditions and on two different devices and on my Kindle.

Although there is always the possibility that I may have missed something.

But...
I tested via sh -x and it works fine and only on the specified files as long as the conditions match. If the conditions are not match, the script does nothing
Daviteusz is offline   Reply With Quote
Advert
Old 12-01-2023, 08:01 AM   #6
Daviteusz
Connoisseur
Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.
 
Daviteusz's Avatar
 
Posts: 56
Karma: 3900
Join Date: Nov 2023
Device: KOA3
Version 1.0 released!

- Completed all TODO objectives

If you would like to motivate me to keep working or would like to buy me a coffee, you can do so here:
https://ko-fi.com/daviteusz
Daviteusz is offline   Reply With Quote
Old 12-10-2023, 04:56 PM   #7
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,331
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
I can confirm that this blocking still works.
I disabled them on 12/03/23, exactly a week ago.
Today, after multiple restarts and stuff, I can see that there are only these files:
Code:
/var/local/log/
├── downloads
├── messages_00000196_20231203121807.gz
├── messages_00000197_20231203124501.gz
├── messages_00000198_20231203131501.gz
├── messages_00000199_20231203133655.gz
├── messages_00000200_20231203163004.gz
├── messages_00000201_20231203170003.gz
├── messages_00000202_20231203173003.gz
├── messages_00000203_20231203190003.gz
├── messages_00000204_20231203191018.gz
├── messages_00000205_20231203191353.gz
├── messages_00000206_20231203191538.gz
├── messages_00000207_20231203191747.gz
├── messages_00000208_20231203193003.gz
├── messages_00000209_20231203194502.gz
├── messages_00000210_20231203194631.gz
├── messages_00000211_20231203195053.gz
├── messages_00000212_20231203195542.gz
├── messages_00000213_20231203195803.gz
├── messages_00000214_20231203200016.gz
├── messages_00000215_20231203200229.gz
├── messages_00000216_20231203200549.gz
├── messages_00000217_20231203200743.gz
├── messages_00000218_20231203201204.gz
├── messages_00000219_20231203201855.gz
├── messages_00000220_20231203202455.gz
├── messages_00000221_20231203202703.gz
├── messages_00000222_20231203202903.gz
├── messages_oldest
├── messages_youngest
├── metrics_generic_00000076_20231130180004.gz
├── metrics_generic_00000077_20231130223003.gz
├── metrics_generic_00000078_20231130224503.gz
├── metrics_generic_00000079_20231130230004.gz
├── metrics_generic_00000080_20231130231058.gz
├── metrics_generic_00000081_20231130231354.gz
├── metrics_generic_00000082_20231130231528.gz
├── metrics_generic_00000083_20231130233003.gz
├── metrics_generic_00000084_20231130234432.gz
├── metrics_generic_00000085_20231202094503.gz
├── metrics_generic_00000086_20231202100003.gz
├── metrics_generic_00000087_20231202104504.gz
├── metrics_generic_00000088_20231202214502.gz
├── metrics_generic_00000089_20231202214714.gz
├── metrics_generic_00000090_20231202214926.gz
├── metrics_generic_00000091_20231202220004.gz
├── metrics_generic_00000092_20231202221504.gz
├── metrics_generic_00000093_20231202230002.gz
├── metrics_generic_00000094_20231202230513.gz
├── metrics_generic_00000095_20231202230647.gz
├── metrics_generic_00000096_20231202231502.gz
├── metrics_generic_00000097_20231202231918.gz
├── metrics_generic_00000098_20231202232109.gz
├── metrics_generic_00000099_20231202232543.gz
├── metrics_generic_00000100_20231202233241.gz
├── metrics_generic_00000101_20231202234502.gz
├── metrics_generic_00000102_20231203010004.gz
├── metrics_generic_00000103_20231203020002.gz
├── metrics_generic_00000104_20231203114300.gz
├── metrics_generic_00000105_20231203133656.gz
├── metrics_generic_00000106_20231203184503.gz
├── metrics_generic_00000107_20231203191019.gz
├── metrics_generic_00000108_20231203191354.gz
├── metrics_generic_00000109_20231203191538.gz
├── metrics_generic_00000110_20231203191747.gz
├── metrics_generic_00000111_20231203193004.gz
├── metrics_generic_00000112_20231203194517.gz
├── metrics_generic_00000113_20231203195053.gz
├── metrics_generic_00000114_20231203195544.gz
├── metrics_generic_00000115_20231203195804.gz
├── metrics_generic_00000116_20231203200017.gz
├── metrics_generic_00000117_20231203200230.gz
├── metrics_generic_00000118_20231203200550.gz
├── metrics_generic_00000119_20231203201205.gz
├── metrics_generic_00000120_20231203201916.gz
├── metrics_generic_00000121_20231203202457.gz
├── metrics_generic_00000122_20231203202704.gz
├── metrics_generic_00000123_20231203202904.gz
├── metrics_generic_oldest
├── metrics_generic_youngest
├── netlog_00000001_20231123015241.gz
├── netlog_00000002_20231123031758.gz
├── netlog_00000003_20231123224932.gz
├── netlog_00000004_20231125023610.gz
├── netlog_00000005_20231125203609.gz
├── netlog_00000006_20231125225035.gz
├── netlog_00000007_20231126180450.gz
├── netlog_00000008_20231127071503.gz
├── netlog_00000009_20231129000626.gz
├── netlog_00000010_20231130141249.gz
├── netlog_00000011_20231130231136.gz
├── netlog_00000012_20231202110003.gz
├── netlog_00000013_20231202230532.gz
├── netlog_00000014_20231203004502.gz
├── netlog_00000015_20231203133655.gz
├── netlog_00000016_20231203195053.gz
├── netlog_00000017_20231203202903.gz
├── netlog_aggregate
├── netlog_oldest
├── netlog_youngest
├── TINYROT_ONETIME_CLEANUP_anonymous_clickstream_metrics
├── TINYROT_ONETIME_CLEANUP_messages
├── TINYROT_ONETIME_CLEANUP_metrics_generic
├── TINYROT_ONETIME_CLEANUP_metrics_high_priority
├── TINYROT_ONETIME_CLEANUP_netlog
├── TINYROT_ONETIME_CLEANUP_non_anonymous_clickstream_metrics
├── TINYROT_ONETIME_CLEANUP_wpa_supplicant
├── wpa_supplicant_00000003_20231203201916.gz
├── wpa_supplicant_00000004_20231203202904.gz
├── wpa_supplicant_aggregate
├── wpa_supplicant_oldest
└── wpa_supplicant_youngest

0 directories, 112 files
There is no messages file (the one that would be shown by showlog -f), and all archives are no newer than 12/03/23.
mergen3107 is online now   Reply With Quote
Old 12-12-2023, 10:57 AM   #8
weirdGiraffe
Junior Member
weirdGiraffe began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2023
Device: Kindle PW 11th
Sorry if this is a stupid question, but what's the benefit of disabling logging?
weirdGiraffe is offline   Reply With Quote
Old 12-12-2023, 11:24 AM   #9
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,331
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Amazon logs and sends to servers EVERYTHING you do on a Kindle, even every single tap and time in milliseconds precision.

This script prevents all of that.

You can request your data from Amazon, you will get surprised.
mergen3107 is online now   Reply With Quote
Old 12-12-2023, 02:24 PM   #10
Daviteusz
Connoisseur
Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.Daviteusz can teach chickens to fly.
 
Daviteusz's Avatar
 
Posts: 56
Karma: 3900
Join Date: Nov 2023
Device: KOA3
Quote:
Originally Posted by mergen3107 View Post
Amazon logs and sends to servers EVERYTHING you do on a Kindle....
I forgot to add info about this, thanks.
Daviteusz is offline   Reply With Quote
Old 12-17-2023, 12:21 AM   #11
arooni
Addict
arooni began at the beginning.
 
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
Is this the consensus best way to keep my kindle jailbroken? Want to keep koreader on my scribe.
arooni is offline   Reply With Quote
Old 12-17-2023, 12:33 AM   #12
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,331
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
Yes. Please do not cross post.
mergen3107 is online now   Reply With Quote
Old 12-17-2023, 12:43 AM   #13
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,331
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
FWIW, my less than a month experience is still good: https://www.mobileread.com/forums/sh...&postcount=580
mergen3107 is online now   Reply With Quote
Old 12-17-2023, 09:49 AM   #14
arooni
Addict
arooni began at the beginning.
 
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
If I've already run renameota is that enough or do I need this too? Should I uninstall that first prior to running this ?
arooni is offline   Reply With Quote
Old 12-17-2023, 10:02 AM   #15
mergen3107
Wizard
mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.mergen3107 ought to be getting tired of karma fortunes by now.
 
mergen3107's Avatar
 
Posts: 1,331
Karma: 4740000
Join Date: Feb 2012
Location: Cape Canaveral
Device: Kindle Scribe
They do the same thing as far as OTA is concerned.
mergen3107 is online now   Reply With Quote
Reply

Tags
kindle, logs, ota, rename, renameotabin


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Block OTA by removing ota related binaries Hzj_jie Kindle Developer's Corner 107 07-21-2024 05:21 PM
I have jailbroken PW3 with 5.14.3.0.1 through serial access , how to block OTA ? pillomegamen Kindle Developer's Corner 1 05-03-2023 02:35 AM
Is it possible to format /mnt/us to ext3/4 to block OTA? zaoqi Kindle Developer's Corner 7 11-29-2019 06:45 AM
Can /etc/hosts be used to block OTA updates? zaoqi Kindle Developer's Corner 1 08-18-2019 10:35 AM
Block OTA before connecting wifi to register? Pajamaman Kindle Developer's Corner 2 10-21-2017 11:12 PM


All times are GMT -4. The time now is 02:33 PM.


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