yashsingh1/xdaforums huggingface dataset:
[Nook Touch General] BabylonDroid1:
I have just picked up a Nook Glowlight 3 and will be installing TWRP and this firmware once it arrives.

In another thread on XDA I read that there are two Storage partitions: "one for Nook store content ( about 4.5 gb) and one for sideloaded books (about 0.95 gb)"

Does this firmware remove those 2 partitions and create 1 storage partition to use for sideloading apps and books? As I will not be using Nook store, I'm hoping this is the case.

Furthermore, since NG3 is running Android 4.4.2, it is possible to root with Magisk instead of the other root script after installing TWRP?
[Nook Touch General] klemperer:
I just installed the firmware and it is quite stable as you said. However, there are two issues that bother me.

1. It seems that the status bar can not be hidden if needed. The top menu of some apps (Helium, for example) is then covered and can not be reached.

2. In some applications, the font size of UI is too small, and I can't find any way to increase the font size. These applications work well in the stock firmware.

Hope these issues could be fixed. Thank you.
[Nook Touch General] vinhphucng25:
Hi,

how can I edit imx-keypad.kl file on MiX because I found that your ROM is NOT root so that I can't edit and copy to system folder (to change screensaver picture).

Please help me! :(
[Nook Touch General] RyogoNA:
a) you can mount /system in TWRP and use TWRP file manager;

b) you can install root from TWRP (Magisk or SuperSU);
[Nook Touch General] vinhphucng25:
thank you so much! I did it :fingers-crossed::fingers-crossed::fingers-crossed:
[Nook Touch General] vinhphucng25:
Dear [MENTION=2742837]RyogoNA[/MENTION]

I had got another Nook GL3 and I rooted it follow the topic: https://xdaforums.com/nook-touch/general/how-to-root-set-nook-glowlight-3-t3802331

After that I type "adb reboot fastboot" to flash recovery but my Nook is freeze until I reset it by holding Power button.

I type "adb reboot-recovery" it reboot to recovery mode to reset factory, but "adb reboot-bootloader" it reboot normally.

How can I flash the recovery?
[Nook Touch General] Renate:
First, the normal reboot command in ADB is "adb reboot fastboot". There is no hyphen.

The commands with the hyphen "adb reboot-recovery" is an alias for "adb reboot recovery".

Actually, ADB does not understand anything and just feeds that word to the Android.

"adb reboot galoomf" is legal (presuming that the target Android know what to do with "galoomf", otherwise it will reboot normally).

How are you sure that you're not in fastboot?

fastboot devices

You're using a Mac, so check the USB info to see if there is a device connected and what the properties are.

You can also flash whatever you want from recovery with dd.

Fastboot (built into u-boot) has the smarts to correctly write headers for NTX things, but you're not writing those presumably.
[Nook Touch General] borgsm1:
Hi, my Nook is the BNRV510 which is not rooted but had the TWRP working.

I can't install the firmware, I get the message "zip failed!" from the zip verification.

I unticked zip verification it installed although it failed the verification and said the installation failed, afterwards it would no longer boot and when twrp appeared I restored a backup.

At first I could not verify if it is frozen or in fastboot, thanks to Renate's post about fastboot devices I was able to proceed with testing and then installing TWRP.

Thanks for the alternative firmware RyogoNA

I added the following in the edit:

I copy the update*.zip file into the nook folder from windows

I found out that the nook folder does not appear when I unmount data

