yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] mamaich:
SetWindowsHook is obsolete. Use SetWindowsHookEx.

There is no need to use CreateRemoteThread. All processes in CE share the same 4Gb linear address space and can access each other's data. To convert a pointer from your or any other processes' address to a "global" that can be accessed from everywhere use a poorly docummented function:

extern"C" LPVOID MapPtrToProcess(LPVOID lpv, HANDLE hProc);

To inject DLL into address space of other process I use

typedef struct _CALLBACKINFO {
HANDLE hProc; /* destination process */
FARPROC pfn; /* function to call in dest. process */
PVOID pvArg0; /* arg0 data */
} CALLBACKINFO;
typedef CALLBACKINFO *PCALLBACKINFO;

extern"C" DWORD PerformCallBack4(CALLBACKINFO *pcbi,...);
...
HANDLE Proc=OpenProcess(0,0,Pid);

void *Ptr=MapPtrToProcess(L"phonehook.dll",GetCurrentProcess());
CALLBACKINFO ci;
ci.hProc=Proc;
void *t=GetProcAddress(GetModuleHandle(L"coredll.dll"),L"LoadLibraryW");
ci.pfn=(FARPROC)MapPtrToProcess(t,Proc);
ci.pvArg0=Ptr;
PerformCallBack4(&ci);

CloseHandle(Proc);

The method is unstable - it can hang your device if the process was inside an API function. I call Sleep(500) before PerformCallBack4 and it works in most cases.

The other metod that allows hooking of most kernel functions is patching the SystemAPISets table. Search this forum, an example was posted here.
[Windows Mobile Development and Hacking General] amir:
I Understand attach dll to other process but no Understand to change the original function adress to my hook function .

for example in hook dll write this code

typedef HRESULT t_RIL_Dial(HRIL hRil, LPCSTR lpszAddress, DWORD dwType, DWORD dwOptions);
HRESULT New_RIL_Dial(HRIL hRil, LPCSTR lpszAddress, DWORD dwType, DWORD dwOptions);
t_RIL_Dial *Old_RIL_Dial;

HINSTANCE hRilDll = LoadLibrary(L"\\Windows\\Ril.Dll");
Old_RIL_Dial = (t_RIL_Dial*)GetProcAddress(hRilDll, L"RIL_Dial");

and my hook function

HRESULT New_RIL_Dial(HRIL hRil, LPCSTR lpszAddress, DWORD dwType, DWORD dwOptions)
{
// hook code
}

how to change the Old_RIL_Dial to New_RIL_Dial.

please help me.
[Windows Mobile Development and Hacking General] flywhc:
Cannot give you a simple code to demonstrate it. You must have knowledge of assembly language and how win32 system works.

in breif,

1. use system hook to enter other process

2. get entry address of API

3. change protection type of that address

5. save that value

4. replace that address with your function and a long jmp

5. in your function, write that value back and call original API and replace that address again.

6. Use interprocess communication APIs.

7. keep multi-thread safe and be very careful

I think SetWindowsHookEx is not a documented API in win CE sdk/MSDN.
[Windows Mobile Development and Hacking General] amp3r:
This isn't anything like regular win32 hooking. Because WINCE uses XIP technology.

Since rill.dll and rilgsm.dll are XIP dll's, they're executed directly from ROM. Without being loaded to RAM. Therefore, it is not possible to patch those modules "on the fly" and insert a jump/hook because ROM is read only.

Correct me if I'm wrong?
[Windows Mobile Development and Hacking General] Cotulla:
this is true only sometimes:

modern devices usual have in ROM only 5-10 files (example Dell x51v)

Also if ROM code section is compressed, it will be decompressed to RAM at first.

XIP is eXecution In Place, so all above can't be called XIP.
[Nexus 4 Q&A, Help & Troubleshooting] vinthak@gmail.com:
Hi,

I would like to know about new Android Security update for Nexus 4.

Please let me know from where we can download it.
[Nexus 4 Q&A, Help & Troubleshooting] meangreenie:
Apparently they have sent the patch out to all OEMs' in the last few days according to news sources. But some how must of forgot to send themselves a copy :P
[Nexus 4 Q&A, Help & Troubleshooting] kzoodroid:
There isn't an update to download it will either be pushed to your device by Google or more than likely included in the next OTA which is rumored to be dropping anytime. The only way to be safe is to not install any apps that do not come from the playstore, i.e. turn off install apps from unknown sources in your system settings.
[Nexus 4 Q&A, Help & Troubleshooting] vinthak@gmail.com:
Thanks for reply...

I thought Nexus 4 will be first to get any update as its Google...

