yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] MrObvious:
Any developers around? I'm thinking of adding to frameworks\av\media\libstagefreight\CameraSource.cpp a couple lines for the two above:

if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_YUV420SP_NV21)) {

static const int OMX_SEC_COLOR_FormatNV21Linear = 0x7F000011;

return OMX_SEC_COLOR_FormatNV21Linear;

}

I would also need to modify CameraParameters.h and CameraParameters.cpp like https://github.com/TeamRegular/android_frameworks_av/commit/d5de1e7b636ba5673a2b20be8685287ff60fb487 had done.
[Miscellaneous Android Development] RyanTheMVP:
Data & MMS don't work

Hi, I just flashed the 12-26 build on my metro PCS phone and data & mms won't work. I checked that my phone is using the correct APN's and it is. Everything else looks beautiful it's just I need data to travel and mms so I can send & receive pics. Anyone else having this trouble, is there a fix?

If not, I'll just flash back to stock.
[Miscellaneous Android Development] MrObvious:
Hmm. What app are you using for SMS? I don't think it is the ROM but some setting somewhere. Some apps have their own apn settings.
[Miscellaneous Android Development] RyanTheMVP:
Well I was using the default messenger that came with CM12.1 and the only thing I think might be screwing with the data settings is that it says my phone is a T-Mobile phone, but that shouldn't be the issue
[Miscellaneous Android Development] fix-this!:
I just wish I could root my sons lg stylo from virgin mobile.
[Miscellaneous Android Development] MrObvious:
It looks like there are settings within the app itself. Maybe try a different SMS app?
[Miscellaneous Android Development] IHBoss:
Does this work with the international h540?
[Miscellaneous Android Development] MrObvious:
I don't know. If it is the same as the 631 then maybe.
[Miscellaneous Android Development] MrObvious:
http://androidforums.com/attachments/cm-12-1-20160713-unofficial-h631-zip.107202/

I got the video recording fixed guys.
[Miscellaneous Android Development] Izzxyy:
I'm having a problem when the rom boots up. 5 seconds later it would reboot again. And it would do that repeatly.
[Miscellaneous Android Development] Masterchief87:
#blamexposed #xposedproblems
[Miscellaneous Android Development] MrObvious:
All,

Please move any discussion here: http://xdaforums.com/lg-g-stylo/development/rom-cyanogenmod-12-1-lg-g-stylo-t3418561 since Brady isn't maintaining this and I am.
[Miscellaneous Android Development] fonshogm:
I cant download it please help!!

Enviado desde mi LGMS631 mediante Tapatalk
[Miscellaneous Android Development] BlueFlame4:
What did you do in order to get it working again? You had to patch the framework I guess?
[Miscellaneous Android Development] MrObvious:
So the two files that were problematic: https://github.com/MrObvious/android_frameworks_av/commit/c546e6d1ab024142c1e0c11b1b2c2252e3b9328e The format was packedsemiplanar, but needed to be semiplanar.

I also did https://github.com/MrObvious/androi...mmit/e364724fafe171ca24447ecf464e9bae1291e935

Not sure which commit fixed it.
[Miscellaneous Android Development] Stonkers:
Has anyone tried lineage for the metropcs stylo? My friend wants me to flash it for him.
[Miscellaneous Android Development] Blu8:
Hey just dropping in wanted to say that I appreciate any and all work you decide to put into this device. I just made a small zip to place things where they went based on what was said in here. As for the led thing, its a short init.d script I made following what UD said in Android Forums. I don't want to take any credit, since I really didn't do much more than write out a short updater-script. Also my bad for not linking to it here, I only linked to it in the Android Forums thread because that's where most of the activity was going on at the moment.

https://www.androidfilehost.com/?fid=24269982087013337
[Miscellaneous Android Development] bradym512:
Mucho gracias senor. It's nice to have that LED off. I'll official this download and add it to OP.
[Miscellaneous Android Development] Blu8:
No problem, do with it as you see fit [emoji106]
[Miscellaneous Android Development] bradym512:
Alright. So, can anyone please oint me in the right direction integrating the camera, led, and gps fixes into source? Thanks!
[Miscellaneous Android Development] sirhc:
Well with the new layout. Apks are sorted in folders. The GPS fix was nothing but a missing apk. It should be placed here:

/system/priv-app/com.qualcomm.location/com.qualcomm.location.apk

Camera

The camera was missing a hardware lib in your build just add it in

