New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
ApokrifX
Old
(Last edited by ApokrifX; 23rd February 2012 at 04:10 PM.)
#1  
Senior Member - OP
Thanks Meter 33
Posts: 384
Join Date: May 2011
Default Run Library & Reader on Nook Color emulator.

I’m writing an app which uses Reader.apk ContentProviders.
Library & Reader are absent on Nook Color emulator (NCE).
I want to install then to make debugging easier.
Got them both from NC 1.0.1 or NC 1.1 image, but they won’t install.
(I know they should be both in system/apps)


>adb -e install Reader.apk
pkg: /data/local/tmp/Reader.apk

I got different errors for NCE 2.1 and NCE 2.2:
2.1: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]
2.2: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]
Which one is easier to get installed?

(Even if I push them with
>adb push Reader.apk /system/app/Reader.apk
They won’t show up, as expected)

Finally the question:
If I do:
stop
replace /system/app & /system/framework from corresponding content from NC image
start
What else need to be done to make it work?

I know, it is completely noob question, but is there another/right solution?

IMO, similar, but more cumbersome will be:
pull /system/app & /system/framework folders, resign with my certificate.
Edit Library.apk & Reader.apk – change SHARED_USER to match, resign with my certificate.

Looking for advice on how to proceed from experts.
 
Googie2149
Old
#2  
Googie2149's Avatar
Senior Member
Thanks Meter 52
Posts: 288
Join Date: Jan 2012
While you're messing with the NC emulator, I wonder if it's possible to just copy the file system of the NST onto the emulator and see what happens...
 
ApokrifX
Old
#3  
Senior Member - OP
Thanks Meter 33
Posts: 384
Join Date: May 2011
Quote:
Originally Posted by Googie2149 View Post
While you're messing with the NC emulator, I wonder if it's possible to just copy the file system of the NST onto the emulator and see what happens...
That was the question, actually:
Which part of framework is safe to overwrite?
Is it possible to replace whole framework (/system/app, /system/framework, anything else)?

By "file system of the NST" do you mean whole /system partition?
There are "hardware dependent" drivers, so I believe, the answer will be no, most likely.
 
ApokrifX
Old
#4  
Senior Member - OP
Thanks Meter 33
Posts: 384
Join Date: May 2011
It turned out, NC 2.7 NCE apks are signed by media key (s/n: f2b98e6123572c4e).
Get Library.apk Reader.apk Home.apk from NC 1.0.1 image.
Resigned them with media key and pushed to /system/app/
Library works right away.
Reader didn’t work until /data/logs/ was created.

ToDo: Try to replace NCE 2.7 /system/app and /system/framework from NC 1.0.1 image.

Naturally, this post is off topic here in NST forums, it should be in NC ones...
That’s why nobody responded, I guess…