yashsingh1/xdaforums huggingface dataset:
[HTC One V] Puckish:
I ve unlocked and root my htc one v primoU, but unable to delete or write on device memory in system folder, as if I want to delete any inbuilt notification sound file from system/media it says access denied, or read only file. please help me.

ive turned on es file manager's root explorer too. what would be the reason?
[HTC One V] MameTozhio:
Have you mounted system readwrite? You can do that in ES File Explorer.
[HTC One V] Puckish:
there isn't any option in es file manager 3.5.5 to mount system...

this problem is created when I've rooted my device it was working fine, but after factory rest its not working, even though ive unrooted it using supers v1.65 then again root it back. now its not working, although I can uninstall system apps but cant write or delete in system folder. please tell me how to mount system read write.
[HTC One V] MameTozhio:
Go into ES File Explorer and hold the recent apps button until the sidebar shows up, then click root explorer.
[HTC One V] Puckish:
Root explorer is on
[HTC One V] russellvone:
[MENTION=4362496]Puckish[/MENTION] After turning on root View attachment 2293939 then you must press just left of the on/off toggle and it will bring up this View attachment 2293941
[HTC One V] pochakaka:
Drop down list is not appearing

Hi Team,

I have a HTC One V, is already rooted and loaded with 4.2.2 Sphongle, Hellboy kernel. Now the problem is, the drop down list is not appearing in my device. Please help.

Thanks

Subhasish
[HTC One V] MameTozhio:
press menu/recent apps button?
[HTC One V] russellvone:
Maybe, you need to flash gapps?
[HTC One V] Puckish:
Thanks buddy
[HTC One V] pochakaka:
Got it..Is there any one who can kick my ass....somehow I have enabled the 'Expanded Desktop'. after disabling it I got the drop down list... :D

Thanks
[Android General] Rohan Taneja:
Fixing ROM issues

Finally Ported a Custom ROM. Now, time to kill out some bugs.

Its all about making the build stable for personal as well as others to use it.

Leave the files if not there in your System

Let's get started:

Bootloop? :crying:

Replace following files(from stock to port):

[LIST]
[*]libandroid_runtime.so
[*]libandroid_servers.so
[*]libmedia_jni.so
[*]libsync.so

[*]If possible try modifying framework.jar "\smali\com\android\server" (copy from stock)
[/LIST]

