[Q] <app> has been revoked by Microsoft. Please uninstall it. - Windows Phone 7 Q&A, Help & Troubleshooting

Hi,
Something weird happened to my phone, all of my side-loaded apps were suddenly throwing this error, weird thing is that I did not even connected it to my PC (Zune) the whole day.
Upon searching similar threads, seems my phone was relocked again. My question is, is there any way to unlock it again without downgrading to NoDo (phone has Mango B2 7720.68)? If I opt to go back to NoDo and perform the unlock again, then upgrade again to Mango B2, will I encounter the same (hope anyone can confirm)?
Does any one experiencing the same today? Or maybe just my unlucky day today.
Thanks.

nohctis said:
Hi,
Something weird happened to my phone, all of my side-loaded apps were suddenly throwing this error, weird thing is that I did not even connected it to my PC (Zune) the whole day.
Upon searching similar threads, seems my phone was relocked again. My question is, is there any way to unlock it again without downgrading to NoDo (phone has Mango B2 7720.68)? If I opt to go back to NoDo and perform the unlock again, then upgrade again to Mango B2, will I encounter the same (hope anyone can confirm)?
Does any one experiencing the same today? Or maybe just my unlucky day today.
Thanks.
Click to expand...
Click to collapse
Same here about an hour ago.
I think the phone has become chevron locked.
I have tried sending unlock.cab in mango and it installed correctly, did a vol+- reset. But no joy.
I think it needs a settings/about reset, but this will ruin my set-up (took me a day last time, though should be quicker next time)
Anyone care to confirm needing reset?
As an aside I think I've gone over Zune's 5 phone limit (settings/accounts/devices) since my apps weren't loaded to phone last time and I had to load them manually. Even though only one phone (first yuki nodo rom) showed up on the bottom list. I deleted it and now may have to wait 30 days before synching apps again.
Edit; sorry, I am in the wrong forum (found by search). But may still be relevant

This is scary...can MS relock unauthorized unlocks OTA? What were you doing when it "relocked" and did you unlock as dev or chevron?
The other thing is you need Interop-Unlock for sideloaded apps to run. Did you have your phone interop-unlock beforehand (i.e. Max Unsigned Apps reg edit)? Just having a Dev or Chevron unlock is not enough. But then you should have never been able to run these apps on Mango.

Yes, search the forum for the prevent re-lock registry hack...

drkfngthdragnlrd said:
Yes, search the forum for the prevent re-lock registry hack...
Click to expand...
Click to collapse
Ah, now I understand what that reg edit does! I know it unlocks the phone but it also redirects so I assume this prevents it from "phoning home" to the mothership...

LiFePo4 said:
Ah, now I understand what that reg edit does! I know it unlocks the phone but it also redirects so I assume this prevents it from "phoning home" to the mothership...
Click to expand...
Click to collapse
Exactly, it's not MS doing it actively. It's the phone/zune using those URL's to check if the device ID is listed as a current unlocked device.

thanks for the replies.
I used the CustClear.provxml method, the one that you need to run the htc connection when you're already in Mango B2.
Just a background;
1. My phone is from unlocked NoDo using the CustClear.provxml method also
2. With installed Advanced Config and checked the "Prevent phone from relocking" tweak.
3. Before upgraded to Mango B2, CustClear.provxml was placed again in Windows root
4. Upgraded to Mango B2 then run the htc connection
5. Already been using Mango B2 for 1 month (syncing and installing apps even homebrew), and not experiencing relock. So I'm in a assumption that it's really tweaked to prevent to relock
Then suddenly, it relocks yesterday eventhough I'm not even connecting my phone to Zune or to any PC the whole day.
I will try to open the exact file to see if there is really a prevent unlock registry included in the file when I get home.
right now I'm back to NoDo, can't live to not use my daily apps.

okay.. here's the actual content of my provxml
<wap-provisioningdoc>
<!-- *** COMMENTO *** -->
<characteristic type="Registry">
<characteristic type="HKLM\Comm\Security\LVMod">
<parm name="DeveloperUnlockState" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\Microsoft\DeviceReg">
<parm name="PortalUrlProd" value="" datatype="string" />
<parm name="PortalUrlInt" value="" datatype="string" />
</characteristic>
<characteristic type="HKLM\Software\Microsoft\DeviceReg\Install">
<parm name="MaxUnsignedApp" value="2147483647" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
seems it contains the entry for prevent relock.. does it mean MS really relock my phone via OTA and bypassed that registry hack?

nohctis said:
okay.. here's the actual content of my provxml
<wap-provisioningdoc>
<!-- *** COMMENTO *** -->
<characteristic type="Registry">
<characteristic type="HKLM\Comm\Security\LVMod">
<parm name="DeveloperUnlockState" value="1" datatype="integer" />
</characteristic>
<characteristic type="HKLM\Software\Microsoft\DeviceReg">
<parm name="PortalUrlProd" value="" datatype="string" />
<parm name="PortalUrlInt" value="" datatype="string" />
</characteristic>
<characteristic type="HKLM\Software\Microsoft\DeviceReg\Install">
<parm name="MaxUnsignedApp" value="2147483647" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
seems it contains the entry for prevent relock.. does it mean MS really relock my phone via OTA and bypassed that registry hack?
Click to expand...
Click to collapse
Weird, maybe they "fixed" that hack in Mango. This would be the first I'm hearing of it though. Would make since with the new official Chevron Unlock coming soon.

Related

Simple ROM Building question about setting the default Region.

