yashsingh1/xdaforums huggingface dataset:
[Raspberry Pi General] trevd:
Hi Folks

I've been working on porting Android 4.4.4 ( CM11 ) to the RaspberryPI .

Using the androidarmv6 project as I base I've created a device tree and made the modification required to get the thing built and booting into a console on the PI the thing that is currently missing is the Graphics Stack implementation which includes the Gralloc, HWComposer and OpenGLES libraries.

If you have an experience/knowledge of how the Android Graphics Stack works especially wrt Surfaceflinger internals how to Implement OpenGLES at the platform level or any of that fun stuff and also have a RaspberryPI to hand then feel free to start hacking on this.

To get started follow the README @ https://github.com/trevd/android_vendor_broadcom_rpi .

Just to be clear. This is not so much a call for help as it is an invitation to anyone who fancies the challenge as I'm pro-actively working on the Graphics stuff myself. I'm coming at this one cold however as upto until 6 weeks ago I had never done any Graphics driver development. I figured this a great opportunity to learn.

DEVELOPERS

If like me you have no experience with Graphics but want to have a go anyway then again feel free. I'll happily answer questions wrt to specifics of the development. I'll caution however that this involves a fair bit of research and the learning curve is fairly steep (IMHO). If you have no experience porting android to devices and thing like debugging device bring-up over adb then this is definitely not the place to start.

OTHER INTERESTED PARTIES

This is going to sound harsh to some folks but here goes. I'd really like to manage expectations by saying expect nothing! I will also report and have removed any non development related posts, Even nice ones! If you feel compelled to offer some encouragement just click the thanks button. It really should also go without saying but for the love of <insert favourite deity> Don't ask for an ETA.

CREDITS

My work is definitely standing on the shoulders of giants here and this wouldn't even be a thing without the fine work of the androidarmv6 project and their efforts to keep Android alive on older hardware. Also the Razdroid folks who prior work in this area has been extremely useful.

Obviously CM, Google et al and lets not forget those 1000's of linux kernel developers too.
[Raspberry Pi General] khrystyan27:
I hope this project will come alive, cause I want any form of working Android on my Raspberry, but couldn't get an answer... :(

Android on that little machine would be great! :D
[Raspberry Pi General] vanessaem:
Hello everyone,

Thread cleaned.

As you all may or may not know, things had gotten off-topic on this thread. Usually it takes quite a bit of time for that to happen but somehow it began almost out of the gate. :eek:

Tempers were getting hot about whether Android is Linux or not. I'm not sure why this debate was going on but it doesn't belong here. Please stick to the topic as it pertains to this thread.

Also, please show one another a little respect. Just because you may have a difference of opinion, there's no need to start insulting one another by name-calling.

Regards
[Raspberry Pi General] khrystyan27:
What's new?
[Raspberry Pi General] Nootubo:
I have read that on this site http://www.mesa3d.org/relnotes/10.3.html new gpu drives for the raspberry pi are

V 10.3 is the First one

But i am not sure
[Raspberry Pi General] trevd:
Little Bit of an update

Hi Folks OP! here.

Bit of an update. https://www.youtube.com/watch?v=GO10mkZWeA8 ....

This basically shows the PI booting to the Launcher then the whole thing goes a bit mental and fails somewhere around a dequeuing buffer attempt.

A Couple of Technical Details

