Android 4.04 build - now fully working!

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
Post Reply
User avatar
dwl99
Posts: 760
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Android 4.04 build - now fully working!

Post by dwl99 » Fri Dec 20, 2013 2:10 pm

[Buzz came across this build which looks interesting http://www.familie-kirchhofer.de/android/

Unfortunately it's not rooted properly. I've tried updating the Superuser.apk to the latest version but still no root. I did manage to get Google Play working by booting my PC from an Ubuntu Live CD, opening the USB stick & pasting the gapps apk's into system/app (OK, I know it's not pretty but it worked!). All gapps seem to be working now. Some apps don't show up in Google Play but I'll be editing features.xml to spoof things like phone, bluetooth & GPS. The Trebuchet launcher which came preinstalled has a weird-looking homescreen with funny spacing of icons but Nova launcher works fine. The sound comes out of the Joggler's internal speaker and the headphone jack doesn't seem to work. Wifi internet access is fine and the whole ROM has a nice, solid feel to it. My Swiftkey keyboard works well which is good cos it wouldn't run on the previous Froyo build.

Can anyone offer some advice:
1. How to get a proper root
2. Which file needs edited to get the sound coming out of the headphone jack

Ta]

EDIT - bugs all fixed by cliche, please see this post for download details. Fully rooted & headphone jack audio output enabled. For Windows users just use 7zip to decompress the file and then decompress the second file inside then use win32diskimager to write the img file to a USB stick. The build is configured for Wifi and not ethernet.

Please note cliche's comment:
Bug - if the Joggler goes to sleep, it turns off the touchscreen so there's no way to wake it back up. Workaround is to tick 'Stay Awake' in Developer Options in Settings. You can set the display timeout to whatever you like; which will cause it to dim the screen slightly after that period.

Once you have everything adjusted to your liking make sure you make a backup image of your USB stick with win32diskimager - my first attempt had a bad shutdown then got stuck in a bootloop so I lost a couple of hours putting everything back together :-(
Last edited by dwl99 on Thu Jan 02, 2014 5:12 pm, edited 3 times in total.

User avatar
dwl99
Posts: 760
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Help with Android 4.04 build please

Post by dwl99 » Sat Dec 21, 2013 8:48 am

It appears that the Linux kernel needs to be patched to fix the sound problem:

"Patches for the Linux kernel 3.10 can be found at https://github.com/pkirchhofer/android-kernel.
These patches fix the GMA500 graphics driver and the sound switching between internal speakers and line out.
To fix the sound properly copy the joggler-sound.patch file to /lib/firmware and set the corresponding kernel parameter snd_hda_intel.patch=joggler-sound.patch."

This is beyond my capabilities - can anyone point me in the right direction?

User avatar
hawsey
Posts: 1881
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Help with Android 4.04 build please

Post by hawsey » Sat Dec 21, 2013 11:27 pm

I wonder if any x86 android devs would want to have a joggler to play with?
The video issues might be a stumbling block but might be worth a try anyway :-)
Happy Joggling

User avatar
dwl99
Posts: 760
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Help with Android 4.04 build please

Post by dwl99 » Sat Dec 21, 2013 11:35 pm

The graphics aren't a problem, the main thing is the broken sound patch for the headphone socket.

User avatar
hawsey
Posts: 1881
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Help with Android 4.04 build please

Post by hawsey » Sun Dec 22, 2013 12:16 am

Thats great , so this build will play video etc without stuttering etc didnt realise :$
Happy Joggling

kappa__2
Posts: 23
Joined: Fri Feb 03, 2012 10:22 pm

Re: Help with Android 4.04 build please

Post by kappa__2 » Sun Dec 22, 2013 2:25 pm

I've tried that build 2 weeks ago. Burned the img to a pen and tried to play video (xvid). No hw video acceleration....

User avatar
pete
Posts: 2654
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Help with Android 4.04 build please

Post by pete » Sun Dec 22, 2013 2:31 pm

A bit of a tangent and relating to the Openframe 2.0 device....

I have an Openframe 2 configured with a Broadcom Crystal HD card in it.

I'll give the build a try and see how it works on that device. It does do well streaming live HD TV and recorded 1080 stuff in XBMC today.
- Pete

Auto mater

cliche
Posts: 11
Joined: Fri Nov 25, 2011 11:43 am

Re: Help with Android 4.04 build please

Post by cliche » Sat Dec 28, 2013 7:29 pm

dwl99 wrote:It appears that the Linux kernel needs to be patched to fix the sound problem:

"Patches for the Linux kernel 3.10 can be found at https://github.com/pkirchhofer/android-kernel.
These patches fix the GMA500 graphics driver and the sound switching between internal speakers and line out.
To fix the sound properly copy the joggler-sound.patch file to /lib/firmware and set the corresponding kernel parameter snd_hda_intel.patch=joggler-sound.patch."

This is beyond my capabilities - can anyone point me in the right direction?
I've finally had a minute to check the image on that page - the patch file is already in place (in /system/lib/firmware) and grub is setting that kernel parameter. I'll give it a try booting and try to see what the problem is.

cliche
Posts: 11
Joined: Fri Nov 25, 2011 11:43 am

Re: Help with Android 4.04 build please

Post by cliche » Sat Dec 28, 2013 10:17 pm