/system/lib/hw/camera.msm8916.so

Even though camera would work afterwards, video recording will still be broken. The original maintainer TeamRegular/Noobified linked the fix. There was a missing commit here https://github.com/TeamRegular/android_frameworks_av/commit/d5de1e7b636ba5673a2b20be8685287ff60fb487 that should fix video recording.

LED

Here's a commit for LED https://github.com/TeamRegular/andr...mmit/fb7df1e776ac31c9e77b2eae746324b97a76c147 not sure if you saw this already, but it looks like a fix to get it working correctly
[Miscellaneous Android Development] bradym512:
Alright. So when I get my build env back, I'll build with latest updates and compile all these fixes into a flashable zip, including the Google Camera apk. Then I'll add it to the OP to flash it after the system but before first boot. StyloApps. Since APKs can't be integrated into the source and nothing really can be with ease this seems like the best option.
[Miscellaneous Android Development] sirhc:
Yeap you're right, sounds good to me. Since lollipop builds use the system.new.dat compression method, there's no way to manually add the apk. There are tools to decompress it but compressing it back causes issues. If you want to manually add apks to your flashable zip after compile, during compile there's an option to not use the new system.new.dat compression method. It's selected by default but you can revert to the old method with the boot.img and system folder that holds all files and easier to add or replace.
[Miscellaneous Android Development] bradym512:
In that case, could build something like 20151215a and 20151215b. Where a required additional fixes but is compressed. flashed afterwards and b is not compressed and has the fixes integrated. If I'm going crazy, 20151215c could even have gapps integrated.
[Miscellaneous Android Development] bradym512:
Speaking of which, I can't get xposed to work on CM. Any, uh, help?
[Miscellaneous Android Development] Blu8:
I don't think having gapps integrated into an aosp rom is a great idea, just my two cents.
[Miscellaneous Android Development] bradym512:
Yeah I agree. That's why I'd give the users a choice.
[Miscellaneous Android Development] sirhc:
Makes perfect since although I do agree with Blu8 about not having Gapps integrated.

---------- Post added at 05:05 AM ---------- Previous post was at 05:03 AM ----------

With lollipop, you have to flash xposed framework via TWRP. The installer doesn't auto install anymore
[Miscellaneous Android Development] bradym512:
Um, yeah. I tried flashing it and wiping cache and dalvik. No change.
[Miscellaneous Android Development] sirhc:
Install the xposed installer. Make sure you're flashing the correct framework package. Should he Sdk22 Arm. Not 32 or 64, just Arm
[Miscellaneous Android Development] bradym512:
Tried. Still getting http://s7.postimg.org/8z1b84xd7/Screenshot_2015_12_13_06_40_29.png
[Miscellaneous Android Development] AP2FTW:
you're flashing this in recovery xposed-v78-sdk22-arm.zip

and then installing this apk XposedInstaller_3.0_alpha4.apk

?

i havent tried it on this latest build of cm, but it worked fine on the last build that teamregular posted...
[Miscellaneous Android Development] bradym512:
It was the 2.7experimental apk
[Miscellaneous Android Development] AP2FTW:
thats probably the issue...use this one http://xdaforums.com/attachment.php?attachmentid=3383776&d=1435601440
[Miscellaneous Android Development] bradym512:
Ah. Yes. Thank you.
[Miscellaneous Android Development] A Christian Guy:
This is what happen every time I flash my screen goes black can't do nothing
[Miscellaneous Android Development] bradym512:
Are you using the 11/26 build?
[Miscellaneous Android Development] A Christian Guy:
I was using the first build same the beginning but don't know what up now yes I did the 11/26 and the first build Noobified..
[Miscellaneous Android Development] sirhc:
You probably have the newer Stylo. If so, you have to use the 11/26 build since it adds screen support for your phone.
[Miscellaneous Android Development] A Christian Guy:
Naa this is the old STYLO im should of that I flash (Noobified) before
[Miscellaneous Android Development] Masterchief87:
[MENTION=7057857]bradym512[/MENTION]

I'm trying to compile Broken OS for the stylo using the source that you used to compile cm12.1 but I haven't had any luck yet. I'm just wondering if you had to make any changes to the kernel or device tree in order to get cm12.1 to build. Like you, I'm also new to compiling ROMs.
[Miscellaneous Android Development] T-Macgnolia:
I have not checked on this thread in a couple of days as I have been busy working on developing another kernel source for the Stylo based off of cm's msm8916 kernel which I will be trying to build now that I am at a point I can try to build with it. So I am going to respond to posts in the order they were made in the thread.

