[Android General] phonefromchina:
NetworkLocation fix

Hi,

I think I found out what makes the NetworkLocation fix.

In file /system/app/NetworkLocation.apk -> cleasses.dex ->

classes/com/google/android/location/localizer/LocatorManager.smali

line 103
iget-object v1, v0, Lcom/google/android/location/data/WifiLocatorResult;->status:Lcom/google/android/location/data/LocatorResult$ResultStatus;
--- change to ---
iget-object v1, v0, Lcom/google/android/location/data/LocatorResult;->status:Lcom/google/android/location/data/LocatorResult$ResultStatus;

line 341
iget-object v4, p3, Lcom/google/android/location/data/GlsLocatorResult;->status:Lcom/google/android/location/data/LocatorResult$ResultStatus;
--- change to ---
iget-object v4, p3, Lcom/google/android/location/data/LocatorResult;->status:Lcom/google/android/location/data/LocatorResult$ResultStatus;

classes/com/google/android/location/localizer/MaxLreLocalizer.smali

line 726
iget v6, v5, Lcom/google/android/location/data/WifiApPosition;->latE7:I
--- change to ---
iget v6, v5, Lcom/google/android/location/data/Position;->latE7:I

line 735
iget v6, v5, Lcom/google/android/location/data/WifiApPosition;->lngE7:I
--- change to ---
iget v6, v5, Lcom/google/android/location/data/Position;->lngE7:I

classes/com/google/android/location/internal/server/ServiceThread.smali

line 247
iget-object v2, v2, Lcom/google/android/location/data/WifiLocatorResult;->position:Lcom/google/android/location/data/Position;
--- change to ---
iget-object v2, v2, Lcom/google/android/location/data/LocatorResult;->position:Lcom/google/android/location/data/Position;

line 253
iget-object v2, v2, Lcom/google/android/location/data/WifiLocatorResult;->position:Lcom/google/android/location/data/Position;
--- change to ---
iget-object v2, v2, Lcom/google/android/location/data/LocatorResult;->position:Lcom/google/android/location/data/Position;

line 264
iget-object v3, v3, Lcom/google/android/location/data/WifiLocatorResult;->position:Lcom/google/android/location/data/Position;
--- change to ---
iget-object v3, v3, Lcom/google/android/location/data/LocatorResult;->position:Lcom/google/android/location/data/Position;

line 274
iget-object v2, v2, Lcom/google/android/location/data/WifiLocatorResult;->position:Lcom/google/android/location/data/Position;
--- change to ---
iget-object v2, v2, Lcom/google/android/location/data/LocatorResult;->position:Lcom/google/android/location/data/Position;

line 280
iget-object v2, v2, Lcom/google/android/location/data/WifiLocatorResult;->position:Lcom/google/android/location/data/Position;
--- change to ---
iget-object v2, v2, Lcom/google/android/location/data/LocatorResult;->position:Lcom/google/android/location/data/Position;

line 293
iget-object v3, v3, Lcom/google/android/location/data/WifiLocatorResult;->position:Lcom/google/android/location/data/Position;
--- change to ---
iget-object v3, v3, Lcom/google/android/location/data/LocatorResult;->position:Lcom/google/android/location/data/Position;

classes/com/google/android/location/NetworkLocator.smali

line 1087
iget-object v0, v0, Lcom/google/android/location/data/CellLocatorResult;->status:Lcom/google/android/location/data/LocatorResult$ResultStatus;
--- change to ---
iget-object v0, v0, Lcom/google/android/location/data/LocatorResult;->status:Lcom/google/android/location/data/LocatorResult$ResultStatus;

line 1114
iget-object v0, v0, Lcom/google/android/location/data/WifiLocatorResult;->status:Lcom/google/android/location/data/LocatorResult$ResultStatus;
--- change to ---
iget-object v0, v0, Lcom/google/android/location/data/LocatorResult;->status:Lcom/google/android/location/data/LocatorResult$ResultStatus;

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

For recovery I found out language is hardcoded in binary. Therefor translation is not that easy. We can try to substitute recovery binary with a english version from an other phone. But may not work....

original fstab

# mount point	fstype	device	[device2]

/boot	emmc	boot
/cache	ext4	/dev/block/mmcblk0p2
/data	ext4	/dev/block/mmcblk0p3
/misc	emmc	misc
/recovery	emmc	recovery
/sdcard	vfat	/dev/block/mmcblk0p4
/system	ext4	/dev/block/mmcblk0p6

modded fstab

# mount point	fstype	device	[device2]

/boot	emmc	/dev/block/mmcblk0p1
/cache	ext4	/dev/block/mmcblk0p2
/data	ext4	/dev/block/mmcblk0p3
/misc	emmc	misc
/recovery	emmc	/dev/block/mmcblk0p1
/sdcard vfat	/dev/block/mmcblk1p1
/system	ext4	/dev/block/mmcblk0p6
/sdcard2	vfat	/dev/block/mmcblk0p4

---------- Post added at 10:31 PM ---------- Previous post was at 10:24 PM ----------

Have fun!

Thanks go to all devs out there!