http://www.jogglerwiki.com/forum/viewto ... 21&p=19215

Looks like someone else has already been having a go at this - might be worth looking at the modified patch and kernel. If I get more time I'll have a play.

User avatar
dwl99
Posts: 760
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Help with Android 4.04 build please

Post by dwl99 » Sat Dec 28, 2013 10:48 pm

Sounds a bit more hopeful. I'll have a go at a few things to try to get a proper root.

cliche
Posts: 11
Joined: Fri Nov 25, 2011 11:43 am

Re: Help with Android 4.04 build please

Post by cliche » Sun Dec 29, 2013 11:54 am

I've fixed the root issue - it wasn't rooted properly so no amount of SuperSU or other messing with APKs was going to help!

To fix: edit build.prop and set ro.secure to 0. Then set the suid bit on the 'su' binary installed in xbin.

If I get time later I'll investigate using a kernel from the other thread - from a brief read I get the impression that the kernel patch which changes the pin allocations isn't necessary.

cliche
Posts: 11
Joined: Fri Nov 25, 2011 11:43 am

Re: Help with Android 4.04 build please

Post by cliche » Sun Dec 29, 2013 12:06 pm

Good news!
Root and sound all fixed.
To fix root: see post above
To fix sound - you just need to replace the patch file with roobarb!'s one from the post in the Linux thread.
Just replace the joggler-sound.patch file in /system/lib/firmware with this:

Code: Select all

[codec]
0x83847632 0x100 0

[pincfg]
0x07 0x01110014
0x08 0x01410013
0x0a 0x02111011
0x0d 0x02214012
0x0c 0x01810022
0x0b 0x01a10021
0x10 0x01010031
0x11 0x01310023
0x15 0x01d10024

[verb]
0x06 0x701 0x0000
0x07 0x70c 0x0002
0x14 0x390 0x0000
0x14 0x3a0 0x0000
0x0f 0x707 0x0000

[hint]
Now we just need the Android market and added features to get all the apps visible again.

User avatar
dwl99
Posts: 760
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Help with Android 4.04 build please

Post by dwl99 » Sun Dec 29, 2013 1:06 pm

cliche wrote:I've fixed the root issue - it wasn't rooted properly so no amount of SuperSU or other messing with APKs was going to help!

To fix: edit build.prop and set ro.secure to 0. Then set the suid bit on the 'su' binary installed in xbin.

If I get time later I'll investigate using a kernel from the other thread - from a brief read I get the impression that the kernel patch which changes the pin allocations isn't necessary.
Thanks - I had already edited build.prop as you described but didn't know about the su binary bit.

cliche
Posts: 11
Joined: Fri Nov 25, 2011 11:43 am

Re: Help with Android 4.04 build please

Post by cliche » Sun Dec 29, 2013 2:14 pm

dwl99 wrote: Thanks - I had already edited build.prop as you described but didn't know about the su binary bit.
Strictly speaking the build.prop bit isn't required - it's for root access via adb (which is handy though). Don't know why on earth the su binary wasn't suid though!
Do we have any suitable hosting if I knock up an edited build (with features edited in and android market)? Otherwise I can upload it to one of the file sharing sites.

User avatar
hawsey
Posts: 1881
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Help with Android 4.04 build please

Post by hawsey » Sun Dec 29, 2013 2:47 pm

Great news , good work people :-)
I would love a bootable image with all the alterations done please.
Thanks again
Happy Joggling

User avatar
dwl99
Posts: 760
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Help with Android 4.04 build please

Post by dwl99 » Sun Dec 29, 2013 6:54 pm

Buzz has been very helpful with hosting files for previous builds

cliche
Posts: 11
Joined: Fri Nov 25, 2011 11:43 am

Re: Help with Android 4.04 build please

Post by cliche » Sun Dec 29, 2013 7:27 pm

I'll upload it soon - just doing last few tweaks. I've included Google apps. It's about 100mb compressed.

cliche
Posts: 11
Joined: Fri Nov 25, 2011 11:43 am

Re: Help with Android 4.04 build please

Post by cliche » Sun Dec 29, 2013 10:26 pm

http://www.mediafire.com/download/qcgve ... l2.img.tgz

My edited image - includes sound and root fixes, and Google apps (including the setup wizard which will load on first boot). Data is mounted with noatime to help with speed a bit.
104Mb download, expands to 2Gb for copying to a stick.

Bug - if the Joggler goes to sleep, it turns off the touchscreen so there's no way to wake it back up. Workaround is to tick 'Stay Awake' in Developer Options in Settings. You can set the display timeout to whatever you like; which will cause it to dim the screen slightly after that period.

User avatar
dwl99
Posts: 760
Joined: Fri Mar 04, 2011 7:38 am
Location: Glasgow

Re: Help with Android 4.04 build please

Post by dwl99 » Sun Dec 29, 2013 10:38 pm

What a star! Downloading now.

kappa__2
Posts: 23
Joined: Fri Feb 03, 2012 10:22 pm

Re: Help with Android 4.04 build please

Post by kappa__2 » Sun Dec 29, 2013 11:51 pm

Downloaded and tried, Nicely done. Thanks! :-)

But still no graphics acceleration... I was hopping that those GMA500 patches would solve that..
I'm getting very frustrated with this Poulsbo graphics chip...

Any chance to get this solved?

Post Reply