![]() |
#16 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 1924
Join Date: Jul 2017
Device: Kindle PW4
|
Quote:
|
|
![]() |
![]() |
![]() |
#17 |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 18
Karma: 638
Join Date: Feb 2016
Device: kobo aura hd
|
Not sure about kual, but I can try to include it in koreader.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,075
Karma: 3581333
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
|
![]() |
![]() |
![]() |
#19 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 100000
Join Date: Dec 2018
Location: London
Device: Kindle PW4, Libra H2O
|
Step 6 can just be this so you get just the correct processes :
# pgrep -fl ota I added a step 5.5, so that if anything tries to call these binaries, it gets a successful exit code rather than an error : # echo "/bin/true" > /usr/bin/otav3 # echo "/bin/true" > /usr/bin/otaupd # chmod +x /usr/bin/otav3 /usr/bin/otaupd Finally, I commented out (prefixed with '#') these lines in /etc/crontab/root : - The /usr/sbin/checkpmond line - All the /usr/sbin/loginfo lines - The OTAFILE line - The record_dem_heartbeat_cronjob.sh line Last edited by trcm; 09-21-2020 at 07:57 AM. Reason: fix because /bin/true is busybox |
![]() |
![]() |
![]() |
#20 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20
Karma: 12452
Join Date: Feb 2012
Location: France
Device: Pocketbook 623
|
Trying this right now, Thanks !
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Kindle Paperwhite3
|
I looked up in the binary otav3,and made a slight modification. By tweaking a battery related function (sub_1515c), it may always think the device is not ready for update.
I am very unskilled in reverse engineering. So I can't gurantee this will work ![]() Here is a already modded otav3 binary for PW3:http://www.mediafire.com/file/yhjwvd...1pw/otav3/file |
![]() |
![]() |
![]() |
#22 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 100000
Join Date: Dec 2018
Location: London
Device: Kindle PW4, Libra H2O
|
Slightly off-topic, but if you want to use your Kindle without registering it, but worry that ever connecting to wifi will delete your content and dictionaries and unregister you....
Code:
# mntroot rw # touch /var/local/system/DONT_DELETE_CONTENT_ON_DEREGISTRATION # touch /var/local/java/prefs/reginfo 2>/dev/null || chattr -i /var/local/java/prefs/reginfo # cat <<EOF > /var/local/java/prefs/reginfo #Mon Jan 01 00:00:00 GMT+00:00 2000 deviceName=kindle deviceEmailAddress=kindle@pseudo.url userName=kindle userId=amzn1.account.XXXXXXXX1A2B3C4YYYYYYYYYYYYY givenName=kindle EOF # chmod 444 /var/local/java/prefs/reginfo # chattr +i /var/local/java/prefs/reginfo # grep -q "firs-ta-g7g.amazon.com" /etc/hosts || echo "127.0.0.1 firs-ta-g7g.amazon.com" >> /etc/hosts # mntroot ro # restart framework So, the store viewing still works, dictionary lookups, home&library settings, collections, etc. But Wikipedia and Translation widgets are sadly still unavailable as Amazon require valid credentials to use those proxied services. Last edited by trcm; 09-30-2020 at 02:01 PM. |
![]() |
![]() |
![]() |
#23 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 96
Karma: 100000
Join Date: Dec 2018
Location: London
Device: Kindle PW4, Libra H2O
|
Also, as /etc/profile sets the path with /usr/local/bin/ prefixed, we can easily override some of the '/usr/bin/lipc-get-prop' results, for example :
Code:
# grep PATH /etc/profile export PATH=/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin # cat /usr/local/bin/lipc-get-prop # lipc-get-prop override script if [[ "$*" == "com.lab126.amazonRegistrationService isRegistered" ]]; then # Lets pretend we're registered echo 1 elif [[ "$*" == "com.lab126.legalComplianceService gdprValue" ]]; then # If either 0 or 1, then /etc/dem_heartbeat/record_gdpr_usage_collection_heartbeat.sh records metrics echo "-1" elif [[ "$*" == "com.lab126.household activeProfileRole" ]]; then # If 'ADULT' then /etc/dem_heartbeat/record_dem_heartbeat.sh records metrics echo "NOT_ADULT" else /usr/bin/lipc-get-prop $* fi |
![]() |
![]() |
![]() |
#24 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 18
Karma: 638
Join Date: Feb 2016
Device: kobo aura hd
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#25 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,075
Karma: 3581333
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
Just a KUAL extension for ota binaries rename/restore.
Reboots automatically, no need to kill the processes manually. Last edited by hius07; 01-02-2021 at 05:24 AM. |
![]() |
![]() |
![]() |
#26 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 1924
Join Date: Jul 2017
Device: Kindle PW4
|
|
![]() |
![]() |
![]() |
#27 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 1924
Join Date: Jul 2017
Device: Kindle PW4
|
Should this work on 5.13.4?
|
![]() |
![]() |
![]() |
#28 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2021
Location: Canada
Device: PW4
|
I'm looking too for the 5.13.3 (jailbroken but with airplane mode off and not registered ) so I could use wifi transfer
edit: I will try blocking only the internet access on the router for that specific device only. Last edited by 25pinjo15; 01-07-2021 at 10:15 PM. Reason: add stuff |
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,075
Karma: 3581333
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
Be careful, the method might be insecure
https://www.mobileread.com/forums/sh...48#post4105248 |
![]() |
![]() |
![]() |
#30 | |
Member
![]() ![]() ![]() Posts: 19
Karma: 268
Join Date: Feb 2021
Device: Kindle 10th gen
|
Quote:
So, as long as the user doesn't do something stupid like downloading the newest firmware and manually copy it to the internal storage, this method should be (fingers crossed) safe, at least for preventing OTA updates. But I would agree that more test is needed in order to rule out any unpleasant surprises. |
|
![]() |
![]() |
![]() |
Tags |
renameotabin, update blocker |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to format /mnt/us to ext3/4 to block OTA? | zaoqi | Kindle Developer's Corner | 7 | 11-29-2019 05:45 AM |
Can /etc/hosts be used to block OTA updates? | zaoqi | Kindle Developer's Corner | 1 | 08-18-2019 09:35 AM |
OTA blocking | knc1 | Kindle Developer's Corner | 12 | 02-27-2018 12:30 PM |
Block OTA before connecting wifi to register? | Pajamaman | Kindle Developer's Corner | 2 | 10-21-2017 10:12 PM |
5.6.1 OTA Update | lredgen | Kindle Developer's Corner | 2 | 12-17-2014 06:07 PM |