Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,909 Members 38,175 Now Online
XDA Developers Android and Mobile Development Forum

[1.1B0 13 Nov] Edit n/reading now/side btns/RecentApps+ActivityPicker+ForceOrient!!!!

Tip us?
 
XorZone
Old
(Last edited by XorZone; 1st December 2011 at 09:27 PM.) Reason: jars update for nook 1.1
#1  
XorZone's Avatar
Senior Member - OP
Thanks Meter 135
Posts: 275
Join Date: Jan 2009
Location: Walnut Creek, CA
Angry [1.1B0 13 Nov] Edit n/reading now/side btns/RecentApps+ActivityPicker+ForceOrient!!!!

DISCLAMER and WARNING: I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or the current economic crisis. Please do some research if you have any concerns about this app.

THIS IS SPARTA! (BETA)


NEW Distribution policy:
This mod provided exclusively on xda-developers as downloadable jars and app, please post link to this thread instead of copying files to other resources, so users will be able to track changes and report bugs in one place.
However, I allow distribution in the rooting/sideloading packages such as MinimalTouch, Nooters, etc..., but only if credit/thanks and link to this thread are given and I'm notified.


About http://forum.xda-developers.com/show...68&postcount=2

What's new
Version (jars) 1.1-beta0
*** Jars updated to work with Nook 1.1 update

Version 1.0-beta2
Quote:
* Force landscape orientation, every app (even stock B&N apps) will be in lanscape, B&N reader still shows text with hardcoded width tho.
*** If in portrait - force to landscape, app settings cannot override behaviour
*** If in landscape - return to default portrait mode, where if app request landscape it will get it.
* 4 Side hard buttons configurable in app
* Configurable recent dialog bottom button bar with "back", "home", "menu", "search", "Force orientation change"
* New action "B&N Quicknav" on n long click
* Clear dalvik-cache button
* Fix framework permissions button
Version 1.0-beta1
Quote:
* Configurable quick nav, n button (short and long presses), reading now button actions
* Recent apps dialog
* Activity Picker
Version 1.0-alpha
Quote:
Initial release with external recent apps dialog (NookTouchHomeButton app obsolete now.)

ToDo
Quote:
* Fix issues if any
* TBD Add eInk refresh rate, etc.
Technical details http://forum.xda-developers.com/show...76&postcount=3


How to:
Quote:
* Device should be ROOTED
* Jars 1.1b0 are based on 1.1
* Jars 1.0b2 are based on 1.0.1 (but should work on 1.0.0)
* Download jars.zip, unpack
* Backup originals from /system/framework/android.policy.jar and /system/framework/services.jar (consider to backup full device)
* Copy into /media or /sdcard in your nook if you not planning to use adb
* Remount /system to read-write using one of the following:
*** adb: adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
*** remount program from market
*** Total Commander click on right most icon in bottom bar, click on + icon that appears on expanded bar, select internal command, click on >> button and select icon with 'rw', click OK/Apply, Navigate to /system in left panel and click 'rw' icon.
* copy downloaded android.policy.jar to the /system/framework using:
*** adb push android.policy.jar /system/framework/
*** adb push services.jar /system/framework/
*** Total Commander - select /system/framework/ in one panel and /media or /sdcard in other (click -> -> -> overlay to change panels), select android.policy.jar and services.jar by clicking on it's icons and copy (to system, not from of course) by clicking second icon (from left) in bottom most bar
* REBOOT Nook Simple Touch
* Install app
* Click fix permissions button
* Click clear dalvik cache button (Nook will reboot on success)
* Unlock after reboot and verify by:
*** Long-press n button - this should bring recent menu
*** Application NookTouchTools should have unlocked Configuration button
P.S. NookTouchHomeButton app is obsolete.
P.S.S. Developers interesting in process of patching are welcome to pm (I plan to open source patches/code, but no time right now).

Thanks to:
JesusFreke - for smali/baksmali
Cyanogenmod team - for the warning text
Attached Files
File Type: zip jars-1.0b2.zip - [Click for QR Code] (613.8 KB, 2792 views)
File Type: apk NookTouchTools-1.0b2.apk - [Click for QR Code] (163.0 KB, 4747 views)
File Type: zip jars-1.1b0_nook1.1.zip - [Click for QR Code] (614.4 KB, 3968 views)
Good-bye... and hello... as always!
Xor

