yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] vizhigal:
If you get the below errors

I/6620_launcher( 115): set property(persist.mtk.wcn.combo.chipid) to 0xffffffff succeed.

I/6620_launcher( 115): chipIdProp:key(persist.mtk.wcn.combo.chipid)value(0xffffffff)

I/6620_launcher( 115): chiId:0xffffffff

I/6620_launcher( 115): invalid chip, check again

Please change the port rom 6620_launcher with that of D1 system/bin/ 6620_launcher and see.

Attached powergrep search results (.jpg in zip format ) for the word persist.mtk.wcn.combo.chipid .

This search i made in the E3 -JB4.2.2 libraries...
[Miscellaneous Android Development] RickyGoldsmith:
[MENTION=3082969]vizhigal[/MENTION]

You made me day. Replacing the binary brought back wifi. Thank you. :laugh::laugh::laugh::laugh:
[Miscellaneous Android Development] vizhigal:
Just tried. Iq446 miui rom....booted. but. .. Why systemui is force closing continuously ? and camera application also force closing and could not check further...both camera drivers are loaded with out any problem..
[Miscellaneous Android Development] RickyGoldsmith:
The problem is the in-framework softkeys that MIUI provides. If you set the hw.mainkeys to 0, telling MIUI to enable softkeys, it crashes. My guess is that [MENTION=5335657]stas2z[/MENTION] has fiddled with the system framework apks for his device, which may have real hw keys. Perhaps he can comment on it.
[Miscellaneous Android Development] RickyGoldsmith:
So you can overcome it by disabling it. I used UDN which intends to do the job. But here, on my ROM, it has some issues. See attached screenshot
[Miscellaneous Android Development] RickyGoldsmith:
And for the other point, I'm delighted to share that the camera is working awesome. Both front and rear, still and video. :cowboy::cowboy::cowboy::cowboy:

I can't wait to share the ROM as soon as I fix the navkey issues.
[Miscellaneous Android Development] vizhigal:
The navigational keys can be enabled by changing the below lines in framework-res.apk /res/values/bools.xml

<bool name="config_showNavigationBar">false</bool> to <bool name="config_showNavigationBar">true</bool>.

But in this rom it is already changed !!!....

I tried the GMD auto keys but it is not working due to the reason you have said....
[Miscellaneous Android Development] vizhigal:
[MENTION=244033]ricky[/MENTION]

Just a thought ,

i have not seen the build.prop for "qemu.hw.mainkeys=1" ,be cause navibar is enabled in framework..

Since navigation bar is enabled in framework-res.apk , "qemu.hw.mainkeys=1" could have worked for not showing the navigational bar.....

Just delete the "qemu.hw.mainkeys=1" from build.prop and see.... it should work ...

checked your Your last MIUI port rom , framework-res.apk

navigation bar is not enabled ( <bool name="config_showNavigationBar">false</bool> ) and in your build .prop qemu.hw.mainkeys=0 is there ...
[Miscellaneous Android Development] RickyGoldsmith:
I don't think that should be the case. The defaults are set in the apks. But those are supposed to be overridden, as needed, by using the build.prop settings.
[Miscellaneous Android Development] RickyGoldsmith:
I think the main problem lies in here:

Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension

If you look at the Height and Width request it is making, it is odd.
[Miscellaneous Android Development] RickyGoldsmith:
[MENTION=3082969]vizhigal[/MENTION]

BTW, I still tried your suggestion of knocking off mainkeys. But it still crashed. Perhaps if you have time you could diff the framework from .15 and .27 and see the changes. The framework from .15 works with the mainkeys settings.
[Miscellaneous Android Development] RickyGoldsmith:
[MENTION=3082969]vizhigal[/MENTION] I got the workaround, UDN, working. So this isn't a high priority any more.

Once installed, user needs to ensure that this app has the highlighted setting enabled.
[Miscellaneous Android Development] vizhigal:
Hope you have sorted out everything..
[Miscellaneous Android Development] RickyGoldsmith:
Yes. Almost. The only pending item is bluetooth.

