yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] voetbalremco:
You don't have it?!

We, in the netherlands(our dutch forum), everyone gets a force close on their phone when you receive an SMS; doesn't matter on wich ROM.

Using 1 or 2 sim cards doesn't make a difference. I am using 1 simcard aswell and also having the problem.

You press "OK" and you can read the SMS, but its quite annoying if you text a lot with your friends and get a force close everytime they send a SMS to you.

It even seems it is on other phones that use the mt6589 soc like the Zopo C2 or Jiayu G4 too.

But you don't have it at all?!
[Miscellaneous Android Development] Sambaaa:
That's awkard! :eek: Never heard anybody complaining about it in the mediatek section of our italian forum... The standard behaviour I'm getting when I receive an sms when phone is not locked is receiving a statusbar notification, then a pop up of the full message and then I can push on "view" without any fc. If the screen is off, it appears the standard green sms pop up and you can directly open sms app which will show the list of all conversations.

Everything seems fine to me!
[Miscellaneous Android Development] tmk2404:
Heh strage error. I do not have it in Poland also. Never seen such an error.
[Miscellaneous Android Development] voetbalremco:
Good to have your confirmation you don't have it.

Makes me thing its either a software-related problem inside the dutch translation of the sms app or a huge network bug in the netherlands wich causes this, but that seems unlikely as it is running android 4.2.1, and a lot of dutch people have it, with different providers.

So im diving into the sms app tomorrow, looking if I can fix it.
[Miscellaneous Android Development] Sambaaa:
Sms bugfix for Netherlands

Flash this zip, it should solve sms FC for people in Netherlands :)

Sms_fix_Netherlands.zip - 7.49 MB
[Miscellaneous Android Development] voetbalremco:
You are awsome!

Did you make it yourself?!

Where whas the problem??

I assume you don't mind if I share it on our Dutch forom with a HUGE credit to you? :laugh:
[Miscellaneous Android Development] Sambaaa:
Yeah of course :) I made it flashable to make it compatible with any rom they want to use.

I tried to put Dutch on my phone and experienced the FC you were talking so I got curious and found out 3-4 syntax mistakes in public.xml for your country (probably SMS app would have FC even in other situations, but I don't remember which fields were incorrect).
[Miscellaneous Android Development] voetbalremco:
oh well.

atleast it is fixed now, and I don't need to look into it anymore.

I shared it on our forum, explaining that we talked about development for the iOcean and I asked if you also had the FC problem, wich you replied you didn't have it, and thus you began searching for a fix, and found it!

its even confirmed to fix the problem on a Jiayu G3S!

as the firmware is almost the same for every mt6589 phone, this is a really helpfull fix for us, the dutch people that import chinese smartphones :)

especially for you, in your language:

(because you investigated the problem in the Dutch language)

grazie mille a nome mio e degli olandesi mt6589 utenti

Ps: used google translate, my italian isn't that good :)
[Miscellaneous Android Development] Sambaaa:
Ahaha your google transated italian is perfect though! :D

Yeah I guess that should fix dutch SMS FC for any mt6589 device with this issue.

PS at least I learned a bit of Dutch! :)
[Miscellaneous Android Development] baja.ja:
Not work USB FLASH DISC via OTG ?

Not for me. I use 3 usbflash, but no work. With previous rom no problem. What I do wrong ?
[Miscellaneous Android Development] Sambaaa:
What kind of error do you get? I just tested it with a USB pen drive on my Youth and it worked. Does it show any statusbar notification when you connect your USB devices?

Is the folder /mnt/usbotg/ empty when you connect your drive?
[Miscellaneous Android Development] baja.ja:
Now it working, sorry, bad OTG reduction. Thank you.
[Miscellaneous Android Development] tmk2404:
Sambaaa, I've noticed that WiFi has very poor signal. I have access point 2 rooms away and have signal about - 75 dB so it's not that bad, but connection speed is about 0.5 MB/s where on my brothers phone, Newman n1 which has mtk6577 speed can reach 20 MB/s. I have the same issue on other roms for iocean so the problem is drivers. Do u know how can I implement other, better drivers for WiFi? On my laptop or previous phone (Motorola defy) have also good connection speed about 20 MB/s. I need to be in the same room with distance about 4m to get full connection speed...
[Miscellaneous Android Development] Sambaaa:
;)

