Hi all,
for my project I need to change the way how gps works. It was told me gps-manager enable/disable gps sensor. Idea would be to recompile my own customized version for gear s and install on the device. I have started by dowloading opensource from samsung site. Inside I have not found anything related to gps module.
Do you have any idea how to do it?
Thank you.
Luke
Device drivers are typically never open sourced.
foxbat121 said:
Device drivers are typically never open sourced.
Click to expand...
Click to collapse
Yes right, samsung confirmed some modules are proprietary code and not available as open source.
Related
I have a Samsung Galaxy Note 3 which I want to build an image for. I followed the procedures given by http://wiki.cyanogenmod.org/w/Build_for_hlte#Prepare_the_device-specific_code and I was able to compile it successfully. But I have an issue, and that is I need to patch the code to get additional functionality. The patch I need to apply is only available for Jelly Bean, and the Cyanogenmod procedures use Kitkat. I tried to manually apply the patch, and I had to remove a number of lines before the image compiled. But when I flash the phone with it, I get an error about NFC adapter. Basically the message says that NFC adapter is disabled. I think I know why it says that. The patch is for allowing extended functionality of NFC adapter, and well you know...It seems like either me or the patch broke the NFC adapter. Most likely it was me I tried to download the Jelly Bean version from Cyanogenmod repo, but the procedures explicitly say not to. And when I tried, I get a repo sync error and the whole thing does not download. So I am trying to do something different. I like to download the phone's source code from Samsung Source code. But that is just the kernel as I understand it. There is a lot of what Cyanogenmod people call "proprietary blob", which they provide a way to extract from the phone. So this is why I am where I am, and I am trying to mix the two together. Please tell me if there is a better way for me. And if not, then I like to know if it is possible for me to replace the Cyanogenmod source that I downloaded from Git repository with the Samsung Source and successfully compile it. I wish I could just download Cyanogenmod's version 10.5; I think they remove the previous version due to resource issues. I am not sure. I have to say Cyanogenmod rocks. My understanding is most developers there and here on this site are really busy. More power to you guys. You are really doing a big service for the open source community. Thank you all.
Thread moved to Q&A.
Hi,
I'm currently in the process of developing a custom ROM for my Nexus 7, where I'll be editing the HCE functionality to allow me to set my own Application ID.
My main question was, after downloading the Android source onto my machine, I was wondering where I can find the source code for NFC/HCE inside the Android directory?
Any help is appreciated!
Jay
Bump - if anyone has any info i'd appreciate it !
jamesa2991 said:
Hi,
I'm currently in the process of developing a custom ROM for my Nexus 7, where I'll be editing the HCE functionality to allow me to set my own Application ID.
My main question was, after downloading the Android source onto my machine, I was wondering where I can find the source code for NFC/HCE inside the Android directory?
Any help is appreciated!
Jay
Click to expand...
Click to collapse
You need to download the nfc driver from google developer site
Here for your nexus 7 you can find it:
https://developers.google.com/android/nexus/drivers
antonio8297 said:
You need to download the nfc driver from google developer site
Here for your nexus 7 you can find it:
https://developers.google.com/android/nexus/drivers
Click to expand...
Click to collapse
Hi Antonio, thanks for the reply!
So you're saying for the NFC code specifically in the Nexus 7 (I'm using FLO atm) I should go fishing in the driver code, not the base Android code?
Thanks again
Jay
jamesa2991 said:
Hi Antonio, thanks for the reply!
So you're saying for the NFC code specifically in the Nexus 7 (I'm using FLO atm) I should go fishing in the driver code, not the base Android code?
Thanks again
Jay
Click to expand...
Click to collapse
Into the android code there isn't any code device, only if included device config and vendor files(that are into the google sites) and the kernel source
Recently i have ported a cm12.1 beta 7 stable v2 rom
Everything is working fine except for front camera & Bluetooth
Plz can anyone know how to fix this?
I have tried many lib files, but non of them r working
Plz help on it to fix this issue
Anyone plz
Your issue is gonna be a kernel issue and without the source there is nothing you can do. It is a common issue with devices running that chip set. That's why developers don't touch devices with it.
zelendel said:
Your issue is gonna be a kernel issue and without the source there is nothing you can do. It is a common issue with devices running that chip set. That's why developers don't touch devices with it.
Click to expand...
Click to collapse
My phone is Symphony h150. Its mediatek mt6582 chipset.
I don't know about any source file. But i think not.
So ur telling me that there's no way
rabin69x said:
My phone is Symphony h150. Its mediatek mt6582 chipset.
I don't know about any source file. But i think not.
So ur telling me that there's no way
Click to expand...
Click to collapse
Yes I'm saying that without a proper kernel then there will be things that just can't be fixed. Normally things like the camera and wifi radios. You might be able to hack your way through it but it will take weeks of searching through the code.
The kernel source code is the base code that is required by law to be published for any device that runs a Linux kernel (any android device) the issue with that chip set is they are based in China and dont respect copyright laws or the GPL.
rabin69x said:
My phone is Symphony h150. Its mediatek mt6582 chipset.
I don't know about any source file. But i think not.
So ur telling me that there's no way
Click to expand...
Click to collapse
If it's still actual for you (2 years, but still...), mediatek has laid off some kernel and AOSP sources for mt65xx series. Also check out this repo: github.com /bq/aquaris-E5, it has some code for your chip and other Mediatek stuff.
Also you have few other options:
Build your ROM around existing (official) kernel, adding more drivers as .ko's. I've had certain success adding some USB drivers like that.
Use some .so's from your original ROM. Sometimes manufacturers don't provide sources for libcamera.so/libcamera_client.so (camera), libhardware.so/libhardware_legacy.so (wifi and some minor stuff, like vibromotor)
If I get a samsung i9300 phone then I want to flash Replicant on it. I also want devices to be supported. Replicant forum is not going to tell me how. Can I get advice on how to and what devices I can get to work? http://redmine.replicant.us/projects/replicant/wiki/ReplicantStatus#Replicant-42
Thanks.
Why do you want to install Replicant?
Stachura5 said:
Why do you want to install Replicant?
Click to expand...
Click to collapse
Replicant uses CyanogenMod's source code as a base. It is rebranded to provide the Replicant look and feel (wallpapers, logos) and parts of the code are reworked to remove anti-features that can spy on the user. Most importantly, Replicant does not include any of CyanogenMod's proprietary components (programs, libraries, firmwares) and instead provides free software replacements for some of these. The rest of the system is also adapted so that the free software replacements can run correctly.
http://www.replicant.us/freedom-privacy-security-issues.php
hi peeps. thank u for stopping by
i want to get into android development and make personal touches and changes to my phone. i quite like oxygenOS so i would like to stick with this and modify that slowly. but i cant figure out how to begin specifically with oxygenos? it doesnt appear as if they release their source code anymore. could anyone please point me in the right direction? thank you
kieran_buffet said:
hi peeps. thank u for stopping by
i want to get into android development and make personal touches and changes to my phone. i quite like oxygenOS so i would like to stick with this and modify that slowly. but i cant figure out how to begin specifically with oxygenos? it doesnt appear as if they release their source code anymore. could anyone please point me in the right direction? thank you
Click to expand...
Click to collapse
Hi,
First of all, OnePlus do release their source code. But if you want to modify your phone and keep OxygenOS, you don't look it the right place.
With root you can have a lot more possibilities for customization, so I'll advice you to check Magisk (a root manager/ customization tool with which you can install modules).
If you want to theme your device you can use Substratum, and install themes from the Play Store.
Search about them and give them a try if you want to
Raiz said:
Hi,
First of all, OnePlus do release their source code. But if you want to modify your phone and keep OxygenOS, you don't look it the right place.
With root you can have a lot more possibilities for customization, so I'll advice you to check Magisk (a root manager/ customization tool with which you can install modules).
If you want to theme your device you can use Substratum, and install themes from the Play Store.
Search about them and give them a try if you want to
Click to expand...
Click to collapse
thank u for getting back to me! i took a look at their github page but it said they stopped releasing the source code because it can be found elsewhere, and i cant find where exactly that is. i dont want to modify the OS as is (root it and customise that way), i mean getting the source code, changing, removing and adding things and then flash my own custom flavour of oxygenOS onto my phone. i figure going with what comes with my phone is best when getting into android development so that there are as few compatibility issues as possible. would you be able to point me exactly how i might obtain the source code? it would be very cool my dude
kieran_buffet said:
thank u for getting back to me! i took a look at their github page but it said they stopped releasing the source code because it can be found elsewhere, and i cant find where exactly that is. i dont want to modify the OS as is (root it and customise that way), i mean getting the source code, changing, removing and adding things and then flash my own custom flavour of oxygenOS onto my phone. i figure going with what comes with my phone is best when getting into android development so that there are as few compatibility issues as possible. would you be able to point me exactly how i might obtain the source code? it would be very cool my dude
Click to expand...
Click to collapse
I hope you're familiar with git. I believe this is what you're looking for. https://github.com/OnePlusOSS
Spaceminer said:
I hope you're familiar with git. I believe this is what you're looking for.
Click to expand...
Click to collapse
i am indeed familiar with git, but i dont exactly understand what i am wanting from that page. i want the full source code to oxygenos and the kernal/binary specific packages for my phone. i previously found this site before but to my knowledge what is on there doesnt get me the source code. am i missing something? thank you for your helps
kieran_buffet said:
i am indeed familiar with git, but i dont exactly understand what i am wanting from that page. i want the full source code to oxygenos and the kernal/binary specific packages for my phone. i previously found this site before but to my knowledge what is on there doesnt get me the source code. am i missing something? thank you for your helps
Click to expand...
Click to collapse
Check under the Android section on that page. Which specific OnePlus device do you have? There are many of them. I can help you find it if I know your model.
Spaceminer said:
Check under the Android section on that page. Which specific OnePlus device do you have? There are many of them. I can help you find it if I know your model.
Click to expand...
Click to collapse
i see where you mean. but it seems like they stopped doing these releases. on their latest release (11 months ago) they said; "based on conversations we had with our dev community and the fact that we have only made few changes on AOSP(Qualcomm BSP) device tree, we will not be releasing AOSP device trees for future devices, the community can get the baseline from our device and get the source code from Qualcomm."
"the community can get the baseline from our device and get the source code from Qualcomm." i have no idea where to get what they are talking about.
i have the oneplus 8 pro
kieran_buffet said:
i see where you mean. but it seems like they stopped doing these releases. on their latest release (11 months ago) they said; "based on conversations we had with our dev community and the fact that we have only made few changes on AOSP(Qualcomm BSP) device tree, we will not be releasing AOSP device trees for future devices, the community can get the baseline from our device and get the source code from Qualcomm."
"the community can get the baseline from our device and get the source code from Qualcomm." i have no idea where to get what they are talking about.
i have the oneplus 8 pro
Click to expand...
Click to collapse
They're probably referring to CAF sources for the Qualcomm bit. The baseline part is probably a reference to the script that's in the Android section. This is the closest thing to what you're after that I can find.
https://github.com/AndroidBlobs/device_oneplus_OnePlus8Pro
https://github.com/AndroidBlobs/vendor_oneplus_OnePlus8Pro
https://github.com/codeauroraforum (CAF)
Spaceminer said:
They're probably referring to CAF sources for the Qualcomm bit. The baseline part is probably a reference to the script that's in the Android section. This is the closest thing to what you're after that I can find.
https://github.com/AndroidBlobs/device_oneplus_OnePlus8Pro
https://github.com/AndroidBlobs/vendor_oneplus_OnePlus8Pro
https://github.com/codeauroraforum (CAF)
Click to expand...
Click to collapse
ah yes. my brain has clicked with the baseline part, i would plug my phone in and it would use adb to extract the "baseline"? i understand this process. is what i am asking for difficult? perhaps i am better off taking the kernal files for my phone and integrating it with stock android that i would build and practicing with that? i really appreciate your effort but this "android blobs" is apparantly for reference only, i have no idea what android blobs is. i went into this knowing oneplus isnt extremely AOSP friendly compared to Sony for example, but i am going to push on. do you have any advice? this doesnt appear to be a friendly introduction into existing OS modification by sticking with OxygenOS