For bluetooth too, I get the following error message:

D/[BT] ( 142): bt_get_combo_id: Get combo chip id retry 10
D/[BT] ( 142): bt_get_combo_id: Get combo chip id fails!
E/[BT] ( 142): mtk: Unknown combo chip id
D/MTKBT ( 142): UART_Init : [BT] - mtk_bt_enable: ret=-1
I/BluetoothService.cpp( 446): [GAP] MSG_ID_BT_POWERON_CNF: result=0
E/BluetoothService.cpp( 446): [GAP] btmtk_gap_power_on failed
E/BluetoothAdapterStateMachine( 446): failed to prepare bluetooth, abort turning on
D/BluetoothAdapterStateMachine( 446): Bluetooth state 11 -> 10
W/ApplicationContext( 446): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1118 android.server.BluetoothAdapterStateMachine.broadcastState:814 android.server.BluetoothAdapterStateMachine.access$900:77
V/ActivityManager( 446): Broadcast: Intent { act=android.bluetooth.adapter.action.STATE_CHANGED flg=0x8000010 (has extras) } ordered=false userid=0
D/BluetoothAdapterStateMachine( 446): Enter PowerOff: 1
D/BluetoothProfileManagerService( 446): [BT][profile manager]action:android.bluetooth.adapter.action.STATE_CHANGED

I haven't looked much. If you have any advise, please do share.
[Miscellaneous Android Development] abhilaab:
expert gionee Gpad_G2 clockwork cwm 5.8.2.0 how lnstall
[Miscellaneous Android Development] debasish497:
Please check the first page of this thread... however most of MTK chipset has the same process
[Miscellaneous Android Development] vizhigal:
mtk_bt_enable refers to system\lib\libbluetoothdrv.so in JB4.2.1.

Unknown combo chip id & bt_get_combo_id refers to system\lib\libbluetooth_mtk.so and system\lib\libbluetoothdrv.so & system\lib\libft.so

I used to replace port rom libbluetooth_mtk.so and libbluetoothem_mtk.so with that of D1 .to make BT working...

You may try...
[Miscellaneous Android Development] vizhigal:
3.9.27 navigation keys are changed to floating one by mipop.apk ....you can refer here for the apk ..http://xdaforums.com/showpost.php?p=46131610&postcount=1

check here also http://xiaomi.eu/community/threads/any-way-to-change-the-floting-buttons-on-3-9-27-update.22257/ ..

check here also http://xiaomi.eu/community/threads/3-9-27.22235/page-2#post-181587 for getting navigation bar
[Miscellaneous Android Development] RickyGoldsmith:
Thanks [MENTION=3082969]vizhigal[/MENTION].

With that, I think almost everything is working. Perhaps when I get out, I will check the GPS locking and Navigation related features. I'm already using it now.
[Miscellaneous Android Development] RickyGoldsmith:
And the GPS works perfect.
[Miscellaneous Android Development] vizhigal:
When you will go public....user reviews are better...
[Miscellaneous Android Development] RickyGoldsmith:
Uploading now. :laugh::laugh::laugh::laugh::laugh:
[Miscellaneous Android Development] RickyGoldsmith:
ROM link has been added to the main page. Enjoy!!!
[Miscellaneous Android Development] stas2z:
bootloop @iq444 quattro

hope [MENTION=3082969]vizhigal[/MENTION] will check it soon with logcat cuz i don't have the phone :)

Upd

Succesfully started :)
[Miscellaneous Android Development] amirfida:
hey dude i have ported this rom to my device my audio and camera is not working can you help me in that i have tried to replace the camera and audio files in lib folder but then it stays stuck at splash screen of my manufacturer
[Miscellaneous Android Development] vizhigal:
[MENTION=244033]ricky[/MENTION]

If possible can you change "Download patch from here" to anything refers to update 3.10.4 ....