Ok I want to clear this up right now, you did not find anything, as my post in post #9 of this thread shows I am the one that very easily figured out why the camera and GPS was not working. And as you even said in your post I quoted, Blu8 is the one that put the flashable zip together to flash the needed files for the fix. So you my friend had absolutely zero to do with the fix. So I , and I am sure other members, would really appreciate you not trying to take credit for something you did not do. Especially seeing as you did not even show the courtesy of hitting the thanks button on post #9 where I posted the fix.

To add the files for the fix all you have to do is put them in you vendor/lge folder in your build folder. To be more precise do this.

Place the camera.msm8916.so in vendor/lge/g4stylus-common/proprietary/lib/hw
Place com.qualcomm.location.apk in vendor/lge/g4stylus-common/pri-app/com.qualcomm.location
Then make sure you have the following two lines in your vendor/lge/g4stylus-common/ g4stylus-common-vendor-blobs.mk
vendor/lge/g4stylus-common/proprietary/lib/hw/camera.msm8916.so:system/lib/hw/camera.msm8916.so \
vendor/lge/g4stylus-common/proprietary/priv-app/com.qualcomm.location/com.qualcomm.location.apk:system/priv-app/com.qualcomm.location/com.qualcomm.location.apk \

Make sure that the \ at the end is there unless one of the lines is the last lines in the file. But the best way to do it is to just rm -rf vendor/lge and then flash your build and the zip for the fix and then manually pull your blob files from your device as it will make new vendor folders for you that are correct. To do that cd to device/lge/h631 and the use the ./extract-files.sh.

As far as including other prebuilt apps in your build that is relatively easy. I would make a directory called vendor/cm/prebuilt/common/app. Place the apk file you want to add in that folder. Then go to vendor_cm/config/common.mk and add a line like the following.

#Added prebuilt app
PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/app/"name_of_apk":system/app/"name_of_folder_for_apk"/"name_of_apk"

Also just so you know it is illegal for you to include gapps in a source built ROM. This is because they are not opensource apps and belong to Google who has not and will not give permission for aftermarket Android builders to use in their ROMs. This is why we have to flash them separately in a flash able gapps package.

Last wish me luck as I am going to be working on building 6.0.1 for the Stylo, but I am not trying to build CM I am working on XenonHD. But if I can get 6.0.1 XenonHD built it should be easy to transfer it over to CM and build CM 13.0.
[Miscellaneous Android Development] sirhc:
I definitely already knew the fix for GPS. I explained on Android Forums that I was implementing it into a ROM I was building myself for the Stylo. Just because you happened to come along and notice a missing Apk doesn't mean you "Discovered" any sort of fix. You merely pointed out something that was overlooked by other members. No one is taking credit for anything. I clearly stated the GPS fix was brought up by me and another community member, which I was referring to you but couldn't remember your name. Let's not start being a thanks whore. Camera has always been working, it was not working in bradys build due to yet another missing Lib. Just stop dude. I'm not in the mood for this crap

And the fact that you're trying to quote what I said about Blu8 making a script just shows you're pulling crap out of your ass. I clearly stated he created (Which he did) a script to disable LED on boot. If I was stealing credit don't you think I would've easily took his? It's obvious I didn't because I don't. I'm not giving you full credit to something I already knew. And then trying to reexplain to Brady how to add the changes in his build after I already explained it to him is being petty and just shows you just want to be noticed. Last I checked you've been working on XenonHD since the beginning of November. When you finally finish, then you'll get some "Thanks" from me.
[Miscellaneous Android Development] sirhc:
Look again, I have a different name on Android Forum's (Gbob2k15). I didn't go in on details with Brady because even though he was new, I'm pretty sure he's not a complete retard and I wasn't going to talk to him like one either. If he was truly confused after my explanation, he would've said so or he probably preferred to learn on his own.

I didn't post the fix because, I figured it was already known by other community members. I had just arrived at the Stylo community around that time, plus people who were using CM were using the GPS Locker app as an alternative until the fix was applied in a new build. Like I said before, the camera was never completely broken. It was and still is available in TeamRegular/Noobifieds build, it was just missing a lib in Brady's build. I've been running CM from the start, occasionally going back to stock to attempt to use the Device Unlock App which never works.