This is booting without the HWComposer library ( apparently that's a thing ) big thanks [MENTION=3877378]psyke83[/MENTION] on the armv6 who pointed me in the right direction.

The Gralloc in it's current state is pretty standard and I'm trying to get my head wrapped around how the RaspberryPI dispmanx tie's in without allocating and lock graphics buffers. There seems to be at least 3 ways of accessing the Graphics Memory via various kernel drivers.

I added blanking support to the raspberrypi kernel framebuffer driver , which was absent. I did this upstream as I'm too lazy to maintain a separate patch set :) This seems to have prompted ( who I think ) is the RPi kernel maintainer to extended the Videocore closed source graphics firmware to enabled HDMI power down and also add the FB_WAITFORVYNC which is something Android makes use of in many HWComposer implementations.

As we are using a close to mainline kernel which means we're not constrained to compatibility hacks wrt to the surfaceflinger service layer. at the moment that is about has much as I know. Currently the AOSP Display Stack is a moving target and there's discussions going on with regard to Dma-buf fences vs Android sync driver. https://www.youtube.com/watch?v=rhNRItGn4-M&list=UUIxsmRWj3-795FMlrsikd3A .

As you may gather there's alot of information to soak up ....

Meanwhile over at the RPI Foundation. Fromer Intel GPU driver development Eric Anholt has been working on making a kernel driver for the videocore. http://www.phoronix.com/scan.php?page=news_item&px=MTc3NjQ . I initially thought we could maybe use the A KMS Hwcomposer, Mesa GLES implementation and a DRM ( Display Render Manager ) based gralloc. All these are things today and would just have to be extended to support the vc4 implementation. Eric was working with Mesa as part of his implementation which would leave the gralloc which is available in the android-x86 and libdrm .... libdrm looked like a tricky proposition for someone with my skills and Eric said he had no ( concrete ) plans to do libdrm . However looking at his current codebase I noticed that the videocore driver now supports dma_buf. Arm have made their Mali Gralloc opensource this also supports the use dma_buf and the nature of the beast is to provide a Generic way of accessing the Graphics buffer access many GPU's ( I think ) .

The Current Plan

=============

Merge the vc4 GPU kernel changes into my kernel branch

Port the Mali Gralloc to handle any difference between mali and vc4 ioctl etc

?????

?????

?????

?????

?????

Potentially Profit!

Thanks

trevd
[Raspberry Pi General] psyke83:
trevd,

As a temporary measure, you could try to disable the opengl renderer by setting USE_OPENGL_RENDERER := false. That may allow you to boot into the home app and do some further debugging. With hwui and hwcomposer both disabled, the UI will be very slow, but it has a better chance of working if your problem is specifically due to an incompatibility with the EGL drivers.

Have you tried running with the full brcm_usrlib driver? As far as I can see, there have been successful cases in which the driver was demonstrated to run on RPi (though not specifically on Android). See here: http://www.raspberrypi.org/quake-iii-bounty-we-have-a-winner/

You mentioned an error with dequeueing buffers; you may have the same issue that I had with the original brcm_usrlib source that was solved by this commit.

BTW, I'd appreciate if you could post a logcat captured during boot (failing or otherwise). I'm curious... ;)
[Raspberry Pi General] Verses:
Android Wear on Raspberry Pi?

Hi there!

Nice project. Is there any existing solution to run Android Wear on Raspberry Pi? A prototypical port would be sufficient for my case.

Many thanks in advance!
[Raspberry Pi General] trevd:
[MENTION=3877378]psyke83[/MENTION] Thanks for the tip .wrt USE_OPENGL_RENDERER . It's a good idea but not where I'm at in the process . I know what I need to do it's just a case of doing it lol , i've been lazy the last few weeks and sometimes time is a great leveller in these things . There's smarter people than me doing work in the same area which is presenting some interesting options as I noted .

I did see your dequeue and wait patch and have I think it's something I need to do ... Am I correct in thinking that this is the same as what later Android Graphics Stack implementations are doing in the way sync fencing?

Tbh It was the original broadcom source release that got me going on this and I was quite excited to see the PI "Port" ... After some investigation I thought using that approach was way beyond my level of understanding , Put simply I didn't have the skills or knowledge or the patience to even attempt implementing it ..... That was 6ish months ago ( I think ) so revisiting it is also an options ... again time is the leveller and smarter people ( you and the armv6 team in this case :) ) have done alot of the hard work ;) and my knowledge is dramatically increased in the area of porting missing Broadcom functionality into the RPI Kernel

The PI's kernel is also virtually mainline which presents more options still as the current state of the art on the Android Graphics Stack is to use the Atomic Display Framework and the AOSP has libraries to work with that [ https://android.googlesource.com/platform/system/core/+/master/adf ] . As a test/hack I compiled/backported the AOSP master surfaceflinger hwui to the androidarmv6 code base so that is ultimately where I'd like to go with this madness ..

I think It's going to be a mix of everything , the full broadcom EGL/GLES library with a dma_buf based gralloc and hwcomposer to suit .

I'd say I've got an embarrassment of riches atm .

Ahh the curious mind of the developer , lol . You know where curiosity gets you? Reading logcats of devices you don't have access to for entertainment on a saturday night :p but yeah I'll drop a logcat etc when I next power the thing up ... :good:

[MENTION=6063146]Verses[/MENTION] There's no Android Anything on the PI and without wanting too sound harsh. If you want it , you have to build it.