Same case with Google Maps 7 is not available in Play store.
[Nexus 4 Q&A, Help & Troubleshooting] kzoodroid:
Google has had the code to repair the exploit since about March so not sure why they are taking so long to get it out. Probably because it's not really all that big an issue as long as you only download apps from a trusted source. They sent the code to fix the exploit to their OEM's about a month ago and they updated their own version of Android are in the process of sending the update out to the various carriers. It will probably still take the OEM's a few more months to update all their phones and some older phones I'm sure will never be updated.
[Nexus 4 Q&A, Help & Troubleshooting] scream4cheese:
Guess what guys, the Cyangenmod team implemented the security patch to their rom already.
[General Questions and Answers] Ghsttherenegade:
So I have a LG-AS680/LG-Optimums 2

Specs are as follows

Andriod: Gingerbread 2.3.4

Baseband:6170

Company: ACS

SuperOneClick does not root my device

I need help, I haven't been able to root my device in form or fashion. There is little to no help on this phone. I have looked all around for rooting this phone. I have attached my Screen shot of the S.O.C and I am tried not finding nothing. Unlike most areas of the United States Alaska sells this phone as a service phone although I bought this phone at full retail value.

I have watched the video in the beginning and searched to find nothing on this site.
[General Questions and Answers] Ghsttherenegade:
bump x2
[General Questions and Answers] Ghsttherenegade:
Bump x3
[General Questions and Answers] Ghsttherenegade:
offen elMythi

Bump x4
[General Questions and Answers] Ghsttherenegade:
Bump x5
[General Questions and Answers] Ghsttherenegade:
bump x6
[General Questions and Answers] Ghsttherenegade:
Buuuuump [QRCODE]Bumpx7[/QRCODE]
[General Questions and Answers] Ghsttherenegade:
Hello

So I am going to say this and be very blunt as possible. Out of the entire programmer’s in the world no one has any program that suites this phone model. This site and many other vouch that they are the best and have everything you need while no one has any idea to help and literally stubs there nose up and avoids the question clearly. Not one of you can take time out of your day to even give any help will you? This site’s advertises how it is so great yet clearly has nothing to offer here. This is to the people out there as well who think less of the phone because it is a “pre-paid” when some service’s like mines sell it as a phone for service.

This makes the community look like a load of yuppies. Only helping those who have the phones like them and disregarding those who have to make due with certain phones. Genius!
[General Questions and Answers] Ghsttherenegade:
[QRCODE]Bump x8[/QRCODE]
[General Questions and Answers] Ghsttherenegade:
Choke Artist

SO I take it you all are mostly choke artist correct? Well how I can I upgrade the damn phone can you all stop cowering to help me do this at least? Damn a bunch of babies to a phone.....:good:
[General Questions and Answers] Ghsttherenegade:
So you all keep ignoring this? Really?
[General Questions and Answers] Ghsttherenegade:
really?
[General Questions and Answers] Ghsttherenegade:
Bump
[General Questions and Answers] Ghsttherenegade:
bump
[General Questions and Answers] Ghsttherenegade:
still trying to root. Hello
[General Questions and Answers] Ghsttherenegade:
So for 2 damn years not one person could help with this phone? Yet this is one of the "greatest" sites?
[General Questions and Answers] Ghsttherenegade:
Well hello? I need help with this
[General Questions and Answers] Ghsttherenegade:
Bumping for the phone that causes hackers to choke
[General Questions and Answers] Ghsttherenegade:
SO I am going to try to see if this "software" called "King Root" will work. Still looking for any help for anyone that could help me root this damn phone. I will not root any lf my other phones (S3, Tab 2, Tab A, or S5 active) until I get this one phone that has crippled a community to root
[Galaxy S II Q&A, Help & Troubleshooting] vinnocent:
i ve search everywhere here. . . still no result. . .

my gyro sensor umm.. i think work properly, but i think it was inverted about x, y and z axis. . .

tilt and pan are reversed. . . i tried run Combat 3, and gyrospace 3d, when i turn device horizontaly, it turned vertical, and in reverse...

i think it causing my compass not work properly too, the arrow, just move like my phone direction,

while try with googlemaps, every i turn phone clockwise, the arrow, turn CCW,

would like to know, if someone know how to fix this, or maybe someone can tell me how to replace gyro sensor(hardware). where is it?
[Galaxy S II Q&A, Help & Troubleshooting] R41K:
First of all it would be interesting which rom and kernel you use..

---------- Post added at 07:58 AM ---------- Previous post was at 07:52 AM ----------

Also see here:

http://xdaforums.com/showthread.php?t=1895680
[Galaxy S II Q&A, Help & Troubleshooting] vinnocent:
umm. . . sorry, first im using original firmware and kernel, i just install gyro wallpaper, i noticed that the gyro already inverted. but i didnt realy care bcause im new using gyro, i tought it can be set up latter, then i update to I9100DXLSD_I9100OLBLSD_XSE, and install combat 3, compass, some app to test gyro, then i really noticed that my sensor is wrong . . . i try to downgrade back to 2.3 back to original, but its still the sama, now im in

4.0.4 I9100DXLPF kernel. still same. . .

ive read ur link above, i did try double calibration, but still the same. . .
[Galaxy S II Q&A, Help & Troubleshooting] R41K:
Check out this app https://play.google.com/store/apps/details?id=zausan.zdevicetest

You can see there if everything works correctly. Even the compass..

If you are searching for threads, also use the word accelerometer instead of gyro. I read, that some people solved that problem by 1. turning auto-rotation off and on 2. changing rotation modes. The device might think, that it is in landscape mode. Thats why the axes are inverted..
[Galaxy S II Q&A, Help & Troubleshooting] vinnocent:
i am sure it has nothing to do with accelerometer, accelerometer work fine. it make senses if just x and y axis are inverted. but mine with z axis too. . .

ex:(when "using motion" in setting is activated, there is a way to drag a shortcut in home by panning the device left or right, but it can be done by tilting forward and backward,)

thx for answer btw
[Galaxy S II Q&A, Help & Troubleshooting] R41K:
Oh ok. I'm sorry but I can't help you along then. Never had this problem with my device and i never heard of that kind of problem. :(

Good luck anyway! Maybe someone else has a solution on this forum.
[Galaxy S III Q&A, Help & Troubleshooting] Eddicts:
Can anyone here please info me?Was the status bar for JB stock rom S3 can be modded to transparent?:confused:
[Galaxy S III Q&A, Help & Troubleshooting] chrismast:
yes, look in the Themes & Apps section for a flashable zip, or if I remember well, Nova prime launcher can do the job as well.
[Galaxy S III Q&A, Help & Troubleshooting] Eddicts:
Can't find it..:confused:
[Galaxy S III Q&A, Help & Troubleshooting] chrismast:
here you go, not that difficult ;)
[Galaxy S III Q&A, Help & Troubleshooting] Eddicts:
So which one should i choose?
[AT&T Samsung Galaxy Note I717] ARTAQaf:
i just rooted for the 1st time with cwm then i was able to switch it to twrp. then i made a backup, then installed CM10. but i failed badly...i never deleted the 2 caches.

nor did i wipe it / reset it, for fear i would lose all my settings/apps/contacts/etc... i know i have the backup but i still didn't think it was necessary.

can anyone tell me where i go from here?

i tried holding down all 3 buttons, it just vibrates, then reboots and starts the loop again. i went into recovery mode with vol down & power buttons. since i don't have a tar file for twrp, i had to go with the tar file from odin. then it rebooted but it went back to the loop.

i just pulled the battery out and let it sit for a minute. turned it on and it is still CM10 looping.

thanks in advance for any advice! :D
[AT&T Samsung Galaxy Note I717] 440bro:
You can try using odin and flashing the twrp tar file and you can find that here.

or you can use kies to do an emergency firmware update. It will blitz everything on your phone (except your external memory) and reinstall android version 4.1.2. Then you can root properly and know nothing is botched up.

To update to latest firmware (from any rom even rooted)

1. On a PC open http://www.samsung.com/us/kies/

2. Click Download for windows

3. Install Kies

4. Open Kies