This patch was not understood by our Russian friends... i have posted your rom link in 4pda.ru , after my post....where stas2z is helping others....

http://4pda.ru/forum/index.php?s=&showtopic=468932&view=findpost&p=25811405 , most of them can not post in this thread readily...
[Miscellaneous Android Development] RickyGoldsmith:
Not Working really does not help. The symptoms you mention are typically of the system libraries crashing. You need to check which library is crashing and why. In this thread, users [MENTION=3082969]vizhigal[/MENTION] [MENTION=5277821]debasish497[/MENTION]) have posted multiple times on how you can do that. Once you find the offending module, you can use the tools to determine the cause. Usually it is a missing symbol in the library.

[MENTION=3082969]vizhigal[/MENTION] Updated the text.
[Miscellaneous Android Development] Ganesh Kumar:
@ RickyGoldsmith, thanks for your rom but bootloop !!! please advice how to flash.
[Miscellaneous Android Development] debasish497:
Did you take the backup??

How did you flash? did you flash both sequentially or only the ROM without the patch?
[Miscellaneous Android Development] DreamD1:
I too faced the same issue at first.

Try flashing both zips & after that try factory reset.

After finishing start phone.

Running now.

Currently not able to install from market.

Market is opening, but not downloading.

Will try to do a factory reset and see.

Also is AP2SD there?

Thanks to [MENTION=244033]ricky[/MENTION], [MENTION=5335657]stas2z[/MENTION] [MENTION=3082969]vizhigal[/MENTION]
[Miscellaneous Android Development] stas2z:
if yr download shows "waiting for wifi" - just go to the Security folder (@desktop) -> Downloads and continue yr download, after it tap options softkey, select settings and ajust the limit

miui doesn't support app2sd natively, but several apps like titanium backup or go taskmanager ex can transfer apps 2 sd (i fixed miui launcher bug with sd moved apps so u can transfer apps flawlessly)
[Miscellaneous Android Development] Ganesh Kumar:
Thanks for beautiful rom...only some bugs.

Please advice how to solve this below prob.

Home & back key is not there how to get that.

while switching to front camera showing not able to open.

Network is there but always showing emergency calling only, there is no issue in incoming & outgoing cal.
[Miscellaneous Android Development] amirfida:
Thanks for the reply, okay then seems like time to read the thread from beginning :)
[Miscellaneous Android Development] vizhigal:
For immediate reference read my post no 482 in this thread....you can upload your logcat as a text file to see any error ...
[Miscellaneous Android Development] amirfida:
hey thanks for that lol otherwise it would have taken me ages to find that ill do it right now :)
[Miscellaneous Android Development] debasish497:
how to do a hardware factory reset when getting bootloops?
[Miscellaneous Android Development] amirfida:
here i have attached logcat please check it and tell me what's wrong

[MENTION=3082969]vizhigal[/MENTION] i have read that post it was confusing for me kind of :/ so i have attached a logcat

Edit : umm i have read your post again [MENTION=3082969]vizhigal[/MENTION] it seems you have given some tools to check the libraries errors but i am on Ubuntu and those are for windows so my best bet would be that if you could check the log cat and tell me what's wrong and what's need to be fixed
[Miscellaneous Android Development] vizhigal:
The tools is for ubuntu only...and the powergrep is for windows..

---------- Post added at 02:41 PM ---------- Previous post was at 02:02 PM ----------

The logcat is not full and not known whether the camera main sensor and sub sensor is loaded or not..

The error details from the provided logcat is below

Error : Pline table refers to lib3a.so ,libfeatureio.so

Error : KDCAMERAHWIOC_X_SET_DRIVER refers to libcamdrv.so

Error : MTK_IOC_SMI_BWC_CONFIG refers to libbwc.so

Error : cpu_num_base refers to libperfservice.so

Error : checkDcf referes to libdrmmtkutil.so

Error : OMX.MTK.AUDIO.DECODER.VORBIS refers to libstagefright.so

