Identify hardware components by reverse enginereing ROM - How to? - Android Q&A, Help & Troubleshooting

Hi there,
I want to port a Lollipop ROM to an Android device which has only a KitKat ROM. In order to find the fitting Lollipop drivers, I would like to know the exact HW specs (like cam, display, WiFi+BT, GPS, etc..). Then I plan to inject these driver files in the template LP ROM.
So I had the idea I could find out the exact HW specs by disassembling the libraries from the base ROM. So I checked several files (libcam.so, wifi... .so, etc.) in the base KK ROM, but could not find any hints.
Can anybody help me, how I can identify the exact HW of the critical components by the ROM?
Thanks in advance!

Nobody an idea?

Related

"Upgrade" stock 4.1.2 ROM to 4.4.2, possible?

Hi guys,
I just wanted to know if it was possible to upgrade a ROM (for the Huawei Ascend P2) from version 4.1.2 to either 4.4.2 or 4.4.4 or something similar.
As you may know no one has developed any custom ROMs for this phone and at the moment we have nothing more than a P6 ROM running on the P2 (which excludes functionality of getting signal, speaker audio, headphone audio and lacks the functionality of the actual buttons on the phone, the ones below the screen)
If this was possible could someone give me some pointers on how to do it? All I need is like a reference guide or tutorial.. I don't mind doing the work myself as I want to get into android development. I consider this my 1st project.
Thank you.
bump
Most likely Huawei never put out the source code for it meaning unless there is a sister phone to it you can port from then not much else to do.

Need help to fix front camera & Bluetooth for mediatek cm12.1

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)

Firmware from Meizu or other devices

Has anyone tried to put the firmware of devices from meizu, xiaomi? For example, CM 13?Supposed to work? Support scanner available from meizu , and the seams are already stable
It's not possible to do that. Any ROM that you load into a phone must be built for that particular model. Although non-stock ROMs are available for many phones, including the P9000, they are all built using the kernel (which is the bit of code that controls the hardware - device drivers, if you like) of the stock ROM supplied by the manufacturer. So you can tweak the original ROM and sometimes add new features (if you have the skill to do it, of course, it's not a simple task), but you can't just load up CM13, for instance, from a Meizu phone.
RMcT said:
It's not possible to do that. Any ROM that you load into a phone must be built for that particular model. Although non-stock ROMs are available for many phones, including the P9000, they are all built using the kernel (which is the bit of code that controls the hardware - device drivers, if you like) of the stock ROM supplied by the manufacturer. So you can tweak the original ROM and sometimes add new features (if you have the skill to do it, of course, it's not a simple task), but you can't just load up CM13, for instance, from a Meizu phone.
Click to expand...
Click to collapse
thank you for such a detailed explanation, very grateful???

Making an own android image?

Hello everybody. I love this community and I have been lurking for a long time.
I have noticed on a foreign language forum that some people were offering a custom rom for my android 9 TV box.
The chinese box is based on a s905x3 CPU and has a mediatek wifi chip for which it is hard (if not impossible to find the wifi drivers).
The site claims that the image was made by modifying the stock rom that came with the box. Is this possible or do all custom roms need to be build from the source?
The custom rom I want to make is going to replace the launcher with kodi.
I am prepared to build the whole rom from source but I do have a couple of questions.
Since the mediatek wifi drivers cannot be found how would I go about including the binary for the wifi?
I have noticed that the box that I have uses a .ko (kernel object) module to drive the wifi chip.
Can I include these kernel objects in build? It is a shame that the kernel is built as a 32bit system. Would that mean that I can only compile a 32bit kernel if I were to reuse those kernel modules and binaries?
Another idea is to perhaps use the kernel from coreelec in my build since it seems to include a lot of drivers.
Is it possible to use a kernel from something like coreelec but use the source from AOSP for the rest of my build?
Is there anything else that I should be aware of?
Thank you all!!!!
Can anyone give me any hints to any of the questions?
Essentially I want to swap out the stock launcher for Kodi. What is the easiest way to do so?

Headless Custom Chinese Android Device

caveat: I'm new to java Dev and Android as Python is my main language.
I purchased a ZX808 from Topin
From what i can see its using a custom Rom developed in house. on a mt6580 (android 5.1)
Kernel 3.10.72
gcc 4.8
For the life of me i cannot get location manager working on the device. Running a multitude of different apps, i've come to a conclusion that there is some sort of proprietary override.
My hope is that this is potentially Software based and not Hardware based (i hope!)
My question to you guys, is where to start. and what is my backup plan?
I've done an ADB Backup, but where i'm going i don't think this will be enough of a parachute.
1. What is the best way to backup this proprietary rom (if possible)
2. Any recommendations for simplistic Rom to install on this chipset? (looking at this one
3. Any way to enable USB debugging from the Rom itself on install? (Headless unit so only control i can get seems to be USB debugging via totalcontrol)
Really worried about the device being screenless. Any Recovery mode and things like that all have to be guesses based on other peoples screenshots. any way around this? It does have a small ribbon cable attachment. Maybe i find a matching screen first?
I cannot attach links to the Screenshots and Aliexpress site for the device i'm too new
glen020 said:
I cannot attach links to the Screenshots and Aliexpress site for the device i'm too new
Click to expand...
Click to collapse
Here is the link: https://www.aliexpress.com/i/32963286807.html

Categories

Resources