So I copied it to the folder recovery using TWRP file manager (I haven't figured out using noogie [all windows want to do is reformat the drives]), the copying says it's successful, I get the message "zip failed!" when installing, afterwards the file is missing after the process.
[Nook Touch General] borgsm1:
I tried a few more stuff but it didn't work

I tried using the adb push command but the zip still failed verification.

I was looking for other instructions inside this thread but could not find anything relevant to my issues.

I tried looking for other custom firmware but looks like this is the only one google directs me to.

I was thinking that the folder where I put the file was the problem, I tried using recovery and tmp but still the same result.

I was also thinking that the TWRP folder would be the best place to put the file but like the nook folder it disappears when unmounting data.

I was also looking for md5 to verify the integrity of the file downloaded but could not find any hash, I tried opening the files, although it opened using windows default zip or archive application I could not verify the integrity of the files within, but I think that if the download is corrupted the file would not even open.

Maybe the files where modified and the mod broke the zip so it fails the verification or it may not have been working at all and the fact that it opens shows that some part of it is not corrupted, I also had some issue downloading the file, google drive would show the lists of folderns and file inside the zip but when I press download nothing would happen. except when I press the menu and open it in another window.
[Nook Touch General] borgsm1:
I think this would fix the issues I'm having

I am thinking of using adb sideload

Maybe the problems in transfering and mounting would no longer be any issue.

I will try later when I find a better internet connection.
[Nook Touch General] borgsm1:
Update it's still not working for me

After trying adb sideload it still gave me zip verification failed.

I'm out of ideas, I still need help, I was hopeful that it would work with the last try.
[Nook Touch General] TidusWulf:
Thank you for the firmware and the write-up. I installed it successfully on my Nook Glowlight+ (BNRV510) and got to the home screen. I'm installing Koreader now. I'm very happy with what I'm seeing so far.

Btw, what is "Threshold" for?

Also, Any info on putting a custom lockscreen?

To anyone looking or more details if they have this specific device, Here's what I did: Install TWRP and make a backup, and move the backup to your PC, click MOUNT and make sure only boxes 2 and 3 are checked. Then go to WIPE and do an advanced wipe and check ALL boxes (this will erase your backups, your books, everything). Then wipe the device. Then move the 1.04 zip over and install and reboot. Worked on first try.
[Nook Touch General] Renate:
I'm not involved with this project and can't say what the problem is.

Still, if you are trying to install an update.zip there are more manual ways to do that that will show you what the problem is.

You want to zip extract the executable stub from the zip (on your desktop or Nook or wherever).

unzip update.zip META-INF\com\google\android\update-binary

Then you want to put the original zip and the extracted update-binary somewhere.

chmod 755 update-binary
./update-binary 2 1 update.zip

If you do this over ADB it will type out what it is doing.
[Nook Touch General] borgsm1:
[MENTION=4474482]Renate NST[/MENTION]

Thank you for the response.

Looks like I broke recovery. It would no longer enter TWRP, it must be because I changed a lot of the settings and might have messed something up.

I would have to set aside tinkering with the nook. I need it for a lot of readings but its currently not working. I'll try it again after school work.
[Nook Touch General] uphantom89:
Some assumptions poped up in my mind after read through this thread, please kindly advise if I was wrong:

+ I can flash TWRP , then install firmware without Root in advance

+ If I want to root, I just need to search for superSU.zip on the internet and sideload with TWRP
[Nook Touch General] Renate:
Yes, a recovery like TWRP is always built with root access.

When you talk about "rooting" the main Nook image we could get into a philosophical discussion.

Many folks (some? most?) use SuperSU or Magisk or whatever.

For me, I don't want apps (even with permission) to have root access.

I just want ADB to have root access, so I patch that.
[Nook Touch General] a11233456789:
Thanks @RyogoNA , im really love your rom.

Could you help me with these things:

- Can i setting physical button for refresh screen? Cuz some app don't have this function.

- Can i change my screen off image and how to do that.

Many thanks for your help.
[Nook Touch General] uphantom89:
Thanks @RyogoNA, I saw there is version 1.05.4104 test in your gdrive, is it safe to install? And what are enhancements that you built in?.
[Nook Touch General] uphantom89:
This thread is only 3 pages long, you can read through all the comments and you will know how to change physical button function and your screen saver
[Nook Touch General] a11233456789:
Yeah, i know how to change physical button function, but just for page turn, how to set a refresh function into a button? And where is the guide for screensaver change, i cant see it?

Thanks for your help
[Nook Touch General] uphantom89:
Yah, I misread your question.

For 1st point, not sure if we have keyword PAGE_REFRESH or FULLSCREEN_REFRESH to assign for hard button, you can try them yourself.

For 2nd point, please refer https://xdaforums.com/t/gp-g3-gp7-8-twrp-alternative-firmware.4074347/post-82846837
[Nook Touch General] uphantom89:
For me,I put picture in your mentioned folder did not do the trick with the sleep screen.

But after moved around, I found the folder : ./system/usr/sleep can set sleep picture.

One weird thing happen to me when using your alternative firmware is that : when I set Koreader as default reader and let it autostart when reboot/power on, the hard power button did not work and it did not put the Nook to sleep until I go to home launcher and back to Koreader again.
[Nook Touch General] mach281:
This alt fw (v. 1.04.414) looks promising for Nook GL3,4 owners. It's much better than the arrangement I had on my GL4 with relaunchx. Moon+ Reader, my main go-to reader, works well. The manual page refresh is a fantastic addition.

However, there is two big issues. The previous version of the Kindle app I had working in the stock fw + relaunchx is crashing every time a book is opened. The same thing happens with a compatible Nook and Kobo app. I've tried different app versions but none have worked. Clearing the cache has not helped either. If somehow I can get both of these apps working then this is a keeper, otherwise, I may have to revert to the original fw backup I made.

A third issue has appeared: battery drain. The device was completely drained just sitting overnight. (Wifi was not on.)
[Nook Touch General] Renate:
You'll have to give us a hint.

If you have ADB working, post a logcat.

Feel free to trim it down to the interesting parts.
[Nook Touch General] mach281:
Attached logcat (sorry no filters) at time of the Nook app crash. Note the crash (or stopping if you will) occurs when any Nook book starts to open with a black screen with loading circle icon. The loading stops when the navigation directions popup appears. It then reverts back to the library screen. I can access the other tabs at the bottom of the Nook screen but no books.

As for the Amazon app I reinstalled it a couple times and finally its now working. After finagling with the Kobo app I managed to find and turn off the page turn animations and that seemed to stop that app's crashing.

I appreciate your troubleshooting help, Renate.
[Nook Touch General] Renate:
I'm no expert (or even conversant) with SurfaceFlinger and the graphic system, but it looks like you've run out of graphic memory that is allocated by /system/lib/hw/gralloc.default.so

I doubt that the problem is with gralloc.default.so

The version has stayed the same for Glow2 & Glow3 for 5.0, 5.2, 5.3

Size=9,736, MD5=1f2de344a7c6c6e76cdb5bfe01b8db1c

The Glow 4 has a different version that has stayed the same for 5.0, 5.2, 5.3

Size=9,736, MD5=f19013e1decfbdd68ee2c2b5256aa09c
[Nook Touch General] mach281:
It looks like my MD5 for gralloc.default.so is different than the one you posted above but of the same size. Would it have changed with the install of this fw?
[Nook Touch General] mach281:
Yes, solved! Solution to stop the BN app from crashing : Go to Profile (bottom right), open the settings gear icon (top right), open the Reader settings and select none for books page turn effect.

To RyogoNA: Many thanks for the fw. You should know that both, BN and Kobo reading apps crash with their default settings. They require setting the page turn effects to none (I have not checked this for magazines or newspapers). Renate, above, thinks this may be due to the graphics? I see you have a testing fw. Wondering if this can be addressed in that next release?
[Nook Touch General] mach281:
To clarify a couple things in this tread. I have since re-installed the fw and replaced the battery, not an easy task at all. The battery drain issue I reported earlier has subsided for me but the device is now very creaky due the battery replacement operation.

A special note about the imx-keypad.kl file mentioned earlier on the first page to fix page buttons. Personally I really like page turn buttons. The left buttons are currently defined as PAGE_DOWN/PAGE_UP while the right buttons are MENU/BACK. However, the page-turn buttons don't seem to work globally and not in any reader apps I've tried so far except Moon+ Reader, so, I don't think any remapping will work here. (I have not found any remapping apps that will remap them but manually seems possible. Whether the result is effective at all though is doubtful.) Oddly, the Menu/back buttons do seem to work globally.
[Nook Touch General] Renate:
True, because they are always using silly things like VOLUME UP/VOLUME DOWN or B&N F9/F10/F11F12.

I try to use sane buttons (PAGE UP/PAGE DOWN/MENU/BACK) for hard buttons or my button box.

Most apps that I use I wrote myself.

If I had an app that I liked that didn't understand PU/PD I would modify it.
[Nook Touch General] ezikoziko:
The buttons work in AlReader.
[Nook Touch General] UKtheBUNNY:
This is so much better than the stock fw. Thanks for the work put into this.
[Nook Touch General] RyogoNA:
Hello, everyone.

Sorry, I have not been following this thread for a while, but I want to make few statements to clear things a bit.

This rom is not really a "custom" or anything - it is just a port of Mobiscribe e-ink reader. I have applied a few crucial patches here and there but since I do not posses any kind of source code for this rom any change needs to be done in smali code which is rather time and effort consuming. There are few issues with this rom I would address (if I could), but...

I have not done any work on this rom for a while and being honest I don't really have much time/passion for it. Maybe, occasionally I would try to work on it sometime.

And I'd like to express my gratitude to @Renate for support.
[Nook Touch General] RyogoNA:
Also, regarding page turn buttons as @Renate stated already - different apps might expect different key commands for page turn - namely VOLUME UP/VOLUME DOWN or PAGE UP/PAGE DOWN (maybe some others too - not sure). So it is app dependent. Also, do not forget - some apps may allow you to assign those buttons by yourself or have some option like "use volume button to turn pages". So there's no "one size fits them all" solution here.

Regarding idle (sleep) screen image - one would need to replace /system/usr/sleep/suspend.jpg image for that and don't forget to apply correct permissions for it (don't remember which exact, but something like 755 should do).

