yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] vikrant82:
Just awesome. Well done. Can't wait to get back from office.
[Miscellaneous Android Development] wikowikowiko:
so, I need to decompile the apk, add the line, then recompile it again?
[Miscellaneous Android Development] viveknaudiyal:
Hi

Congrats for this achieving this

Where can I find this on Android 4.1.2. Could you help with detailed instructions so that I may do this and get the location services on
[Miscellaneous Android Development] kiotu:
yes, and then push the apk back and set permission as original (0644).

The file framework-res.apk is in /system/framework/, u need to pull/copy the file to u'r pc, decompile, edit, and recompile it. Push it back to your HH, and set the permission as original.

U can de/recompile the file using apktool or easier yet apk multitool which also requires at least Java runtime installed.

Guides on decompiling and recompiling the framework-res.apk is almost anywhere on the internet and they're detailed already, here's one example http://forums.droidbeans.com/developer-guides/(how-to)(decompile-and-recompile-apks-easily)(apkmultitool-method)/.

Do be careful and make backup, failure in recompiling and or pushing the file back will cause bootloop and it's pretty troublesome if u're not adept on using adb to restore them.
[Miscellaneous Android Development] viveknaudiyal:
Hi Tried this but was not able to find the string you had mentioned in the arrays.xml. SO just copied the entire string you had written pasted it in the xml and compiled the apk but still the location service is off. Can you help
[Miscellaneous Android Development] kiotu:
yes, i've already update my post on this, been checking on 4.1.2 for a while now, and sorry to say but it has different structure than it was on 4.2.1, so back to work for 4.1.2 users....:silly:
[Miscellaneous Android Development] amoyan:
i suspect this module was never part of the release.

remember this is a chinese release, so fused location service, wifi lbs, cell_id lbs need access to servers. if it is google service ... they exist but this phone uses lenovo service... so i dont think fused location per aosp exist in the 412 jb release frm lenovo
[Miscellaneous Android Development] kiotu:
Yes indeed, but that's the main point, from the moment I bought this device, it only took me one week before switching from ICS to chinese JB, and then tinkering on it just so it'll run the USSD/MMI code. As for the fused location service, it does work on lidroid version which also uses chinese base rom although it might be done through their own framework addition. The bright side is, It can be done on JB 4.2, which also uses Baidu location services. I do suspect JB 4.2 is being prepared also for international release (hopefully), so while waiting for its realization or at least having a stable one, why not do some modding just to see. Afterall, I'm doing this just for fun :D.

Edit: Actually I can't recall Lidroid do sort this Location Service Off issues, which probably leaves only ICS Roms that has none of this issue, and modded JB 4.2 of course.
[Miscellaneous Android Development] vikrant82:
Nice!! Finally back on 4.2 full time. The location services was definitely a deal breaker for me. It works perfect now. Confirmed to be working on K860i_1_S_3_003_0138_130517.

---------- Post added at 02:13 AM ---------- Previous post was at 02:05 AM ----------

Confirming its very low on my JB rom as well..
[Miscellaneous Android Development] kiotu:
JB 4.2 sure looks nice yes? Lol, by yhe way u should upgrade to the 130524, it's better in my opinion, the previous version had bluetooth issues on mine.
[Miscellaneous Android Development] vikrant82:
I noted on chinese forums that 130524 was delivered OTA. Can't find a zip or szb anywhere for it. Have been trying to refresh my Lenovo Upgrade thing, no upgrades for me yet.

And yes, 4.2 is definitely smoother.
[Miscellaneous Android Development] viveknaudiyal:
Hey I tried K860i_S_3_005_0110_130509 on my phone. Couldn't find any issues with it. Found it on a Russian forum

http://4pda.ru/forum/index.php?showtopic=388183&st=1240.

Check this out
[Miscellaneous Android Development] vikrant82:
Well, I already have - K860i_1_S_3_003_0138_130517. Here you go: http://pan.baidu.com/share/link?shareid=490714&uk=322416987. Although I am not sure which one is newer, the one you mentioned or this one. Their version is all messed up.
[Miscellaneous Android Development] kiotu:
Well they're versioning is usually yearmonthday, with k860i being released first and a couple of days latter the k860 version.

And here's the 130524 in zip format, it's for k860 but has compass app in it..weird...:silly:

http://pan.baidu.com/share/link?shareid=479766&uk=184722491

if unable to install due to device.prop thing, u need to edit the updater script, deleting the assert version line is working in my case.
[Miscellaneous Android Development] vikrant82:
Right, But I am confused about the middle parts of these strings. We have S_2 and S_3, and often we have one more number _110.

_1_S_3_003_0138_130517

_1_S_2_003_0007_130524

K860i_1_S_2_002_0167_130427_szb

There was a time when there were hardly any ROMs. Current problem is that there are too many of these and I have no idea how many series of these ROMs they are maintaining.
[Miscellaneous Android Development] diakamawatane:
How do you flash zip?

Sorry, was used to flashing zsbs.
[Miscellaneous Android Development] vikrant82:
If you have CWM installed, you have to remove it and restore original recovery, and there you have an option to update from zip. Place the zip on to root of internal sd card.
[Miscellaneous Android Development] diakamawatane:
Figures. My problem now is i cannot flash a custom recovery for gApps. Do you have any work-arounds on that?
[Miscellaneous Android Development] vikrant82:
You can switch between any recovery - CWM or default recovery through fastboot. I think there's also zip around in the thread which has the default recovery or you can extract it from the szb using leszb tools.
[Miscellaneous Android Development] viveknaudiyal:
Can you please suggest how to do this "u need to edit the updater script, deleting the assert version line is working in my case"
[Miscellaneous Android Development] kiotu:
Nah, i just attached the script and u can go and follow this steps:

1. download my edited updater-script.rar, extract it somewhere accessible, better on the same folder as where u put the 130524 zip files.

2. open the 130524 zip files using winRAR (recommended), do not extract.

3. inside winRAR navigate to META-INF/com/google/android/ where u'll find the updater-script

4. drag and drop the edited updater-script (from step no.1) to the winrar window, and it should give a dialog box, make sure to check this:

Update mode: add and replace, Compression method: Store --> OK, u can close the zip.

5. flash the zip in recovery. (I'm using CWM to flash this).

If u want to learn what line i've edited, just compare them, and this steps i did on windows, somehow on my ubuntu the archieve manager gave error on drag and dropping the file.
[Miscellaneous Android Development] diquan2001:
For the Intrested people''s

I did a K860i vs Galaxy S4

You can see it here

It''s in Dutch but you can see the Benchmark results

http://youtu.be/ueLZD3Frc0s
[Miscellaneous Android Development] kiotu:
nice video bro, that k860i sure looks nice...although the s4 even looks nicer....lol

hmm..my K860 best score in latest antutu was only 16500 something...

---------- Post added at 11:37 PM ---------- Previous post was at 11:11 PM ----------

updating my JB 4.1.2 kernel to V3, check my post..http://xdaforums.com/showpost.php?p=41771977&postcount=698, it's a 4.1.2 kenel, can be used on any stock 4.1.2 roms, the patch includes kernel and some performance tweaks. Jumpy touch screen when charging fix (credits to icebluechao) and hoping to fix some screen glitch being reported when at low memory.
[Miscellaneous Android Development] Sayon_6:
K860 driver

It seems that I cant root my device because I don't have the drivers installed. Its detecting my K860 as an other device in W8. Is there anyway to fix that ? I tried looking for drivers but to no avail.

---------- Post added at 12:56 AM ---------- Previous post was at 12:29 AM ----------

Solved the problem myself, i googled for ADB drivers, found them , installed. Although it didnt go without a hitch. W8 or has to be restarted with digital signature of the drivers disabled and then the drivers get installed. ( google how to do that )

Its simple , mouse over to the active corner and click settings->power->SHIFT+Restart, Throubleshoot -> Advanced-> Startup settings ->Click restart. When PC restarts with prompt press 7.

Adb drivers here

http://www.mediafire.com/download/xg6o0wp16bkdcd3/ADB+Drivers(2).zip

The rooting process went on flawlessly.
[Miscellaneous Android Development] diakamawatane:
How do you extract szb files? :eek:
[Miscellaneous Android Development] vikrant82:
You need not if you are trying to flash the zip kiotu provided link for. As he confirmed, you can flash that with CWM also. However, you can extract/repackage SZB files using the tools here. But you'll need linux to use the tool.
[Miscellaneous Android Development] diakamawatane:
I tried flashing a custom CWM recovery via sdfuse. But everytime i restart to recovery it shows me the stock one and not the CWM i flashed. Tried to flash a custom MIUI recovery too. It just won't work. :(
[Miscellaneous Android Development] vikrant82:
Actually, when phone boots the default recovery is ovrrwritten.. There's a file /system/etc/install-recovery.sh.. Delete or rename that.
[Miscellaneous Android Development] viveknaudiyal:
Thanks a lot vikrant. I have been able to install CWM recovery and install gapps after upgrading to 4.2.1 as suggested by koitu and thephone is working great.

FinallyI have a stock 4.2.1 rom

---------- Post added at 08:03 AM ---------- Previous post was at 07:54 AM ----------

hey kiotu. you are really a genius. i have been able to install the update with the method suggested by you and now the phone is on 4.2 and working great.

Thanks a ton

Is it possible to mod the lotus widget so that it has playstore in the centre rather than lenovo store as the ics row stock rom had the playstore in the centre.

Can you provide the apk for the stock android keyboard as this rom has sogou input
[Miscellaneous Android Development] diakamawatane:
You sir, are a life-saver! Thank you!
[Miscellaneous Android Development] kiotu:
Hi, up till JB 4.2.1, u can still use exynos abuse to root this phone, but I see u already done it the hard way :good:
[Miscellaneous Android Development] Sayon_6:
Upgrading to stock 4.2.1

I have dl-ed a stock 4.2.1 ROM for K860.

http://www.tinhte.vn/threads/up-rom-jelly-bean-cho-lenovo-k860-860i.2096225/

Will I have any problems with my anti-theft from avast with it ? I have the app installed as root. Will it delete the anti-theft app or it will still be there after upgrade ?. Thanks
[Miscellaneous Android Development] vikrant82:
These roms will certainly format system partition. And *probably* will format data partition. So, the anti theft app would most likely be deleted. You can back it up manually to your SD card or use a backup tool like Titanium to back up app settings as well.
[Miscellaneous Android Development] Sayon_6:
You have a valid point but the app states that it prevents it being erased even if such event would occur. (hard reset proof) But then again if this is the case I'll be sure to put it to good use if such thing would ever happen. I guess this is the way to test the anti-theft out. If it is still there then I wold have answered my own question. My only worry was that I was afraid it would screw up with my phone.I'll post results soon.
[Miscellaneous Android Development] Sayon_6:
Vikrant I cant seem to apply your solution for my K860 CWM recovery instalment. I deleted the file you said earlier in a post yet I still see the default recovery mode. Any advice please? Thanks
[Miscellaneous Android Development] vikrant82:
How did you install CWM? There is a problem on certain bootloaders where you can't enter into CWM recovery through main boot menu (one you get by vol + and power button). But you can boot into recovery by using reboot tools - which give you options to reboot into recovery OR you can reboot into recovery through ADB - adb reboot recovery.
[Miscellaneous Android Development] diakamawatane:
1. Delete/Rename

2. Re-install recovery

That did it for me. :good:
[Miscellaneous Android Development] viveknaudiyal:
After installing CWM I deleted the file after reboot and then checked. CWM worked for me
[Miscellaneous Android Development] vannose:
been looking for the /res/values/arrays.xml at framework-res.apk but still not found it. can anybody attach the file here please?
[Miscellaneous Android Development] vikrant82:
Did you decompile the apk or looking at the apk as an archive? If not you need to follow links Kiotu provided. Most of these values go into resources.arsc file in the apk, but you cant edit it without decompiling.
[Miscellaneous Android Development] viveknaudiyal:
Hi Kiotu. After upgrading to 4.2.1 using the upgrade zip provided by you (K860_1_S_2_003_0007_130524.zip). when I am trying to decompile the framework-res.apk, I am getting an error. Log file below. Can you please suggest on this

|Mon 06/03/2013 -- 8:08:31.25|

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

java version "1.7.0_21"

Java(TM) SE Runtime Environment (build 1.7.0_21-b11)

Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

I: Loading resource table...

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080292 drawable/ic_ab_back_holo_dark, config=-hdpi

at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)

at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:197)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)

at brut.androlib.Androlib.getResTable(Androlib.java:48)

at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)

at brut.apktool.Main.cmdDecode(Main.java:131)

at brut.apktool.Main.main(Main.java:68)
[Miscellaneous Android Development] kiotu:
Hi,seemed like obsolete binaries used for decompiling, try using latest apk multitool, you can find it here http://apkmultitool.com/node/7

I attached the modded framework-res.apk (hopefully the right one..lol) for JB 4.2.1 stock 130524
[Miscellaneous Android Development] viveknaudiyal:
But How do I replace the existing file because the moment I paste the new file using root explorer the phone switches off and does not start again
[Miscellaneous Android Development] vikrant82:
Ah you will have to use adb to push this file. Go something like this:

adb devices (To check if adb/USB debugging is enabled)

adb remount

adb push C:\local_framework_apk_to_push.apk /system/framework/framework-res.apk

adb reboot

On some production bootloaders adb remount won't work, In that case you have to copy patched file to your sdcard or somewhere and manually mount /system as rw

adb shell

.. $ su

.. # mount -o rw,remount /block/mmcblk0p2 /system

. .# rm /system/framework/framework-res.apk

.. # cp /storage/sdcard1/your_patched_framework-res.apk /system/framework/framework-res.apk

.. # chmod 644 /system/framework/framework-res.apk

CTRL C

adb reboot

The good thing about adb is that most of times even if your phone is stuck on boot, you would still be able to do adb commands. So keep a back up of your original framework-res.apk and push it back if your compiled version is not letting the device to boot.
[Miscellaneous Android Development] viveknaudiyal:
Can u pls explain how to use adb. I connect my phone to the pc and enable usb debugging. usb storage is disabled. How to proceed after this
[Miscellaneous Android Development] Sayon_6:
I managed to get it working as well after installing CWM on it. In fact its just a K860i szb image. I have a K860 zip image that im trying to flash using recovery but it fails with an error saying something about it being corrupted. So can someone please tell me of a way to get a szb 4.2.1 stock ROM for the K860 I will be in their debt.
[Miscellaneous Android Development] vikrant82:
Open the zip file using winrar.

Browse to this file -> ../META-INF/com/google/android/updater-script

Open and edit this in your favorite editor to delete the second or third line which starts with assert(..stuttgart) (Sorry I don't recall exact lines)

Save file, winrar will ask if you want to update the file etc..

That should do it.

OR Use a week older build. http://pan.baidu.com/share/link?shareid=490714&uk=322416987

Issues already known with this build

- Bluetooth issue

- Low speaker on calls

- Too many log files generated in /local/logs/ (Around 40mb or so)

Hence the zip file is recommended i.e. http://pan.baidu.com/share/link?shareid=479766&uk=184722491

---------- Post added at 02:20 AM ---------- Previous post was at 02:15 AM ----------

Hi vivek, adb is a simple executable bundled with android sdk. But you need not download entire sdk to get just it. Just google around on adb download. There's ton of guides around.
[Miscellaneous Android Development] Sayon_6:
Yes INDEED!!!! thanks for the info, it was spot on. One issue That I have now that I have K860 4.2.1 Rom. Exynosabuse doesnt work , neither the ADB way. I cant root my phone.... i need to get out of the bloatware that this phone has.... Any ideas there ?
[Miscellaneous Android Development] vikrant82:
Not sure.. It worked for me. Did you clear data partition before installing the zip? As I don't thing flashing this zip does that automatically.. So you can try that. By the way you can also edit the zip offline to remove the bloat before you install it..
[Miscellaneous Android Development] kiotu:
JB 4.2 Latest 130531/30

Latest official released, stable version quasi official (whatever that is) :silly:

K860

Post:

http://bbs.lenovomobile.com/forum.php?mod=viewthread&tid=145890&extra=page%3D1

Download:

http://pan.baidu.com/share/link?shareid=555104&uk=2335146322

K860i:

Post:

http://bbs.lenovomobile.com/forum.php?mod=viewthread&tid=145892&extra=page%3D1

Download:

http://pan.baidu.com/share/link?shareid=555131&uk=2335146322

pass: bbs.lenovomobile.com

EDIT: This ROM is very good... Exynos Abuse not working for rooting though, just flash CWM and done some adb pushing of busybox, root binary and root manager..worked like a charm
[Miscellaneous Android Development] viveknaudiyal:
is it required to update the location files in this to remove the location issues and to update the files to resolve the ussd issues.

also could you confirm if this also has location services issue in google now

if these need to be resolved can u pls.suggest how to install root manager and make it working.
[Miscellaneous Android Development] vikrant82:
And you couldn't let us rest in peace and enjoy our current ROMs. :)
[Miscellaneous Android Development] kiotu:
yes, this is chinese local rom, so all the fixes must be applied including debloating especially if u'r planning on installing gapps, because the free space left in /system partition is only 24mb.

For rooting, a friend k860 user provides the required CWM in szb format. First download cwm image in szb format and flash as usual, then boot to recovery (CWM) and flash the root(SU) files in zip format.

CWM:

http://www.facebook.com/download/134285370091834/Link_cwm_recoveryV1.szb

SU binary and SU manager:

http://download.chainfire.eu/324/SuperSU/UPDATE-SuperSU-v1.30.zip

CWM uploaded by my friend https://www.facebook.com/dhiykaq?hc_location=stream

---------- Post added at 10:52 PM ---------- Previous post was at 10:52 PM ----------

can't help it ...:laugh:

edit: the last 130524 rom contains bug where connecting to pc through usb sometimes failed, this 130530/31 has it fixed.

edit: use chainfire's flashing zip for root binary and root manager
[Miscellaneous Android Development] bluerabb:
Please, is it possible to summarize shortly all fixes?

Usually I have a problem with Chinese software, Gapps are not working properly, Google play has problem with "...this application isn't compatible with your device" etc.

I know that all these issues has some fix in this threat, but some of them are not for the same version (4.1/4.2), I am not sure what should be done first on time line.

I think this should be helpful for everybody.

BTW I have a K860i and ROM (K860_stuttgart_kiotu_v2.03) is working very well (except Google location services) THANK YOU VERY MUCH FOR YOUR WORK.
[Miscellaneous Android Development] kiotu:
Thank u, much appreciated, and what a coincidence, i have just created a doc that probably could summarize it in our local K860 FB community, don't worry it's in English, https://www.facebook.com/groups/lenovo.k860/doc/177424325755383/

God speed.
[Miscellaneous Android Development] bluerabb:
Excellent. I cannot wait to get home and try this!!!!

Thank you very much again!!!!
[Miscellaneous Android Development] viveknaudiyal:
I Tried but the speed is very slow and after downloading for around 57% now to again resume download it is asking for username and password Can you help or provide a mirror where the speed is more
[Miscellaneous Android Development] kiotu:
I can only upload to local free server (which is also slow), so making mirrors is really not my thing, especially due to my upload connection speed is only around 12 kilobytes/second... which is sooo lame.
[Miscellaneous Android Development] Holandeserrante:
Hi Kiotu,

I definitely need your help.

I´m following the steps from this website http://www.tinhte.vn/threads/up-rom-jelly-bean-cho-lenovo-k860-860i.2096225/ to get my pone up-to-date with Gapps, but I´m not quite getting there.

By the way, mine is a K860i.

So first I flashed the ROM with latest original Chinese Lenovo ROM: K860i_1_S_2_003_0031_130530_szb

This worked flawlessly, so no problem there.

I also flashed the recovery with this file: Link_cwm_recoveryV1.szb and no problem there either.

But then I tried rooting the phone and that´s what I can´t get to work.

First I tried using TPSparkyRoot as this worked perfectly on previous Android versions, but on this 4.2.1 version it does NOT.

Then I tried following your steps booting to recovery (CWM) and flashing the root with the (SU) files in zip format you offer on this website and it looked like it worked, because it placed the Superuser icon on my phone´s desktop.

But when I tried to replace the USSD (rillibrary) files with Root Explorer, the program said I wasn´t allowed because my phone isn´t rooted.

So somehow I´ve got the Superuser icon installed, but my phone isn´t really rooted.

So now I´m stuck, can´t replace the "rillibrary files" and can´t install the Gapps.

Do you have a solution so I can root the phone?

---------- Post added at 11:30 PM ---------- Previous post was at 11:26 PM ----------

By the way; I don´t have Facebook, so please if you have any solution, don´t send me a Facebook link.
[Miscellaneous Android Development] viveknaudiyal:
root your phone using exynos abuse before installing cwm recovery. it worked for me. after that install cwm recovery.

---------- Post added at 07:14 AM ---------- Previous post was at 07:11 AM ----------

hi kiotu, after pushing the systemui file as you had provided in facebook i found a bug. all the notifications that appear now while exiting apps or installing apps appear as blank white boxes with no text. can you help to clear this bug

Many thanks for all the support provided