yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Android Development] olokos:
There's also my kernel for the latest Stock firmware on Z1, if you haven't seen it yet, its here - http://xdaforums.com/xperia-z1/development/stockbased-ok-kernel-v4-rock-solid-30-t3281806

It's MUCH MUCH better, one guy made 7 hours SOT with my kernel :)
[Windows Mobile Development and Hacking General] arsenallad:
Hi Guys:

I'm having a weird problem with TAPI, basically I'm developing an app that intercepts incoming calls and then extract the callerid before starting recording the call.

I'm using WM 2005 and the device is an HTC Universal (T-Mobile MDA PRO) with a T-Mobile UK SIM.

All seems to work fine, the event loop receive the message(s) ,first receives an LINE_APPNEWCALL and then LINE_CALLINFO with dwParam1 set to LINECALLINFOSTATE_CALLERID, but when calling lineGetCallinfo to get the CallerID , the callerid flags (dwCallerIDFlags) returns 32 or "Unknow", even when the built-in alert in the phone is showing the caller id!

I killed cprog.exe from the process viewer (the phone didn't rang so the process was in fact killed) but not difference...Any ideas? Any tricks? Below a copy of the loop that I'm using:

void FAR PASCAL lineCallbackFunc(

DWORD hDevice,

DWORD dwMsg,

DWORD dwCallBackInstance,

DWORD dwParam1,

DWORD dwParam2,

DWORD dwParam3)

{

DWORD dwT = dwMsg;

LINECALLINFO *lpCallInfo;

size_t ci_size = sizeof(LINECALLINFO);

TCHAR *buffNum;

long Err;

OutputDebugString(_T("CB\n"));

switch (dwMsg){

case LINE_CALLINFO: {

switch(dwParam1)

{

case LINECALLINFOSTATE_CALLEDID:

{

OutputDebugString(_T("CALLID"));

break;

}

case LINECALLINFOSTATE_CALLERID:

{

OutputDebugString(_T("CALLERID"));

lpCallInfo = (LINECALLINFO *)calloc(ci_size,1);

lpCallInfo->dwTotalSize = ci_size;

Err = lineGetCallInfo((HCALL)hDevice,lpCallInfo);

if((DWORD)lpCallInfo->dwCallerIDFlags & (LINECALLPARTYID_ADDRESS | LINECALLPARTYID_PARTIAL)) {

_tcsncpy(buffNum, (LPTSTR)((BYTE*)lpCallInfo + lpCallInfo->dwCallerIDOffset), 256);

OutputDebugString(buffNum);

}

break;

}

break;

}

case LINE_APPNEWCALL:

{

OutputDebugString(_T("Newcall"));

// HCALL hCall = (HCALL)dwParam2;

break;

}

}

}

}

#define TAPI_API_LOW_VERSION 0x00020000

#define TAPI_API_HIGH_VERSION 0x00020000

#define EXT_API_LOW_VERSION 0x00010000

#define EXT_API_HIGH_VERSION 0x00010000

And here is how the TAPI starts: (in Main):

liep.dwTotalSize = sizeof(liep);

liep.dwOptions = LINEINITIALIZEEXOPTION_USEHIDDENWINDOW ;

if (lineInitializeEx(&hLineApp, 0, lineCallbackFunc, NULL,

&dwNumDevs, &dwAPIVersion, &liep))

{

goto cleanup;

}

OutputDebugString(_T("Init"));

// get the device ID

dwTAPILineDeviceID = GetTSPLineDeviceID(hLineApp, dwNumDevs,

TAPI_API_LOW_VERSION,

TAPI_API_HIGH_VERSION,

CELLTSP_LINENAME_STRING);

// error getting the line device ID?

if (0xffffffff == dwTAPILineDeviceID)

{

goto cleanup;

}

// now try and open the line

if(lineOpen(hLineApp, dwTAPILineDeviceID,

&hLine, dwAPIVersion, 0, 0,

LINECALLPRIVILEGE_MONITOR, dwMediaMode, 0))

{

goto cleanup;

}

// set up ExTAPI

if (lineNegotiateExtVersion(hLineApp, dwTAPILineDeviceID,

dwAPIVersion, EXT_API_LOW_VERSION,

EXT_API_HIGH_VERSION, &dwExtVersion))

{

goto cleanup;

Any help will be really helpfull, thanks.
[Windows Mobile Development and Hacking General] SetoK:
Check your return value from lineGetCallInfo

check your return value from lineGetCallInfo. It will be LINEERR_STRUCTURETOOSMALL because lpCallInfo points to a buffer that's too small. (LINECALLINFO is a variably sized data structure) If you failed to make it large enough, you can allocate memory of size lpCallInfo->dwNeededSize and call lineGetcallInfo again. (look at documentation for lineGetCallInfo and LINECALLINFO)
[Windows Mobile Development and Hacking General] arsenallad:
Thanks for your reply, I checked the return value and is 0 so the size is fine (in fact dwSizeNeeded is greater than dwTotalSize so that is no problem), however I will change that bit just in case.

The interesting thing is that lpcallinfo structure returns "32" (UNKNOWN) for the dwCallerIDflags, even when the built-in notification program (cprog.exe) shows the callerid with no problem.

I even killled cprog.exe before testing and is the same, I wonder if there is something related with the Service Provider (T-Mobile) or some other setting that is interfering or no standard.

Any tip or suggestion is appreciated and welcome.

Thanks
[Windows Mobile Development and Hacking General] OdeeanRDeathshead:
Instead of testing the flag, test if dwCallerIDSize>0. Thats what I do. I have systematically gone through all values in the LINECALLINFO and most of them are zeroed out by the network regardless of what should be in them so I inclined to not trust it.

Also it could be your timing. Are you checking every time a LINE_CALLINFO/LINECALLINFOSTATE_CALLERID comes in or just once. The caller id is not always available on the first time but on subsequent messages is available.

Also it cant hurt to add extra memory to the LINECALLINFO. Just +1024 to be sure there is space for the caller id (or any other appended data before the caller id). You said dwSizeNeeded > dwTotalSize, that means you do not have enough memory and need to rellocate and call lineGetCallInfo again to refill the LINECALLINFO.

You do not need to kill the phone app (cprog.exe) to get caller id. It is a very bad idea to kill it without good reason. IMO the only valid reason to kill it would be to allow user interaction with your window during this time. There are side affects from killing cprog that can include uncontrollable vibration that requires a reset to stop if you have not prevented it programatically.
[Windows Mobile Development and Hacking General] SetoK:
dwSizeNeeded is the amount needed to store the structure.

dwSizeTotal is the amount you provided.

if dwSizeNeeded > dwSizeTotal then there isn't enough room.

Are you sure that lineGetCallInfo returned 0?

If any of the dwXXXXSize members of LINECALLINFO struct are non-zero (which seams very likely), then you will need more than sizeof(LINECALLINFO) bytes.

I agree with OdeeanRDeathshead, no need to kill cprog. This will work without that. If I ever want to kill cprog, I usually replace cprog by a program with sleep(60*60*24) in a loop, then reboot. Or I replace it with the program I'm testing and reboot. On my phone, this doesn't seam to cause problems. If I just kill cprog, it will be restarted within a few minutes.

I also just check whether dwCallerIDSize > 0.

good luck

I you don't get it working, I was wondering if you could post your values for dwSizeTotal , dwSizeNeeded, and dwSizeUsed.
[Windows Mobile Development and Hacking General] arsenallad:
Thanks guys, you were totally rigth! The problem was that I was expecting the API (lineGetCallInfo) to return STRUCTURE_TOO_SMALL error and I didn't make any check on dwSizeNeeded.

Funny enough, the API returned no error at all and even the structure had some data on it, but it wasn't big enough, so basically I added a loop to check the Size and reallocate memory until is enough, it works like a charm now.

On a separate note, on outgoing calls I had to introduce a small delay, the CalledID information it doesn't become instantly, by testing in the HTC Universal seems to be slow on outgoing calls, I hope that wont be any trouble there.

Thanks again guys for your help, it saved me a lot of work.
[Windows Mobile Development and Hacking General] WangSN:
This piece of code works on my iPAQ, but it does NOT work on a Treo 700wx. It retrieves no number on a Treo 700wx. Anybody face the same issue?
[Windows Mobile Development and Hacking General] SetoK:
Your iPAQ is a pocket pc, and the treo is a smartphone. The smartphone has a two tier security model. ExTAPI is a privileged API, so on a smartphone it can only be run with by a trusted application. The application must be signed with a trusted certificate.
[Windows Mobile Development and Hacking General] WangSN:
But why is the product specification advertised as "Pocket PC Phone Edition" :confused: (see http://www.palm.com/us/products/smartphones/treo700w/specs.html)
[Windows Mobile Development and Hacking General] arsenallad:
The treo 700wx is the US edition? Because the ones that I used in America had Windows Mobile 5.0 Pocket PC edition, however it sounds like a security issue as the guys mentioned above.

Take a look at :

http://msdn.microsoft.com/library/d.../wce51conWindowsMobileDeviceSecurityModel.asp

http://blogs.msdn.com/windowsmobile/archive/2005/11/03/488934.aspx

I signed the app by using the provided privileged certificate in the SDK and it works (in fact I used exTAPI), is worth to try.

Another thing, did you check the CALLERPARTYID flags to ensure that there is a "callerid" after calling getCallInfo?

And one curious thing about the Palms and Verizon, while we developed all in the UK , IMEI numbers are equally formated, in the US for some reason, both Motorola Q and Palm 700w got different formats, same for callerid sometimes, if you are doing any string operation after obtaining the number (like formating, etc,etc) be sure that is not causing any problem.
[Windows Mobile Development and Hacking General] WangSN:
But my iPAQ is also running WM5 PPC Phone Edition. I believe the code provided above is in fact compatible with many WM5 phone devices, specifically HTC made devices like O2, Dopod, etc.

So is it because Treo 700w has special security level that we need to comply for TAPI to work properly? :confused:

Also, commands like lineInitialize, lineOpen, lineGetCallInfo does not return any error. The thing is this... same piece of code, runs on most WM5 PPC, able to retrieve incoming number. But there's just NO incoming number return on a Treo 700w/wx. Any idea?
[Windows Mobile Development and Hacking General] WangSN:
Yes. Treo 700wx US edition.

No. I use dwCallerIDSize>0.
[Windows Mobile Development and Hacking General] SetoK:
not sure why it's not working for you, I run simular code on an apache and a iPAQ 6215, works fine. However, I don't think it's a security problem. I was confused by palm calling the treo a smartphone. It has a touch pad, it must be a Pocket PC :).

Pocket PC doesn't support the two tier model. Smartphone supports both models. If registry value HKLM\Security\Policies\Policies\0000101b is 0 then the device is two tier otherwise it's one tier. Note 0x101b=4123 so search MSDN for security policy 4123 to find out more.

Plus it's the tapi api that needs to work not exTapi. I don't think any of the tapi functions are privileged.

Just wanted to correct my mistake from yesterday. If you have VS2005 you might want to look at the CallInfo structure in the debuger.

Good luck
[Windows Mobile Development and Hacking General] arsenallad:
dwCallerIDSize it will tell you only the length, if for instance the structure is not properly initialized (as happened to me in this thread) dwCallerIDSize will be zero too, is not a good idea because doesn't give you too much info.

Check in your structure the dwCallerIDFlags member , if returns LINECALLPARTYID_ADDRESS or LINECALLPARTYID_PARTIAL means that callerid is there, now if LINECALLPARTYID_BLOCKED is returned is very likelly that the operator it doesn't have the callerid active or you are calling from a line that protects the "privacy" (whitheld) sometimes is the case, specially in offices that uses PBX.

If LINECALLPARTYID_UNKNOWN is returned, then probably you are having a problem either with the callerid service (the phone does show the callerid when calling?) or somethign to do with your lpcallinfo structure allocation, check that dwTotalSize >= than dwNeeded.

One more thing: It happens to me that after testing using an HP Phone I started testing in a HTC universal phone and it didn't work , particullary in outbound calls, for some reason the LINECALLPARTYID flag returned ADDRESS, but the structure was empty. After trying to discover what was going on, I introduced a small pause in the thread (Sleep) of 2 seconds and worked fine, it seems that hardware can be slow

Good luck.
[Windows Mobile Development and Hacking General] WangSN:
Nope :( No luck in getting this to work...

Checked dwCallerIDFlags member, even when value is LINECALLPARTYID_ADDRESS|LINECALLPARTYID_PARTIAL still does not contain the incoming number.

Also tried Sleep for 2 seconds, but still NO number. Before the 2 seconds wait expires, the built-in PPC incoming call dialog already show up WITH caller number.

I'm running out of ideas... :mad:
[Windows Mobile Development and Hacking General] [kab]:
problem solved, post edited...
[Xposed Framework Modules] pyler:
Customize power menu in Android Lollipop. Open Xposed Installer -> Modules and click on Lollipop Power Menu to customize power menu.

You can enable/disable items in Power menu:

- Shutdown

- Airplane mode

- Silent mode

- Users switcher

- Settings

- Lockdown

After you change settings, please restart your device!

[IMG="Lollipop Power Menu"]http://i.imgur.com/M4QX7nth.png[/IMG]

NOTE: This is simple config modification so this means that every item in power menu is developed by Google, not by me. This also means that I will NOT add another items in power menu. Use other Xposed modules for that.

DOWNLOAD: http://repo.xposed.info/module/com.pyler.lollipoppowermenu
[Xposed Framework Modules] Blackbird256:
I still can't believe there is no way to reboot in stock L. Google is really stupid. There are apps that literally tell you to reboot and you can't :D
[Xposed Framework Modules] pyler:
Definitelly one of the most wanted things. But Google rather does BS features, than really useful ones.

Star this issue: https://code.google.com/p/android/issues/detail?id=149868
[Xposed Framework Modules] Danymat:
Hey, i have an issue, i have xposed enabled, and the module, but after reboot i don't see changes
[Xposed Framework Modules] pyler:
Configure it firstly. I wrote about it in OP.
[Xposed Framework Modules] zikay:
Facebook app allways force close at lollipop roms
[Xposed Framework Modules] FcukBloat:
sorry in advance for the intrusion and ot, but really wouldn't where to ask this, hope you can help.. i desperately need a module to assign "show power menu" action to some apex gestures for example, in lollipo, as i press it very often and would like to save power button life.. any hint? with gravitybox it was possible but this action doesn't work in lollipop :(

thanks and sorry again ;)
[Xposed Framework Modules] pyler:
Please, do not go off topic!
[Xposed Framework Modules] huismeester:
Sorry not working on my htc one M8 sense :(
[Xposed Framework Modules] hp420:
sure there is...paranoid figured it out just fine
[Xposed Framework Modules] mihir.mehta:
can't install, it says downloaded file is not a valid APK
[Xposed Framework Modules] mukintaras:
And where's actually "Reboot" option?
[Xposed Framework Modules] pyler:
Nowhere. Read OP. You can only control builtin power menu items developed by Google.

APM+ module is for much more customization.

And you can install this module only on Lollipop, on KitKat and below you get "invalid APK" message.
[Xposed Framework Modules] Nonta72:
Working fine on GALAXY S3 I9300, Temasek's CM12 Port :good:
[Xposed Framework Modules] nmeuret:
Just use APM+ module and you will have all reboot options you wants.

Working on my S4 with GPE Lollipop ROM.
[Xposed Framework Modules] Poeta:
With the Power Toggles (https://play.google.com/store/apps/details?id=com.painless.pc) i have Reboot option in the Toggle Widget
[Xposed Framework Modules] zagorteney:
Just quick question. Is it possible to add Vibrate mode? I think it is also developed by Google.

Thank you on your good work.

Regards, Zagor

P.S. [MENTION=2298413]Poeta[/MENTION], please, don't go offtopic.
[Xposed Framework Modules] pyler:
We can only control these items:
[Xposed Framework Modules] zagorteney:
Can you please just look at this thread from #6 to #10 posts on: http://xdaforums.com/google-nexus-5/themes-apps/mod-3-power-menu-stock-5-0-1-deodex-t2997128 ?
[Xposed Framework Modules] pyler:
Yes, that's requires manual implementation. Get APM+ for such advanced options.
[Xposed Framework Modules] zagorteney:
You didn't get me right. Please read from post #6 on. It's about old stock (4.4 and above) power menu. And Vibrate mode is integrated by Google.
[Xposed Framework Modules] pyler:
I checked code and if device has vibrator, you will get "tri state" silent mode item like on that screen, no? Sorry, I have no LP phone, only tablet with LP (no vibrator so only one state silent mode I can see)
[Xposed Framework Modules] hamzahrmalik:
deleted
[Xposed Framework Modules] JoaoMarcos:
Doesn't work with Moto G Lollipop 5.0.2
[Xposed Framework Modules] Ja_som:
Be more specific, what doesn't work? I have no problem on my Moto G XT1032 GPe Lollipop 5.0.1
[Xposed Framework Modules] kurtmieville:
Silent Mode

Did I get that right that only features can be added which were included by Google. So how about the silent mode on a N6? I can select it in the module, but it won't show. Is that because it is not a build in feature?
[Xposed Framework Modules] pyler:
Needel to check if config_useFixedVolume is false. If true, silent mode item is not shown.
[Xposed Framework Modules] KEAN3010:
Thanks a lot it is very useful. The combination of Lollipop Power Menu & Advanced Power Menu+(APM+) gives me full function including reboot.
[Xposed Framework Modules] pwvandeursen:
yup used that combo as well. just don't like the ordering. wish I could change those...

---------- Post added at 09:07 PM ---------- Previous post was at 09:05 PM ----------

strike that. just solved it in APM+

unknown is the second to last and volume mode is last. gives a cleaner visual
[Xposed Framework Modules] JoaoMarcos:
I don't know what I do but now it's works propely. Please forget ;)
[Xposed Framework Modules] Adam3Sixty:
Doesn't seem to be working on CM12 on my Galaxy S4.

If I can provide any other info please let me know. All I want is the volume control at the bottom again, and APM+ is so much extra that I don't need.
[Xposed Framework Modules] amir.:
Lg g pro 2

It says its not valid apk.. On lg g pro 2.. Any solution??
[Xposed Framework Modules] danon.brown:
The volume option can be done with a simple SQL edit along with the settings shortcut. Not sure about the lockdown since I don't use it. Just add silent under the power menu options. Cm12 Galaxy note 4 android 5.0.2

Add silent for volume options

Add settings for the settings shorcut
[Xposed Framework Modules] Ronii10:
It doesn't work on my tablet (GT-N5110) CM12
[Xposed Framework Modules] cha72:
Trying this out on LG G2, stock lollipop. The module installs fine but seems to have no effect as the old power menu is still there with no changes. Any tips?
[Xposed Framework Modules] kvsriram91:
Add Reboot option

Adding reboot option will be a best thing to this app. kindly try it dude..

Thanks for the app.. :)
[Xposed Framework Modules] kvsriram91:
I'm getting this error! I have tried 100 times.

Kindly go through it and give me solution.

I need it badly!!

:thumbup::confused:

Thank you..
[Xposed Framework Modules] doublejz:
I would love to see it include reboot as an option. Can't be that difficult to add it.
[Xposed Framework Modules] OsistemX:
Work on Xperia Z1 5.1.1 !
[Xposed Framework Modules] S3Killer:
Good work

has how to put the profiles sound in the menu power?
[Xposed Framework Modules] shingz96:
will this work in samsung touchwiz?
[Xposed Framework Modules] dritank:
Hi everyone, is there any xposed module (beside APM) that can add a reboot in recovery within the power menu?
[Android Q&A, Help & Troubleshooting] olive81200:
I accidentally did something wrong with SP_Flash_Tool_v5.1408.00 and function "whole flash" instead of "Format Whole except flash bootloader". Since my phone seems completely erased is no longer recognized by my pc.

Mecri for your help
[Android Q&A, Help & Troubleshooting] olive81200:
can someone explain to me how to inject a new bootlodaer for my G9000 is recognized by my pc because no driver allows.

thank you
[Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti] doctorv42:
hi there im new to this

so i was thinking would the lollipop firmwere get rid of the o2 bootup on my xperia z3 tablet as its unlock so i can have any sim card to use any network

thank you
[Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti] xxiphxx2k:
just to get some clarification for someone else who knows about this stuff.\

What model to you have?

Is your bootloader Locked or Unlocked.

Thanks
[XDA Assist] XDA Visitor:
Samsung Galaxy S2 that I purchased from Australia having Gingerbread 2.3.4 on it.

Samsung Galaxy S2-switching off after initial screen displaying"Samsung Galaxy S2 I9100".

My phone initially had a problem of Flight mode-"No network or sim card was not reading".

To resolve that I did the following-

1. Factory Reset

2. Then rooted my phone following the following instructions- "galaxys2root.com/galaxy-s2-root/how-to-root-galaxy-s2-newworks-on-all-galaxy-s2-variants/" (which says to Download GalaxyS2RootNew.zip & then hitting Runme.bat), but was not able to successfully root my phone(through use of busybox).

3. After that I tried this method given on this - "galaxys2root.com/galaxy-s2-root/how-to-root-galaxy-s2-i9100-icsandroid-4-0/" (which says to flash the following Kernel- CF-Root-SGS2_XX_XEO_LPQ-v5.3-CWM5.tar using ODIN program). But this make my phon to not to restart again as this is for Ice Cream Sandwich(ICS) .

Pls help me how to reach the old state on my phone.

Let me know if any other information I can provide with.

Currently by pressing Power+Menu+Volume up button I can enter CWM-based Recovery v 5 .0 .2 .7

Thanks in advance..:)
[XDA Assist] It_ler:
I'm not quite sure about what you really want.

"reach the old state"?!

If you just want to remove the yellow triangle (and reset the custom flash counter), then use TriangleAway app.

If you want to unroot your phone, install SuperSU app from Play store and use the complete unroot option in this app.

If you want to have complete stock firmware back on your phone, get it from the [Stock Official Firmwares] I9100XWMS2 (4.1.2) - Slovenia (MOT) [05-01-14] thread and flash it with Odin.

Good luck !
[XDA Assist] Nik_613:
Revert to the earlier state means restore phone to stable working state

Thanks for the links...I am not that much tech savvy..I will try to run the following firmware as provided in the link provided by you-

"I9100XWLP8 Mod Edit link remove

Base Firmware: I9100XWLP8 (4.0.3)

Region Australia*

Carrier: Optus (OPS)

Build Date: 6th April 2012

Modem: XXLPS

CSC: OPSLP4

Change List: 356487

CF-Root v5.4 LP7 (Works with LP8!)"

Hope the above firmware will work fine for my Samsung GalaxyS2.

Could you help me with the Odin to flash the above firmware...

Thanks
[XDA Assist] It_ler:
Please post in the S2 Help thread.

There you will get best advices.

My tapatalk signature:

Device:

SGS5 (SM-G900F)

ROM:

AllianceROM v5.6

Kernel:

Stock G900FXXU1ANG2

Recovery:

TWRP by Ktoonsez

Modem:

G900FXU1ANG7

If you have any question about or any issue with your SGS2, just ask in the New members friendly Q&A thread.

... for the SGS5, just ask in the Noob friendly S5 All in one support thread

If you need general help/assistence, please go to XDA-Assist.
[G3 Q&A, Help & Troubleshooting] techdani:
Hello everyone!

I own a LG G3 D855 and from the moment I bought it, I've noticed problems regarding battery life. After some resets, the store changed my battery. Despite this, it remained more or less the same. I usually never pass 3 hours of screen-on-time (no gaming!) with a full charge. After that, I considered it was due to the 2K display and reports around the internet talk about 4 hours with this phone, so I became thinking it was quite normal to have this battery life (asking your opinion, guys). Notice I usually have wifi on; 3g, nfc and gps turned off.

However there's a second problem. Sometimes, at random days, like it happen today, I get android system using more battery than the screen:

View attachment 3164960 View attachment 3164959

I'm avoiding sending it over to the warranty, because I'll be 30 days without the phone and not sure they're figure out the problem.

PS: I'm running stock Lollipop, haven't rooted yet. Same behaviour when I had 4.4