Regarding image that is displayed when book is turned off it is packed inside /system/app/MsgE6.apk
[Nook Touch General] Renate:
glow45patch.zip (in the sig) has a patch for system/framework/android.policy.jar to cycle sleep images in /data/sleep

That's much easier than having a single image in /system (which is normally RO).
[Nook Touch General] uphantom89:
Hi Renate, How can I use the patch glow45patch.zip? I did try to install it via twrp but I received "fail to install" message
[Nook Touch General] Renate:
It's a patch system. The first thing you do is unzip it somewhere. Inside is readme.txt. You basically take a system file off your device, patch it and put it back. For this, you need ADB (obviously), apktool and MergeSmali.
[Nook Touch General] uphantom89:
I used your "Screen.smali" patch with android.policy.jar, but when I reached "mergesmali /v C:\WorkDir\smali ...." , I received message "Stock file not found C:\WorkDir\smali\ntx\fb\Screen.mali" .

I checked the folder which apktool extract from android.policy.jar, there was only C:\Workdir/Smali/com folder, there was no "C:\WorkDir\smali\ntx\fb\" folder, could you help to patch from system/usr/sleep/ to Sdcard/sleep . The purpose is to let KoReader app auto extract book cover to sdcard/sleep folder and the system will take that picture as sleep image.