Error ; dequeueBuffer_DEPRECATED refers to libgui.so & libui.so

This is made is made with the MIUI present rom library files...
[Miscellaneous Android Development] amirfida:
umm so you need full verbose output ? or is it something else
[Miscellaneous Android Development] vizhigal:
Full log cat is welcome...use the error messages to find out what it is refers to...use power grep ..some of the libraries patched are not a regular ones...is there any specific reason ? In my post I have attached power grep screen shots also..it will help you to use powergrep..
[Miscellaneous Android Development] amirfida:
okay ill attach a full log cat soon ... i don't know i haven't patched any because whenever i try to change a file for example audio or camera it just hangs at my manufacturer splash screen then, and umm i also tried to port Hongmi Rice MIUI to my mobile it worked and was smooth but then the sim was not working i tried to replace modem.img from other MIUI rom which i ported but it still didn't worked is there any specific reason that it's not picking up my sim and ill try to use those tools and ill post back if i have any success

Edit : here's the link to the full log couldn't attach it due to it's file size
[Miscellaneous Android Development] debasish497:
[MENTION=3082969]vizhigal[/MENTION] any way to get the nav keys back?... Otherwise I am not able to use this for daily purposes.

Any ways to revert the always on hardware keys to soft keys?
[Miscellaneous Android Development] vizhigal:
Usual navigational keys is enabled ....but the DPI need to be edited in framework-res.apk/res/values/dimens.xml

I could not open the framework-res.apk by apktool .Showing decompiling errors.

Add one more line again at the bottom of the build.prop .

163 persist.sys.ui.hw=true

164

165 qemu.hw.mainkeys=0
[Miscellaneous Android Development] vizhigal:
use this update.zip and see if not working we can ask Mr.Ricky to prepare a fresh one.
[Miscellaneous Android Development] debasish497:
Thanks [MENTION=3082969]vizhigal[/MENTION], for the effort but I cannot see the navigational keys even after flashing. [MENTION=3094817]RickyGoldsmith[/MENTION] can you help?
[Miscellaneous Android Development] vizhigal:
Y ou van édit buid.prop ans replace or change thé build.prop in both ROM and update 3.10.12 repack ans flash..
[Miscellaneous Android Development] debasish497:
[/QUOTE]

Thanks [MENTION=3082969]vizhigal[/MENTION] aka Srini. Did as you instructed and its fine and usable now. Updated to 3.10.13 but since then all my browsers turned displaying chinese. No Problem, the default browser is more than enough.
[Miscellaneous Android Development] RickyGoldsmith:
TWRP recovery has that option. So should CWM.

RTFM the first page for the soft keys details.

The camera issue shouldn't happen. Here, on my device, the cam is perfect. In case you do have the issue, i'd suspect your device to be a different revision of hardware.
[Miscellaneous Android Development] RickyGoldsmith:
[MENTION=3082969]vizhigal[/MENTION]

How is the overall ROM ? I haven't had any time to profile it. Let me know your views.
[Miscellaneous Android Development] debasish497:
Good ROM,..

Finally.
[Miscellaneous Android Development] vizhigal:
This morning only i flashed after getting a solution for navigation soft keys...still trying to edit frameres-work with out errors...no solution...many apktools with same recompiling errors... the DPI to be changed as below to get the D1 size.

<dimen name="navigation_bar_height">48.0dip</dimen>

<dimen name="navigation_bar_height_landscape">48.0dip</dimen>

<dimen name="navigation_bar_width">42.0dip</dimen>

Noticed one thing using AOSP keyboard is having non standard keyboard...trying xperia keyborad which is having customiztaion...

Can any one upload MIUIV5 working apk tool?
[Miscellaneous Android Development] RickyGoldsmith:
If you apply the patch I mentioned in the 1st post, the native soft keys will come back and work wonderfully. You do need to enable q.h.mainkeys=0 in the prop.

