yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] vikrant82:
Ok Quick review! Gapps work! Gmail , Play store, Maps working. Google now compains that location services are off (even when everything related is on). Voice search doesn't work - Says to speak and next moment, says Sorry didnt get that.. Rooted and removed all Chinese stuff. Looking good.
[Miscellaneous Android Development] diquan2001:
Ok that does not sound so bad at all .Maybe you need to set the GPS manualy to your region .

It might be set on Vietnam region or something like that ..

Do tell more about this ROM .

Does youtube work ?
[Miscellaneous Android Development] vikrant82:
Yes youtube works, It even signed me in and shows my videos etc..

The only thing missing now is when I add my APN it says something like - "Apn list is not completed, Please wait and have a new try"..
[Miscellaneous Android Development] diquan2001:
What about the normal stuff like Whatsapp yahoo mail etc ??

Would you mind telling me how you installed this ROM ?

In steps in mean ?
[Miscellaneous Android Development] vikrant82:
Yup, I simple followed this: http://www.tinhte.vn/threads/up-rom-jelly-bean-cho-lenovo-k860-860i.2096225/
[Miscellaneous Android Development] diquan2001:
did you translate this to english ?

Did you only install the ROM or did you also do the ussd and CWM GAPPS seperate ??
[Miscellaneous Android Development] vikrant82:
Yes translated to English. For a change english is understandable. I did USSD as well as CWM and then Gapps. For some reason when I installed CWM it also installed the ROM again. As installing CWM brought all those chinese apps back.. It probably copied over everything from preload partition to data partition. But it didn't re-install the whole thing.

---------- Post added at 03:48 AM ---------- Previous post was at 03:30 AM ----------

Ok I managed to solve apn list problem, by replacing /data/data/com.android.providers.telephony/databases/telephony.db with a version from ICS ROM. I can attach that version here, if someone needs it.

Now only thing that's not known to be not working are Google Now's location card and speech recognition.
[Miscellaneous Android Development] diquan2001:
So am i correct in step 1 i should download de GAPPS zip and put it in the root directory of the phone before i start to flash the new ROM or after ??

And in the pictures i see the RAM is only 1GB is that correct ? What happens to the other 1Gb or Ram??
[Miscellaneous Android Development] vikrant82:
Copy into external SD card root. Flashing wont remove it.

The picture shows the ROM installed on a K860 which has 1GB unline K860i. Although this ROM is officially for K860i, but it works fine on a K860.
[Miscellaneous Android Development] diquan2001:
Thanks for your help vikrant82 im glad your taking the time to help me out .

Its apreciated
[Miscellaneous Android Development] fetta88:
Google geolocalization service

I guys! How can I set Google geolocalization in the stock rooted rom (last updste) on K860i? I have root and install gapps with a Chinese app but I can't install some apps in the store because it says that my phone isn't compatible! Help please!

Inviato dal mio Lenovo K860i con Tapatalk 2
[Miscellaneous Android Development] kiotu:
Sorry, here u go, mirror on dev-host http://d-h.st/AbM
[Miscellaneous Android Development] vladog8:
Thanks , nice ROM , only bug I found is that zooming in gallery don't work so god but its miner disadvantage.
[Miscellaneous Android Development] vikrant82:
I really like you ROM, Its complete de-bloated - the way it should be. However I have few doubts. Did you shrink the preload partition ? As generally I have been symlink(ing) my /system/apps apks to this partition, but with your rom this partition is just 10M or so.. If you shrunk it, which partition did you add this space to.?

And a doubt in general, if we cook a ROM a different system.img size, let's say 500m instead of 400m , so would flashing also recreate these partitions according to new img sizes ?

The only annoying bug I have is - I can't seem to have Battery usage stats. Earlier it was hidden from settings but you could create a shortcut for it.
[Miscellaneous Android Development] kiotu:
Thanks, yes, indeed, the bug was from the base ROM i used (actuially all the chinese JB 4.1.2 i tried delivers the same problem..well..they were mostly in beta stage) and haven't really looked into solving it though. And I've noticed battery life is not so good, probably due to the increase of cpu governor sampling rate, gpu rendering and ROW i/o scheduler i used, still looking for best combination for it.

Thank you, i used the original 400M patition size for the system.img, once did try expanding but it caused bootloop, not really certain if it was due to the partition sizing or dirty kernel or files permissioning (too many variables at that time).

The original preload.img was used mainly for putting lenovo's bloatwares and i decided to put only the replacement launcher in it (so it can be easily uninstalled without root-app), so yes it was shrunk, and yes that's a good question, never thought of the free partition size left. I did previously packed szb with no preload.img, and/or radio (cpimage), and even recovery in it, it'll then use the previous partition and not even erasing them.

For the battery stat thing, i actually having trouble recompiling the systemui each time i made changes to the smali and xml, it's like giving errors of dependencies (which i couldn't find) so I ended up only themeing the res files.
[Miscellaneous Android Development] vladog8:
Also found that cant add or change anything to alarm clock, always FC.
[Miscellaneous Android Development] viveknaudiyal:
Hi

I m from India purchased a new Lenovo K860.

On checking system info its shows processor as Stuttgart Arm A7 instead of Exynos 4412 quadcore as shown on specs. Can someone explain this or should I move back to lenovo for replacement

Also the phone heats excessively the moment you start playing games. Is this how the phone behaves or issue with my phone

---------- Post added at 06:54 AM ---------- Previous post was at 06:52 AM ----------

I installed gapps using the method described above bit after that I was not able to install whatsapp and nimbuzz messenger as it says device not compatible with apps. Can someone help.
[Miscellaneous Android Development] vikrant82:
How much do you score on geekbench2 ? Heating is a known issue, but its not that bad! Which ROM have you installed ?

---------- Post added at 12:10 PM ---------- Previous post was at 12:09 PM ----------

It's already mentioned that you have to first set default ringtone for alarm.
[Miscellaneous Android Development] vikrant82:
The space is indeed lost:

shell@android:/ # df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 353760 32 353728 0% /dev

tmpfs 353760 0 353760 0% /mnt/asec

tmpfs 353760 0 353760 0% /mnt/obb

/dev/block/mmcblk0p2 403144 357652 45492 89% /system

/dev/block/mmcblk0p3 2519792 313700 2206092 12% /data

/dev/block/mmcblk0p5 100752 4192 96560 4% /cache

/dev/block/mmcblk0p7 10064 6940 3124 69% /preload

/dev/block/vold/179:1	4255592 348872 3906720 8% /mnt/sdcard

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 347668 32 347636 0% /dev

tmpfs 347668 0 347668 0% /mnt/secure

tmpfs 347668 0 347668 0% /mnt/asec

tmpfs 347668 0 347668 0% /mnt/obb

/dev/block/mmcblk0p2 396706 361690 35016 91% /system

/dev/block/mmcblk0p3 2519712 233540 2158172 10% /data

/dev/block/mmcblk0p5 99152 4152 89884 4% /cache

/dev/block/mmcblk0p7 197362 156834 40528 79% /preload

/dev/block/vold/179:1	4255592 348876 3906716 8% /storage/sdcard0

---------- Post added at 03:57 PM ---------- Previous post was at 03:34 PM ----------

And this is partition sizes for our device:

179 0 7634944 mmcblk0

179 1 4263936 mmcblk0p1

179 2 409600 mmcblk0p2 --> System

179 3 2560000 mmcblk0p3 --> Data

179 5 102370 mmcblk0p5 --> Cache

179 7 204770 mmcblk0p7 --> Preload

179 6 32738 mmcblk0p6

179 4 1 mmcblk0p4

259 0 20450 mmcblk0p8

259 1 20450 mmcblk0p9

179 16 2048 mmcblk0boot1

179 8 2048 mmcblk0boot0
[Miscellaneous Android Development] kiotu:
Yup, noticed that. And I have just tried flashing only the preload.img from JB 4.2.1 base ROM (since the base ROM i used for my rom contained no preload) and yes i can retrieve the space back, pretty simple except for the fact i lost the only launcher i used because it was put in the preload partition...but that was another case and easily solved.

---------- Post added at 11:44 PM ---------- Previous post was at 11:38 PM ----------

Oow, It's already explained in my post on the bugfix part, for setting alarm you need to set the ringtones first prior to checking the turn alarm on box, this is due to original rigtones was removed (it's in chinese filename...can't stand it), so go to clock, add alarm, choose ringtones from the menu and there you have it.
[Miscellaneous Android Development] vikrant82:
Right, I too created a new preload partition, also expanded system partition a little bit (as there was scope). After using your ROM for 2-3 days here's few more things I have noticed.

There seems to be something off related to Location services. Firstly, there's no A-GPS option or the one option which lets you use "Exta signals" for location detection. Generally there are 4 options there, we have only 3. I have a customized gps.conf, which gives me instant fix outside, but maps is having hard time detecting my location inside, even when I am connected to my Wifi. On other roms, it would detect location (without actual GPS) through wifi / radio. Even google now complains - "Location Service is off" . Similar thing at office, where I am connected to Wifi as well. The extra assist from Wifi, Radio, Cell Tower seems to be missing.

Another issue seems to be occasional UI lock ups, especially when notification drawer goes up. Sometimes screen will go blank for a split seconds during a complex effect rendering..

But this is definitely better than most other ROMs I have tried apart from ROW roms.
[Miscellaneous Android Development] vikrant82:
Lidroid ROMs

I tried Lidroid JB rom. For some reasons the benchmarks are low with this ROM. Anututu 7890, GeekBench2 1500 etc... I have been trying this one - lidroid-jb-k860i-1.0, http://bbs.lidroid.com/t-258720-1-1.html
[Miscellaneous Android Development] vikrant82:
Never mind, I disabled few stuff in Performance settings like render on GPU etc.. And its back to 15200 levels..
[Miscellaneous Android Development] kiotu:
Yes, i've tried many ways with the location service issues, but except for ROW roms, it's on every chinese JB rom i tried , and even the latest JB 4.2 gave same problem, at first tried different GApps packages but none deliver better result, actually the one injected is the least problematic one, since the others gave FC on google calendar. Next I thought of the xml permission injected for playstore compatibility, but on JB 4.2 of which compatibility is good enough without having to mod it still has the same location services off issues, so my best bet was on the network location provider.apk. Good thing that google now and maps working just fine (with gps on) in my case. So, If u can find a way to solve this i'll be grateful, or maybe you can suggest me of stock JB rom for K860 that has no problem with location service off? And also i am using K860 and this is K860 base rom which has no compass, could it also be related?

As for GPS.conf, yes it was set for my local region, and the option for having gps-extra menu was only to be found in (if i'm not mistaken) ROW ICS rom and maybe lidroid which uses own framework for UI, cause then again i'm having trouble recompiling the systemui of stock rom for modding xml and smali in it.

The screen locks up is probably due to forcing the UI in GPU rendering mode, and funny thing it occurs more when the battery level is on lower level. And since u mentioned it, regarding framebuffer, don't know if it's also related to my other concern in which the surface flinger service wss been disabled by default in boot init, I did tried to enable it and it also solved issue with google chrome not loading web pages, but in return it gave error when I do power-off charging, it won't load the battery charging animation and goes bootloop on it.

That's why i'm pretty happy with the JB 4.2 which enabled the surface flinger service by default (and therefore enables me to run chrome), but as for now the JB 4.2 performance seemed sluggish, while seeing from from the cat log, i saw problem with openGLes driver version, maybe the Mali driver used was obsolote, well just a guess.

Also, I switched the default i/o scheduler to row (prioritize read over write), which in my need is better to use (the main reason I made this custom rom was so I can play Smule Magic Piano in more responsive manner :cyclops: any original stock ROM was so unplayable for my taste..lol), u can try thinker with the i/o scheduler and the pegasusq cpu governor's sampling rate and threshold (i make it more responsive, therefore battery should be worst although i did put in some battery tweaks for balancing it)

And thank u for trying my cook, any advice on related stuffs mentioned above would be greatly appreciated. :)
[Miscellaneous Android Development] peane:
donation

U made best K860 rom ever. Can I make a donation to you? THX
[Miscellaneous Android Development] exorcyts:
Thank you, it helped.:good:
[Miscellaneous Android Development] orgod:
K860_1_S_2_003_0002_130522

Changelog:
[Miscellaneous Android Development] viveknaudiyal:
Hi

I upgraded my Lenovo K860 with the stock firmware "K860_1_S_2_002_0372_130424 (Android 4.1.2)". from http://4pda.ru/forum/index.php?showtopic=388183&st=1240

Was able to add Gapps using CWM recovery and used gapps-jb-20121011-signed.zip for it.

I am facing two problems. For some apps in playstore"Maps, Whatsapp," it says application not compatible

Google now not says location services off even after turning the services on it the settings.

How can I sort out these issues:confused:
[Miscellaneous Android Development] viveknaudiyal:
Hi Can you please provide link for the 121226 firmware. I updated the stock K860_1_S_2_002_0372_130424 rom. But after installing Gapps it doesn't show all apps for my locations. Eg Maps not working.

Also Google now shows location services off even though they are switched on. Can you help please

---------- Post added at 06:17 PM ---------- Previous post was at 05:57 PM ----------