I already know how hard it is adding support for a device that isn't officially supported. If you want to report me, then so be it. It's a forum dude, not my livelihood. It's not gonna hurt my feelings one bit. There's no reason to carry on with this as it's off topic from this thread
[Miscellaneous Android Development] thereal_antiHackmasta:
I've noticed that the noobified build seems to only have 3 steps on the cpu 800, 986, and 1200 I may be off on the numbers a bit but it won't go lower than 800 and none of the settings that I change for the gov stick. What's up with that?
[Miscellaneous Android Development] bradym512:
Alright. I apologize for my lack of work on this device recently. I have been very busy with school and swim team, weekdays and weekends. I am now on Winter Break so I hope to get something done. I'll be frequenting this thread for help. Certain... Uh... Restrictions in my household prevent uninterrupted internet access and Linux access due to a lack of Ethernet on my basement. Most of my work (integration to source, etc) can be done on Windows, so I might just end up using AWS to build. It's cheap and a fast build. Now, I don't agree with T-Mac's conduct on this thread, but he's now wrong. He's probably like Unjustified Dev; not bunches of fun to talk to, but I have the utmost respect for the work he's done on the Stylo with XenonHD. Thank you and I look forward to using XHD.
[Miscellaneous Android Development] thereal_antiHackmasta:
Take you time with the build. Build when you can and most of all have fun. We appreciate the work.
[Miscellaneous Android Development] ardaz87:
Next build should include the official c-apps package. The per app theming alone warrants it, its great.

Now about this XHD build, is it up? Thanks for the hard work from everyone
[Miscellaneous Android Development] Blu8:
You could always flash whatever you want on top of the rom, and give the man time on XHD, he only said he was working on it he never said it was done.
[Miscellaneous Android Development] Masterchief87:
Plus the c-apps package includes the cyanogen dialer with true caller which is a huge invasion of privacy. It uploads the names, contact pictures, and phone numbers of all your contacts without their consent. When you agree to the terms of use you are agreeing that everyone in your contacts is OK with their info being uploaded publicly which is highly unrealistic to say the least. Its ridiculous to assume that everyone you know would be OK with it but that is exactly what their terms of use do.
[Miscellaneous Android Development] ardaz87:
I've used truecaller for over a year. The contacts are already there. I didn't realize that part. But.....the theme app engine is great and worth looking at.... We can pull the theme app from the zip? I'm going to see if I can do it and go from there.
[Miscellaneous Android Development] bradym512:
This is what I figured. Thanks. Edited post because I was asking if I could be lazy. I'll do integration tonight or tomorrow morning.
[Miscellaneous Android Development] ardaz87:
Can this thread be linked to the stylo discussion page
[Miscellaneous Android Development] bradym512:
I tried. I added the lg-g-stylo tag in an attempt to link it to my no avail.
[Miscellaneous Android Development] ardaz87:
OK, I m going to post a thread with a link to this thread in the discussion page. Juat want this to get allot of exposure.
[Miscellaneous Android Development] ardaz87:
I think its be good to get an as close to official cm since its being built. Using the most up to date cm apps would be a good thing for the community. Also I know the truecaller some might have an issue but you have to sign into it if you don't it doesn't upload anything while still giving the user the ability to use the dialer. Again there's a bunch of great stock apps and the real gem is the theme app. I highly recommend if anyone runs cm to flash the capps.
[Miscellaneous Android Development] bradym512:
Hey. I just discovered something (that you all probably knew). Many of you have mentioned the camera app missing from the rom. I have had a theory that it's not missing but just disabled. In fact, if you create a new user, the camera app is present. That being said, Google Camera will NOT be in the next build. I've forked the vendor files and know what I need to do. I'm away from home tomorrow through Thursday, so by building will probably be ec2 from my phone. Not ideal, but it'll get it done fastest. I'll also make a "build notes" docx file, detailing which sources I used, where I put them, and which modifications and commits were made. I hope this can be used for people who are interested in the upbring of ROMs. We need ROMs, man. ?. I'm going to pull camera logs and try to identify the video issue, but, again, I'm still new here. Also, just out of curiosity, is anyone else using CM as a daily driver? I haven't gone back to stock since the 11/27 build (which was identical to the 11/26 build btw).
[Miscellaneous Android Development] sirhc:
Video Recording is broken due to not having the NV12 Color Format. That's required for the Stylo. I linked the commit to you a couple pages back
[Miscellaneous Android Development] bradym512:
Pulled logcat and that's what I found too. Fatal error was Unknown Color Format and error before that was Unknown nv12. I must've missed your commit. I'll look at it tonight and examine it further. Thanks!
[Miscellaneous Android Development] sirhc:
No problem
[Miscellaneous Android Development] MrObvious:
If needing a machine to build on is a problem, let me know. I have a few resources available to me. I don't know how to set it up but the one time I tried I recall it requires Ubuntu I think. You got PM Brad. Thanks for the work.
[Miscellaneous Android Development] bradym512:
I use Linux mint for build env, but I'll pri be using Ubuntu vps. And thanks. I'll look into making some build notes for you to build it with ease if it becomes a problem but I think I've got it for now.
[Miscellaneous Android Development] MrObvious:
Ok. Go ahead and compile those with your setup instructions and let me know.
[Miscellaneous Android Development] bradym512:
Heh. If all goes well with this build, then we'll have all the fixes "properly" integrated, and well be near official quality.
[Miscellaneous Android Development] bradym512:
So I added GPS, Camera, and LED fix to my fork of the vendor files. Here it is.. Was everything done correctly?
[Miscellaneous Android Development] sirhc:
Looks good to me ??
[Miscellaneous Android Development] MrObvious:
Can't wait to see a build. :D
[Miscellaneous Android Development] sirhc:
You might get a late Christmas gift ??
[Miscellaneous Android Development] Marty_Since87:
Cm13?
[Miscellaneous Android Development] Blu8:
Really? No dude...
[Miscellaneous Android Development] sirhc:
No what?