[Widget][For 4.4] Desk Clock Resizable Widget
The Following 24 Users Say Thank You to XorZone For This Useful Post: [ Click to Expand ]
 
XorZone
Old
(Last edited by XorZone; 15th October 2011 at 02:21 AM.)
#2  
XorZone's Avatar
Senior Member - OP
Thanks Meter 135
Posts: 275
Join Date: Jan 2009
Location: Walnut Creek, CA
Features of mod
* Will return stock android go to home by short press of "n" button and recent apps dialog on long press (Configurable)
* All B&N quicknav buttons configurable, it even loads apps icons (after reboot)
* Reading now" button configurable
* Force landscape orientation
* Ability to simulate key event (system wide) without root from any app, developers PM me if interested.
* NOTE: Installation of the jars w/o conf will have stock B&N effect + recent apps

Features of application
* Implements Activity Picker, so any app (i.e. Launcher Pro) can use "Shourtcuts" dialog that B&N removed.
* Configuration UI for above mod
* Configuration UI for page (side) hard buttons
* Clear dalvik-cache button
* Fix framework permissions button
Good-bye... and hello... as always!
Xor

[Widget][For 4.4] Desk Clock Resizable Widget
The Following 4 Users Say Thank You to XorZone For This Useful Post: [ Click to Expand ]
 
