yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] chmckay:
Mamaich,

Thank you VERY much. That was just the information I needed! I've managed to locate the class information and successfully subclass a window globally on the emulator (my cradle is at home, so I can't test this on my device).

Here's what I've learned that you might be interested in:

the g_dwGwesBase variable is actually a pointer to the virtual memory location of gwes.exe. Also, the 0xfe000000 value is specific to the processor. In this case, the value is (hwnd & ~0xfe000000), while on the x86/emulator platform, it is (hwnd & 0x1fffffff). I don't have access to the MIPS or SH3 libraries (as I don't have a full copy of Platform Builder).

Anyway, this is what the coredllPwndFromHwnd() function amounts to:

DWORD *wnd = (hwnd & ~0xfe000000) + g_dwGwesBase;

if( wnd[3] == 0x574e4457 )

return wnd;

else {

SetLastError(0x578);

return NULL;

}

The 0x574e4457 is not processor specific (as it appears in the x86 libs). Also, you easily replace the "+ g_dwGwesBase" with this:

DWORD *wnd = (DWORD*)MapPtrToProcess((LPVOID)(hwnd & ~0xfe000000), hHandleToGWES);

Thank you again for your help. Now, the only thing I have left to do is get the magic numbers for MIPS and SH3 and I'll be all set.
[Windows Mobile Development and Hacking General] mamaich:
0x574e4457 == 'WNDW', so it would be the same for all platforms. I also don't have MIPS/SH3 libraries for platformBuilder.

The value ~0xfe000000 == 0x1fffffff, so it should also be the same an all platforms (it looks similar to HANDLE_ADDRESS_MASK, which is also same for all, the only difference is that HANDLE_ADDRESS_MASK clears the lowest 2 bits of address).
[Windows Mobile Development and Hacking General] chmckay:
I can't believe that I didn't catch that the values were the same :oops:. Anyway, I looked up HANDLE_ADDRESS_MASK and I'm a little concerned that it doesn't appear in ksshx.h. I guess that begs the question as to whether or not it is used on that platform. I'll do some investigating and see what I can find.

As far as the lower two bits are concerned, it's probably not a big deal. Using Spy++ on the emulator shows that EVERY window handle has the least significant byte set to 0. So, maybe the HANDLE_ADDRESS_MASK is the ticket.

Thank you again for your help. I've managed to do what I need to do. I wouldn't have been able to get this far without you. Thanks!
[Windows Mobile Development and Hacking General] chmckay:
Apparently there is one more thing that I need in order to have my project working perfectly. In Gwes, there is a structure that contains some data that I need to manipulate in order to achieve some consistency. Unfortunately this structure is contained in a global variable that is not exposed to any outsider.

What I'm wondering is this: if I have a dll injected into the Gwes process, is there a way that I could locate the address of that global variable on various devices? I guess what I'm looking for is more of a technique than anything else. If this were a desktop binary, I would just access a specific location, but since the OS is apparently recompiled for different devices, that's not feasible as the location changes based upon different variables.

So, if anyone can help me out, I'd appreciate it. Thanks again!
[Windows Mobile Development and Hacking General] mamaich:
Typically you should search for such address using signatures of code that accesses it. It is easier to explain by an example.

For example you may determine the value of g_dwGwesBase by searching for the code that accesses it. Look at the coredllPwndFromHwnd function. At its end it has an off_1F6E698 variable that contains the address of g_dwGwesBase. This is a function code:

coredllPwndFromHwnd:

10 40 2D E9 STMFD SP!, {R4,LR}
FE 24 C0 E3 BIC R2, R0, #0xFE000000
2C 00 9F E5 LDR R0, =g_dwGwesBase
00 10 90 E5 LDR R1, [R0]
... skipped ...
72 0C 00 1B BLNE SetLastError
04 00 A0 E1 MOV R0, R4
10 80 BD E8 LDMFD SP!, {R4,PC}
; End of function coredllPwndFromHwnd
57 44 4E 57 aWdnw DCB "WDNW"
AC 65 FC 01 off_1F6E698 DCD g_dwGwesBase