If you want to do something with Android Wear today than the PI isn't the device you need. There's better, more powerful SBC's available for not much additional cost. Also there's really no sane reason the latest versions of Android should run on the PI the CPU is legacy by 2 generations the available source code made no provision for Android what so ever and the RPI Foundation decided that Android was not an OS that fulfilled their primary mission of improving (real) computer literacy in the British yoof! But I really like Android and had a spare PI and making the latest version of Android work on "weird" machines is sort of how I get my kicks, hence this!
[Raspberry Pi General] KoolKid98189:
We can't give up now :(
[Raspberry Pi General] trevd:
[MENTION=3877378]psyke83[/MENTION] For your viewing pleasure lol ;) ... This is before I've switch the Gralloc over to Arm's DMA Buf based one .

At least the kernel booted with the DMA additions . ... Anywho To Work!! I might get this done before christmas. :good:
[Raspberry Pi General] GeekyDroid:
[MENTION=4179234]trevd[/MENTION], I'd like to know something. I already build some ROMs for different devices and the output was always a custom recovery flashable zip, some images, ramdisk, kernel etc.

My answer is: How you "flash" this on RPi?

Thanks.
[Raspberry Pi General] ph87:
You can take the files like Kernel and system and so on direct on the SD-card! The whole OS is on the SD by default... You don't have to flash anything! Only put the SD into your PC, copy the files on it and put the SD into to Raspberry... That's the magic... [emoji6]
[Raspberry Pi General] GeekyDroid:
Well, thanks for the answer. But I was actually asking for the structure how you put it on the SD card. I guess you can't just put system folder and boot.img on the SD card. An Android device has much other folders which are in root directory. Like /proc, /dev, /config and so on. It would be interesting to know this :)
[Raspberry Pi General] GeekyDroid:
Thanks you so much for explaining it to me! It really makes sense now for me! Thanks for doing this project I really appreaciate it, that someone works on it! :victory:

I'm not a developer neither a pro, I just now some source building, however I'd like to help you. But as I said I can't, because of the lack of the knowledge. Anyways keep going and all the best! :good: :)
[Raspberry Pi General] Chrisw_2003:
With the new quad core raspberry pi that just came out, would this port work with it?
[Raspberry Pi General] trevd:
With the work that eric anholt has done on the videocore mesa kms driver ... someone just needs to write a simple pass through gralloc ( in theory ) This port doesn't need to work on it as you'll be able to compile the AOSP master branch without too much trouble.
[Raspberry Pi General] black_blob:
[MENTION=4179234]trevd[/MENTION] I think that you should not use Mesa, but trying every AndroidARMv6 fix instead. (until the DRM driver is merged in the raspberrypi/linux tree as Anholt's tree DOES NOT support the Pi2B)

That dequeue patch is a good thing to try.(it fixed that particular error on another device)

Currently your tree DOES NOT build, it stalls at repo sync:

21 689k 21 151k 0 0 12202 0 0:00:57 0:00:12 0:00:45 21103Fetching project CyanogenMod/android_bootable_recovery-cm
23 689k 23 164k 0 0 12273 0 0:00:57 0:00:13 0:00:44 23933error: Cannot fetch trevd/android_external_busybox
Fetching project CyanogenMod/android_external_grub
100 689k 100 689k 0 0 12014 0 0:00:58 0:00:58 --:--:-- 17929
Fetching projects: 67% (313/467)
[Raspberry Pi General] nikodr:
Is anyone still working on this for the gfx port?
[Raspberry Pi General] Quaesar:
I have a Raspberry Pi 1 model B, is there any hope for a full fledged Android?

Also, I'd love to help beta test if you do come up with something!
[Raspberry Pi General] Nypan sr:
No updates in 7 months, so its probably not going to happen...
[Raspberry Pi General] marcosx86:
Some evolution... changed kernel 4.9 to 3.19, and used default rpi_defconfig.

[YOUTUBE]QF7tH6b-cXU[/YOUTUBE]

Now going to push Android's kernel options and see whats happens :D
[Raspberry Pi General] NetoSenpai:
If it does it might also run on raspi zero/ zero w, keep up the good work :D
[ONE Q&A, Help & Troubleshooting] donalgodon:
Can 11s receive OTA updates with a custom recovery?
[ONE Q&A, Help & Troubleshooting] truckroot:
Yes. Just make sure Update CM Recovery is unchecked in developer settings. I use twrp.

Sent from my Nexus 7
[G3 Accessories] vicegrips:
I like the G3, but the back panel is just way too slick for my hands. It seems like the official Slim Guard case might be the best option, but can't find it for sale in the USA. I use a pouch with my credit cards/cash so a bulky case isn't going to work.

Are there back replacement panels for sale that aren't as slick of a texture? Is the white model just as slippery as the black? I thought I recall from a review the white had a different feel to the back.

Coming from the Moto X and Note 3 I feel like it is only a matter of time until this phone slips out of my hands....whatever options exist I'm willing to consider.
[Galaxy S III Q&A, Help & Troubleshooting] saulehs:
Hi.

I am using ultima rom v17: diablos.

When flashing this rom through aroma, i have the option to select aosp contacts and dialer or sammy contacts and dialer ... No matter what choice i make, i am ending up with aosp contacts and dialer. Tried the custom mode and chose sammy contacts and dialer. Still no luck. Am i doing anything wrong or missing any details?

Thanks.
[Galaxy S III Q&A, Help & Troubleshooting] xqztpt:
Same here. Have you found any other problems? My phone crashed two times since the clean installation (3 hours ago) and most of the time is very hot.
[Galaxy S III Q&A, Help & Troubleshooting] xqztpt:
I gave up. Testing qs-i9300-kk-v2.3 and have great performance and battery.
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
Hey guys i dont want to root my galaxy s4 mini and i want the accu weather with no root (original and works good)

can someone help me? :confused:
[Galaxy S 5 Q&A, Help & Troubleshooting] SAMPPLE:
Try this cool app for weather :) is very OK and beautiful :)