Yeah, they're exactly the same results I'm getting: 2 rooms away> -75dBm > 0.5 MB/s (unfortunately my adsl supports 0.8 MB/s as maximum download speed instead :rolleyes: ). Have you tried to test Newman N1 wifi signal where your Iocean gets -75 dBm? I'm telling you this because my opinion is that Iocean has quite low quality antennas (gps antenna especially is really a piece of crap) and that's the main reason we are facing problems with gps/not so good wifi signal/discrete phone signal. I've read around of hardware mods even for iocean wifi antenna which seems to improve signal quality (but who knows how may SAR vary with those mods...). I personally patched only gps antenna and got a good improvement even if it's still a bit too lazy.

Anyways, try to check what wifi signal does Newman gets with respect to Iocean. If they get almost the same, we may see if it can be improved handling drivers or stuff related. :fingers-crossed:
[Miscellaneous Android Development] MMarv:
Hi Sambaaa and thank you for sharing rom,

I have a quick question: How much is standby consumption in your rom?

I am worried about it because I saw a reveiew of iocean x7 telling that it consumes 1.5W standby! It is really too much. I also see in needrom.com that some developers have talked about standby consumption optimization.

Thank you in advance
[Miscellaneous Android Development] Sambaaa:
GPS optimization script

I have one little question for those who have a bit of experience with scripts/android shell commands. I'm trying to implement a script to optimize GPS connection times which would require to be able to:

Enable/disable GPS

Launch LocationEM.apk and start GPS syncying

I don't know how to carry out these actions through command line (is it possible?). I just know how to launch LocationEM.apk which is quite easy, any idea about the rest? [MENTION=4423611]voetbalremco[/MENTION] I'm counting on your contribution! :o

Of course I'll share the script (it is based on an italian iocean owner experiments), but now is still in alfa version and it can be just useless or harmful.

I sincerely haven't been able to test it in details because I've had to flash my phone or keep it connected to pc quite often in the last days. By the way I almost got the same good results with any rom I've tried so far; IMO MT6589 is really a great SoC for what concerns battery life. I almost never had battery problems in the last months, it can last at least one day of standard use, sometimes even more. I've never had particular problems of standby drain either, that mostly depends on which app you install on your phone. It can happen that some app prevents phone from going into deep sleep (as some Meteo Widget), but when nothing similar prevents the phone to go into deep sleep, the battery life is great for a 2000mAh-5" FHD screen.

If you're facing battery life problems I suggest you to check your app installed. You can use BetterBattery stats to check your battery usage in details and see whether some app is preventing your phone from deepsleeping.

You can even change wifi keep alive policy from always to never, it should help (Settings>Wifi>Advanced>Keep Wifi alive while asleep>Never).
[Miscellaneous Android Development] voetbalremco:
Oh well..:confused:

I already said I am using windows on my PC, so using scripts/android shell commands isn't kinda my part of developing...

Sadly I am not as experienced in coding/adb shell, just mounting, rebooting of setting permissions..

I have searched for it, but it seems like it isn't possible to do it.

Isn't there an alternative way to do it?!
[Miscellaneous Android Development] tmk2404:
By patching gps antenna you meant something like that? I never had gps problems, I got fix in less then 30sec with data on. I only did this tutorial and of course apply proper gps.conf. Is gps antenna connected some how with the wifi antenna?

Ok, I got my little wifi test comparing iocean with newman n1. In my room ( 2 room away from access point) got signal about -75dbm and connection speed aproximately 0,5mb/s while newman has about -67dbm and speed about 2mb/s. I went to another room (one room away from ap) and suprisingly both phones had signal about -58 dbm, but iocean has very different results, it's download speed is very vulnerable but got about 2mb/s. newman on the other hand got more stable signal with speed conection around 5-6mb/s. Newman signal is much more stable as I have seen. In conclusion you can take a look on switching the drivers from newman to iocean and see how it goes. ;)

-edit-

I don't know if it helps but ours iocean has mt6628 wifi chip. I checked and got 1.8 fw version while HERE is wifi drivers for mt6628 with fw version of 2.0.1.1.
[Miscellaneous Android Development] Sambaaa:
Thank you for looking for it anyways! :)