Thank you.
[Nook Touch General] Renate:
Something is screwy. Are you sure that you got the right android.policy.jar out of a Glow? Could you post it, please.

└──ntx
├──fb
│ ├──FrameBufferEx
│ ├──FrameBufferEx$ScaleType
│ ├──FrameBufferEx$Screen
│ ├──FrameBufferEx$Screen$FileComparator
│ └──Screen
├──flight
│ └──FrontLight
└──power
└──PowerManagerEx
[Nook Touch General] uphantom89:
Here is the file that I copied from system/framework

Remark: I'm using rom of RyogoNA
[Nook Touch General] Renate:
Yes, I can patch that file normally, that's working fine, but that's not the problem.

That file is all screwy, I'm amazed that anything works.

That has annotations for MergeSmali in it which should never be in a file that you use, only in the patches.

It looks like someone patched that file using an text editor and not MergeSmali.

Plus it's missing FrameBufferEx

Or do you mean that the file you posted is what you got after you patched???

I don't think so, because MergeSmali removes the annotations.

In short, I don't know what you have.
[Nook Touch General] uphantom89:
Just for clarification, I copied that file directly from system/framework and send to my phone, and attached it here, I did not patch it.
[Nook Touch General] Renate:
Ok, but it's patched with my patch (sort or, but wrong) and it's missing stuff.

What modifications was this supposed to have? What version (exactly, from getprop|grep finger) are you on?
[Nook Touch General] uphantom89:
Actually, I just want to use your patch to change the default sleep cover folder. I followed the instruction in the glow45patch.zip, but it seems that the rom was customized and not followed folder structure as you mentioned.

Update: I found Screen.smali and the same folder structure in the system/framework/extend.jar , I applied your patch wit Screen.smali, however, it didn't work (I tried to put picture in data/sleep or sdcard/sleep, but it still use the picture in system/usr/sleep folder)
[Nook Touch General] Renate:
What version Glow software are you using?

Why did you originally replace android.policy.jar with some unknown mod?

My patch still uses /system/usr/sleep/suspend.jpg as the fallback if something is wrong.

But you're mixing everything up, so who knows what's going on.
[Nook Touch General] uphantom89:
Oh no, you took me wrong, I have no skill in moding any firmware.

to answer your question:

- I'm using the firmware which RyogoNA post in this thread , version 1.04.4140, android 4.4

- I did not replace android.policy.jar with any unknown mod, I get the file android.policy.jar originally from system/framework of firmware 1.04.4140 and posted in previous post. I did not do anything further with it and I also do nothing with the firmware also.

I intent to use your patch to patch the book cover as your screen.smali patch mean to be.
[Nook Touch General] Renate:
Apparently what you got from RyogoNA had android.policy.jar sort of patched.

I don't know what "1.04.4140" is supposed to mean.

# getprop|grep finger
[ro.build.fingerprint]: [NOOK/ntx_6sl/ntx_6sl:4.4.2/KOT49H/53.0.101_user:user/release-keys]

Have you already tried putting some files in /data/sleep?
[Nook Touch General] uphantom89:
1.04.4140 is the version which RyogoNA name for his rom.

I tried to apply your patch with extend.jar (which have folder structure and Screen.mali file same as folder structure and file which you mentioned in previous post) , then I create folder "sleep" inside "data" folder (there was no "sleep " folder in advance) and put a suspend.jpg picture inside that folder, but it didn't work, the system still use picture in the folder system/usr/sleep
[Nook Touch General] Renate:
See my previous post. Why don't you tell me what that says?

Since RyogoNA already kind of put my patch in (but deleted FrameBufferEx) why don't you ask them since it's their thing.

If you go back to a clean android.policy.jar you can patch without a problem.

The point of my patch system is so you can do an upgrade and patch the new components.
[Nook Touch General] uphantom89:
getprop|grep finger
[ro.build.fingerprint]: [Freescale/ntx_6sl/ntx_6sl:4.4.2/KOT49H/106:user/release
-keys]

Sorry, I just don't know that a command that need me to pull information from my device. Above is what was appear on cmd window.
[Nook Touch General] uphantom89:
Ah nevermind, I decide to go back to Nook stock rom, and apply your code for the file /data/data/com.nook.partner/shared_prefs/screen_saver_preference.xml

Code:

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>

<map>

[color=red]<boolean name="pref_key_screen_saver_from_sdcard" value="true" />

<string name="pref_key_screen_saver_from_path">/sdcard/sleep.png</string>[/color]

<boolean name="pref_key_screen_saver_low_power" value="false" />

<int name="key_screensaver_img_index" value="8" />

</map>

Then I let KoReader autosave book picture at Sdcard/sleep.png

Now I'm happy that the Nook will take the cover of the book that I'm reading as sleep picture.

Just one concern remain: I apply one of your command to kill OTA update, and I also use nook toolkit of RyogoNA to prevent OTA update. Hopefully it will work.

It's very inconvenient to re-root and remap button everytime Nook update firmware
[Nook Touch General] FerociousAndroid:
Wow, this is great! Does this firmware have PDF and dictionary support?

EDIT:

Seems for PDF i need to download Koreader.
[Nook Touch General] uphantom89:
After using both stock and this firmware, i saw that the stable of both are the same. The only advantage of this firmware is its UI have home back and recent button. The disadvantage is that you can't put your current reading book as sleep cover automatically.

So, I prefer stock rooted firmware, combine with Koreader then I got the sleep cover function
[Nook Touch General] FerociousAndroid:
Hello all,

-So I am trying to install TWRP via ADB and getting "############## unauthorized". Followed a thread regarding turn On/Off/Off USB debug but no luck. Any advise? Thx

GP7.8

Firmware:

App 53.067/5.5.031

Shop 5.5.0.5

Readouts 5.5.0.32
[Nook Touch General] uphantom89:
You should take a look some related steps in this thread: https://xdaforums.com/t/how-to-root-and-set-up-a-new-nook-glowlight-3.3802331/
[Nook Touch General] f_coco:
Thanks for the ROM. I flashed my NGP 7.8, it works perfect and it response much faster than my mobiscribe 1gen.

Can you port this rom to Mobiscribe 1gen? i have tried the twrp, it works on mobiscribe 1gen.
[Nook Touch General] emilic:
Thank you for the modified firmware!. I also just flashed my NGP, it works amazingly, much more responsive than the official one!

I am just wondering, and maybe you have no idea... But is it possible to upgrade the android version ? move out of 4.4.2...

I am just struggling to get around webview (30) which is quite outdated...
[Nook Touch General] RyogoNA:
tbh, I don't think so. That's why I moved to Boox Nova 2.
[Nook Touch General] emilic:
Guessed so ^^,

Well using ur firmware and so far so good :)

Is it possible to change the sleep image ?

(i've seen that if I modify the file in system/usr/sleep/suspend.jpg I am able to do so... but I need root and to mount the system everytime I want to do this ^^...

O yeah my goal is to do something like this but for the Nook glow plus