You see that the needed address is located after the end of this function after the "WDNW" constant. "WDNW" {57 44 4E 57} is located in lots of places in coredll, but only in one place it is prefixed by "LDMFD SP!, {R4,PC}" (10 80 BD E8) command . So you may search for bytes {10 80 BD E8 57 44 4E 57} and the next DWORD after them would contain the address of g_dwGwesBase.

This function is the same in different OSes on different devices, so this method would work on every PocketPC with ARM CPU.

You should carefully select the signatures. In your program you should keep a set of signatures for most common versions of ROMs, for different CPUs, etc.

To search for a giver pattern you may use this function:

#define _XX_ '?'
int RabSearch(unsigned char *SearchString, int StringLen,
unsigned char *SearchBuff, int BuffSize)
{
register int i,j;

if (BuffSize < StringLen) return -1;

for(i=0;i<(BuffSize-StringLen);i++)
{
for(j=0;j<StringLen;j++)
{
if (
(SearchString[j] != _XX_) &&
(SearchString[j] != SearchBuff[i+j])
)
break;
}
if (j==StringLen) return i;
}
return -100;
}

This code is taken from stenri@mail.ru.

You may place "?" char in a buffer to indicate that this byte should be ignored on search.

This method is commonly used by crackers to create "universal" cracks that work with different versions of a given program ;)
[Streak 5 Accessories] Megacamz:
Mods ignore and delete this please.
[Galaxy S I9000 Q&A, Help & Troubleshooting] ikbenerniet:
Hello,

Sorry if my English is broken, English not my native language.

This is my first post here, i am a noob (yes i watched the noob video). I searched on this forum using the search engine of this website, and i used google to try and find an answer for my problem. so far no succes or match with my problem found.

problem

After succesfully installing CM 10.0 (going from android 2.2, froyo), I recoverd all SMS messages, contacts, user apps etc. from titanium backup. Everything seemed to be working fine, but then I noticed that I can not open any SMS messages. any time i try to do this a pop/up appears showing that Messages has stopped. after some testing i found out that no new messages were shown, while sending messages was no problem. since sending/receiving SMS messages is rather essential on a phone, i would really like to fix this problem :)

problem details

I CAN send SMS messages

I CAN NOT open SMS messages (view SMS threads)

I can not see any new incoming messages, those might either be not visible or not received at all. (also no notification is shown)

Sending an SMS message to a unknown phone number resulted in a new thread, this could also not be opened.

I think that titanium backup caused this problem, I didnt test it before restoring the back-up of titanium, so it might be something else as well.

phone details

Samsung Galaxy S GT-I9000

android version: 4.1.2

smallband: I9000XXJVT

kernel: 3.0.31-gdabec1a blinky-ghost@cyanogenmod #1

CPU: ARMv7 Processor rev 2 (v7l)

CyanogenMod-version: 10.0.0-galaxysmtd

Build-number: cm_galaxysmtd-userdebug 4.1.2 JZO54K eng..20121113.054130 test-keys

Message app details:

Came with CM 10.0

version: 4.1.2-eng..20121113.054130

Who can help me or point me in the right direction?

if possible, i'd rather not do a factory reset or delete all my messages
[Galaxy S I9000 Q&A, Help & Troubleshooting] GrippingSphere:
Deleted, wrong post
[Galaxy S I9000 Q&A, Help & Troubleshooting] ikbenerniet:
I tried two other things so far: deleting all messages and re-installing the messaging app. Neither of these worked... and the messaging app is still closing when trying to open a message.

I also checked the SMSC number, this seems all-right.

sending SMS still works, so i really have no idea what the problem could be... Any suggestions?

edit: upgraded to 10.1.0 RC2, receiving works now, opening does not. I replaced the stock app with handcent, which works well enough.
[HTC One X+] KiGWa:
Hi guys, I formatted everything in my device using WIPE and then FORMAT in TWRP2.