Basically an italian user from androidiani.com (papao) found out that deleting manually three system files related to gps increases connection speed to gps satellites (as far as the phone has an internet connection) because those gps data get old quite fast (a couple of hours) and the phone seems to update them too rarely producing an increase in gps connection times with respect to when they've just been downloaded.

The idea of the script is to automatize this gps data update deleting those three gps files each X hours (let's say 3-5h) only if an internet connection is available in that moment so that they can be restored. This way, the next time the user launches gps, the phone would be forced to download new fresh data.

This is what the script does so far, but it's not enough because it just checks for an internet connection, deletes data even if the user is not going to download new data in that moment, but maybe in another one when no internet connection is available. That's why it would be good to have a command which downlads new data just after deleting the old ones (so that the user has always working gps data to use and a good gps fix).

This can be done manually launching LocationEM, enabling gps and scanning satellites. If this cannot be done through command line (this script would almost act as an android virus), it would be necessary to undestand what does that apk really do when I enable gps and scan satellites (how are those gps files created?) and do the same through command line. I tried to do this reading a bit of the smali code behind LocationEM.apk but I sincerely couldn't get it (smali code is quite cryptic, I don't even know java :rolleyes:). Probably for some app developer all this would be a really easy task, but I'm definetely not...

Anyways, right now I'm using the script as it is just to test it and see whether I really get an improvement.

If you want to take a look, check this link.

Yeah I patched my antenna trying many different mods, that in the video included! I'm able to get a quite fast fix, the problem is that it has a too low precision in movement sometimes, so it's quite difficult for me to use it.

Great work, well done! It's very interesting, but I've never done anything similar before, but we are an Iocean developing team, right? ;)

Talking about Newmann, does it mount the same wifi chip as Iocean? I'm afraid it has a completely different motherboard and chips and this makes its driver unusable for us I think. :(

For what concerns mt6628 drivers, I'm absolutely not an expert, but that file doesn't seem somehow usable. The real core of the wifi driver is missing (do you know where to find it?). Anyways that idea may be useful in the next weeks/months if some company releases missing parts of kernel source code! :o

Let me know if I was wrong, I'm quite new to this stuff, I've too much too learn still!
[Miscellaneous Android Development] vo-1:
No. No NVRAM error in stock rom. Your zip fix nvram error until wipe data or change rom.

Real way to fix it i made here. sorry for russian
[Miscellaneous Android Development] Sambaaa:
Hi, thank you for sharing! I'll try to follow that guide too. Unfortunately it seems to require a few operations from the user as far as I can tell, so it wouldn't be easy to implement it inside a custom ROM.

Anyways you're right, that fix is only rom related and disappears as you format /data folder. For what concerns nvram warning 0x04, I've found it in any stock rom and in many custom ROMs, you just need to scan wifi networks with "Wifi Analyzer" app and you should see it :)
[Miscellaneous Android Development] vo-1:
i do as i show it my last post and i have no nvram error any more! i flashed lewa rom, miui rom and haven't nvram error. i can show you how fix it forever. just 30 minutes and your wish to fix! i'll do everything via ammyadmin.
[Miscellaneous Android Development] Sambaaa:
Oh thank you very very much! :D Don't worry I think I'll be able to follow the guide you posted, I'll ask you if I get problems (but it should be fine)! :highfive:

I'll start suggesting your guide to people who want to fix that issue permanently. The other procedure rom-related may be useful for those who are lazy and don't want to follow guides, but just flash roms! :)
[Miscellaneous Android Development] tmk2404:
Newman has mt6620 WiFi chip but I read somewhere that mt6628 has the same drivers as mt6620. Don't know if this is true. I have no idea coz I'm not a Dev. :( I hope that oppo's r819 will help to improve our phones because oppo is quite valued brand and will release this phone with refined software so that we can use it ;)

Can you send me tutorials how to improve wifi antenna? In some free time maybe I will try some mods.
[Miscellaneous Android Development] Sambaaa:
I sincerely don't know if they are compatible, I don't think they are :(

Anyways I've finally been able to compile kernel source code for mt6589 so there's hope for us to make our hardware work better modding its kernel. :)

For what concerns hardware mods, I've never tested wifi hardware patch (only gps), but you can find it at the end of this video, you may give it a try.

https://www.youtube.com/watch?v=ynqKhRSqVpM&feature=youtube_gdata_player
[Miscellaneous Android Development] tmk2404:
That's good news.

I tried 3 times and it doesn't work at all ;)
[Miscellaneous Android Development] eliot_11:
The Patch to swap sdcard0 and sdcard1 in order to mount your external sd card as internal sd works in elite? Thanks
[Miscellaneous Android Development] Sambaaa:
Yes, it works on Elite too. By default the last rom released mounts ext-sd as sdcard0, if you want ext-sd to be mounted as sdcard1 flash mounting fix for Elite. If you want to revert back to original configuration (ext-sd as sdcard0) flash the previows mounting fix I've released for Youth.
[Miscellaneous Android Development] voetbalremco:
I suppose it only changes the void.stab, located in system/etc values?

Quite easy to swap:

Sdcard0=3763&7764&77

Sdcard1=476744774%;5

Then just swap the values

Can be done with a root file browser.
[Miscellaneous Android Development] Sambaaa:
Yeah of course it could be done manually changing values inside vold.fstab. I usually prepare flashable zips to make user's life easier :)
[Miscellaneous Android Development] netvpn7:
Hi

I have youth version and mobile data connection is very slow? Even on WiFi .. How to fix please.. I have no nvram issues so don't think need to install patch.
[Miscellaneous Android Development] Sambaaa:
Hi, what rom are you using right now? Do you have these issues with any rom? Is wifi speed slow even when you're next to the router?
[Miscellaneous Android Development] tmk2404:
Sambaaa, if you didn't see this yet, sony has released full kernel for S39h here. Hope yr roms will be even better :)
[Miscellaneous Android Development] Sambaaa:
Hi, thank you for reporting! I already downloded that kernel sources a few days ago and compiled them. I buildt some zImages using different configurations, but none of them boots on Iocean (bootloop). Maybe they would work on Sony, I'm not sure.

It seems that Sony kernel cannot be used as it is to build working kernels on Iocean and it may require some specific sources from iocean itself or maybe find out the right kernel config to make it boot. Those kernel sources can be compiled, but may (not sure about it) miss some important files to make them usable.

For what concerns rom building (CyanogenMod, AOKP and so on) it doesn't seem something that can be easily done without proper framework sources (not included), but I haven't tried yet.

Anyways it's still a work in progress which involves the whole mediatek community. We'll see!
[Miscellaneous Android Development] netvpn7:
Hi

I am using version 3. Sometimes I have to disable WiFi as I feel mobile data connection is faster, also seen notifications of wifi lost data connectivity sitting in front of router.
[Miscellaneous Android Development] Sambaaa:
You may try to flash this rom again or flash back iocean stock rom. Don't think it's rom related because this one doesn't differ from stock for what concerns WiFi modules and configuration. The only difference in WiFi is nvram patch, but it hasn't created any problem to other users.
[Miscellaneous Android Development] tmk2404:
Have an idea for your future rom ;) Maybe you could try to include theme chooser from cm roms?
[Miscellaneous Android Development] voetbalremco:
Ain't gonna work as it needs cyanogenmod framework.

An alternative is available: there's a theme engine wich uses the xposed framework mod.
[Miscellaneous Android Development] tmk2404:
Ok, I see. Thank's for the tip!
[Miscellaneous Android Development] Sambaaa:
Yeah, theme chooser is a cm feature that wouldn't work on stock roms and voetbalremco already explained the reason. That's one of the reason why I put in standby the stock rom repack I was working on and preferred to focus on building something (whatever may boot) from source. Unfortunately sources doesn't seem complete enough to build a working rom, we'll see.

Anyways, coming back to stock rom theming, theme chooser wouldn't work as it is, but there are other procedures to let the user customize stock rom interface very similar to theme chooser, I'll give it a look if I'll decide to restart the work on stock rom repacks.