Hi Guy's,
Ive got a real simple question that im sure loads of people know the answer to (except me lol) I build ROMs for personal use but one thing ive never been able to get the answer to is how to get the region set to UK in a ROM, let me give you the latest senario.
Im using the latest Official WWE HTC WM6.1 ROM.
What i want to do is set the default regional settings to United Kingdom. So when you do a hard reset and the setup wizard appears, i want it to be set to the UK instead of the US.
Is there a way to do it in KaiserKitchen or some other tool or will i have to change the settings on my device then take a dump of that?
Ive searched all over for the answer but I cant find it, maybe it is there but im not entering the right sort of search query i dunno, just dont flame me coz i have searched lol.
Its in the registry:
Code:
[HKEY_LOCAL_MACHINE\nls]
"DefaultLCID"=dword:00000809
"SystemLCID"=dword:00000409
Set the DefaultLCID to 809 for the UK. When I dumped the official HTC ROM it was the Australian one and even though I was setting the above in a .rgu file in my kitchen it was being overwritten by a provxml file - mxipupdate_oemoperators_105.provxml.
I edited this file as follows:
Code:
<!-- Regional -->
<characteristic type="Registry">
<characteristic type="HKLM\nls">
<parm name="DefaultLCID" datatype="integer" value="2057"/>
</characteristic>
</characteristic>
The value '2057' is decimal for 0x809.
HTH
Andy
Sweet,
Thanks for the info, will try it out today.
Edit:
So if i undestand correctly, just changing "DefaultLCID" parameter to 2057 (Which i have now done in Kaiser Kitchen) should be enough right?
RavenY2K3 said:
Sweet,
Thanks for the info, will try it out today.
Edit:
So if i undestand correctly, just changing "DefaultLCID" parameter to 2057 (Which i have now done in Kaiser Kitchen) should be enough right?
Click to expand...
Click to collapse
Yes. Any .RGU registry files are used to create the initial default registry file, the 'provxml' files are parsed following a hard-reset so any registry ones overwrite the default values.
HTH
Andy
Hi
The problem/querry has sort of expanded now, although i changed the the detail in the provxml file, the change isn't reflected when the ROM is flashed it almost like no changes happen at all, any ideas? The expansion i speak about is id like to set the default carrier settings to T-Mobile UK, Ive put all the details in the "mxipupdate_oemoperators_101.provxml" not sure if this is the right file or the right way but it seemed to be the most file fitting file as other entries of this nature are in this file <characteristic type="CM_GPRSEntries"> for example.
Do i need to change some entries in Config.txt, Config_ap.txt or anything?
I know you can change these details by making a CAB file, but the only experience ive had with this is just re-packaging cabs that were already made etc... or if someone already knows the whereabouts of such a CAB could you pooint me in the right direction.
Ive made working ROMs with Alex's base ROMs before but never have i used an official ROM and more to the point, im wanting to leave quite a lot of it alone, I just want to add a couple of apps, change the region and set the Kaiser to TMO UK straight "out of the box"
It's really bugging me lol.
Any help at all would be great, thanx in advance.
RavenY2K3 said:
Hi
The problem/querry has sort of expanded now, although i changed the the detail in the provxml file, the change isn't reflected when the ROM is flashed it almost like no changes happen at all, any ideas? The expansion i speak about is id like to set the default carrier settings to T-Mobile UK, Ive put all the details in the "mxipupdate_oemoperators_101.provxml" not sure if this is the right file or the right way but it seemed to be the most file fitting file as other entries of this nature are in this file <characteristic type="CM_GPRSEntries"> for example.
Do i need to change some entries in Config.txt, Config_ap.txt or anything?
I know you can change these details by making a CAB file, but the only experience ive had with this is just re-packaging cabs that were already made etc... or if someone already knows the whereabouts of such a CAB could you pooint me in the right direction.
Ive made working ROMs with Alex's base ROMs before but never have i used an official ROM and more to the point, im wanting to leave quite a lot of it alone, I just want to add a couple of apps, change the region and set the Kaiser to TMO UK straight "out of the box"
It's really bugging me lol.
Any help at all would be great, thanx in advance.
Click to expand...
Click to collapse
Provxml deals withe the cid on initial startup, locale settings are changed in the registry(oem drivers or apps RGU)Connection setup should auto run on first power after customization that will autoconfig the device to t-Mo.
hi every body
would you like explain me for to translate reg_binary in provxml file?
because i want to change the default register

Possible backdoor to use like the Iphone and quickpwn

I noticed in /system/etc there is a permisions file, it's hapily name permisions.xml, that's not the part that intriuged me. It's what the file says.
"<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful.
-->
- <permission name="android.permission.DIAGNOSTIC">
<group gid="input" />
<group gid="diag" />
</permission>"
What about making a tool that acts like the diagnostics tools that are used by the carrier and the manufacture? If we can atleast get it working enough to remove the recovery.img that was lock in rc30. Then we have root back. I have included the entire permisions file.
No can do. The app apk has to be signed with the same keys as the system apks (not sure which exactly) in order to use that permission.
If you look at the /frameworks/base/core/res/AndroidManifest.xml file (from the source in git), here's the entry for that permission
<!-- Allows applications to RW to diagnostic resources. -->
<permission android:name="android.permission.DIAGNOSTIC"
androidermissionGroup="android.permission-group.SYSTEM_TOOLS"
androidrotectionLevel="signature"
android:description="@string/permdesc_diagnostic"
android:label="@string/permlab_diagnostic" />
See that part about "protectionLevel"? That's what tells it that it has to be signed with the same key as the system apks.
Yeah I see it, I didn't know about that dir, it's mostly blocked in rc30. Is there any possible way to unlock just the recovery file so I can get off the wretched rc30 official update.
That's a directory in the android source code, not on the phone.
And no. There isn't a way to unlock recovery. There isn't any known way to downgrade from or get root on the official RC30. If there was, there would be a big huge new thread with blinking lights and the whole bit, saying "we've found an exploit for RC30!". It would be in all the blogs and android news sites.. etc.
You are right about that..
And there will proberley not be any exploit for RC30.
It is pretty locked up.
The bedst shoot wil be somthing about resign update.zip so we are able to flash anything.
there's probably gonna be another update to integrate flash... who knows maybe we'll step up from Release Candidate to a real version since the phone has been out for a while now
maybe something will open there
What about using part of the quickpwn app for win, to jailbreak the iphone, and use part of it? Or what about making it do something in bootloader, end + camera? And what about it was discussed in another thread that t-mobile could force you to do an ot through a program in market, what about turning that around and make it do a force ota to the modded rc30 or orig rc29? Also what about just giving the original recovery.img file and the rc29 update file, and see if that works.
I think you are shooting in the dark here. Out of the 5 "what about"'s I think 3 have been shown to be impossible and the first one doesnt make sense. What would an Iphone hack do on a G1? And for the second "what about", what do you mean? flash an image? If you can get the signatures from HTC then that would work great, but dont get your hopes up.
Don't get me wrong, brainstorming is what will get this thing "hacked" but not just blindly trying stuff. Read around on this forums (and others) about what all has been suggested and tried and then try to find ways besides those.
Anyone know if we can compile android from source and install it on the sd card a la debian?
just curious, haven't gotten a clean answer on this one.
using rc30 official, wishing i had root.
I've been looking into this one http://forum.xda-developers.com/showpost.php?p=2907754&postcount=33, also yes I was stabing in the dark. I just wish I knew how to run the sdk and emulator on Win XP.
That's fine and dandy, except that the G1 doesn't use that bootloader
But I just realized something. When I connected my g1 and win XP laptop to the same wireless network, then went to ipchicken.com on both I had the same ip, so I ran the telnet client on the g1 and it worked. But BusyBox is there when I did the telnet, and I don't know the pass or login, it changed when the ota was done.
card13 said:
But I just realized something. When I connected my g1 and win XP laptop to the same wireless network, then went to ipchicken.com on both I had the same ip, so I ran the telnet client on the g1 and it worked. But BusyBox is there when I did the telnet, and I don't know the pass or login, it changed when the ota was done.
Click to expand...
Click to collapse
Nothing stange in that, you are looking up your public ipadress up at ipchicken.com and that will be the same for all yours computers on the router segment.
And a quick port scan will show no ports open on your G1
I need help w/the busybox pass. Last time I almost had root this is how I did it, but when I did the OTA the pass changed.
card13 said:
But I just realized something. When I connected my g1 and win XP laptop to the same wireless network, then went to ipchicken.com on both I had the same ip, so I ran the telnet client on the g1 and it worked. But BusyBox is there when I did the telnet, and I don't know the pass or login, it changed when the ota was done.
Click to expand...
Click to collapse
well hey its very cool :
you learned that your cablemodem, fios box, modem, has 1 public ip and your router gives out private ips to your subnet (stuff plugged into your router)
thats why things have to be forwarded in your router to make incoming connections work (ie: bittorrent) and get to one specific device of possibly many at your.private.ip
that is a great thing to learn, but I dont think studing tcpip/nat routing is gonna get root back on a rc30 phone...
sorry I know its an old post and bee flamed at bit already, this isnt meant to be flamy in anyway but I couldn't help it I truly mean no harm.
but this post reminded me of the wonder at learning how things work, by looking in completely the wrong direction...
bhang

Deleting certain registry keys with post-xmlprovisioning

I have a few keys I want to delete using xml-provisioning:
<characteristic type="Registry">
<nocharacteristic type="HKLM\Services\SqmUpload"/>
<nocharacteristic type="HKLM\Services\BTAGSVC"/>
<nocharacteristic type="HKLM\Services\BthAsPlugin"/>
</characteristic>
When I built the cab, I checked the _setup.xml and it looks fine, nothing odd there. When trying to install on a fresh device (hardware reset, htc 7500 running wm 6.1) i get "RegTest1 cannot be installed".
I came to the conclusion that these three values are not deleteable using post-xmlprovisioning, but I dont know why and if there is any way to circumvent this:
<nocharacteristic type="HKLM\Services\HTCSENSOR"/>
<nocharacteristic type="HKLM\Services\HTCSENSOR2"/>
<nocharacteristic type="HKLM\Services\Gsensor"/>
The above three values are not producing this error and they also get deleted from the registry correctly.
Does anyone know the cause for this behaviour and maybe even a solution? Can it be that I need to set a DWORD (Flags=4) first so that the services wont load on boot? But I should be able to delete the damn key anyway i think...
I am not a coder so if the solution is a codesnippet in a setup.dll or similar, I'll have to learn C#
Hmm, found a solution, not an acceptable one though.
First I have to add Flags, value 4, then reboot, THEN delete the keys.
This requires stuff I dont know how to do.
1. reboot the unit
2. run something that provisions the rest of the xml-code and deletes the keys, silently in the background.
Does anyone know how to do this? Can a cab be executed in priviliged mode and does anyone know if it might help doing so?