I sideloaded AOKP rom.

I also sideload gapps.

Everything is fine except the SD CARD cannot be detected or accessed in windows.

I am sure missed a step or something.

It was like I was doing a clean install but could not get through with this SDCARD issue.

Any tips?
[HTC One X+] pfzmomo:
Had this problem a moment ago, I had to relock the bootloader, install stock RUU, unlock bootloader, install recovery and then install AOKP and this problem is gone :)
[HTC One X+] KiGWa:
yup, thats my workaround too, but i just flash a JB 4.1 custom ROM (Viper 1.0.8).

But that wouldnt be a clean install. hehehe
[HTC One X+] o_O:
Most likely it's because the location of your virtual SD card has changed from /data/media in 4.1 to /data/media/0 in 4.2 (maxwen's current release of AOKP is 4.2.2).

You should have all of your data back if you create the /data/media/0 directory, and move all of your SD card stuff in there.

$ adb remount
$ adb shell
# mv /data/media /data/0
# mkdir /data/media
# mv /data/0 /data/media/0
# exit
[HTC One X+] KiGWa:
Thanks! I will try this when I plan to go back to a more stable AOKP release. Currently, I went back to square 1 (RUU), and rooted.
[HTC One X+] o_O:
No problem, max has done amazing work on AOKP for our device and I think everyone should experience it. :)
[Galaxy Note II Q&A, Help & Troubleshooting] apurva.giri:
Hi,

I've rooted my Note 2 using ODIN on latest stock.

I tried flashing a zip file with Mobile ODIN Pro (checked Clear Dalvik Cache and Cache) but

it did something sort of Factory Reset. My root was preserved but apart from that, all gone.

I used the "Select file" option to select Xperia XZ player zip file.

Can anybody tell me why did it did a factory reset rather than just adding up the player ?

Now I'm thinking of adding a custom bootloader (please suggest which is the best one) so that I can flash with the zip files that appear everyday in xda.

Can anybody help me with that ? (I'm on rooted stock already).

Also, after I get a custom bootloader and flash any zip file, how can I undo the flashing if some problem occurs ?

And last, how can I revert to stock bootloader if required ?

Thanks in advance.
[Galaxy Note II Q&A, Help & Troubleshooting] AskinSavascisi:
Isn't odin for flashing tar files?
[Galaxy Note II Q&A, Help & Troubleshooting] userdefind:
I don't think you can flash .zip files using Odin it's only for .tar you well have to use Odin to install and custom recovery. Then MAKE A BACK UP... Then you can flash what ever you want as long as it's made for your phone
[Galaxy Note II Q&A, Help & Troubleshooting] aukhan:
Odin does let you flash zip files, I've flashes a lot of, if files including kernels roms and mods

Doing a factory reset from Odin it will erase all the user apps and data from phone memory but will keep root intact

I suggest you to go ahead and install the custom recovery twrp or cwm for flashing zip files because it will let you make an n nanandroid backup
[Galaxy Note II Q&A, Help & Troubleshooting] dr.ketan:
[MENTION=2997540]apurva.giri[/MENTION] Don't messup custom recovery with custom bootloader, there is no custom bootloader.

Another thing, you did wrong to flash zip with mobile odin

What you have selected 'Open file' option is meant to flash full ROM, If you want to flash flashable zip with mobile odin, you have to select OTA/Update zip option.
[Galaxy Note II Q&A, Help & Troubleshooting] apurva.giri:
So u mean, all those flash files that appear everyday for customization, those can be installed via that OTA/Update zip option ?

And how would I remove them in case somethin goes wrong ?
[Galaxy Note II Q&A, Help & Troubleshooting] dr.ketan:
Yes flashable zip files you can flash with ota/zip file option.

To revert back, If you have restore file ready with mode, you can simply flash that, but all developer doesn't provide it, in that case you have to backup all the files manually which zip file replaces.
[Galaxy Note II Q&A, Help & Troubleshooting] apurva.giri:
Thanks a lot...

Thanks a lot. Will try.
[Galaxy Note II Q&A, Help & Troubleshooting] apurva.giri:
Its not working. I tried flashing a few zip files, nothings appearing after flash n dalvik cache clearing.
[Android General] jyotman007:
Today the CEO of BlackBerry announced that BBM would be launching for android and iOS in the coming months. I'm really happy by this news... What do you guys think?
[Android General] SalimKeady:
I dunno mate i dont think so

Cz bbm is what make blackbery useless :)