---------- Post added at 03:42 AM ---------- Previous post was at 03:40 AM ----------

Not implying that it will be here right after Christmas, but yes. Can't give an ETA but just know it's starting to be worked on
[Miscellaneous Android Development] Blu8:
Oh

Nevermind lol
[Miscellaneous Android Development] sirhc:
CM13 is being worked on sort of but when I said Late Christmas build I was mainly referring to CM12.1. After this next build, you should expect (A STRONG MAYBE) A CM13 build shortly after
[Miscellaneous Android Development] Blu8:
Nice, good luck with building
[Miscellaneous Android Development] dvkrane:
How long does it usually take to build? Just curious as to when I'll be back on CM instead of the stock ROM.
[Miscellaneous Android Development] sirhc:
It honestly depends. You'll have to keep checking back for when Brady uploads his latest build. Since its the Holiday's, I wouldn't expect anything til after Christmas
[Miscellaneous Android Development] ardaz87:
Running cm for the past week anything I can help with?
[Miscellaneous Android Development] bradym512:
Just kidding. I'll upload it sometime soon. .
[Miscellaneous Android Development] thereal_antiHackmasta:
Just keep having fun and a merry Christmas to you. If your into that kind of thing that is.
[Miscellaneous Android Development] T-Macgnolia:
What you did to add the led.sh works but the vendor/lge folder is really for pulling in the needed blobs(prorietary) files for the device. You should really add it in in your device tree.

In device/lge/h631 you could make a folder named "etc" and then inside the etc folder make another folder named "init.d" and then put the led.sh inside the "init.d" folder. Then make a "Android.mk" file that pulls the script in during your build, the Android.mk file needs to be put in the "etc" folder.

Here is what the Android.mk files needs to have in it.

LOCAL_PATH := $(call my-dir)

# Temperary fix for led always on

include $(CLEAR_VARS)
LOCAL_MODULE := led.sh
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.d/led.sh
LOCAL_MODULE_PATH := system/etc/init.d/led.sh
include $(BUILD_PREBUILT)

Or you could make a folder named "etc" and then inside the etc folder make another folder named "init.d" and then put the led.sh inside the "init.d" folder. Then you need a PRODUCT_PACKAGES += \ added in your device/lge/h631/device.mk.

# Temperary fix for led always on
PRODUCT_PACKAGES += \
$(LOCAL_PATH)/etc/init.d/led.sh:system/etc/init.d/led.sh

Now since it is in system/etc/init,d the script will be run at boot by the sysinit file in system/bin.
[Miscellaneous Android Development] ardaz87:
I got to givebit to you devs....all the coding / dev jargon .. .. All I understood was...pancakes. .....hats off to you all and thanks for working o. This phone/build.. Lol
[Miscellaneous Android Development] pmacevad:
Watching this closely. Just waiting on a gps fix to flash this because i need it for work. Outstanding progress so far!