There is no need to fiddle around with the apks. The more you fiddle, the more you'll have trouble leveraging [MENTION=5335657]stas2z[/MENTION]'s weekly updates.
[Miscellaneous Android Development] amirfida:
[MENTION=3082969]vizhigal[/MENTION] have you seen the log cat ?

---------- Post added at 12:13 PM ---------- Previous post was at 12:11 PM ----------

[/COLOR [MENTION=3082969]vizhigal[/MENTION] have you seen the log cat ?
[Miscellaneous Android Development] RickyGoldsmith:
Permission Manager

The permission manager does not manage root privileges. To fix it we need the su binary from one of the native MIUI builds, preferably from the MIUI Red Rice Hongmi Build.

Can anybody, who has a good internet bandwidth, download the ROM and share only the su binary from it?
[Miscellaneous Android Development] amirfida:
ill do it :)
[Miscellaneous Android Development] Ganesh Kumar:
Thanks for your reply. I used your all version of MIUI roms, I purchased on April-2013. at that time there is no new hardware update for dream d1.

Only two prob i'm facing.

1. Front camera is not working showing unfortunately, Camera has stopped--- previously is worked with Gionee stock rom.

2. mobile is swithing off its own when its not in use.

I updated new version 13 mb file through update app . FYI

Thanks....
[Miscellaneous Android Development] amirfida:
[MENTION=3094817]RickyGoldsmith[/MENTION] here's the link enjoy :)
[Miscellaneous Android Development] RickyGoldsmith:
For you, I verified it again, right now. It works. I'm sorry I can't help much more. If it is the same hw, there's no reason not to work.
[Miscellaneous Android Development] RickyGoldsmith:
Thank you [MENTION=4174203]amirfida[/MENTION]. That got it working.
[Miscellaneous Android Development] amirfida:
you are welcome Ricky can you please do me a favour i have attached a logcat in my previous post please check it and help me to figure out the camera and sound problem

Thank You
[Miscellaneous Android Development] amirfida:
dude i am using my stock Rom libraries and my stock Rom is also 4.2.1 so i don't know now what's wrong and what about audio ?
[Miscellaneous Android Development] Ganesh Kumar:
It worked for me..thanks. now only prob is front camera. Sorry guys I do know how to solve this thats y i'm asking.
[Miscellaneous Android Development] amirfida:
[MENTION=3094817]RickyGoldsmith[/MENTION] i have one more problem i ported a rom from Hongmi Red Rice again audio and camera was not there but sim was also not working what could be the problem with sim ?
[Miscellaneous Android Development] RickyGoldsmith:
I have no idea. Without the hardware, it is hard to say...

BTW, are u using a 3g sim on it?

Hongmi is a phone designed for the Chinese market to only work with their network.

For the intl MKT, it is designed to do 2g only.
[Miscellaneous Android Development] RickyGoldsmith:
Battery Drain

How is the Battery Drain for others using the ROM ?

EDIT::: Sigh!!! Hadn't realized that my bluetooth was in broadcast mode. Perhaps that might have been the reason for the slightly high battery drain.
[Miscellaneous Android Development] amirfida:
it's the same chip MT6589 with 13 MP Camera and 5 MP front camera
[Miscellaneous Android Development] RickyGoldsmith:
Just the same chip doesn't solve all the mysteries.

The HAL on android is not so much abstracted as you would like to think. If u really want to do some porting, go through the slides I shared. It'd give u a good idea of the challenges.

I had asked u for the su binary from that ROM build because they are from the same architecture.
[Miscellaneous Android Development] amirfida:
well i have gone through the slides but from log cat couldn't you see the camera and audio problem ?
[Miscellaneous Android Development] debasish497:
Battery drain is a bit higher in this ROM.

I installed KS mobile doctor but it didn't help much.

However I found that there is an option of Power Settings under the battery in the main settings.

I tried 'Balance' settings,.. after which I have got some better result.
[Miscellaneous Android Development] DreamD1:
Updated to version 3.10.13 of about 0.12Mb through the about phone option.

Hope now camera is stable.