XorZone
Old
(Last edited by XorZone; 15th October 2011 at 02:20 AM.)
#3  
XorZone's Avatar
Senior Member - OP
Thanks Meter 135
Posts: 275
Join Date: Jan 2009
Location: Walnut Creek, CA
Some technical details
* Patched android.policy.jar:
*** Injected home button code from AOSP, with configuration check between goto home and b&n quicknav toggle
*** Fixed recent apps dialog with configuration check to launch recent apps dialog or configured app launch
* Patched services.jar
*** "Reading now" button check for configured launch value (possible values: Home, Back, Menu, Search, Long Search, Custom App, B&N default)
*** All quicknav buttons configurable and will load icons (once, onCreate) possible values same as above.
* ActivityPicker - B&N removed default activity (usually in Settings.apk) to serve ACTION_PICK_ACTIVITY requests, so I added it back to the app and now able to add shortcuts/edit doc shortcuts in Launcher Pro...
* Configuration - All above configurable values stored in Settings.System so both system jars and Conf app can access it.
* Clear dalvik-cache button
*** executes as root following code and reboots
Code:
busybox rm -rf /data/dalvik-cache/*
* Fix framework permissions button
*** executes as root:
Code:
mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system
chown root.root /system/framework/*
chmod 644 /system/framework/*
Good-bye... and hello... as always!
Xor

[Widget][For 4.4] Desk Clock Resizable Widget
The Following 4 Users Say Thank You to XorZone For This Useful Post: [ Click to Expand ]
 
apeine
Old
(Last edited by apeine; 5th October 2011 at 01:22 PM.) Reason: Fixing mess
#4  
Senior Member
Thanks Meter 30
Posts: 261
Join Date: Mar 2011
Location: Sao Paulo
To make it simple (I guess), using root explorer (can't get adb to run on my computer):
- download android.policy.jar
- backup original copy of the same file from /system/framework
- make directory writeable
- put new copy in the same directory
- fix permisssions (what sort of permission? 755?)
- make directory non-writeable
- Install apk
- boot
- PROFIT?

What the heck? Nook STR color screen? New nook to fight Amazon Fire?
The Following User Says Thank You to apeine For This Useful Post: [ Click to Expand ]
 
domi.nos
Old
#5  
Senior Member
Thanks Meter 65
Posts: 308
Join Date: Jan 2011
Location: Warszaw
Ok, so i installed it without problems. What i see is:
1. I don't see ant profit in having home, back, search in that window ;/ everyone will still use button savior.
2. It should be bigger.
3. Instead of those home, back buttons maybe add those from stock n button app? it is hard to access library in instance.
Would you?
 
XorZone
Old
(Last edited by XorZone; 5th October 2011 at 05:16 PM.)
#6  
XorZone's Avatar
Senior Member - OP
Thanks Meter 135
Posts: 275
Join Date: Jan 2009
Location: Walnut Creek, CA
Quote:
Originally Posted by apeine View Post
What the heck? Nook STR color screen? New nook to fight Amazon Fire?
Lol, it's screenshot man, do you think screenshot is coming from eInk itself?

Quote:
Originally Posted by domi.nos View Post
Ok, so i installed it without problems. What i see is:
1. I don't see ant profit in having home, back, search in that window ;/ everyone will still use button savior.
2. It should be bigger.
3. Instead of those home, back buttons maybe add those from stock n button app? it is hard to access library in instance.
Would you?
Great, some feedback.

1. That's you, I love to have screen as clear as possible, but this could be configurable, right?
2. This could be configurable as well.
3. Goto 1
Good-bye... and hello... as always!
Xor

[Widget][For 4.4] Desk Clock Resizable Widget
 
jago25_98
Old
#7  
Senior Member
Thanks Meter 25
Posts: 387
Join Date: Jul 2007
At the moment I still have access to the B&N home via the 'n' key. I then use ButtonSavior and NookButtonMenu for the apps menu, that way I still have the B&N menu.

I wonder if this might be better.

Happy to see lots of handy apps. I wonder if CM7 port might be more of a catch-all
RSS feed for NookTouch Dev forum: http://forum.xda-developers.com/exte...&forumids=1201 Refer to each phone by it's model name where possible - i.e. "i9000", not "Galaxy S" - easier searching
The Following User Says Thank You to jago25_98 For This Useful Post: [ Click to Expand ]
 
XorZone
Old
#8  
XorZone's Avatar
Senior Member - OP
Thanks Meter 135
Posts: 275
Join Date: Jan 2009
Location: Walnut Creek, CA
Quote:
Originally Posted by jago25_98 View Post
At the moment I still have access to the B&N home via the 'n' key. I then use ButtonSavior and NookButtonMenu for the apps menu, that way I still have the B&N menu.

I wonder if this might be better.

Happy to see lots of handy apps. I wonder if CM7 port might be more of a catch-all
First,
I'm not using any of the b&n apps because of the lack of the russian books.
So QuickNav (this is name from the code) is completely useless for me.

Second,
Home button is the native android feature and I don't like to have even that small button savior button (and cause it's small it's difficult to click on) while I have other options to utilize unused resources (reading not and n buttons).

Third,
I would not count on CM, as using cm7 for a 1/2 year on captivate - it's battery hog, but best/smoothest experience.
Honestly, I don't care of silk smooth (even if it can be 100% performance boost) performance and other cm7 features, but I do care of partial refresh and battery life.
Good-bye... and hello... as always!
Xor

[Widget][For 4.4] Desk Clock Resizable Widget
The Following User Says Thank You to XorZone For This Useful Post: [ Click to Expand ]
 
ryanpl
Old
#9  
Senior Member
Thanks Meter 22
Posts: 161
Join Date: Jan 2011
Wow, Thanks for your work in making this app. I'm going to leave it on and see how I feel about it. I have a feeling I'm going to miss being able to access my library but we'll see. Just wondering how difficult it would be to keep the original popup menu but replace the B&N functions with your functions? I hope I'm making sense. Ryan
 
apeine
Old
#10  
Senior Member
Thanks Meter 30
Posts: 261
Join Date: Mar 2011
Location: Sao Paulo
Well, thanks for the great work. Now the N button has a real function. I got to switch between apps in portrait and landscape mode, each one keeping its orientation. I also get to program in RFO basic, using the manual just by switching apps in ezpdf and the program itself.
And I even get to keep button saviour minimized, so I get to type "P" and zero, which were partially covered by the off button!
Once again, thanks!

---------- Post added at 01:31 PM ---------- Previous post was at 01:27 PM ----------

BTW, the back button, the one that looks like a list and the zoom/search button shows a popup "Not rooted?". The home and orientation buttons work fine.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes