[Nook Color Android Development] martian21:
Excellent work DizzyDen!!!

Finally got home and had a chance to test out your latest (b7).

My platform is as follows:

Phenom II Quad Core with 8GB DDR2 running Windows 7 Ultimate x64

Android SDK installed

Testing with USB disconnected:

Detected cm_encore_full-87.zip just fine and offered to modify it.

Extracted files with no issues

ADB over USB failed (as expected)

Offered to use ADB Wireless - I selected Yes

Enabled ADB wireless on my Nook

Entered my Nook's IP and port info and ADB wireless worked flawlessly to get my S/N and generate an IMEI number based off that serial number.

Notified me of the duplicate file bug in n87 and that I would have to manually add framework.jar

Cleanup appears to have worked as only the modified framework.jar, IMEI.fix, telephonyManager.smali and cm_encore_full-87-IMEI.zip files are left

I extracted the framework.jar from cm_encore_full-87-IMEI.zip and backsmali'd it which confirmed it was NOT modified (due to the duplicate file bug)

I then backsmali'd the modified framework.jar and confirmed it had been modified with an IMEI based on my NOOK's S/N - WOOT!

I also confirmed that the TelephonyManager.smali file left behind was modified as well. <=== What is the purpose of leaving this file? It doesn't seem useful in addition to the IMEI.fix file.

Testing with USB connected: (first attempt)

Detected cm_encore_full-87.zip just fine and offered to modify it.

Extracted files with no issues

ADB over USB failed (I did not have USB drivers for the Nook installed!)

Offered to use ADB Wireless - I selected No

Stated that my IMEI is "12-345678-901234-5" (Obviously not based on my S/N)

Notified me of the duplicate file bug in n87 and that I would have to manually add framework.jar

Cleanup appears to have worked as only the modified framework.jar, IMEI.fix, telephonyManager.smali and cm_encore_full-87-IMEI.zip files are left

I verified the *bogus* "12-345678-901234-5" IMEI was present in IMEI.fix, framwork.jar, and TelephonyManager.smali

***I personally don't like the fact that it falls back to a clearly bogus IMEI number if ADB fails. I would much prefer you prompt the user to enter their Nook's serial number.***

To remedy my ADB USB failure, I installed NOOK USB drivers from here. I had to go into Device Manage and right click on the Nook and tell it to "update drivers" then point it to the path I extracted the drivers to. I then verified ADB was working over USB with the "adb devices" command which showed my Nook!

Testing with USB connected: (second attempt - with proper USB drivers!)

Detected cm_encore_full-87.zip just fine and offered to modify it.

Extracted files with no issues

ADB over USB succeeded to get my Nook's serial number!

Notified me of the duplicate file bug in n87 and that I would have to manually add framework.jar

Cleanup appears to have worked as only the modified framework.jar, IMEI.fix, telephonyManager.smali and cm_encore_full-87-IMEI.zip files are left

Confirmed files were properly modified.

Truly amazing work DizzyDen. You have my respect and gratitude!

My only comment would be to ditch the *bogus* "12-345678-901234-5" IMEI if ADB fails, granted it is clearly bogus but I think the only way this mod is going to gain traction and not cause controversy with app developers is if you ensure a unique IMEI number.

If you are dead set on offering a solution that doesn't require a serial number for users who are unable to get their S/N or for whatever reason don't want to use it then I would suggest you request a hash word or phrase (of a certain minimum length) that you can then hash add the two preceding zeros and truncate to the proper length to create a (hopefully unique) IMEI. The goal would be to use an easy to remember word or phase as the seed / hash to generate an IMEI in hopes that the user will remember it even if the IMEI.fix file is lost or unavailable so that the same IMEI number can be generated.

EDIT: Tested with update-cm-7.0.3-encore-signed.zip and everything worked flawlessly. The framework.jar file inside the modded update-cm-7.0.3-encore-signed-IMEI.zip had the IMEI based on my Nook's S/N! Hopefully the "double file" bug will get fixed soon.

Martian21