https://play.google.com/store/apps/details?id=com.levelup.brightweather

So you can read this thread maybe will help you :)

http://xdaforums.com/galaxy-s2/themes-apps/update-14-4-13-s4accuweather-widget-t2197800
[Galaxy S 5 Q&A, Help & Troubleshooting] DistrictDigital:
S4 Mini is here. http://xdaforums.com/galaxy-s4-mini
[Galaxy Note 3 Q&A, Help & Troubleshooting] guitarguy280:
I recently dropped my Note 3 (well, actually my wife accidentally knocked it out of my hand) and the screen (and perhaps the digitizer too) broke. When trying to boot it, the phone vibrates once like it is starting up, but then keeps vibrating every 10 seconds or so. I assume it's in some kind of a boot loop; will the phone not fully boot if it detects that the screen is broken? Any ideas on what I can do to boot it so I can wipe it remotely? :eek:
[Galaxy Note 3 Q&A, Help & Troubleshooting] LAURA112:
Help!

Hi, i was wondering if you was able to solve the problem. if so please help me any advice would be helpful my situation is exactly the same with my note 3 and i need my data i really dont car about the phone anymore just need the data:crying::crying::crying::crying:
[Galaxy Note 3 Q&A, Help & Troubleshooting] ddogishere:
Hi Laura I can understand and feel your frustration but unfortunately your only option now it's to JTAG the phone to retrieve your data. Only a good phone shop can do it & it can be expensive.
[G2 Q&A, Help & Troubleshooting] crashN2u:
I took care of it. Thanks. Please delete.
[G2 Q&A, Help & Troubleshooting] XxZombiePikachu:
yes there is, since you have custom recovery just install one of the kk roms for vs980
[General Questions and Answers] hearthacker:
Hi,

I just bought the Zenfone 5 from Asus (bought in India). The model number is ASUS_T00J.

I need help/directions on rooting. The only reason I am rooting my phone is to be able to run the Xposed modules..So if theres a way to do that without rooting, that would be perfect.

Thanks!

~Nick
[General Questions and Answers] sgsI9003:
This video shows how to root zenfone

https://www.youtube.com/watch?v=KCU0jXZvEtU

there is link to download the apk below the video.
[General Questions and Answers] megaancient:
Did the root work?
[General Questions and Answers] mprithwish:
Yes, this root method works. But make sure you have disabled your wifi/data connections before rooting.
[General Questions and Answers] KunalKene1797:
What can go wrong?
[General Questions and Answers] sgsI9003:
The root might fail & the phone will loop in demo mode over n over again.
[General Questions and Answers] KunalKene1797:
hehe okhe thx for the Headsup!:good::highfive:
[8525, TyTN, MDA Vario II, JasJam General] penyekz:
Where is the best place to install tomtom 6? In main memory or SD card and will it be really that much slower if I were to install it onto the SD card?
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
hey guys i need the original icon of the galaxy s5 phone call (green) show me what you got then i will ask for better quality thanks! :o
[Galaxy S 5 Q&A, Help & Troubleshooting] fffft:
You could have downloaded the S5 firmware or a ROM to find this