But quality is not equal to stock.

Also missing the Photosphere option available in Android 4.2

Are u guys finding any major visible changes than Android 4.1

Performance wise its consuming too much RAM and because of this gaming are not that much smooth.

May be while playing games we have to make settings to Performance instead of balance.
[Miscellaneous Android Development] debasish497:
In Addition to that, user Rana Islaam in our facebook group reported that-

- Changing the access points crashes the system UI.

- Apps autostart doesnt work properly.

- Scheduling Apps like Tasker and Network Monitor Pro are unusually working even if they show that they are up and running.

!- I tried testing the first one, but it didnt crash for me. I have updated mu software to 3.10.13 though.

!- Autostart does work for me since I have battery doctor which is autostarting.
[Miscellaneous Android Development] DreamD1:
I am using UDN, Automateit, Any do and all starts automatically after reboot.

So autostart work if u install it in phone memory.

Automateit is a tasker similar application & its works for me.

Changing access points doesn't crashes for me.

Hope he is still in 3.10.12

Updating to 3.10.13 solves all issues.
[Miscellaneous Android Development] vizhigal:
3.10.19 update ...http://miuirom.xiaomi.com/rom/u1495...446_stas2z_3.10.13_3.10.19_4127aec66d_4.2.zip.. getting update error with respect to assert(apply_patch_check("/system/app/NetworkAssistant.apk", "79b1e92f786a0215c2cf0d4c47f68aba25789bd0",...due to SHA1 mismatch..
[Miscellaneous Android Development] RickyGoldsmith:
Your download might be corrupted. Please try again.
[Miscellaneous Android Development] vizhigal:
Will do .....it was supposed to fail at framework-res.apk as I have increased the size of the navigation bar..but this apk is untouched...
[Miscellaneous Android Development] debasish497:
It's fine. What was there in the update?
[Miscellaneous Android Development] vizhigal:
There is patches for 21 applications 7 frame work patches..

Though it is a good rom to work with , it is cumbersome for me to keep my navi bar intact every week...Back to D1 stock rom...
[Miscellaneous Android Development] Ganesh Kumar:
I updated new version 3.10.19 but nav bar (Home & back keys) are gone, again I flashed with your build.prop zip file now keys are back but again its showing old version & asking to update?...my question is is mob is updated to new version or old???
[Miscellaneous Android Development] debasish497:
Just update the build.prop, so that the nav bar comes back.
[Miscellaneous Android Development] Ganesh Kumar:
How to do this?
[Miscellaneous Android Development] debasish497:
[MENTION=3082969]vizhigal[/MENTION] already posted that in this thread.. 2-3 pages before this page.
[Miscellaneous Android Development] RickyGoldsmith:
Perhaps this is something you could raise to MIUI as a feature request.
[Miscellaneous Android Development] vizhigal:
It is because of the build.prop version number was not changed to current version...you have updated to later version only..
[Miscellaneous Android Development] debasish497:
The 1080p video playing is terrible. Stops midway, retrying leads to restarts.
[Miscellaneous Android Development] vizhigal:
What is the use of the tweak added to the build.prop in the last "persist.sys.ui.hw=true" which is not in the D1...
[Miscellaneous Android Development] RickyGoldsmith:
That should mean all 2D System GUI rendering offloaded to the GPU.
[Miscellaneous Android Development] debasish497:
This tweak was used to fix the choppy or flickering touch responsiveness of the screen.

This will force the system to use GPU for rendering each 2D frame in applications. Since android uses frame by frame rendering of the screen normally, this will offload the rendering to GPU by a huge amount and will make the user experience smoother.

Few more regarding these hardware tweaks

1.debug.sf.hw=1

2.persist.sys.ui.hw=1

3.debug.performance.tuning=1

4.video.accelerate.hw=1

5.debug.egl.profiler=1

6.debug.egl.hw=1

7.debug.composition.type=gpu

Most of the Dev sites post ICS say that these doesn't work.