Hello. I've used ADB to extract from the system folder the hole files of my android. I would like to know if is possible for me to make a ROM from there.
Also i would like to ask if i can use the META-INF and boot.img wich is on other roms into this one, in order to create a zip file ready for use of flasshing. Thanks
jgcaap said:
Hello. I've used ADB to extract from the system folder the hole files of my android. I would like to know if is possible for me to make a ROM from there.
Also i would like to ask if i can use the META-INF and boot.img wich is on other roms into this one, in order to create a zip file ready for use of flasshing. Thanks
Click to expand...
Click to collapse
It may be possible but certainly not recommended.
This is actually no different than taking the /system folder from the rom that you had flashed.
The best way is compiling your rom from source (which of course requires Linux).
The problem with using another rom's boot.img is that the kernel and drivers may not necessarily match those called by those in /system which may cause a lot of errors and instability that is assuming you can get it to boot.
Hi,
With the help of various tutorials in the XDA forum I have successfully ported MIUI V5 with root access for my device :good:. But I want to retain the stock camera and gallery application. The stock camera is somehow embedded in the gallery apk(there is no separate apk for camera). When I try to install gallery.apk in the ported rom it doesn't get installed.
I tried flashing the stock gallery.apk directly too(by putting in the system/app folder and then flashing the rom) but it didn't work. I have also tried replacing libcam*.so files from system/lib, but it didn't help either.
Appreciate your help in this regard. My device is a Mediatek 6589T(Karbonn Titanium X)
To the point!
When you found a bug when porting a ROMs, you can try to fix using this methods!
Just replace it from Stock ROM to your Custom ROMs.
~~For MTK~~
Bootloop when porting
*libandroid_runtime.so
*libandroid_servers.so
*libmedia_jni.so
*Repack boot.image
RadioFM
\system\bin\fmradio
\system\etc\firmware\mt6620_patch_e3_hdr.bin
\system\etc\firmware\mt6620_patch_e6_hdr.bin
\system\etc\firmware\WMT.CFG
\system\lib\modules\mtk_fm_drv.ko
\system\lib\libfmcust.so
Sensors
/system/bin/akmd*
/system/lib/libsensors.so
/system/lib/libms3c_yamaha.so
/system/etc/firmware (folder)
/system/bin/servicemanager
Bluetooth\Wifi not turning On\Off
\system\lib\module\mtk_stp_wmt
Bluetooth
/system/bin/bd_prov
/system/bin/uim*
/system/bin/hcid
/system/bin/bluetooth*
/system/bin/hciattach
/system/bin/sdptool
/system/xbin/hciconfig
/system/bin/brcm_patchram_plus
/system/lib/libbluetooth_mtk.so
/system/lib/libbluetoothem_mtk.so
Wifi
/system/bin/netcfg
/system/bin/dhcpcd
/system/bin/ifconfig
/system/bin/hostap
/system/bin/hostapd
/system/bin/hostapd_bin
/system/bin/pcscd
/system/bin/wlan*
/system/bin/wpa*
/system/bin/netd -> Fix wifi hotspot
/system/lib/libhardwarelegacy.so -> Fix wifi /system/lib/modules/mtk_stp_wmt.ko/system/lib/modules/mtk_wmt_wifi.ko
/system/etc/wifi (folder)
/system/etc/firmware (folder)
Camera
/system/etc/media_profiles.xml
/system/lib/libcamera.so
/system/lib/liboemcamera.so
\system\lib\hw\camera.default.so
\system\lib\libcamera_client.so
\system\lib\libcameracustom.so\system\lib\libcameraprofile.so
\system\lib\libcameraservice.so
\system\lib\libmhal.so\system\lib\libmhalcontent.so
\system\lib\libmhaldrv.so
\system\lib\libmhalmdp.so
\system\lib\libmhalpipe.so
\system\lib\libmhalscenario.so
\system\lib\libmhalutility.so
\system\etc\permission\android.hardware.camera.front.xml
\system\lib\libOmx*.so ->fix camcoder
SD card/Memory
/system/bin/vold
\system\etc\vold.fstab -> edit file for swap internal and external
\system\etc\vold.fstab.nand
GPS
\system\xbin\libmnlp
/system/etc/gps.conf
Touch Screen(Haptic)
/system/usr
/system/usr\keylayout\Generic.kl ->fix HomeKey
Sim1/2 (RIL)
\system\etc\firmware\modem.img
\system\etc\permission (RIL)
/system/bin/stmd
/system/bin/rild*
/system/etc/rril
Audio/Sound
\system\lib\libaudio* .so
Ads
/system/etc/hosts ->replace with new files or use tweak.
~~SNAPDRAGON QUALCOMM~~
BUGS SIGNAL
Change all file berextensi librilxxx.so in system/lib with file from stock rom.
If doesn't appear, check imei *#06#
BUGS SENSOR
Change file sensorservice in system/bin with file from stock rom
Chamge file libsensorservice.so in system/lib with file from stock rom
Change file sensor.default.so in system/lib/hw with file from stock rom
BUGS CAMERA
Change all file extensi mm-qcameraxxx in system/bin with file from stock rom
Change file v4I2-qcamera-app in system/bin with file from stock rom
Change file camera.msm7627a.so in system/lib/hw with file from stock rom
Change file libcamera_client.so and libcameraservice.so in system/lib with file from stock rom
Change all file libmmcameraxxx.so in system/lib with file from stock rom
Change all libs started with *cam* in lib and lib64
Change all libs started with *omx* in system/vendor
BUGS FINGERPRINT (FPC/GOODIX)
Change gx_fpd in bin folder from stock to port
Change hwservicemanager in bin folder from stock to port
Change android.hardware.fingerprint.xml in etc folder from stock to port
Change libcom_fingerprints_service.so from lib and lib64 from stock to port
Change fingerprint.default.so and fingerprint.msmxxxx.so in hw folder in lib and lib64 from stock to port
Change name started in *fp* in vendor from stock to port
BUGS WIFI
Change file wpa_supplicant im system/bin with file from stock rom
Change folder firmware and wifi in system/etc with file from stock rom
Change file wifitest_recv.sh and wifitest_send.sh in system/etc with file from stock rom
Change file libwpa_client.so in system/lib with file from stock rom
Change file cfg80211.ko in system/lib/modules with file from stock rom
Change folder ath6kl in system/lib/modules with file from stock rom
Change file in folder wifi in system with file from stock rom
BUGS GPU
Change all file in folder egl in system/lib with file from stock rom
BUGS USB
Change file vfold.fstab in system/etc with file from stock rom
NB: still bug? Repack boot.img and see the ramdisk files.
BUGS VIDEO
Change all file berextensi libchromaticxxx.so in system/lib with file from stock rom.
Thanks in advance!
Give like if you like it!
i ported a rom.. its just fyn.. but settings is crashing.. when ever i open settings its crashing nd also play store no opening showing connection problem.. retry... help me with this!
Try fix permissions ,,
if the fix wifi tethering how
D2Y aka E said:
if the fix wifi tethering how
Click to expand...
Click to collapse
I need to know what the Chipset of your device? Is MTK or something else?
Thanks ,, [emoji4]
Jawaad_S said:
I need to know what the Chipset of your device? Is MTK or something else?
Thanks ,, [emoji4]
Click to expand...
Click to collapse
Qualcom bro...
Use the Qualcomm methods ,,
If its doesn't work, you can use the MTK methods ,,
Thanks
Any idea with FC errors when installing third party app in ported MIUI v4.
Maybe that apps is not compatiblelity for MIUI v4 ,,
my port brigthness not working,recent app not shown. then after i lockscreen it wont open.. i port s5 KK mt6582
Sent from my YP-G70 using XDA Free mobile app
Ported a rom successful from mobile with the exactly same specifications with mine, unfortunatelly the power key does not trigger screen lock and unlock, what to replace to make it work? Plus when the phone goes to deep sleep it takes ten to twenty seconds to come back on when power key pressed, please advise thanks.
sarry86 said:
Ported a rom successful from mobile with the exactly same specifications with mine, unfortunatelly the power key does not trigger screen lock and unlock, what to replace to make it work? Plus when the phone goes to deep sleep it takes ten to twenty seconds to come back on when power key pressed, please advise thanks.
Click to expand...
Click to collapse
The importantly for fixing is in system/lib. Theres so many bug when first time porting a ROM's and lib is the first to solve that bugs. Trying to replace the lib files from Stock ROM to your PORT ROM but not all. Just replace it one by one. If it makes your phone bootloop, the lib files is not compatibility with your PORT ROM's. And especially don't forget to backup the lib files before replace it from your Stock ROM.
Hope it helps
lildhiel08 said:
my port brigthness not working,recent app not shown. then after i lockscreen it wont open.. i port s5 KK mt6582
Sent from my YP-G70 using XDA Free mobile app
Click to expand...
Click to collapse
Its about the lib files bro ,,
I ported CM10 for my mtk6592 and there's just one error, when I put a number in dialer app and click on call, it says "searching for networks" and it remains there. However sometime it calls. And it can receive calls from other phones.
Copied all the SIM1/SIM2 files from base to port and the firmware folder and everything but its just not working.
And no apns are being displayed in settings.
3g turns on and displays "3G" on statusbar but net doesn't work.
Have copied apns_config but still doesn't work
Do you have any clue how to fix?
parasthakur37 said:
I ported CM10 for my mtk6592 and there's just one error, when I put a number in dialer app and click on call, it says "searching for networks" and it remains there. However sometime it calls. And it can receive calls from other phones.
Copied all the SIM1/SIM2 files from base to port and the firmware folder and everything but its just not working.
And no apns are being displayed in settings.
3g turns on and displays "3G" on statusbar but net doesn't work.
Have copied apns_config but still doesn't work
Do you have any clue how to fix?
Click to expand...
Click to collapse
In system/framework, you can replace telephony-common.jar and telephony bla la. And in the system/lib replace all file with the name of "ril" and in system/bin replace it too the file "ril" to your Port ROM from Stock ROM.
Hope it helps
Jawaad_S said:
The importantly for fixing is in system/lib. Theres so many bug when first time porting a ROM's and lib is the first to solve that bugs. Trying to replace the lib files from Stock ROM to your PORT ROM but not all. Just replace it one by one. If it makes your phone bootloop, the lib files is not compatibility with your PORT ROM's. And especially don't forget to backup the lib files before replace it from your Stock ROM.
Hope it helps
Click to expand...
Click to collapse
Hats off to the devs, this porting stuff is a pain in the a**, porting ain't easy. Thanks will try libs one by one to see if i can fix it
led light blinging always
Please how do I fix led light always on after notification is cleared the light will still be on ........... (The home key , back key and settings key all having light always) will be happy if I can fix that)
What to do when we get
android.process.media has stopped...???
sarry86 said:
Hats off to the devs, this porting stuff is a pain in the a**, porting ain't easy. Thanks will try libs one by one to see if i can fix it
Click to expand...
Click to collapse
Good luck
Akorstayblessed said:
Please how do I fix led light always on after notification is cleared the light will still be on ........... (The home key , back key and settings key all having light always) will be happy if I can fix that)
Click to expand...
Click to collapse
I'm so sorry. I can't fix the bug like that. You can tell the Dev because i've never found a bug like that.
Hope it helps
saurabh1234 said:
What to do when we get
android.process.media has stopped...???
Click to expand...
Click to collapse
Check the system/framework files.
i have ported a rom it had storage 0.0b so i changed vold from system/bin and i got a bug with usb pc connection (MTP,PTP,Charging mode) but usb debugging works
Device Micromax A092(Snapdragon MSM8212)
ROM ported LAVA iris 406q(MSM 8610)
Hi Guys,
I was wondering if anyone had figured how to bring Sony's stock ServiceMenu.apk to work in CM or other custom ROMs that don't have it?
ServiceMenu (*#*# 7378423#*#* from dialer on stock ROM) is very handy for battery test, GPS test, Compass test and calibration, all the Sony device-specific hardware tests.
I tried to make a recovery-flashable zip by extracting ServiceMenu.apk from stock ROM but it doesn't install. I did more searching to find it also depends on files in /system/etc/permissions and /system/framework so I also added those to the zip, but still fails to install.
Can anyone with better experience chime in? I think a flashable Sony ServiceMenu.apk zip would be useful for every custom ROM on Sony devices.
So far I'll attach my zip which puts all the files where they should be, but App does not install. Signing problem? Odex problem? Please any ideas
I have root access, but i can't get into recovery if you want to know why .
So, only thing i want from my recovery, is to flash fde ai optimizer as i have perferct experience with mod (it's best)
I tried to unzip it (check it out) , and see it's update-script for twrp, and because there is only few executables, that needs to be placed into /system/etc , according to script, and according to file hierarchy in zip
I placed them, and i setted permissions for those 3 executables to 755 (rwxr-xr-x)
But that's as far my knowledge goes, i don't understand what other parts script does in order to bring it online for usage. So i don't know will it run if i just place them in that corresponding folder as i did?
Making that mod , is all i need to set up.
I run CM11 (kitkat , android 4.4 )on samsung galaxy J100H
@FeraVolt if you're available , to help me install your best mod
Edit: I don't want to use fde ai app, because i hate anything working in background, zip file fde ai works best, as there's no background (or at least minimal so i can't see it). and app is suceptible to android killing it after some time , i just don't like having app