.
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
I Dont know how to do it but my good friend maybe you can give me the internet massage and alse too? :good:
[Galaxy S 5 Q&A, Help & Troubleshooting] fffft:
Well no one knows how to do it the first time. But a forum search often has finds the answer. Or simply attempt doing it.. something like this isn't much more than opening a compressed file within a compressed file. It's the best way to learn.

Of course you can just request the icon too. But then you have to wait until someone has time to help. And you don't learn anything along the way.

Cheers

.
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
Thats the only thing i am missing, you gave me a good file which has the best quality for the icon, and the only i found was not the original, i only ask you to help me i will own you, i need just the camera, internet, massages. and thats it.

if you can help me i would be very happy. :crying:
[Galaxy S 5 Q&A, Help & Troubleshooting] fffft:
If 1% of the people who owe me followed through, I'd be very happy myself.

.
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
Hey man thanks again, btw you gave me a worng internet icon may i have the s5 one? its the s4 :good:
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
man please :crying:
[Galaxy S 5 Q&A, Help & Troubleshooting] fffft:
You want this one then -

.
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
1

yes this one but i need it in zip file please And it should be 192-192 like the other ones you gave me and thats it thanks a lot!!!!
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
Man please this is the last thing im waithing :crying:
[Galaxy S 5 Q&A, Help & Troubleshooting] fffft:
Okay, enough is enough. Stop deluging me with PMs. Or the redundant requests in multiple threads, I won't be reading them.

I've spent an inordinate amount of time trying to help you with something that you are unwilling to search for yourself. Or even download after I gave you a link to the original files.

If you are only happy with a certain size of icon, why didn't you say so at the start? You are wrong about the earlier icon being from a S4 and I am not going to further indulge you because you find it onerous to drag and drop an icon into a zip file. Seriously? You're unhappy because the icon you asked for is not compressed?

.
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
Thanks for responding, im looking for the ORIGINAL galaxy s5 icons, i worked hard to find some icons but you

have the original ones, i want to thank you for helping me my first and i will search for the calculator 192x192x by my self. thanks a lot. i wish you good luck and i cant thank you enough.
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
You have to help me to get the calculator its the last thing
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
plaese i need the calculator
[Galaxy S 5 Q&A, Help & Troubleshooting] D33KK:
Lmao I think you're on your own here buddy
[Galaxy S 5 Q&A, Help & Troubleshooting] Bezalel321:
man i didnt find the icon with 192x192 please give me the Calculator :crying:
[Galaxy S 5 Q&A, Help & Troubleshooting] juDGEY2k10:
look for wizlconizer im not 100% but it installs default icons, im not sure but have a go.

u will see 3 dots top right should say restore default icons
[Verizon Samsung Galaxy S III] MADjohny24:
How we can open sim unlock verizon galaxy s3
[Verizon Samsung Galaxy S III] buhohitr:
You could find the info here http://www.wikihow.com/Unlock-Samsung-Galaxy-Siii-(S3)

But honestly, the solution 3 is the stable one and here is the service site mobiletechvideos.com
[Samsung Galaxy Grand Quattro] thrasher1013:
** Solved **

I found the very large backup file in the clockworkmod/backup folder and deleted it. All my prior free space has returned.

I will leave this post up if it may help someone else and I deserve the shame. :)

____________________________________________________________________________

Hi,

First post and admitted noob. I already bricked my device once before but got it repaired by Samsung. But, I just can't stop messing around and apparently messing things up.

1. I previously had installed CWM 6.0.3.6 and rooted my device.

2. Today I flashed CWM 6.0.4.5. So far so good.

3. Using ROM Manager I made a backup of my ROM. This restarted the device into CWM and apparently made a backup.

4. I choose to reboot from within CWM and the device restarted into CWM

5. Repeat step 4

6. I chose to restore ROM from within CWM and it apparently restored it.

7. Reboot from within CWM and the device restarted into CWM.

8. I followed these instructions found in this link: http://xdaforums.com/grand-quattro/help/cwm-reboot-loop-french-gt-i8552-t2805964

9. Restarted device and it booted normally (hooray!)

10. I am now using double the data on my internal storage.

Before I started this journey I was using 2.4g of internal memory now I am using 4.5. I have 500mb left.

Is there any way to solve this problem?

Thank you.