The Mediatek GPS issue - a definitive and hopefully permanent solution.

Mediatek and GPS, ah, how we love trying to get it to work. People have been making foil antennas, tweaking GPS.conf, meddling with NTP and all manner of other things to get it working only to find that the very next day it is back to sullenly sitting there with ne'er a satellite in view. Duff hardware? It seems likely - only it's not. There is nothing at all wrong with the Mediatek GPS hardware. When it is allowed to work, it works as well as anything I've come across, SiRF included.
The problem is assumption on the part of manufacturers and our insatiable lust for a bargain. Assume makes an ass of u and me.
Prerequisites:
Root and the ability to mount /system RW. Sorry if you're one of these people who flatly refuses to root their devices, this is not the solution you're looking for <fx:waves hands/>
Some method of getting into MTK Engineering Mode, whether that's MobileUncle, the "secret" dialler code, GravityBox etc.
A text editor that doesn't follow the MS rule that their line breaks are correct and everyone else+dog is wrong. Notepad++ will do for those of you who cannot break the Redmond shackles. MS Notepad is just going to corrupt the files.
ADB set up and working.
No allergy to XML. If you start sneezing, your eyes start streaming or anything happens to your vision after looking at a few <>'s, please discontinue use.
Step 1: Disable EPO. It's worse than useless for any other starting location but Shenzhen. If you don't believe me, try enabling it again after you complete the rest of the steps. Go into engineering mode and, under Location/Location based service/EPO deselect the obvious checkboxes. This on its own improves matters enormously. With some ROMs you can also do this through Settings by tapping the "GPS satellites" item in Location access and deselect the "Enable EPO assistance" checkbox.
Step 2: Mount /system read/write with whatever method you normally use, whether that's adb remount, adb shell mount -o rw,remount /system or whatever.
Step 3: cd to a clean directory, say MTKGPS.
Step 4: adb pull the following files:
Code:
/system/etc/gps.conf
/system/etc/agps_profiles_conf.xml
/data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
Careful with that last one, it appears in more than one place but it is the com.mediatek.lbs.em version we want
Note the file permissions for these files as they stand on your particular ROM.
Code:
-rw-r--r-- root root 164 2014-06-19 18:29 gps.conf
-rw-r--r-- root root 9502 2014-06-20 15:29 agps_profiles_conf.xml
-rw-rw---- u0_a39 u0_a39 2659 2014-06-20 20:21 agps_profile.xml or
-rw-rw---- 10039 10039 2659 2014-06-20 20:21 agps_profile.xml
The owner of the agps_profile.xml file should be the user's UID. It may be different on your handset. Check it first, please. If any of these differ on your ROM, use the permissions on yours as canonical. This is just a guide.
Step 5: Now we're going to do what FasterGPS does, only a bit more. Edit the gps.conf to look something like this:
Code:
NTP_SERVER=<your country>.pool.ntp.org
SUPL_HOST=supl.nokia.com
SUPL_PORT=7275
INTERMEDIATE_POS=1
ACCURACY_THRES=5000
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_USER_PLANE=TRUE
Purists will note I'm using Nokia's SUPL server here. A little research tells me that Google's SUPL is, well, it's a bit pants - and not just because it's one more way they get PII from you. YMMV, beware of the leopard, and so forth. If you want to use the chocolate factory's SUPL, just swap the SUPL_HOST line to supl.google.com.
Save the file.
Step 6: Now let's undo the mistakes of the manufacturer. Unfortunately we have to delve into some unholy XML for this but don't worry, it's not that difficult despite how daunting the file looks in a text editor. Open agps_profile.xml in your editor.
Make sure the following lines (amongst loads of others that should be left alone) appear as shown:
Code:
<int name="slp_port" value="7275" />
<string name="slp_code">NOKIA</string>
<boolean name="agps_enable" value="true" />
<string name="slp_addr">supl.nokia.com</string>
That's the barebones. Don't exit the file yet. Locate the following lines:
Code:
<float name="nTargetAreaGeolat" value="nn.nnnnn" />
<float name="nTargetAreaGeolng" value="nn.nnnnn" />
See the problem? Try sticking the co-ords from your file into an online mapper. These are passed to the SUPL server no matter what CellID your phone reports. Worse, if you have no cellular radio, it's taken as gospel so you get ephemeris for the middle of China. Useful. This is why cold start takes even longer than it would on a standalone GPS from cold.
Now, what we need to do is set those up for your general location. It doesn't need to be point precise, just a general 0.1 degree lat and long.
IMPORTANT: If you are West of the Meridian, you need to do some jiggery-pokery with your longitude. This file treats the world as a 360 degree ball, so you need to subtract your longitude from 360. For example, if you're 4 deg W of Greenwich, your longitude would be 356.0. 110.3W equates to 249.7. Yes, this number drops as your longitude goes up if you're West.
Save this file.
Step 7: Now let's edit the agps_profiles_conf.xml. This one's fairly easy, just change the end to look like this, with the usual GOOGLE in default_profile if that's your bag:
Code:
<agps_conf_para
agps_enable="yes"
ca_enable="no"
cdma_agps_preferred="0"
cp_auto_reset="no"
cp_gemini_pref_sim="1"
cp_up_selection="up"
default_cdma_profile="CDMA1"
default_profile="NOKIA"
disable_after_reboot="no"
ecid_enable="yes"
gpevt="no"
log_file_max_num="10"
ni_request="yes"
notify_timeout="8"
roaming="yes"
si_mode="mb"
supl_version="1"
verify_timeout="8"
/>
</agps_profiles>
Note cp_gemini_pref_sim can be set to 2 if that's your main SIM that usually has a signal. It is used as the CellID source for aGPS, not the data connection the aGPS data is fetched on.
Save the file.
Step 8: Push the files back with adb and set up their ownership and permissions:
Code:
adb remount
adb push gps.conf /system/etc/gps.conf
adb push agps_profiles_conf.xml /system/etc/agps_profiles_conf.xml
adb push agps_profile.xml /data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
adb shell chown 10039:10039 /data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
adb shell chmod 660 /data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
adb shell chmod 644 /system/etc/agps_profiles_conf.xml
adb shell chmod 644 /system/etc/gps.conf
Step 9: Reboot and retry your GPS. Once you have checked everything is working, you can re-enable EPO, clear the aGPS data in Engineering Mode and try again just to verify I'm not talking out of my backside. EPO really doesn't help in this guise, at least not in the UK.
In conclusion, these can be made to work. With these changes in place I can get an indoor lock in airplane mode in just under ten seconds a day and a reboot after last using the GPS. You need a rooted device and some bright spark will no doubt automate all of this - I'm no Android hacker so don't look at me. GravityBox would be my guess as it's developed at a remarkable pace - thanks for the app, BTW
I do hope this works for everyone. It would be nice to put this one to bed once and for all. A final note: There may be errors in this. I'm only human. Check, double check, triple check, take backups, all the usual stuff. Flames to /dev/null, please.
Question: When I enter the coords of my general location, does that mean I will have trouble if I travel to another country or just very far from the mentioned coords?
Thanks for the guide BTW. This deserves more views.
DiGtal said:
Question: When I enter the coords of my general location, does that mean I will have trouble if I travel to another country or just very far from the mentioned coords?
Thanks for the guide BTW. This deserves more views.
Click to expand...
Click to collapse
It certainly won't be any slower than stock, that is for sure. Eventually it'll override the aGPS if you're away from your normal starting location. For occasional use abroad, it won't make it any worse and you should have a cell tower's details to pass to the SUPL server anyway.
Sounds a lot of work for such little thing.
I just use 3 apps and about 2 minutes of my time. And GPS works like a charm.
I'm not trying to dis you work friend. But there are simpler ways to do the same thing.
So, here it is:
Get "FasterGPS" app from Google Play Store. \
Get " MT GPS" app from Google Play Store } All free.
Get "MobileUncle" app from Google Play Store /
Go to Your GPS and mark everything ON.
Use FasterGPS and change your GPS Zone. i.e. Europe/Portugal
Use MT GPS to download the EPO Files.
Use MobileUncle, click on engineer mode, again on engineer mode (mtk),
sweep to the left until you find YGPS, click on it, then on information,
down you'll see hot, full and AGPS restart, follow this order and click on them.
Go back and click on satellites, and that's it...
Personally i use Sygic v14.02, it's the best to find satellites and a very quick fix.
But you use whatever you wish.
bravesoul said:
Sounds a lot of work for such little thing.
I just use 3 apps and about 2 minutes of my time. And GPS works like a charm.
I'm not trying to dis you work friend. But there are simpler ways to do the same thing.
So, here it is:
Get "FasterGPS" app from Google Play Store. \
Get " MT GPS" app from Google Play Store } All free.
Get "MobileUncle" app from Google Play Store /
Go to Your GPS and mark everything ON.
Use FasterGPS and change your GPS Zone. i.e. Europe/Portugal
Use MT GPS to download the EPO Files.
Use MobileUncle, click on engineer mode, again on engineer mode (mtk),
sweep to the left until you find YGPS, click on it, then on information,
down you'll see hot, full and AGPS restart, follow this order and click on them.
Go back and click on satellites, and that's it...
Personally i use Sygic v14.02, it's the best to find satellites and a very quick fix.
But you use whatever you wish.
Click to expand...
Click to collapse
Olá amigo, i´ve tryed everithing for my thl w8s and with no results, i will try the aluminium strip and post results.
I followed through your tutorial except this part:
HTML:
<float name="nTargetAreaGeolat" value="nn.nnnnn" />
<float name="nTargetAreaGeolng" value="nn.nnnnn" />
It is not present on my file, so I thought it would be best not to add some hardcoded GeoRef, is it needed for something special?
Disabling EPO gave me an accuracy close to 3.0, with EPO enabled accuracy remained on 4.5.
Great work!
NunoFilipeSantos said:
I followed through your tutorial except this part:
HTML:
<float name="nTargetAreaGeolat" value="nn.nnnnn" />
<float name="nTargetAreaGeolng" value="nn.nnnnn" />
It is not present on my file, so I thought it would be best not to add some hardcoded GeoRef, is it needed for something special?
Disabling EPO gave me an accuracy close to 3.0, with EPO enabled accuracy remained on 4.5.
Great work!
Click to expand...
Click to collapse
I did the above combination on a FAEA F2 (MT6589)
Tried the same on a Jiayu G4 (MT6589) and worked again beautifully, 3.4 Accuracy without EPO enabled.
In my ROM (MT6589T soc), 2 of the files are missing:
Code:
/system/etc/gps.conf
/data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
I know i can create gps.conf (seen it in some custom roms) but don't know about the other file?
Also, there is /system/etc/epo_conf.xml which seems to enable epo.
Should that be changed also?
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epo_profiles version="1">
<!-- The following parameters are provided for customer to
configure EPO default value.
-->
<!--
epo_enable:
Wether to enable EPO when device first boot up.
auto_enable:
Wether to enable EPO auto download feature when device first boot up.
update_period:
Update period, the unit is minute. if the value is set to "4320",
then it will update EPO file per 3 days (3 days = 4320 minutes).
The minimal value of update_period should not be less than 1440 (1 day).
-->
<epo_conf_para
epo_enable="yes"
auto_enable="yes"
update_period="21600"
/>
</epo_profiles>
major issue
I have a Jiayu G3C a Chinese phone it's running on android 4.2.2 and I believe it's the latest version fir this phone..the processor is MediaTek 6582
problem is EVEN IF SWITCH OFF the GPS so long as DATA is turned on it will keep on searching for gps. if I'm on Wi-Fi this problem doesn't happen...now I bought the phone due to its low cost, DUAL SIM + massive 3000mAh battery..but this battery is drained massively because of this bug. I can't enjoy the very first reason why I bought the phone. I went to engineering mode tried to disable AGPS and save the settings but the settings don't actually get saved n the bug continues to exist
The /system/gps.conf file didn't exist, till i got FasterGPS. I actually set the all the values recommended on FasterGPS as it has all the options recommended here. Why didn't it exist before? Any problem to set it this way?
The file /data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml doesn't exist as well. What should i do?
Oh, i got a THL 5000 and Bshuy's ROM.
Has anyone tried this and can confirm it works?
Got my mum a Jiayu G4S and whilst it locks on pretty quickly just driving a couple of miles up the road leads it to go haywire. Showing us as being in different roads 100's feet away
Thank you so much!
Thank for your amazing post you was light of dark night I test it on my phone (huawi holy hol-u19) and it works perfectly now it can find and fix more than 4 satlite indoors.
I really wonder why a good hardware pulled down by **** software.
anyway thank so much keep on share your exprieces whit us.
can`t get gps on english us
M8 ..thanx for that tutorial !!
I use ZTE Blade Q (mtk6572) and i just set UID for agps_profile.xml and edited this strings
<agps_conf_para
agps_enable="yes"
ca_enable="no"
cdma_agps_preferred="0"
cp_auto_reset="no"
cp_gemini_pref_sim="1"
cp_up_selection="up"
default_cdma_profile="CDMA1"
default_profile="NOKIA"
disable_after_reboot="no"
ecid_enable="yes"
gpevt="no"
log_file_max_num="10"
ni_request="yes"
notify_timeout="8"
roaming="yes"
si_mode="mb"
supl_version="1"
verify_timeout="8"
/>
</agps_profiles>
Click to expand...
Click to collapse
After that i get fix in 2 sec indoor by the window :good:
Mr
Good day,
My apologies if I am out off line! The explanation for a problem with the Mediatek GPS is way over my head.
The problem is that the system lost its boot sequence and stop on a update window. It used to run Windows CE5 but that seems to be gone. The product is a Chinese 4" screen and that is all I've got.
Looking at the thread it seems to me that I must become a rocket scientist to get it to work again and at my age that is not possible. Friends of mine recommend: buy a new one!
Any suggestion?
Tom
PS. Enjoy the new year!
brangryavesoul said:
Sounds a lot of work for such little thing.
I just use 3 apps and about 2 minutes of my time. And GPS works like a charm.
I'm not trying to dis you work friend. But there are simpler ways to do the same thing.
So, here it is:
Get "FasterGPS" app from Google Play Store. \
Get " MT GPS" app from Google Play Store } All free.
Get "MobileUncle" app from Google Play Store /
Go to Your GPS and mark everything ON.
Use FasterGPS and change your GPS Zone. i.e. Europe/Portugal
Use MT GPS to download the EPO Files.
Use MobileUncle, click on engineer mode, again on engineer mode (mtk),
sweep to the left until you find YGPS, click on it, then on information,
down you'll see hot, full and AGPS restart, follow this order and click on them.
Go back and click on satellites, and that's it...
Personally i use Sygic v14.02, it's the best to find satellites and a very quick fix.
But you use whatever you wish.
Click to expand...
Click to collapse
I was so angry with the crapy performance of my MTK 6582 GPS.
This is the only thing that worked for me after so many days. After every reboot I have to manually turn off EPO downloading again, and to update EPO manually butI can live with that.
Thank you so much
Chron0s said:
Mediatek and GPS, ah, how we love trying to get it to work. People have been making foil antennas, tweaking GPS.conf, meddling with NTP and all manner of other things to get it working only to find that the very next day it is back to sullenly sitting there with ne'er a satellite in view. Duff hardware? It seems likely - only it's not. There is nothing at all wrong with the Mediatek GPS hardware. When it is allowed to work, it works as well as anything I've come across, SiRF included.
The problem is assumption on the part of manufacturers and our insatiable lust for a bargain. Assume makes an ass of u and me.
Prerequisites:
Root and the ability to mount /system RW. Sorry if you're one of these people who flatly refuses to root their devices, this is not the solution you're looking for <fx:waves hands/>
Some method of getting into MTK Engineering Mode, whether that's MobileUncle, the "secret" dialler code, GravityBox etc.
A text editor that doesn't follow the MS rule that their line breaks are correct and everyone else+dog is wrong. Notepad++ will do for those of you who cannot break the Redmond shackles. MS Notepad is just going to corrupt the files.
ADB set up and working.
No allergy to XML. If you start sneezing, your eyes start streaming or anything happens to your vision after looking at a few <>'s, please discontinue use.
Step 1: Disable EPO. It's worse than useless for any other starting location but Shenzhen. If you don't believe me, try enabling it again after you complete the rest of the steps. Go into engineering mode and, under Location/Location based service/EPO deselect the obvious checkboxes. This on its own improves matters enormously. With some ROMs you can also do this through Settings by tapping the "GPS satellites" item in Location access and deselect the "Enable EPO assistance" checkbox.
Step 2: Mount /system read/write with whatever method you normally use, whether that's adb remount, adb shell mount -o rw,remount /system or whatever.
Step 3: cd to a clean directory, say MTKGPS.
Step 4: adb pull the following files:
Code:
/system/etc/gps.conf
/system/etc/agps_profiles_conf.xml
/data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
Careful with that last one, it appears in more than one place but it is the com.mediatek.lbs.em version we want
Note the file permissions for these files as they stand on your particular ROM.
Code:
-rw-r--r-- root root 164 2014-06-19 18:29 gps.conf
-rw-r--r-- root root 9502 2014-06-20 15:29 agps_profiles_conf.xml
-rw-rw---- u0_a39 u0_a39 2659 2014-06-20 20:21 agps_profile.xml or
-rw-rw---- 10039 10039 2659 2014-06-20 20:21 agps_profile.xml
The owner of the agps_profile.xml file should be the user's UID. It may be different on your handset. Check it first, please. If any of these differ on your ROM, use the permissions on yours as canonical. This is just a guide.
Step 5: Now we're going to do what FasterGPS does, only a bit more. Edit the gps.conf to look something like this:
Code:
NTP_SERVER=<your country>.pool.ntp.org
SUPL_HOST=supl.nokia.com
SUPL_PORT=7275
INTERMEDIATE_POS=1
ACCURACY_THRES=5000
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_USER_PLANE=TRUE
Purists will note I'm using Nokia's SUPL server here. A little research tells me that Google's SUPL is, well, it's a bit pants - and not just because it's one more way they get PII from you. YMMV, beware of the leopard, and so forth. If you want to use the chocolate factory's SUPL, just swap the SUPL_HOST line to supl.google.com.
Save the file.
Step 6: Now let's undo the mistakes of the manufacturer. Unfortunately we have to delve into some unholy XML for this but don't worry, it's not that difficult despite how daunting the file looks in a text editor. Open agps_profile.xml in your editor.
Make sure the following lines (amongst loads of others that should be left alone) appear as shown:
Code:
<int name="slp_port" value="7275" />
<string name="slp_code">NOKIA</string>
<boolean name="agps_enable" value="true" />
<string name="slp_addr">supl.nokia.com</string>
That's the barebones. Don't exit the file yet. Locate the following lines:
Code:
<float name="nTargetAreaGeolat" value="nn.nnnnn" />
<float name="nTargetAreaGeolng" value="nn.nnnnn" />
See the problem? Try sticking the co-ords from your file into an online mapper. These are passed to the SUPL server no matter what CellID your phone reports. Worse, if you have no cellular radio, it's taken as gospel so you get ephemeris for the middle of China. Useful. This is why cold start takes even longer than it would on a standalone GPS from cold.
Now, what we need to do is set those up for your general location. It doesn't need to be point precise, just a general 0.1 degree lat and long.
IMPORTANT: If you are West of the Meridian, you need to do some jiggery-pokery with your longitude. This file treats the world as a 360 degree ball, so you need to subtract your longitude from 360. For example, if you're 4 deg W of Greenwich, your longitude would be 356.0. 110.3W equates to 249.7. Yes, this number drops as your longitude goes up if you're West.
Save this file.
Step 7: Now let's edit the agps_profiles_conf.xml. This one's fairly easy, just change the end to look like this, with the usual GOOGLE in default_profile if that's your bag:
Code:
<agps_conf_para
agps_enable="yes"
ca_enable="no"
cdma_agps_preferred="0"
cp_auto_reset="no"
cp_gemini_pref_sim="1"
cp_up_selection="up"
default_cdma_profile="CDMA1"
default_profile="NOKIA"
disable_after_reboot="no"
ecid_enable="yes"
gpevt="no"
log_file_max_num="10"
ni_request="yes"
notify_timeout="8"
roaming="yes"
si_mode="mb"
supl_version="1"
verify_timeout="8"
/>
</agps_profiles>
Note cp_gemini_pref_sim can be set to 2 if that's your main SIM that usually has a signal. It is used as the CellID source for aGPS, not the data connection the aGPS data is fetched on.
Save the file.
Step 8: Push the files back with adb and set up their ownership and permissions:
Code:
adb remount
adb push gps.conf /system/etc/gps.conf
adb push agps_profiles_conf.xml /system/etc/agps_profiles_conf.xml
adb push agps_profile.xml /data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
adb shell chown 10039:10039 /data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
adb shell chmod 660 /data/data/com.mediatek.lbs.em/shared_prefs/agps_profile.xml
adb shell chmod 644 /system/etc/agps_profiles_conf.xml
adb shell chmod 644 /system/etc/gps.conf
Step 9: Reboot and retry your GPS. Once you have checked everything is working, you can re-enable EPO, clear the aGPS data in Engineering Mode and try again just to verify I'm not talking out of my backside. EPO really doesn't help in this guise, at least not in the UK.
In conclusion, these can be made to work. With these changes in place I can get an indoor lock in airplane mode in just under ten seconds a day and a reboot after last using the GPS. You need a rooted device and some bright spark will no doubt automate all of this - I'm no Android hacker so don't look at me. GravityBox would be my guess as it's developed at a remarkable pace - thanks for the app, BTW
I do hope this works for everyone. It would be nice to put this one to bed once and for all. A final note: There may be errors in this. I'm only human. Check, double check, triple check, take backups, all the usual stuff. Flames to /dev/null, please.
Click to expand...
Click to collapse
GPS works ok for me without any change, but will be very slow to start without AGPS which requires a SIM card, or wifi connection. Of course you generally don't have access to AGPS inside an airplane in an underground place or anywhere radio waves can't enter, etc.

[GUIDE] Honor 9 Headphone Volume Increase

Introduction
Since first getting the Honor 9 (STF-L09) all was well apart from the fact that there is clearly a volume limit on the UK/EU version of the phone, meaning that when walking through town, I couldn't hear my music properly. After a while searching the forums for a solution, I finally found motivation to tackle the problem myself and luckily have found a solution, not to the limiting, but to increase the headphone volume.
Credit
Credit to Demeth for the starter for ten when looking at this issue, who found the solution for the Honor 7
Requirements
You'll need a rooted Honor 9 and a Root Explorer to edit the files in question.
Tested on
I have tested this only on my own Honor 9 STF-L09 running build STF-L09C432B100 purchased in the UK.
This method may work on other versions, but you might have to trial and error the *.xml file located in /product/etc/audio/hi6403. I removed all mixer_volumes_STF-*.xml files. restarted and had no volume at all. I copied them back one by one, restarting after each until I had sound again, taking note of the last file copied; this is the one I ended up editing.
You may have to do this if the changes to mixer_volumes_STF-Oversea_ce.xml do not work for you.
Actions
Steps 1 and 2 look to remove the high volume warning limit, step 3 increases the headphone volume. I suggest carrying out all three steps.
1. Open Root Explorer and browse to /hw_oem/prop and open the local.prop file in read/write mode, edit the below line:
Code:
ro.config.hw.security_volume=14
To look like:
Code:
[B]#[/B]ro.config.hw.security_volume=14
Save the file, Root Explorer will create a backup (.bak) file of the original.
2. Browse to /product/hw_oem/STF-L09/prop and open the local.prop file in read/write mode, edit the below line:
Code:
ro.config.hw.security_volume=14
To look like:
Code:
[B]#[/B]ro.config.hw.security_volume=14
Save the file
3. Browse to /product/etc/audio/hi6403 and open the mixer_volumes_STF-Oversea_ce.xml file in read/write mode, edit the below line:
Code:
<path name="media-headphone" >
<ctl name="S1 IL PGA GAIN" value="252" />
<ctl name="S1 IR PGA GAIN" value="252" />
</path>
To look like:
Code:
<path name="media-headphone" >
<ctl name="S1 IL PGA GAIN" value="265" />
<ctl name="S1 IR PGA GAIN" value="265" />
</path>
Save the file.
4. Restart the phone and you should now have increased headphone volume and no complaint about high volume levels. The limit is still in place, but the maximum volume should now be increased.
Disclaimer
I am not responsible for any damage to your phone, headphones or ears, or any other alternative impact this change may or may not have.
ennbee said:
Code:
<path name="media-headphone" >
<ctl name="S1 IL PGA GAIN" value="265" />
<ctl name="S1 IR PGA GAIN" value="265" />
</path>
Click to expand...
Click to collapse
Any ideas how high the values can be set?
255 or 256 would make sense as 8-bit variable, but 265 indicates that there can be more.
Finally solved my problem with low audio (atleast it seems so).
For anyone on Emui 8 who can't find files in step 3, try /odm/etc/audio.
Actually found this location after browsing many guides for different Honor phones and found that we have same location as a Huawei Mate 10 Pro.
Seems like location is changing with every emui update or with every phone. Confusing as hell.
robenzo420 said:
Finally solved my problem with low audio (atleast it seems so).
For anyone on Emui 8 who can't find files in step 3, try /odm/etc/audio.
Actually found this location after browsing many guides for different Honor phones and found that we have same location as a Huawei Mate 10 Pro.
Seems like location is changing with every emui update or with every phone. Confusing as hell.
Click to expand...
Click to collapse
Can you please help me i have Mate 10 Lite Oreo i tried everything nothing worked for me ?
robenzo420 said:
Finally solved my problem with low audio (atleast it seems so).
For anyone on Emui 8 who can't find files in step 3, try /odm/etc/audio.
Actually found this location after browsing many guides for different Honor phones and found that we have same location as a Huawei Mate 10 Pro.
Seems like location is changing with every emui update or with every phone. Confusing as hell.
Click to expand...
Click to collapse
I find the 3rd file in same place like you, but with this one, i can't modify it (no permissions :/)
Pachanka said:
I find the 3rd file in same place like you, but with this one, i can't modify it (no permissions :/)
Click to expand...
Click to collapse
Of course you need to be rooted and use 3rd party file explorer with root permissions. I used Solid Explorer.
I'm rooted and use Root Explorer with permission on this app....with no success :/
Perfect. This has bugged me for ages. Especially when you plug in the headphones initially and you can hear the full volume and it almost instantly quietened down.
It works, thank you ^^
Inviato dal mio STF-L09 utilizzando Tapatalk
on later emui versions, its in the hi6403 subfolder
It would possible yo do this for audio bluetooth?

Categories

Resources