ViperS Rom User
[Galaxy Note II Q&A, Help & Troubleshooting] nabilsweet007:
My cell has original charger and cable..it takes almost from 0 to full 100 percent charged.till unplug sign comes...in 2hr40 mins.

Is it normal..or what I do..hawish rom installed...any suggestions?
[Galaxy Note II Q&A, Help & Troubleshooting] 88sexylady:
That is normal time for charging.
[Galaxy Note II Q&A, Help & Troubleshooting] Primokorn:
From 0 to 100 2h40 is not so bad.

We have a big battery too :D
[Galaxy Note II Q&A, Help & Troubleshooting] 88sexylady:
Just make sure the charger output is 2.1 else it will slow.
[Galaxy Note II Q&A, Help & Troubleshooting] getan:
I'm troubleshooting for my girlfriend's Note 2. She's complained about a slow charge since last week. I checked her phone and installed Battery Widget Reborn to see how long it calculated the charging time. After a while, it says that it gains 1% of battery life for every 11mins plugged in. Which means it's about 11hrs charging time. Can anyone help? She's using the Note II with the latest update. Also this is an open phone... no tie ins to any network.
[Galaxy Note II Q&A, Help & Troubleshooting] rajatsharma23:
Faulty charging cable.
[Galaxy Note II Q&A, Help & Troubleshooting] spycedtx:
Find the "galaxy charging current" app here in the forums. It will show you if you're getting a decent charge through your cable.

Also, the perseus kernel (for tw-based roms only) allows you to adjust the current levels for different connections; other kernels may, but I don't know for sure.

-----

I would love to help you, but help yourself first: ask a better question

http://www.catb.org/~esr/faqs/smart-questions.html
[Galaxy Note II Q&A, Help & Troubleshooting] Arun.Balan:
I had the same issue with My Note 2.

The issue is with Samsung's stock cable.

Every micro USB cable doesn't work fine with note 2.

I have tried connecting a variety of cables.

Nokia CA 101 and Sony Ericsson EC600R works perfectly fine.
[Galaxy Note II Q&A, Help & Troubleshooting] Mohammed779:
Again..

If you're on TouchWiz ROM,

1. Install Perseus Kernel

2. Go to Stweaks

3. Power

4. Ignore unstable power

5. Apply

If AOSP ROM,

1. Install n.e.a.k kernel 2.1

2. Install their app from play store

3. Go to charge current (or something like that)

4. Hit ignore unstable power

5. Set on boot

In this way you'll get the fastest charging..

My phone used to charge at 600 now it charge at 1800.. In 2 hours (or less), its full..

Sent from my GT-N7100
[Galaxy Note II Q&A, Help & Troubleshooting] mmichii:
its the cable

i have a sph-l900 and i have long puzzled over why my stock charger initially showed me 1800 and as time went on it became erratic and started giving me lower and lower currents as shown in the app "galaxy charging current"

i sifted the forums and came upon a post that mentioned there is chip, forgot the model number, inside that keeps lowering the current draw until the voltage stabilizes above some preset limit.

I reasoned that the thicker the gauge of wire, the less resistance per unit length that wire would have. It then follows that given some current i, the thinner the gauge, the greater the voltage drop over a given distance. Also the smaller the drop in voltage for a shorter wire at any given gauge.

so what does that mean? you want a short thick gauge usb cable.

Some posts mentioned alternative cables like the mediabridge, rocketfish, and nokia cables as giving the full current. Those cables are either heavier gauge or short or both. So, i set about looking to test my theory. I figured why pay 8 to 20 bucks when i could just hopefully find a cable that fit the bill at monoprice. It just had to be a cable with heavier gauge wire on the power pins. The note 2 cares not if the data pins are shorted since the supplied cable works fine as both charge and sync.

So i ordered two pairs of cables at both 1.5 ft and 3 ft. ( Its the white ones with the ferrite chokes). I ordered two pairs because if it worked i wanted extras.

I got the cables and i first tried on my 2 amp car charger that never gave me more than 1300 on a good day with the stock cable.. To my surprise the monoprice cable immediately gave me 1800. Same with all my stock note 2 chargers. I've only tested the 1.5ft so far but i'm so happy i don't care whether the 3 ft works. the phone charges quickly and the micro usb plug is nice and snug.. only caveat is the head of the plug is a little big so you might have to shave it a little with dremel if you are using a commuter case like me.
[Galaxy Note II Q&A, Help & Troubleshooting] vantt1:
Pshh...Mine only reaches 78% in 8 hours using the stock charger!
[Galaxy Note II Q&A, Help & Troubleshooting] rkkaranrk:
Download app galaxy charging current from the past store and check in app, Now= 1500 at least if it less then there is something wrong with the charger or cable.

Yeah.....its typed on Note 3.
[Galaxy Note II Q&A, Help & Troubleshooting] vantt1:
I got 1698mA from previous readings.
[Galaxy Note II Q&A, Help & Troubleshooting] vantt1:
Le Galaxy Charging Current app
[Galaxy Note II Q&A, Help & Troubleshooting] aka_sirok:
those who have problems and are not due to their charger try to power off and then power on their devices (for me it only worked in that way, not reseting) then it should charge well. it happened to me twice and it was not because of the charger.

hope i helped
[Galaxy Note II Q&A, Help & Troubleshooting] vantt1:
Hmm now my last charge only took 2 hours and 45 minutes to fully charge from 3%. Weird... Must be the ROM/kernel I'm using.
[Galaxy Note II Q&A, Help & Troubleshooting] amulbaby:
Veeery slow charging.

:confused:

hELLO,

I have NOTE II N7100, international version.

running red pill kernel and pheonix rom for about a year.

had no problems what so ever but for the past 2 days, i am observing that the battery charging is very very slow.

Takes about 9 to 10 hrs to charge completely.

DOWNLOADED Galaxy Charging app and found out these results:

REFERENCE :1690mA

Maximum: 400mA

Average:400mA

Do i have to change the cable?

I tried with a different cable, it delivers 900mA( it was of micromax)

Helpppp!!!!
[Galaxy Note II Q&A, Help & Troubleshooting] amolsonthalia:
use belkin charger

use any high power adaptor for chargin or change data cabloe:D
[Galaxy Note II Q&A, Help & Troubleshooting] aka_sirok:
It can be both, the adaptor or the mobile's usb port or cable
[Galaxy Note II Q&A, Help & Troubleshooting] maxchu:
International N7100

I think i m having problem too.. QAQ

My current reading...

Reference 1698mA

Maximum 900mA

Average 900mA
[Galaxy Note II Q&A, Help & Troubleshooting] maxchu:
Found a solution

Found it from a thread here: http://xdaforums.com/showthread.php?t=2112811

Just noticed my Note 2 charging was so slow... The amount of charging was almost half-ed..

Ref 1698mA

Max 900mA

Avg 900mA

After I saw the post from the thread I changed my cable to an older U2 USB cable with 5 pins.. Now my current reading..

Ref 1698mA

Max 1800mA

Avg 1800mA

This is the U2 USB cable that i m using

Alternately.. you can also use overclocking apps to undervolt your phone so it will decrease the amount of power used by the phone.. This makes the phone require less time to charge as the power used is lesser..

I used the CPU control in ROM Toolbox Pro to set my lower my CPU speed during screen off...