Camera Not Working? :(

Replace following files(from stock to port):

[HIDE][LIST]
[*]lib3a.so
[*]liba3m.so
[*]libacdk.so
[*]libaudioflinger.so
[*]libc.so
[*]libcam.camadapter.so
[*]libcam.campipe.so
[*]libcam.camshot.so
[*]libcam.client.so
[*]libcam.paramsmgr.so
[*]libcam.utils.so
[*]libcam_camera_exif.so
[*]libcamalgo.so
[*]libcamdrv.so
[*]libcamera_client.so
[*]libcamera_jni_eglfence.so
[*]libcamera_metadata.so
[*]libcameracustom.so
[*]libcameraservice.so
[*]libgn_camera_feature.so
[*]libexif
[*]libfeatureio.so
[*]libfrsdk.so
[*]libft.so
[*]libgcomm_jni.so
[*]libgoggles_clientvision.so
[*]libgui.so
[*]libimageio.so
[*]libja3m.so
[*]libjni_mosaic.so
[/LIST]
Thanks To [I]Shikar A[/I][/HIDE]
[B]Init.rc Fix:[/B]
[HIDE]Init.rc(present in the ramdisk of boot.img), find for code #Camera in stock boot.img. Copy it and replace from stock init.rc and replace in the port init.rc
[IMG]http://s27.postimg.org/4ucj34cwj/initrc_cam.png[/IMG][/HIDE]

Wlan not working properly? :rolleyes:

Check wlan.chip in stock like:
[HIDE][IMG]http://s30.postimg.org/myaya0sxt/Untitled.png[/IMG]
fmradio.driver.chip=x (if mt6620 then x=1, if mt6628 then x=3)
Change the above codes accordingly in updater-script
Replace the version in port from the one in stock[/HIDE]
(Replace from stock to port)
libbluetooth_mtk.so
libbluetoothem_mtk.so

GPS, unstable or not working? :confused:

(Replace from stock to port)

xbin/libmnlp

Media Player problem? :confused:

(Replace from stock to port)

libdpframework.so
libcodecvdrv.so

Sensors not working properly? :confused:

(Replace from stock to port)

libsensorservice.so

SD Card not working or mounting?

In the framework-res.apk of your port, replace /res/xml/storage_list.xml from stock one.

USB not mounting your device? :eek:

Unpack your boot.img replace init.usb.rc from ramdisk by stock boot.img init.usb.rc

This tutorial worked for porting MIUI, Baidu, Vibe UI, LeWa OS, AOSP based rom from different device to my MT6589 of same hardware.

Credits:

Special Thanks to [MENTION=4478781]yuweng[/MENTION] (for starting his main MTK porting thread and his great works)

XDA-Developers being one of the best place for Android Development

Other Developers for helping in fixing most the issues.​
[Android General] iel0000:
just wanna ask..is it ok if i dont copy the srec folder cause i cant find it..also yhe meta-inf folder as i only have the system.img of my base rom
[Android General] Rohan Taneja:
If You Don't Have "srec" folder no need to worry but for system.img you need to extract the img by ext4 method:

http://xdaforums.com/showthread.php?t=2285831
[Android General] iel0000:
how about theses files?

CERT.RSA

CERT.SF

MANIFEST.MF

i dont have them cause i dont have a flashable stock rom..
[Android General] Rohan Taneja:
Don't Worry Try The one in the Ported Rom!
[Android General] iel0000:
cant also find these

com.google.android.media.effects.jar

com.google.android.media.effects.xml

sorry for the noob questions..i just want to port a rom to my device as we dont have developers :D
[Android General] xjammetx:
it worked!

i ported an miui from newman n1, the ics 4.0.4 with no bugs to my cherry mobile blaze / Ming Ren A2 clone.

btw, this is not a dual sim display miui, i need to go to settings anytime i wan to use the other sim.

anyone who knows where to get a dual sim display miui?
[Android General] iel0000:
what boot.img did you use? stock from cherry mobile?
[Android General] Rohan Taneja:
Don't Try boot.img(Kernel) from the port rom or you'll brick your device!
[Android General] Rohan Taneja:
Those Files You Can't Find In port just leave that!
[Android General] iel0000:
can i use stock boot.img from my phone?or do i have to modify it?
[Android General] dia_naji:
Very nice thread, for beginners that want to learn :D
[Android General] iel0000:
tried porting miui v5 base on jb 4.1.2

always stock on boot animation :(
[Android General] Rohan Taneja:
You Can Use Stock BOOT.IMG or try changing the ramdisk with stock from the port kernel!

Tool: http://d-h.st/BVz
[Android General] iel0000:
i give up porting miui to my phone and tried porting another rom from amoi n820..it boot but the home key is not working..i already used Generic.kl from my device stock rom but it still dont work :( can you help me plss?

edit : i finally got it working..thanks for the tut it really help me..:D..
[Android General] xjammetx:
Yep. Dont worry, ill upload it sometime.
[Android General] iel0000:
how to use the tool?
[Android General] dreamyworld:
How to from STOCK

Do you know procedure to Port a STOCK ROM(SP Flash tool format not a CWM) of X device to Y device?

Both are mostly same in specifications except the resolution.

I read in some threads that we can not port a rom from a device which has different resolution ?

Thanks in Advance
[Android General] xjammetx:
what phone do you have btw?

yo kumpare!
[Android General] navroza:
Do you have any guide how to do that?
[Android General] navroza:
Found bootloop reason by logcat:):

I/ServiceManager( 445): Waiting for service media.audio_flinger...

Any idea how to fix this? :(
[Android General] Lord_Flaya:
Well as far as I can tell, my a9500 is HD, so that should not be an issue. :) 4k to be precise.
[Android General] Darshan601:
Should I use stock boot. IMG or I need to replace the port's boot.img 's kernal with stock's kernal?
[Android General] sarry86:
Can you tell me how to winmerge those two ramdisks?
[Android General] sarry86:
If i replace the file you mentioned above, my phone is not booting :(
[Android General] mirrr46:
Hi, i have flash via CWM CUSTOM ROM SAMSUNG S5

Everyfing works great but when my phone will go to sleep and won't wake up again through touch or buttons.

Only way to get it going again is through removing my case, taking the back panel off, removing and reinstalling the battery.

Can you help me?
[Android General] superdragonpt:
Hi

Usually i don't respond to Help q&a PM's.

Someone mention your reply, and i am going to answer your question.

To the OP, please if possible, add this Note on 1st post:

-----------------------------------------------------------------------------------------------------------------------------------------------------

Android ONE devices (MT6582 SoC) use Google's device tree, meaning they differ on everything with all the other MediaTek devices (even the ones with the same SoC , MT6582)

-----------------------------------------------------------------------------------------------------------------------------------------------------

In a simple answer: NO, You cannot "port" anything from Android ONE devices...

Even if you rebase your kernel/platform sources, there's an tone of work ahead ...

Cheers
[Android General] kenzukie:
Hi bro i cant find the libaudio.a2dp.default.so .what can suggest about it .
[Android General] gagitrix:
sir, i've got serious bug. when the screen offs ( usually by lockscreen), it wont display again.. the 3 button in navigation bar still lights up but the screen would black out.

---------- Post added at 04:13 PM ---------- Previous post was at 03:56 PM ----------

and also one more thing. i cannot adjust the screen brightness
[Android General] thedevilashish:
How to fix systemui & other system apps force closing just after boot?
[Android General] MeganTheo613:
same problem :(

I'm porting with same chipset MTK6592 android 4.4.2. Have you solved this?
[Android General] navroza:
No :(
[Android General] nikkali25:
Working guide but my problem is in internal memory. I cant find system/etc/vold......porting 6582 to 6582(kitkat)
[Android General] ashudb70:
system ui fc

have ported 4 roms for device mt6591 (actualy it is 6592 mentioned evrywhere in boot.img build.prop)

ported touch ui

hive

galaxy s5 n note 4

all have booted normally but hall common issues of system.ui fc how to fix it?
[Android General] kenzukie:
How to fix blackscreen on lockscreen ,brightness slider not working
[Android General] Mbariah:
Hi, i managed to finally get my EMUI 3.0 port to boot nicely but i have a couple of issues..

1. My internal sd is not getting mounted..in fact, the ROM doesn't seem to know that it exists..I can still access it via recovery..

2. Camera is only showing 6mp instead of 13mp and its not interpolated and this happens in both 16:9 and 4:3

Rom is EMUI kitkat 4.4.2..

Any ideas?

Stock storage-list.xml

Port storage-list.xml
[Android General] devrookie:
I ported the rom successfully but I'm getting sleep of death(phone gets locked on pressing power button, but shows black screen when trying to unlock). Any ideas on how to fix??
[Android General] acdroid:
META-INF folder?

Hey! How and where did you find the META-INF folder? I mean how did you extract it? I can't find it anywhere. Also Android Kitchen doesn't seem to give the right stuff. :crying:

I used the ext unpacker thing too, but it only extracts system folder for me. OP, a little help would be appreciated.
[Android General] 5weet5:
Hi I ported miui v5 to my la-912t. Because I had lost my 4.2.2 stock somehow and could not get it back anyway port went fine rom boots bu them reboots after its loaded all google play apps fc android l keyboard keeps stopping please help me fix this thank you
[Android General] Dvalin21:
Hello, I have a few questions and I do need help. First is that both the stock rom and the rom I want to port are in raw img files so theres not a updater-script to work with. What would I need to do to work around this? (And yes I'm a noob). The stock rom is from my Cube T7 device SoC 64 MTK8752. (MTK6752) Currently running Kitkat 4.4.4. The rom I would like to port is the P6000 Android Lollipop port. Same cpu. Any advice or help would be appreciated. Thanks.
[Android General] Rohan Taneja:
Sorry wasn't using XDA much

Buddy you can get it from device with same specs. :)

Which rom? Custom UI? Make proper ramdisk patch and add *power bins and libs from stock.

Storage can only be fixed through fstab in such case.

And for camera compare camera lines from of stock n port drivers and also add libcameracustom.so from stock.

Check whether port rom doesn't have any issues. Or try re-porting it by replacing basic libs like for audio and camera.

Tbh we MTK users got a great way to boot Lp somehow. You should check out whether Kernel version is same for both. :)
[Android General] Dvalin21:
I'll have to try that with the kernel, however I still want to be able to create an update script. I would rather flash it with custom recovery.
[Android General] REAL6:
Nice. Now if someone could get Cyanogenmod 12.1 or any lollipop rom on the O+ 8.12 (MT6577), they would be a god!!!
[Android General] barberar:
With Emui 3.0 operations that you have done for that it comes into bootloop? I tried porting from mobile with the same processor (mtk6589) but goes bootloop.
[Android General] Dvalin21:
Actually that sounds pretty interesting, the EMUI 3.0, wonder how it would look on my 7inch Screen
[Android General] FLAmbuRNE1:
I was wondering if aosp Lollipop could also be ported to our devices using this tutorial.:confused:
[Android General] Dvalin21:
Not sure on that one
[Android General] cutjo:
what a file is for Battery (Prozentage) ??? libbat.so Or ??????

my Phone has problems with korrekt schowing Battery% ! stucks at 80 or 65% and wents down to zero!

Thx for help!
[Android General] FLAmbuRNE1:
Additional info...

Thanks for the reply. I tried it anyway aaaand , it didn't work(Guess you were right...) :(

Went ahead and found another guide. I was able to port CyanogenMod 11 with no problems by following it. If you want you could go have a look at this thread

http://xdaforums.com/showthread.php?t=2707438

Good luck :good:
[Android General] Dvalin21:
I appreciate it. I've been trying to port a few things myself, but failed. I keep getting a failed set_perm change error. I feel like I'm so close but yet so far away
[Android General] FLAmbuRNE1:
It might be related to your recovery. I used to get those repeatedly but once I upgraded my recovery, they seem to have vanished...

BTW lollipop porting is also possible using above guide (although there are a LOT of bugs)...;)
[Android General] Dvalin21:
Thanks, I'll try and see if I can get the author to update the recovery. Also, my phone is a MTK8752 CPU, will this port still work? I havent seen a lot

of people posting ports for the 64bit phones
[Android General] FLAmbuRNE1:
I don't know much about mtk 8752 as I have MT6582 (It is my first mediatek device).

But if you really want to port this is the best guide out there, but like you've probably heard everywhere TAKE A BACKUP FIRST... and then and ONLY THEN give it a shot using the guide. (Believe me I've learnt that lesson the hard way)

And about following the guide, out of all the steps in in it, the only ones I did was replace stock kernel and libcameracustom.so 'cause my stock ROM didn't have any other files listed there. (And strangely enough, it booted.)

Oh, and one more thing. Try to port from same SoC if possible. If you don't get ROM for same SoC, go ahead and port it using above guide. If it doesn't boot, try this one:

http://xdaforums.com/android/development/guide-mtk-cross-platform-chipset-rom-t2925242

NOTE: I haven't personally tried it but it came up earlier when I didn't have ROMs for my phone. Give it a go using the new guide if the old one doesn't work for you.;)

Once again, TAKE A NANDROID BACKUP and happy flashing:good::good:
[Android General] zechsmerquise:
This post is very informative, though I can't try to port some custom rom in my phone (Lenovo Vibe X2) running MT6595M since I can't find custom rom with the same specs
[Android General] DarkHeart Z:
Bro I have found cm 12.1 rom for mt6572 and my phone is also mt6572 . How can I port it ? I have learnt a lot about firmware porting . If you just point me to the right directions maybe I can port it for my device . I have checked the whole rom found few bugs which need to fixed . But I need more help . if you can give me some pointers that will really be helpful :)
[Android General] Rohan Taneja:
Porting CM12.1 based MTK65xx rom is pretty simple. First of all you need 3.4.67 kernel i.e. on Kitkat 4.4.x ROM of the device.

Now Proceeding,

1. Patching boot.img

Unpack both stock boot.img and cm12.1 boot.img.

Copy kernel from stock boot.img to cm12.1 boot.img

Repack the cm12.1 boot.img

2. Patching System folder

a. in etc/firmware from stock to cm12.1

b. in lib/

lib/egl (full folder)

libaudio.primary.default.so

libcameracustom.so

libEGL.so

libMali.so

c. build.prop - change dpi value to your desired. note: for 720*1280 = 320 ; 480*854 or 540*960 = 240 ; 1080*1920 = 480.

Good Luck!

Cheers.

Hit the THANKS button if it worked.
[Android General] DarkHeart Z:
will these method will work for jellybean based devices ? the rom is already previously ported for another mt6572 device . And mine is same soc . One more help please . I am trying to port the latest cwm recovery for my phone (mt6572) . Now question is which folder and file are important when porting a custom recovery ? all files under sbin needs to be replaced too ? and which rc file is recommended ? I want to make it perfectly working for my device but need to make it smaller that's why I am asking . :)
[Android General] Mirsaneli:
Please help, my friends. This porting guide has been the best for me. Every ROM that I ported worked like a charm. Yesterday I ported the Colossus S5 ROM for my MTK6589 ROM from this thread: http://xdaforums.com/micromax-a116/development/s5-rom-colossus-s5-theme-rom-v5-0-1006-t2999766

Again, it booted up normally, but there is a major problem: when I open the Phone app I get a force close message: "Unfortunately, Contacts has stopped." Also, when I open Messaging, it works, but when I press the button to write a new message I get a force close: "Unfortunately, Contacts has stopped."

I also noticed that the phone is mixing Sim slots. My phone is Single Sim and this is Dual Sim ROM. After force close, I get a message: New SIM card detected. I would appreciate anyones help, cause that is an awesome ROM with a lot of functions.
[Android General] kannanrs:
Hi Rohan,

any way of getting a lollipop or cm12 plus for canvas4..... lollipop is the dream for this device..... we are nowhere close to porting one...

the kernel is the great issue with no source or any working kernel for this device.....

Any Help in this Regard, please....

Greetings
[Android General] alexche77:
Is it possible to port any MT6582 to MT6582 device? Because I'm thinking about using some Android One roms for my blu energy x plus.
[Android General] mohammad.nomaan:
Cm12.1 ROMs r available for mt6582 on mtkroms.com

Check there to port
[Android General] SimsDhillon:
Can i port mtk6753 bluboo xtouch 5.1 stock rom to my coolpad note 3 mtk6753 5.1?
[Android General] barberar:
Normally it is possible,the starting point must be a working stock and the ROM which to port must have the same version of Android.
[Android General] alexche77:
Yes i do have a base rom.

Will try.
[Android General] uttarayan21:
Sdcard was mounted but was not writable in MIUI 7. I replaced init.ssd.rc from stock bootimg rmdisk and it worked but the sdcard is mounted as internal !!
[Android General] OLderDan:
Look in the file for the sdcard mount point and change it to the port rom mount point?
[Android General] Huncriter:
it works on mt6580 ?
[Android General] AlanMercus:
Hi Rohan i followed your guide and ported rom to my MT6753

im facings some bugs cane you help me in fixing those :

Settings-->Security Giving Fcs :(

low audio compared to stock rom

and camera problem

please can you help
[Android General] LoveKiller007:
awesome, it worked
[Android General] Razihaider:
Hy I have ported my aosp 5.0.2 to cm 12.1 but : I am stuck on Android Is Starting :
[Android General] Rohan Taneja:
AOSP 5.0.2 is based on 3.10.54 meanwhile CM-12.1 is mainly available for 3.4.67 based currently. :)

Also this issue is mainly related to vold/sdcard binary + storage in framework-res (storage-list) and in ramdisk init.ssd or other storage related *.rcs and fstab :angel:
[Android General] Razihaider:
Hey Have you Any cm13 rom or do u know about any cm13 rom with kernel 3.10.54 mediatek6582
[Android General] brabagul:
Hi bro rohan, i have MT6592 with 5.1 Lollipop firmware 3.10.72 kernel. i also found out that MT6580 has same android version and kernel version. do you know how to cross-port it?
[Android General] fast9000:
how do I port a rom for mt6581? I can't find any roms compatible for it either
[Android General] mohammad.nomaan:
Roms are available to be ported. Many CM13 ROMs are available for mt6592 and 6582

Go to mtkroms.com and port any ROM u like

I'm on RR ROM 6.0.1 for my MT6592 device
[Android General] goldchang:
Awesome for completeness

Currently having many MTK chipsets
[Android General] Numbskull8008:
How to fix battery drain

Rom: rr remix 5.7.0
[Android General] antariksh:
Trying to port

[6.0.1][STABLE] Resurrection Remix 5.7.1 For MT6592 - GPS Working

from mtkroms on iBerry Auxus Note 5.5

But Internal Storage is not detecting. The one that detects is storage/emulated/0 , which is a fake/clone and doesnt save anything.

Tried replacing vold and sdcard from bin and editing storage_list.xml but no luck.

Google has created all the storage work from fstab and init into "vold" and vold from Port rom is for emulated storage.

On lollipop it worked with mounting sdcard0 as internal in "fstab" and using mkdir, symlink and fuse commands in init.rc but on Marshmallow it doesnt work.

ANY ADVICE? Please help.

P.S: How to contact Ajit Guraya?
[Android General] dj_tanjid:
Need Help Porting on MTK6580

Can I Use this Method for My ASUS ZenFone Go Z00VD With MTK6580??? ANy Suggestion???
[Android General] :
I am stuck at the logo screen when booting. no boot animation. Any fixes?
[Android General] Mysteryagr:
#help

Hi guys, I'm cross porting EMUI from chipset mt6582 to mt6580, and I'm stuck.

Port from: Huawei Y5II 3G - CUN-29

To: Infinix Hot 2

Anybody knows how to fix Android bootloop due to audio?

----------

Logcat shows the following:

AudioPolicyService not published, waiting...

AudioFilger not published, waiting...

Waiting for service media.audio_policy...

Waiting for service media.audio_flinger...

Also those errors apperas in logcat:

HWDrmDialogsService errorListener = com.android.server.HWDrmDialogsService$1@a8955be

Error processing intial volume state: volume == null

----------

Android version: 5.1

Kernel version: 3.10.72

Thanks in advance

Full log:

http://xdaforums.com/attachment.php?attachmentid=3926437&d=1478296595
[Android General] excelly2k1:
Mic not accessible by apps except native dialer in Lenovo K3 Note AOSP 7.1 Nougat ROM

[MENTION=5138268]Rohan Taneja[/MENTION]

Which modifications to be carried out to make the things done.

Thanks in advance.
[Android General] zenowaren:
Edit
[Android General] M.A.P:
Can we port the rom of the device which is having 5.5 inch to my 5 inch device?
[Android General] KevMetal:
i keep getting error in twrp when trying to flash my ported rom..... meta/ inf / amdroid bla bla update binary not found but my zip contains the meta inf folder and the updater script and updater binary are both inside . how can i fix this ?
[Android General] KevMetal:
well i discovered the answer myself . don't extract the meta folder . i can install but I'm stuck on boot . will try again today .
[Android General] KevMetal:
Anyone interested in porting for ulefone metal with me ...

https://xdaforums.com/android/development/ulefone-metal-super-guide-rom-collection-t3549089
[Android General] Bilal Bhai:
Yelp !

i got stucked at ''andrpid is starting apps'' , and when i reboot the rom gets stuck at the logo , e.g blue mashmallow of cyanogenmod . any one ? help
[Android General] samrattt:
how to fix fingerprint not working??I have ported miui rom for my mt6735 64 bit mm6.0 device.the kernel version is 3.18.19.plz help...

TIA