5. Write down serial number of phone device (it's under battery)

6. Plug in phone to PC and power up phone while HOLDING volume down

7. Once you see the download screen on phone press volume up

8. On PC in Kies click "tools - Firmware Upgrade and Initialization"

9. Type in SGH-I717 (all caps)

10. Type in serial number

11. Follow directions

12. Once phone reboots you will have the latest OFFICIAL AT&T firmware (JB 4.1.2 as of 6-1-2013)

13. Perform a factory data reset before proceeding (it helps it run smoother)

14. Type in google info and enjoy!

To root the stock 4.1.2 rom

1. Use Odin 1.85 in Admin Mode for Windows users.

2. Install TWRP 2.5 via PDA settings.

3. Reboot phone into Recovery.

4. Install SuperSU via the Zip.

5. Reboot phone and Presto!

Your now on the latest software for the i717, rooted, and have twrp recovery installed. Enjoy or flash any rom of your choice!
[AT&T Samsung Galaxy Note I717] ARTAQaf:
thanks! being a noob, when i goto the teamwin link i download the only 2 downloads they have there...1 is the goo zip the other says it's the twrp zip. i put them in a twrp folder i made and unzip them both there (since i am not sure which is neededwith 7zip. when i go into odin mode, i click pda and when it goes to open the needed file in that twrp folder i made it only sees an MD5 file and when i click that, odin freezes (Not Responding) and i have to force it closed. am i missing something?

thankx in advance for any assistance :cyclops:
[AT&T Samsung Galaxy Note I717] 440bro:
I see more than 2 options for downloads in twrp. The one you should be using with odin is this one http://goo.im/devs/OpenRecovery/sgh-i717/openrecovery-twrp-2.5.0.0-quincyatt.img.tar

don't unzip, open, or do anything with it. Just place it in the PDA section of odin and hit start.

If that fails use kies.
[AT&T Samsung Galaxy Note I717] ARTAQaf:
that file i cant find on the link, but thanks 440!!! Odin would get stuck at "Setup connection," so it wasn't working. tried it again and it said it did work, "passed," but still no changes from tthe CM10 loop.

i was desperate not to use Kies and lose everything. so i started messing around with different buttons. i pressed and held both volume buttons and power button again...it powered off and nothing. tried it again and this time i saw the teamwin logo!! i was able to then click restore on the Gnote's screen and now it is restoring my twrp back up from yesterday. i guess that last attempt on Odin paid off.

just rebooted it and voila, all is perfect again.

thanks for your quick assistance 440!!! :good::good::good::D

so now if i try CM10 again, when i "wipe" it (i think that is the wording) will that wipe all my txt's, call history, photos, contacts, S memo's, etc...???
[AT&T Samsung Galaxy Note I717] Demmonnixx:
Before you wipe make sure to do a complete back up, download sms backup or super backup to back up contacts, texts etc... Download app2zip or Titanium to back up your apps.

Here's the process I go through each time. Each time you will lose everything but is safer and have a better chance of not failing:

In TWRP

Factory reset

Wipe System

Wipe cache and dalvik cache

Install your rom and the gapps

Wipe cache and dalvik again

reboot and let the phone sit for about 10mins, then reboot again and all should be good.

Once phone is up and running, if you did app2zip to back up your apps, you have to go back into recovery and flash that zip and install the backups from sms backup or super backup for your contacts, texts etc....

Hope that helped some.
[Android Software/Hacking General [Developers Only]] rootdefyxt320:
Here's Superuser for x86 and ARM devices.

This is Superuser by koush.
[Android Software/Hacking General [Developers Only]] rootdefyxt320:
NOTE: This method works on both locked and unlocked bootloaders.
[Android Software/Hacking General [Developers Only]] open1your1eyes0:
Any ideas if this will work on the new Droid RAZR HD and DROID RAZR M update that broke the bootloader unlock method? http://www.droid-life.com/2013/07/1...the-kernel-exploit-for-unlocking-bootloaders/
[Android Software/Hacking General [Developers Only]] adlx.xda:
I find it weird that a bootloader locked Motorola phone would let you "fastboot boot". That's not what I would expect...
[Android Software/Hacking General [Developers Only]] dagoban:
Does UPDATE-SuperSU-v1.41 also works on x86 devices such as the Razr I or would we need to use the su file from here: http://xdaforums.com/showthread.php?t=2123369

I'm asking since they also have different updater-scripts...

Update:

Tried it 5 times now to build a CWM Recovery via the website, failed every time :(

my id's

e3fc4f10d5e026b4fbb33cc6969d339c

0d2ebce8165bd84fefa20129caf925d6

1ef2ceba6ed2298cdacf677c1a158a71

800b2c95ba9068b30f4e79e905cda0e8

6897f97da88ee7db655f8d1d90816aef

CFC_9.8.2I-50_SMI-26_S7_USASMIJBRTEU.xml.zip

Razr I XT890
[Android Software/Hacking General [Developers Only]] rootdefyxt320:
Yeah, it worked on a Motorola Defy Mini XT320, it's the fastboot exploit that's been left by Motorola.
[Android Software/Hacking General [Developers Only]] PsyClip-R:
Motorola XT881 (Electrify 2) fails to boot custom recovery.img

Hey ! I've tried your method and I stuck at 12-th step.

This is what I get everytime I try to boot CWM recovery

View attachment 2120232

"Can not boot recovery.img: No error"

Also the next time I success to execute the command, but the device returns me

View attachment 2120251

OKAY

booting...

FAILED (remote:unsupported command)

And now my device seems to be soft-bricked.. I get (Flash failure)

I'd really like to help you with that. Anyone knows what the problem is ?

I think it's all about locked bootloader and deprecated fastboot Motorola has made.
[Android Software/Hacking General [Developers Only]] rootdefyxt320:
It looks like this exploit in phones with Qualcomm devices because my Motorola Defy Mini has a Qualcomm chipset. It looks like the eFuse is preventing it to boot into custom img file.
[Android Software/Hacking General [Developers Only]] PsyClip-R:
Oh, it looks like it is.

Tomorrow I'll try this with my old Motorola Bravo (which is Defy like device)
[Android Software/Hacking General [Developers Only]] rootdefyxt320:
The SBF is packed in CGXX.smg format as I have decompiled the SBF for my cousin as he owns a Defy MB525 before so this method won't work as Bravo doesn't have fastboot and eFuse on TI OMAP is aggressive and I think recovery is CG47.smg
[Android Software/Hacking General [Developers Only]] mattlgroff:
This is not for all Moto Qualcomms, either. It has been patched for a very long time and is the opposite of far reaching as the OP suggests.
[Android Software/Hacking General [Developers Only]] Magissia:
Wait, we have unlocked bootloader for xt320 ?
[Android Software/Hacking General [Developers Only]] rootdefyxt320:
No, we don't.
[Android Software/Hacking General [Developers Only]] reemobeens19:
hey guys does any one know any thing about the xt555c ... theres a link to my thread in my signature.
[One (M7) Q&A, Help & Troubleshooting] castro145:
Hello,

I have a AT&T HTC One, I had it rooted, S-OFFed and had updated the firmware on it (Using SuperCID). Well I after all this I realized that I was having issues with my camera pictures, well turns out the glass on the inside was fogged up, a defect. So in order to return it back when I got a new replacement in the mail from AT&T I went to reverse the course and make it S-ON, locked and back to stock. One thing I forgot was to downgrade the firmware to 1.26.502.10/12.

I've locke locked it, it is S-ON, but when I got flash the RUU (RUU_M7_UL_JB_50_Cingular_1.26.502.12.exe) I get a "error 140: bootloader version error"

Here is what I get from fastboot getvar all

INFOversion-bootloader: 1.44.0000

INFOversion-baseband: 4A.16.3250.24

INFOversion-cpld: None

INFOversion-microp: None

INFOversion-main: 1.29.401.12

INFOversion-misc: PVT SHIP S-ON

INFOserialno: HT34WW903971

INFOimei: 354439052147644

INFOmeid: 00000000000000

INFOproduct: m7_ul

INFOplatform: HBOOT-8064

INFOmodelid: PN0712000

INFOcidnum: CWS__001

INFObattery-status: good

INFObattery-voltage: 4027mV

INFOpartition-layout: Generic

INFOsecurity: on

INFObuild-mode: SHIP

INFOboot-mode: FASTBOOT

Any ideas here, any help at all? I am stuck with a phone that I can't boot into recovery nor can I flash it via RUU, any thoughts? pretty please? Any help would be so greatly appreciated !!!!
[One (M7) Q&A, Help & Troubleshooting] semisight:
Go find the 1.26.502.12 RUU (or the 1.29 international), and run that (although you may need to flash stock recovery first if you still can). If that doesn't work, I'm sorry. Try to run revone or moonshine again if you can to see if you can soff again. If you can do that, you'll be in business.
[One (M7) Q&A, Help & Troubleshooting] Ultimaex:
First of all this should be in Q&A since it has nothing to do with development.

You are not stucked because you can still unlock the bootloader with a htcdev key and flash custom recovery and roms afterwards to get access to your device again.

After that you can flash back the old firmware if your S-OFF again.

Is your CID still SuperCID oder did you change it back to the original value?
[One (M7) Q&A, Help & Troubleshooting] pigr8:
try to do S-Off again, i dont think you can go back to 1.26.502.12 from 1.29.401.12
[One (M7) Q&A, Help & Troubleshooting] Root-Maniac:
Main version error. Need to reset main version to 1.000.00
[One (M7) Q&A, Help & Troubleshooting] voltigeur:
re unlock bootloader whit new unlocktoken and download a recovery and flash recovery back up
[One (M7) Q&A, Help & Troubleshooting] castro145:
I apologize on the wrong section.

I have tried to unlock the bootloader and could not get it unlocked again, all I was getting was errors that it was not successful when I tried running fastboot flash unlocktoken Unlock_code.bin.

Not able to flash recovery because I can't get it unlocked.

Not able to use revone S-OFF as I'm not able to get the phone into the adb.

I am back on CWS__001 - AT&T CID
[One (M7) Q&A, Help & Troubleshooting] castro145:
How would I reset main version to 1.000.00?