yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] Schoralous:
Hi all

Sorry if this is the wrong place, if so the thread can be moved or I will repost to what someone tells me is the right place :)

I have a Galaxy s5 (SM-G900V), used to be on Verizon but is a no service/sim phone now and is WIFI only connectivity.

I need to be able to GPS hack the phone, undetectably.

Full phone details:

Galaxy S5 (SM-G900V)

Unlocked Bootloader

TWRP Installed 3.5.0_9-0

Magisk installed and hidden (v 23.0, Zygisk: No, Ramdisk: Yes)

Storage Isolation installed

CrDroid

About Phone says Android 10

I found this forum post (https://www.xda-developers.com/how-to-fake-location-android-gps-spoofing/) and looking at it, this appears to be what I need (please tell me if I am wrong).

Here is where I need some help. I am an IT guy and 100% comfortable with doing what needs done to the phone, but not recently up to speed on Android images, etc.

I enabled Developer Options so I could turn on USB Debugging

On several other phones I have tried this on, the Mock Locations option is either greyed out or does not exist at all, on this one the option is there and working, but I'm pretty sure from how a test app is refusing to even start if I have Mock Locations enabled, that it's the original Mock Locations which reports to the system that location is being mocked.

My question is, once I do the step about downloading Smali Patcher, generating and applying the Mock Locations patch, will the Patch replace the existing Mock Locations or will the fact that the original Mock Locations exists screw things up or leave me vulnerable to being detected mocking??

Thanks in advance for any help you can give me :)
[General Questions and Answers] Droidriven:
Why do you need to do it in a manner that can't be detected?
[General Questions and Answers] Schoralous:
Same reason as everyone does.. so the app I am using, which could be pokemon or anything else, does not detect I am GPS Spoofing
[General Questions and Answers] Droidriven:
Then you don't need anything special, you just need the standard method of using "mock location".
[General Questions and Answers] Schoralous:
If I use the 'standard mock location' that is available in all android versions once you enable developer options, mocking IS detected.

Did you not read the question I asked??

If I use Smali Patcher to apply the specific 'Mock Locations' that does not report to the system that location is being mocked, will it overwrite the existing "Mock Locations" or will it screw something up??
[General Questions and Answers] Droidriven:
Or, maybe you misunderstood what I meant by "standard mock location". The standard "method" should work, getting it "setup" may be a bit out of the ordinary, though.

There may be some other trick to use. I had a Galaxy S3 when Pokemon Go was released, I had to use a trick to get it to work on the S3 because it didn't have the GPS hardware compatibility required to run it. I didn't have to use mock location, I can't remember the trick I had to use, it was years ago.
[General Questions and Answers] Schoralous:
"Then you don't need anything special, you just need the standard method of using "mock location""

Yeah.. that's not at all confusing the way it's worded... anyways.

So Smali Patcher should replace the existing stock mock location with one that does not report it to the system is what I am getting from this.

Thanks :)
[General Questions and Answers] Schoralous:
Update for anyone reading this thread in the future in case it helps someone.

Yes, Smalipatcher does REPLACE/MODIFY the existing mock locations applet, so it's safe to do this procedure on phones that have the option already available or if it's greyed out.

One note of caution on the S5 Galaxy, might apply to other devices as well.

I was having a real problem with GPS Beaconing/rubberbanding... every few minutes the GPS Module and the spoofing software would 'fight' rather obviously for about 30 seconds.

So I had to go another step not included in the instructions at the link above. That was to move the GPS Joystick app to the system partition using the Magisk Systemize module.

Once you move the GPS Joystick app (the copied under a new name one that is mentioned in the instructions) system partition and make it a system app, you set the 'Mock Locations App' in Developer options to none. No more beaconing/rubberbanding.

Enjoy all :)
[Google Pixel 6] ne0ns4l4m4nder:
Just checking, has anyone tried the ota unroot then direct install after update method. With the lastest magisk released today?
[Google Pixel 6] BadGirlNila:
I did adb sideload method and flashed patched boot img with magisk 25
[Google Pixel 4 XL Questions & Answers] shirobuhito:
Hi everyone here, I hope everyone has a good day today. I've got my phone has been dead for quite a while now, the reason is it has the question mark during charging and I can't turn it off. At the first I thought it was the battery problem, I tried open it myself and replaced it with a new battery, however it got worse and it showed question mark battery and the question mark started blinking.

I haven't done checking to the repair shop due to busy with work. What do you guys think about the problem (might be the battery or one of the connector to the battery(?) and how much does it cost to fix it? Thanks in advance
[Google Pixel 4 XL Questions & Answers] blackhawk:
Has it been exposed to moisture?

Is the charging port clean?

Is the battery degraded (less than 80% of its original capacity)?

Is there any swelling, case or display bulging?

If so replace battery asap.

Otherwise, this is a serious problem. Use known good brick and cable. See if that resolves it.

The next step is to replace the battery and check all connections. If that fails replace charging port PCB and/or jack (if it has a replaceable one). If all that fails... mobo failure
[Google Pixel 4 XL Questions & Answers] shirobuhito:
Well at the first, I dropped it, then the battery stuck at 50%, then I pressed the back area but still the same, however this phone is already out of warranty so I replaced the battery by myself.
[Google Pixel 4 XL Questions & Answers] blackhawk:
If not the battery or loose connector... something was damaged in the drop. Always use a good case to prevent high G loading damage.
[Google Pixel 4 XL Questions & Answers] #mcl:
Hey! That means the phone isn't detecting the battery. As I saw you made a repair and you have an XL model, check the flex cable itself, especially where it folds, as it's very sensible and you could have bent it too much, breaking the cable.

I say that because I actually did that mistake, the cable doesn't usually come bent, so you need to bend it so it can fit, and when I did that I actually break it.

Hope this helps you!
[Google Pixel 4 XL Questions & Answers] shirobuhito:
I checked the flexible and it seems to be normal to me. I would not mind to buy another battery of it's the case. Thank you! Where did you buy the battery from?
[Google Pixel 4 XL Questions & Answers] #mcl:
It's very hard to see using just the eye. Maybe if you have other phone try to zoom into the cable to check.

I usually buy this things from ebay. Just check it's a great seller and that the price isn't very cheap neither very expensive.
[Samsung Galaxy S21 FE] Justbeingian:
I am trying to change my apps to full screen mode, however, when I go to the 'Full Screen Apps' setting, it only shows 4 apps to chose from. Is this a known bug? My previous galaxy phones showed every app and allowed me to force Full screen.
[Samsung Galaxy S21 FE] joke19:
Forget
[Touch Pro, Fuze General] Proto732:
If you want to use that PTT button for something on your AT&T Fuze without buying software to do it, follow my instructions below.

Warning. Editing the registry can be dangerous if you don't know what you are doing. I suggest backing up your device before starting this. It isn't at all complicated, but mistakes can have unintended results. This will disable PTT.

-Set your PTT button to <None> in Start, Settings, Buttons (un-needed step)

-In registry export or delete: HKCU\Software\HTC\PTT and HKLM/Services/PTT.

-Rename Windows\PTT to something else (you can't delete it...yet)

-Create a blank file called PTT in \Windows\, set the properties to System, Read Only

If you happen to go into Start, Settings, Buttons and try to assign the button there to something, the PTT directory you just renamed will get recreated. This Null file will prevent the directory from being recreated due to a name conflict.​

-Create two shortcut links: short_PTT.lnk, and long_PTT.lnk in \Windows\, that point to the apps you want to run for each of those types of presses. For example: "\Windows\Camera.exe"

-Power Off

-Power On

-Your PTT button should now be functional without any errors, or PTT service messages.

-A short press will run whatever you have defined in short_PTT.lnk (I have it set to voice command: "\windows\VoiceCMD.exe" -min

-A long press will run whatever you have defined in long_PTT.lnk (I have it set to the camera: "\Windows\Camera.exe"

I used Total Commander for all registry and file operations. Assignments stick after soft resets and power off reboots. Setting the Button under Start, Settings, Buttons will have no effect. As a matter of cleanup you can go back and delete the folder you renamed in step3 if you want.

Other hard button press shortcuts include: Long_End.lnk, Long_Send.lnk, Long_Power.lnk, Short_Power.lnk
[Touch Pro, Fuze General] ITNV:
You ROCK!

This worked like a charm. Thanks for posting!
[Touch Pro, Fuze General] AssassinsLament:
Wow, great job, I will try it later. Thanks!!
[Touch Pro, Fuze General] Thresher:
So Awesome!
[Touch Pro, Fuze General] Thresher:
Can anyone explain to me why under Start...Settings...Buttons...1. Select a button It only shows Button 1(Hold). All other buttons are gone...is this normal?
[Touch Pro, Fuze General] ITNV:
Yes. Out of the box the Fuze only allows customization of Button 1 (Hold).
[Touch Pro, Fuze General] cparkhorn:
Little Confused

I'm good with all the registry changes, but if the button isn't there to choose in step 1, should I do something before these steps to make it appear, then follow these steps? Thanks, sounds like an awesome fix.
[Touch Pro, Fuze General] ITNV:
Yeah, step 1 doesn't really apply. I skipped it and followed the other steps and it worked great!
[Touch Pro, Fuze General] Thresher:
Sorry to be whining but I don't understand. The first post does not indicate anything else is needed. What do I need to see all the buttons within the winmo6.1 Settings/Buttons?
[Touch Pro, Fuze General] Thresher:
Okay will try with skipping part 1. Thanks!
[Touch Pro, Fuze General] Proto732:
correction

True, Step one isn't necessary it was one of the steps I had written down while testing all the scenarios and failed to remove at the end.

You will not use Start, Settings, Buttons for anything at all after this work around. the Null file will prevent PTT from reinserting itself if you should forget and assign something fro Start, Settings, Buttons ... or some other software install auto assigns a button.
[Touch Pro, Fuze General] Thresher:
Thanks Proto for your time. So I am having trouble following along, in an attempt to help others in my scenario can you or someone help me understand the following items?

Step 1 - My Fuze doesn't allow any button changes except for button 1.

***Solution***Skip Step 1

Step 2 - HKLM\Software\HTC\ does not have a PTT folder; however HKCU does; HKCU\Software\HTC\PTT has a bunch of values in it

***Solution***?

Step 3 - What type of blank file do we create within Windows folder? I already have a PTT folder that has a few items in it.

***Solution***?

Maybe TorchButton, TF3d config, Total commander, or J.S advanced Config tool changed these settings?
[Touch Pro, Fuze General] ITNV:
Thresher-

Step 2 - I also didn't have an HKLM\Software\HTC\PTT key but did have a HKCU\Software\HTC\PTT key. I left the one in HKCU alone and went through the rest of the procedure without any adverse effects. I think that was a leftover instruction also.

Step 3 - I had a 0KB file called OK.txt already in my \Windows folder so I just made a copy of that and called it PTT and then gave it the settings he suggested. Seemed to work fine and was easier than getting Total Commander to create a new file in \Windows. If you don't have an OK.txt file, you can copy any txt file and then just delete all the contents.
[Touch Pro, Fuze General] Proto732:
Thresher

as for step 2 ... yes I could have goofed on HKLM vs HKCU ... since I already performed it I can't verify ... looking back at my notes HKCU is likely correct. The values in there are exactly what you are trying to get rid of.

as for step 3 ... you should have renamed the PTT directory to something else as the steps indicate. Then you are free to create a null file called PTT. There is no file extension for this file.
[Touch Pro, Fuze General] Proto732:
added corrections to 1st post
[Touch Pro, Fuze General] ITNV:
For what it's worth, I didn't delete the registry key (I was looking under HKLM) and followed the rest of the steps. Everything seems to be working fine for me. Is it possible that since the \Windows\PTT directory is gone and there are .lnk files for short_PTT and long_PTT that nothing is checking that registry location now so it doesn't matter if it's there or not?
[Touch Pro, Fuze General] Proto732:
when I started digging around on this I looked at the fix for the same issue on the Tilt. On the Tilt fix the reg removals were necessary. They might not be critical but if you will never use PTT I would just assume take them out.
[Touch Pro, Fuze General] ridiculousyj:
Hey, thanks for the info on how to do this... one thing i've noticed is that when i don't have a cell signal (or when its searching for one), and I use the PTT button, even though its remapped per the instructions, a PTT error msg still comes up (its just a message saying "the PTT service is not available"). This isn't i huge deal obviously b/c most people always have a strong signal.. I, however, sometimes lose my signal in my apt (dead zone) so i was wondering if there was some kind of easy fix for this? Thanks
[Touch Pro, Fuze General] Thresher:
Proto + ITnv, you are awesome, thank you for your quick and kind replies. You are good examples of what I and all new incoming members should emulate.
[Touch Pro, Fuze General] mputtr:
I'm using total commander v2.51 and i've been trying to create shortcuts but they just wont appear no matter what I do. is this a bug or am i just doing it wrong. I highlight camera.exe then went to file--> A --> Create shortcut

then i named it short_PTT.lnk

after the wait, i scroll down looking for the shortcut and... it's not there...

am i just crazy or am i missing something... completely?
[Touch Pro, Fuze General] player911:
I can't get this working and quite frankly I can't even follow the instructions.

I deleted the PTT registry key.

Renamed a random 0kb text file to "PTT" in the \windows folder

Renamed the "\Windows\PTT" folder

I don't understand how a PTT file will prohibit a folder creation... because it doesn't work. Upon a reset the Folder gets recreated.

I tried deleting the PTT folder and adding ANOTHER empty PTT folder... but it just gets repopulated.

I also have GoogleMaps.lnk which I renamed to "short_PTT.lnk" and "long_PTT.lnk". Neither work.

The instructions are vague. Could you please give more details.

AHHHH.... The instructions are misleading. It says to CREATE A "FILE" called "PTT" with READ ONLY and SYSTEM properties... instead CREATE A NEW FOLDER CALLED "PTT"

So here's how it goes:

Delete HKCU\Software\HTC\PTT

Delete HKLM\Services\PTT

Navigate to \Windows\

Rename the folder "PTT" to "PTT2"

Create a NEW FOLDER called "PTT"

Go to Properties of new PTT folder and check "READ ONLY" and "SYSTEM"

Create links for short_ptt.lnk and long_ptt.lnk

This makes more sense. Creating a NEW blank folder with the name PTT which is READ ONLY prohibits windows writing back the PTT files. Creating a 0kb file called "PTT" wouldn't stop a folder creation.

I've tested this method and is currently working. Maybe the first post should be edited to suggest creating a new "PTT" FOLDER in the Windows Directory. It says FILE, which is misleading.
[Touch Pro, Fuze General] McHale:
worked great - skipped part 1.

Thanks!

-Mc
[Touch Pro, Fuze General] spanky310:
Works the first try!

Thanks!!!!!
[Touch Pro, Fuze General] Thresher:
player911, there is a set of instructions below that should help you.

The parts you are hung up on are things that most of these guys have worked with for years and years. Like Total Commander, creating links and the sort.

The newb tolerance on this forum is tight. The amount of info is unhearalded. Be wise young newb.
[Touch Pro, Fuze General] Thresher:
Total Commander ARM is free from their website. Use a search engine.

Don't forget to use

search terms site:xda-developers.com

in google.

I searched for "create lnk" site:xda-developers.com and walaa!
[Touch Pro, Fuze General] Thresher:
Did you figure it out? I seem to have this same issue, so it must be us being tools about how to use it.
[Touch Pro, Fuze General] Thresher:
Alright, I created a text file and saved it as short_PTT.lnk inside this text file was 20#"\Windows\Camera.exe"

Moved it to Windows folder via sync and now all is well. One quick press and I am shooting pics. So awesome!
[Touch Pro, Fuze General] Thresher:
Proto732 - I used your instructions and added some newbie speak, I hope this doesn't offend you.

Proto732, "If you want to use that PTT button for something on your AT&T Fuze without buying software to do it, follow these edited for newbs instructions below.

Warning. Editing the registry can be dangerous if you don't know what you are doing. I suggest backing up your device before starting this. It isn't at all complicated, but mistakes can have unintended results. This will disable PTT.

-Install Total Commander for PocketPC (ARM) on your device.

-Open Total Commander and in the address bar type \\\ to show the root of the device and three folders, one of which should be registry

-In registry delete or export: HKCU\Software\HTC\PTT

-In registry delete or export: HKLM\Services\PTT

-Go to \Windows now and Rename Windows\PTT to something else (you can't delete it...yet)

-Within the Windows folder duplicate OK.txt.

-Rename the newly created file PTT and leave off the file extension! This will create a 'file'

-set the properties of this PTT file to System, Read Only

-Create two shortcut links: short_PTT.lnk, and long_PTT.lnk in \Windows\, that point to the apps you want to run for each of those types of presses. For example: "\Windows\Camera.exe" ****for more info on creating this lnk see below****

-Power Off

-Power On

-Your PTT button should now be functional without any errors, or PTT service messages.

-A short press will run whatever you have defined in short_PTT.lnk (I have it set to voice command: "\windows\VoiceCMD.exe" -min

-A long press will run whatever you have defined in long_PTT.lnk (I have it set to the camera: "\Windows\Camera.exe"

-As a matter of cleanup you can go back and delete the folder you renamed in step3 if you want.

-Other hard button press shortcuts include: Long_End.lnk, Long_Send.lnk, Long_Power.lnk, Short_Power.lnk

****If you have problems creating a link within total commander then follow this****

1. Navigate to the place where the file is that you want to create a shortcut to. This will probably either be in a subfolder of \Program Files or in \Windows.

2. Single-tap on the file you want to create a shortcut to, so that it is highlighted.

3. Tap the File menu, then ">>>>> (A)", then "Create shortcut".

4. In the resulting popup, either type the path where you want the shortcut to be placed (e.g., \Windows), or hit the "Tree" button and navigate to the folder where you want the shortcut to be placed and hit the OK at the bottom, and then hit the OK button.

THANKS TO WMM FOR THESE INSTRUCTIONS!

****

****To create a link on your pc that you can transfer via sync****

-Open Notepad on your computer,

-Click File...Save As... long_PTT.lnk Save.

-Inside notepad type 20#"\Windows\Camera.exe"

-Save the file again.

-Move the file over to your device and

-Use Total Commander to move the file back into the Windows folder

****"

THANKS TO PROTO732 and WMM and ITnv
[Touch Pro, Fuze General] wmm:
Creating a shortcut in Total Commander is, like a lot of other things, very easy but somewhat unobvious the first time you do it. You DO NOT have to go through the rigamarole of creating a text file and moving it around. Here's what you do:

1. Navigate to the place where the file is that you want to create a shortcut to. This will probably either be in a subfolder of \Program Files or in \Windows.

2. Single-tap on the file you want to create a shortcut to, so that it is highlighted.

3. Tap the File menu, then ">>>>> (A)", then "Create shortcut".

4. In the resulting popup, either type the path where you want the shortcut to be placed (e.g., \Windows), or hit the "Tree" button and navigate to the folder where you want the shortcut to be placed and hit the OK at the bottom, and then hit the OK button.

That's all you have to do.
[Touch Pro, Fuze General] wmm:
Well, that's all you have to do to create a shortcut. In the context of this PTT fix, though, there's one more step. When you create a shortcut to, say, foo.exe, the resulting shortcut will be named foo.lnk. You'll need to rename foo.lnk (using tap-and-hold and Rename on the pop-up menu, or single-tap to select followed by File -> Rename) to short_PTT.lnk or long_PTT.lnk.

And THAT's all you have to do. ;)
[Touch Pro, Fuze General] mputtr:
here's what i did. i figured out the method that wmm mentioned.but it didn't work for some odd reason. i ask it to create a shortcut of a file and it just doesn't appear. i did a slightly roundabout way and copied another .lnk file to say... my documents, then i edit it's property and set the assosiation with the file i wanted . in the case \windows\Camera.exe then i rename it to shot_PTT.lnk and moved it back to the windows directory.

p.s.sorry if i made a wall of text, im reply through my phone.
[Touch Pro, Fuze General] hopper13:
Very cool! Many-many thanks to all who contributed.

One short question (I'm trying to learn...), what does the #20 in front of "\Windows\Camera.exe" do?
[Touch Pro, Fuze General] cparkhorn:
Worked

Worked like a charm for me, I've got Voice Command to short and camera to long. I'm a noob, did search on creating a .lnk and tried it. Possible help for other noob's like me, there's no reason to "create" a new shortcut from scratch. I wanted camera and voice command, so I went into the \windows directory and copied the \windows\voicecommand .lnk with total commander to another location in my phone (\mydocuments\personal) and renamed it once it was there to short_PTT.lnk.

I did the same with the camera shortcut in \windows\starmenu (I think that's where it was) and copied it to personal and renamed it long_PTT.lnk.

That way you don't have to open and edit the .lnk to open the .exe you want, it's already in there to do that. (for this noob, the number ie 29#xxx didn't match what I thought it should but I left it alone and they work fine, discussion for another thread, or better yet just I need to read and better understand).

Copy both of these over to \windows, then go to them and open their properties and change from archive and check read only and system.

I then took one, doesn't matter which of the short or long_PTT in personal and renamed it there to PTT. Opened the file and deleted all of the information in the file editor. Copied it over to \windows (after renaming PTT folder) and then you have to change the properties of this new PTT file(In windows directory) to Read Only and System-I think this part is important.

Then re-set phone and worked perfectly. I twice made mistakes-first I created a new empty folder-and woila it rebuilt the files in there-and second created a file and didn't change it to read only and system and woila PTT folder got rebuilt (I think that's what happened).

Possibly some noob talk that may help some others.

Thank you Proto and IT, really thank you.