Ps thank you for your suggestion ;)
[Miscellaneous Android Development] jaw2floor:
just installed elite final and it works fine so far. do i still need to flash the patch?
[Miscellaneous Android Development] Sambaaa:
The patch is not a mandatory fix, it reverts the way sdcard get mounted, it depends on what do you prefer (without patch ext-sd as sdcard0, internal sdcard as sdcard1, with patch it's the opposite).
[Miscellaneous Android Development] TiTAN-O-One:
Hey Sambaa! U might wanna edit the OP a lil' bit just to help you out ;)

*In Recovery Mode*

Go to Mounts and Storage

Wipe Data

Wipe System

Wipe Cache

Wipe Dalvik Cache

Flash ROM etc

This is called Pristine installation. Ur device would be more stable and snappier. If you are the kind of person who like to switch many ROMS, you get the FULL experience here! :)

Right now unfortunately, i don't have this device but I'm getting it soon End of Year. :(

Hope this tip helps you guys :D
[Miscellaneous Android Development] Sambaaa:
Hi, thank you for sharing your experience :) I usually wipe system only when the updater script loads scripts in system folder before wiping /system itself (as the ones related to gapps restore). This rom directly format /system and /data at the beginning of the installation script so I found it redundant wiping system two times in this situation. Do you think it would help?

Some people even wipe /sdcard when performing a pristine installation but I almost never did this (really too much hassle...).

Anyways I can add your tip to the installation guide (now I'm from mobile, later), of course it can't hurt! ;)
[Miscellaneous Android Development] TiTAN-O-One:
Thnks for taking your time to read this. Actually, wiping the /sdcard would abit helpful as certain leftover files may interfere with the system perfomance or what I've been told. :rolleyes:

---------- Post added at 06:37 PM ---------- Previous post was at 06:34 PM ----------

Here's the exact link for Pristine ;)

http://xdaforums.com/showthread.php?t=2044861
[Miscellaneous Android Development] da_fix:
Data bug - Elite Version

Hi, I installed your rom on Elite version, it works fine and is very cool thank you :D !

However i have troubles with data connection :( indeed in some places it appears that network is not working (even "H+" is indicated in my status bar ..) .
[Miscellaneous Android Development] Sambaaa:
Mmh have you checked if you have Data Connection enabled in those situations (push statusbar quick options down to quickly check)? Check if you have network mode set to 2G+3G too. Sometimes I accidentally swith some of them off....

If that's not the reason, you may try to flash this, but I'm not particularly confident it may help, just give it a try:

http://db.tt/qESIpjuj

Otherwise you may check in engineering menu whether all needed frequency are enabled. Let me know how it goes.

In these days I've heard this kind of issues quite often on different roms (stock or customs), that's strange...
[Miscellaneous Android Development] koolbrader:
Hey man, I've just flashed your rom today and I'm lovin' it! You're wicked sick dude!!

I've been messing with all the configurations the whole day and I'm happy with my device now. All the software issues I had when I first got the phone is now gone! I do however have 1 issue with your rom, I cant access the notification bar from the lockscreen. Is it possible for me to adjust that coz I usually jz check out the messages on my notification bar and only unlock my phone if I need to reply. Not really a big issue but would love it if you have a solution for me.

About the battery, I know you said that you don't know if it helps the battery well I tried to do a battery test today but it turns out that my gps was stuck on even when i've turned it off and threw off my test run. So I've restarted the phone (to remove the gps stuck bug) and am now charging the phone. I'll test out the battery tomorrow and let's hope it'll run twice as long :silly: . I'll update my results here later :D
[Miscellaneous Android Development] Sambaaa:
Hi! I sincerely don't know exactly how to enable access to status bar notifications while in lock screen. I'll need to look around to see whether I can enable that for you (actually I'd find it useful, but I need to find a way to do it...). I made a few tests with no results untill now. :rolleyes:

For what concerns battery I'll wait your tests, usually it's some app's fault which keeps on running in background.
[Miscellaneous Android Development] tmk2404:
Yea mine battery drain is also too big. I tried to install CPU spy, CPU spy plus, CPU spy reborn and none of them worked.. It shows that there is no states files and tells me to contact the Dev about it, so here I am. ;)

-edit-

Ok, so I've installed wakelock detector and it shows that most of the time phone is in deep sleep. Nevertheless when I had Samsung JLrom battery drain was much smaller. In the end of not heavy used day I have about 70% battery left. On this Rom with similar usage I got 30 of less %.