It saved quite a lot of battery.

Hope this may help your charging too..
[Galaxy Note II Q&A, Help & Troubleshooting] benzmaniak:
use new usb cable from Nokia phone :good:
[AT&T Samsung Galaxy S 4 General] AxAtAx:
Man this forum is already starting to look worse than the G3 threads, where it's full of the same stuff, over and over, everyone needs to keep their mouths shut and quit asking about the fix to this phone and let the Dev's do their damn job. Keep in mind that they DON'T have to do a damn thing for no one. It isn't like you bought the phone and it came with a leaflet stating, "oh, btw, to do any mods on your phone, you will get service here" sheeez...all anyone is doing is pissing off the people we need to help.

Let the bashing begin, I can take it. This is my opinion only!
[AT&T Samsung Galaxy S 4 General] sptrsn:
This is the "general" section.

As long as it relates to the phone in some regard people can say what they want.

In before the lock.
[AT&T Samsung Galaxy S 4 General] AxAtAx:
Thanks, I am just getting frustrated, that you start reading some threads, and most of them are getting hijacked with the same ole stuff, put it in one area, and delete it from the rest.

As far as banning me, so be it, by the time I return the forum might just be cleaned. I am NOT the only person that has already thought of this. If it would make everyone happy, I reported myself for this thread to be deleted.
[AT&T Samsung Galaxy S 4 General] polish_pat:
this is the internet, what are you sincerely expecting?
[AT&T Samsung Galaxy S 4 General] Naddict:
Thread closed...If anyone wants opinions, go log on to social media for them. This here is a development site, contribute to that or log off - do not clutter threads with this stuff.

To clarify a couple other points, the general section of any thread is NOT for opinions like this, so it is not okay. Nor is creating this type of flotsam and jetsum and then self-reporting it while being self righteous in the process. When you accepted membership here, you agreed to post by the rules, and this thread is a great example of what not to do.

Oh yeah, always help a new user, and if you are confronted with disrespectful users, report the posts, and do not feed trolls or trollers.... Moderators are standing by to assist.
[Sony Xperia Miro, Tipo (Dual), J, E] adamant783:
Is the update(jellybean) for xperia dual available ota. If not then when will it be released?
[Motorola Droid Bionic] crazytrain69:
Can I still use RSD Lite and the FXZ file for ICS if I'm currently on JB. I'm currently running the stock JB OTA and I'm having so many problems that I want to go back to ICS and just except the JB OTA again just to see if it fixes my issues. I don't think there is a FXZ file for JB yet?? If I'm wrong were can I get the file??
[Motorola Droid Bionic] Wilsono1050:
You will brick your phone if you do that, as far as I know
[Motorola Droid Bionic] Ratamacue:
You will definitely brick your phone if you do that. As painful as it may sound, if you do an FDR you'll like your phone a lot more than you do now.
[MDA, XDA, 1010 Software Upgrading] jusanche:
Ok so bear with me here. I am very new to this stuff (1 week). I just bought a used Siemens SX56 for AT&T Wireless from a friend of mine. I inserted my SIM, Syncronized my Outlook and things are GREAT! I love this thing. But...I'm greedy. I want more. I want to upgrade to WM2003. Based on what I have read there are a few features that would make this baby even nicer. The problem is the following:

1) I don't know where to get the upgrade. Siemens no longer posts it on their Website and niether does AT&T. I have read some really advanced stuff on some of the other topic areas regarding loading the Rogers version but I'm not sure how to do this and I don't want to mess this thing up. Does anyone know where I can find the AT&T version of WM2003 for my Siemens?

2) Is it really worth the upgrade? I have seen some complaints from people saying that the wish they hadn't upgraded because it not a stable. Or that the installation went bad and messed up the ROM.

3) Is the Siemens/ATT version of the WM2003 actually the right way to go or is there a better version?

Sorry for the really dumb questions but like I said I'm a newbie.

Thanks,

J