02-27-2023, 01:45 PM | #16 |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
Anyways, I just extracted the firmware and found a goldmine or information
This can do... A LOT If anyone has WAF docs that would be nice... Will update later |
02-27-2023, 01:46 PM | #17 |
Connoisseur
Posts: 86
Karma: 25554
Join Date: Sep 2022
Device: PW3, PW2, KT2, 2xKT, 2xK3G
|
https://www.mobileread.com/forums/sh...d.php?t=180229 and https://www.mobileread.com/forums/sh...d.php?t=195781 Unfortunately, most of it is a bit outdated. In fact, I'm surprised that the Store app hasn't been ported to the new React Native KPP framework that Amazon has begun using. |
Advert | |
|
02-27-2023, 01:53 PM | #18 | |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
Quote:
Looking through the code dbgCmd is still kinda ish functional for debug commands but very... very nerfed (bc only debug commands) |
|
02-27-2023, 02:29 PM | #19 |
Junior Member
Posts: 7
Karma: 10
Join Date: Feb 2023
Device: Paperwhite 3&4
|
Thanks for your work, I'm relatively new to the Paperwhite, recently acquired a PW3 and a PW4, sadly both with latest firmware. This new method looks promising.
|
02-27-2023, 02:34 PM | #20 | |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
Quote:
Sorry to disapoint but I'm still quite far from having a full jailbreak On the other hand, I also made a fancy launcher for web apps and I think that this new method may be able to do a few of the things that people mainly use jailbreaks for At the moment my main priority is: - Making it persistent (store has a habit of updating xD) - Diescting the code more to understand what causes the loading error - Implementing a back button (this is not a joke I have to reboot every time I do something dumb) |
|
Advert | |
|
02-27-2023, 03:03 PM | #22 | |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
Quote:
I think the end-goal of this won't be a full jailbreak for now since command execution is... "hard" (I still can't do it lol) But once I crack persistence I should be able to replace the store entirely... fullscreen KWebBrew with WAF support anyone? Last edited by HackerDude; 02-27-2023 at 03:18 PM. |
|
02-27-2023, 03:18 PM | #23 |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
Update on functions available via window.nativeBridge
Btw, doing some digging I was able to find the following methods in window.nativeBridge:
Code:
accessHasharrayProperty cancelPendingDismiss createFlashTrigger clearFlashTrigger dbgCmd devcapInitialize devcapIsAvailable devcapGetInt devcapGetString dismissChrome dismissMe flash getAppId getDynamicConfigValue getIntLipcProperty getScreenSize getStringLipcProperty getVisibilityEvents getWindowPosition hideKb hideMe isBricked isMaxPasswordAttemptPolicyEnabled logDbg logDbgNum logInfo logString logTime logWarn logError messagePillowCase raiseChrome redraw registerClientParamsCallback registerEventsWatchCallback setAcceptFocus setIntLipcProperty - nativeBridge.setLipcProperty("com.lab126.system", "deviceLocaleSelected", ""); setLipcProperty setWindowPosition setWindowSize setWindowTitle showDialog showKb showMe subscribeToEvent Code:
debugFormat createDebugBridge Code:
setIntLipcProperty getIntLipcProperty getStringLipcProperty accessHasharrayProperty Code:
checkFileFlag(filename) - Checks if file exists sendLipcEvent - nativeBridge.sendLipcEvent("com.lab126.pillow","bootSplashInit", ""); recordDeviceMetric - nativeBridge.recordDeviceMetric("com.lab126.oobe", "changeLocale", that.selectedLanguageWidget.id, 1, 0, METRIC_PRIORITY_LOW, METRIC_TYPE_COUNTER); deleteDemoModeFlagFile() - No arguments, delete demo mode file Honestly, the number of functions is insane, and this isn't even all of them lol don't even ask me what isBricked is supposed to be for... Last edited by HackerDude; 02-27-2023 at 03:25 PM. |
02-27-2023, 03:32 PM | #24 | |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
Quote:
Ah! I didn't see your message burried under the rest, this is SUPER useful, thanks! IMO, I don't think Kindle's will ever use React Native, or any form of React for that matter since the webkit engine is too old (React Native needs an actual rendering engine just like React does) And even if they somehow update that, it'll break compatability with old devices Also, I'm pretty sure lab126's devs are pretty used to coding in pre-ES5 era by now |
|
02-27-2023, 04:33 PM | #25 | |
Connoisseur
Posts: 86
Karma: 25554
Join Date: Sep 2022
Device: PW3, PW2, KT2, 2xKT, 2xK3G
|
Quote:
Amazon introduced this when they began rolling out the UI update a bit ago. In fact, I was able to run my own React Native by bundles copying the executable and patching out the bundle name to point to my own. It seems Amazon has built a whole UI framework for there Kindles in React Native. Check this out. In 5.14.xx they removed the `/app/demoApp/` folder that contained some of the code, but it's easy enough to add back by extracting it from the earlier updates. EDIT: ReactJS also runs in the Webkit Browser. https://github.com/ngxson/hobby-kindle-waf |
|
02-27-2023, 04:53 PM | #26 |
Connoisseur
Posts: 86
Karma: 25554
Join Date: Sep 2022
Device: PW3, PW2, KT2, 2xKT, 2xK3G
|
Does staying in airplane mode fix persistence?
Last edited by luketheduke; 02-27-2023 at 04:59 PM. |
02-27-2023, 05:03 PM | #27 |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
hahahahaha lol no, if only...
the store won't launch AT ALL with airplane mode, I have a custom network setup stopping it from connecting which seems to work I think it should be possible to disable this check... maybe... Luckily it works without being connected to WiFi too Right now I'm just trying to figure out how much of the original code I can purge before it complains (which it does lol) |
02-27-2023, 05:04 PM | #28 | |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
Quote:
That's pretty cool! Do you know where I can find the homescreen etc source in an update file? I've checked in a few locations already... |
|
02-27-2023, 05:20 PM | #29 | |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
Quote:
the entire tools dir was removed in newer updates Also, it's nice to see that kterm was used by the developers XD or maybe it was made by them... /j |
|
02-27-2023, 06:29 PM | #30 |
Kindle Bricker
Posts: 83
Karma: 1170
Join Date: Sep 2022
Location: Why do you want to know?
Device: PW5
|
|
Tags |
exploit, jailbreak |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Local root exploit in Calibre | splat | Calibre | 29 | 11-05-2011 11:03 PM |
Adobe Reader 9 new exploit in the wild | doctorow | News | 2 | 02-20-2009 04:38 PM |
iLiad Huge exploit found in 2.7 | arivero | iRex Developer's Corner | 86 | 11-26-2006 05:49 PM |
Adobe Acrobat subject to remote exploit | Alexander Turcic | News | 3 | 09-16-2006 06:29 AM |
Serious exploit in Greasemonkey 0.4 | Alexander Turcic | Lounge | 2 | 07-19-2005 05:59 AM |