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?
 
virajk
Old
#1  
Junior Member - OP
Thanks Meter 2
Posts: 10
Join Date: Jul 2010
Post [DEV] Froyo on Nexus One - building from google source

hi,
I have downloaded froyo source from google and trying to build and run it on nexus one (N1). N1 is untampered (locked bootloader/non-rooted/original recovery image).
I followed the build steps as given at google website with required modifications.
I got one build error about librpc.so needed by libgsp.so. Resolved it by building librpc.so mannually and then continuing the build.
OTA package was created successfully. But when I put the zip as update.zip on sdcard and try to update from recovery, I get signature verification failed error.

Exact error is:
-- Install from sdcard...
Finding update package...
Opening update package..
Verifying update package...
E:failed to verify whole-file signature
E:signature verification failed

Installation aborted

Anyone knows whats going wrong?
If I do the update process with zip provided by Google (signed-passion-ota-43546.cc653ee4.zip) then it works.

Is unlocking the bootloader is required if you want to use custom build image?

Does google use different key to sign its packages than the one available at (build/target/product/security/testkey.x509.pem) by any chance?
 
cursordroid
Old
#2  
cursordroid's Avatar
Senior Member
Thanks Meter 14
Posts: 1,174
Join Date: Jul 2009
Location: Edmonton
Your packages would either not be signed at all, or would be signed with test keys.
These test keys aren't accepted by the stock recovery environment on the N1.
You would need to root your N1, install a custom recovery, and sign the OTA zip with test keys for this to work.
There is no way to sign update packages with Google's private keys.
This posting is provided "AS IS" with no warranties, and confers no rights.

Samsung Galaxy S2 GT-I9100M
 
virajk
Old
#3  
Junior Member - OP
Thanks Meter 2
Posts: 10
Join Date: Jul 2010
Thanks for superfast reply. Didnt expect it will be so fast.
My zip was signed. Problem seems to be the locked bootloader and private keys as you said.
I was a bit reluctant to root my N1. Guess i dont have any other option now
 
virajk
Old
#4  
Junior Member - OP
Thanks Meter 2
Posts: 10
Join Date: Jul 2010
I have one doubt. If I install a custom recovery and then update using custom built update.zip, wont the recovery image get overwritten by the recovery image in the update package?
 
virajk
Old
#5  
Junior Member - OP
Thanks Meter 2
Posts: 10
Join Date: Jul 2010
Quote:
Originally Posted by virajk View Post
I have one doubt. If I install a custom recovery and then update using custom built update.zip, wont the recovery image get overwritten by the recovery image in the update package?
I guess recovery folder from the OTA package should be removed and then the zip should be signed again and used.
 
madj42
Old
#6  
Senior Member
Thanks Meter 21
Posts: 197
Join Date: Jun 2010
Location: Minnesota
Could also do the steps below that are from here:

23) In your terminal, type "rm /system/etc/install-recovery.sh" and hit Enter
24) In your terminal, type "rm /system/recovery-from-boot.p" and hit Enter

Or probably just what you said above.
 
sbq
Old
#7  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Apr 2010
Default built librpc.so by hand?

I am getting the same error you mentioned:

ld: warning: librpc.so, needed by out/target/product/passion/obj/lib/libgps.so, not found

You say you built it by hand -- can you provide more explicit instructions for doing this? Thanks.

-sbq
 
virajk
Old
#8  
Junior Member - OP
Thanks Meter 2
Posts: 10
Join Date: Jul 2010
Give command "mm librpc" to build rpc alone. And then continue the make of full android. I had got this error while building cyanogen's source also.
 
MrNameless
Old
#9  
MrNameless's Avatar
Senior Member
Thanks Meter 41
Posts: 414
Join Date: Jan 2010
Location: Italy
can anyone help me ?
i got this error while building


http://pastebin.com/9dVJJA4y
Follow Me on Twitter


If you like my hard work and the time it takes me, please consider buying me a coffee!



AndroidITA .com
<--- My site About Android

Ex Maintainer of GingerS ROM for Nexus S
 
jazzor
Old
#10  
Member
Thanks Meter 105
Posts: 42
Join Date: Mar 2010
If you are missing libgps or other files, that is because you did not run or completely finish the extract-files.sh script found in device/htc/passion
edit: alternatively you can use unzip-files script with a froyo update.zip

Tags
android, build, froyo, nexusone, source

XDA PORTAL POSTS

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more