I thought switching to demo wiped the user-store, but apparently it doesn't!
So, this is a working flow on a jailbroken Kindle (without Mesquito).
The only missing piece is doing the Mesquito LIPC pieces.
1. Create files in 'documents/directories'
I used the following two files:
abc`sleep 123`
abc`mkdir ${PWD}mnt${PWD}us${PWD}victory`
(if you don't put the abc at the beginning, you delete all of 'documents/dictionaries/"
2. Search on ";enter_demo"
This creates the demo flag, but doesn't reboot!
3. Need Mesquito to do this sequence of LIPC
nativeBridge.setLipcProperty("com.lab126.blanket", "unload", "langpicker");
nativeBridge.setLipcProperty("com.lab126.blanket", "load", "langpicker");
I did this with "lipc-set-prop" from the Kindle command-line
4. Search on ";exit_demo"
So the Kindle doesn't reboot into Demo mode ..
Blanket has already switched to Demo mode
5. Have Mesquito do the following two LIPC changes one after another (with a delay)
lipc-send-event com.lab126.blanket.langpicker changeLocale -s "zh-Hans-CN"
lipc-send-event com.lab126.blanket.langpicker changeLocale -s "en-US"
6. After the sleep, the Kindle will reboot (!), but if all the steps are done properly it reboots in normal mode, without having changed to Chinese.
Also, there is now a 'victory' directory in the root of the shared folder!
|