Hi Can you share how to tweak the gps.conf file for india and what needs to be done
[Miscellaneous Android Development] kiotu:
First you need root access, then try download the GPS.conf for your country here http://xdaforums.com/showthread.php?t=1233256, and replace the GPS.conf in /system/etc folder with the downloaded one, be sure to set the permission as per original file.
[Miscellaneous Android Development] Chri114:
Can this root also work on my Ideaphone K900?
[Miscellaneous Android Development] vikrant82:
Here's mine with an instant fix outside in Hyderabad.
[Miscellaneous Android Development] kiotu:
Experimental JB 4.1.2 kernel (plus fix for my roms), made for my Kiotu roms (and stock ROM with the same baseband 130424), but u can mod it to other roms.

updated, version V4:

- Better RAM management on kernel level: lag, screen blink and locked up on heavy ram usage reduced significantly.

- zRAM compression support, running at boot, RAM swap size: 100MB. Use apps like zRAM status to monitor zRAM usage. Also, set minfree value to reasonable value (u can use apps like minfree manager to do so), no need for aggressive setting whatsoever.

- Location Service Off issue fixed, network location working.

- Some small kernel tweaks.

- Some notes: This update is for smoother daily usage, not suitable for benchmarking purpose since how zRAM works will reduce I/O test score during benchmark (tested using Antutu).

updated, version V3: changelog:

- GPIO dvfs.

- AIO support.

- Memory compaction.

- Some other small tweaks.

updated, version V2: changelog:

- Support GPU and CPU voltage/freq control.

- Default I/O scheduler set to zen (credits to Zen Kernel maker).

- Readahead SDCard buffer set to 256M.

- Jumpy touchscreen at charging, credits to icebluechao.

Features:

- Flashable ZIP through CWM

- Automatic Group Process Scheduling enabled

- AIO enabled

- ION Manager support

- Added New I/O Scheduler: Zen, ROW scheduler, and SIO scheduler.

- Spreading CPU Frequency from 100Mhz-1600Mhz

- RAM Swap support

Important Notes:

- Support for OC up to 1,6Ghz, default Freq at boot set to 1,4Ghz, Min Freq at 100Mhz.

DO IT ON YOUR OWN RISK, IF U'RE PLANNING ON DOING OC / UC, DO NOT SET FREQ DEFAULT AT BOOT, OC/UC should be done manually on each boot.

How to flash: Flash using CWM, WIPE CACHE AND DALVIK after flashing. And as always: DO IT ON YOUR OWN RISK.

Link:

V4: http://d-h.st/IBf

V3: http://d-h.st/RPk
[Miscellaneous Android Development] viveknaudiyal:
Hi

Even after the changing the gps.conf provided by you the Location services shows off even though it is enabled in the system. Could you guide me of any possible steps I need to follow to get this working.

Steps I am following.

Installed the ROM "K860_1_S_2_002_0372_130424.szb".

Rooted the phone changed the gps.conf file. Changed the permission to rw-r-r

Installed CWM recovery"Link_cwm_recoveryV1.szb"

Installed gapps using CWM recovery"gapps-jb-20121011-signed.zip"

Wipe out cache and data

but after this also the not able to get the location services off

(For many services Google Plays says Your device isn't compatible with this version.

Can you help in resolving this. Though there is no issue if I use the ROM from koitu "K860_stuttgart_kiotu_v2.03.szb".

But I want to use the stock ROM
[Miscellaneous Android Development] kiotu:
Hi, sorry for showing up while not being called, but have u tried the xml for marketplace fix? it's actually xml files containing location services permission. You can download it from my post http://xdaforums.com/showpost.php?p=39287088&postcount=618, and also since u running the chinese domestic ROM, if u haven't done so u should also need to apply the USSD fix patch which I posted a few page back too http://xdaforums.com/showpost.php?p=40004748&postcount=628
[Miscellaneous Android Development] viveknaudiyal:
Hi Kiotu,

Thanks a lot for your help.Gapps is working fine with no location errors.

But chrome does not work.

Also could you please suggest how to check if USSD issue is OK or still there as I don't know what it means and to check it
[Miscellaneous Android Development] kiotu:
Yes, sadly chrome is not working on all chinese JB 4.1.2 based ROMs, I have made a boot init fix for it, chrome runs perfectly but it will make battery charging on phone-poweroff state crashed, which is a big trade off and not really worthy. U can off course use the latest JB 4.2.1 beta, chrome runs perfectly on it, but bluetooth does not...or maybe just wait until at least a stable one released.

And to check if USSD/mmi dialing is working or not u just need to dial numbers like *101#, *123#, etc.. it depends on each carriers and usually used for having balance check or other operators' related services. Without the fix it'll just go infinity on "running ussd code" message.
[Miscellaneous Android Development] viveknaudiyal:
Thanks a lot checked used for my carrier its working fine. Can you help to provide the S3 camera system apk for the stock 4.0.4 row ROM as the camera in this ROM has GPS and timestamp disabled.or tell me how I can get it enabled
[Miscellaneous Android Development] vikrant82:
Hi,

I think we have managed to resolve most of earlier issues from these Chinese based ROMs except the one - Location services. GPS based location services work fine but not Cell Tower or Wifi based.

Another implication of above bug is that other apps like GenieWidget or foursquare cannot get get your location *inside* buildings. For some reason after on JB 4.2.1 roms google maps is able to do that inside.

Here are my observations so that we can collectively think about this problem.

1. I noticed we have following strings missing from our chinese based framwork-res.apk (in decompiled res/values/strings.xml)

<string name="config_networkLocationProviderPackageName">com.google.android.location</string>

<string name="config_geocodeProviderPackageName">com.google.android.location</string>

<string name="config_networkLocationProvider">com.android.location.service.NetworkLocationProvider</string>

<string name="config_geocodeProvider">com.android.location.service.GeocodeProvider</string>

Stumbled on to these in MUI forums, where they were struggling to replace baidu location services with google location services.

So I recompiled framwork-res.apl with these settings but it didn't help.

2. However, the main issue seems to be missing NetworkLocationService under Google Services if you look into running Apps through App menu in settings.

On normal android devices we see two services running under Google Services - "Google Messaging Service" and NetworkLocationService. The later is missing in our cases. It seems this service is responsible for getting location without GPS through Cell Tower etc..

I have tried using NetworkLocation.apk from ICS, Lidroid (where this bug doesn't exist) but with no luck.

Lets nail this one guys, and then we can have a perfect a 4.1/4.2 ROM.
[Miscellaneous Android Development] kiotu:
Hmm, that was unexpected, i also use the sama base rom but I can enable the timestamp dan gps from the camera option, have u tried enabling it?

Yes, and I also did some kernel changes to fix some issues on my ROM, plus experimental OC and voltage control (still couldn't figure out how to enable chrome browser without another trade off though).

And that's a good finding bro, pretty sure the NetworkLocation.apk is the culprit here, and even on JB 4.2.1 the problem also remains...(talking of progression here, they don't seem to care because those chinese don't use google), and since lidroid has not the issues maybe got something to do with altering other framework files like the services.jar, etc... well much to dig, but hopefully it'll worth the effort.
[Miscellaneous Android Development] viveknaudiyal:
Thanks Koitu. Checking again I found that these settings are disabled in the s mode but in the p mode these are enabled.

The camera has one more issue the photo is taken after the flash is on and the picture gets a more dark in low light. There is a misting between the flash and the shutter

One more issue I found today. The child mode and guest mode are not working. The moment I try to start it the system UI stops

Can you help with these issuea
[Miscellaneous Android Development] kiotu:
The child mode and guest mode are features from lesafe apps, so if the apps was debloated or erased then the toggler won't work.
[Miscellaneous Android Development] viveknaudiyal:
Could you suggest on the camera part
[Miscellaneous Android Development] viveknaudiyal:
Used the speaker phone on a voice call voice is very low is it normal on k860. Also on Skype calling the speaker was very low. Can u guys confirm if it is same on your phones too
[Miscellaneous Android Development] kiotu:
Try setting flash to (on) instead of (auto), it might help a bit.
[Miscellaneous Android Development] kiotu:
Location Service Off FIX

Yahoooo....OK, done fixing Location Service Off problem... it seems network location was "purposefully" not being defined in framework-res.apk.

Here's how to fix: decompile framework-res.apk, search /res/values/arrays.xml search for "config_locationProviderPackageNames", it should look like this:

++ <string-array name="config_locationProviderPackageNames">

+++++ <item>com.google.android.location</item> <-- add this line for fix

+++++ <item>com.android.location.fused</item>

++ </string-array>

By the way, i done this on JB 4.2 so I can not attached the recompiled framework, as not many uses it already, but i think it works the same way in JB 4.1.2, when done properly when u enable WLAN & mobile network location in Location Access setting it'll confim for "collecting anonymous location data".

Cheeerrss....

EDIT: confirmed, different file structure for JB 4.1.2, so for JB 4.1.2 back to work...