yashsingh1/xdaforums huggingface dataset:
[Windows Phone 8 Development and Hacking] GoodDayToDie:
The user-mode kernel entry points have been split into a few different libraries, kernel32legacy.dll and kernelbase.dll. Both of these are in System32 on the phone.

I don't know why you think JIT would have anything to do, on e way or another, with interop-unlock. The basic process of JIT compilation doesn't require any special permissions at all (and that's pretty much all that Inteorp-Unlock gives; access to some extra permissions). Now, whether you can do anything useful with those scripts... IU can help there, if the app which contains them contains the appropropriate capabilities. Bear in mind that I still haven't managed to fully "root" a phone, although I have more ideas as to how to go about it.
[Windows Phone 8 Development and Hacking] felixlong:
I think you can not do JIT, because WP8 will not give you permission to change the executate bit for malloc memory.
[Windows Phone 8 Development and Hacking] oZed:
Well I wouldn't go changing the permissions for memory allocated through malloc, but yes VirtualAlloc and VirtualProtect, both necessary for a JIT should be contained in kernel32.dll on any other NT system. I would be very interested in what you find.
[Windows Phone 8 Development and Hacking] GoodDayToDie:
Pretty sure there's nothing stopping you from calling VirtualAlloc and VirtualProtect, aside from the fact that they are "unofficial" (non-WinRT) APIs. If you want to do some research into using them (and possibly produce a library to make accessing them easy), that would be cool and potentially useful!
[Windows Phone 8 Development and Hacking] oZed:
I did a bit of poking around and was able to call both VirtualAlloc and VirtualProtect from a standard app in the emulator. The biggest problem I'm having is despite successfully allocating pages with PAGE_EXECUTE_READWRITE permissions, I get 'Access Violation' when calling within the page. I've also tried allocating as PAGE_READWRITE then using VirtualProtect to switch to PAGE_EXECUTE but to the same effect. Finally, VirtualProtect confirms that the permissions I ask for are being applied to the page, there must be something else preventing execution.

Also, all these functions were found in kernelbase.dll
[Windows Phone 8 Development and Hacking] oZed:
Ok so it turns out I was messing up my x86 JMP's and causing a whole heap of pain. It turns out we do not have any restrictions when it comes to allocating and using executable memory, I've been able to both patch an existing function and roll my own.

Attached is the header, lib and dll for the emulator as well as an example test solution if anyone without experience wants to experiment. I plan to export all available function from kernelbase.dll, but here is a good start.
[Windows Phone 8 Development and Hacking] GoodDayToDie:
Cool! Of course, we'd need an ARM (THUMB-2 actually) version if we're going to use it on the phone, but that shouldn't be hard at all. Thanks for sharing your work!
[Windows Phone 8 Development and Hacking] oZed:
Spent a bit more time on it this afternoon and have now added support for ARM, as well as expanding the libraries to cover all exported functions from kernelbase.dll. The header is essentially the same, I think an add on demand system for it is a decent approach, as there were over 1300 functions that require prototypes.

Preliminary testing showed that at least VirtualProtect and VirtualAlloc were calling and seemed to be working on my 920, after struggling to write a simple branch I am going to have to leave proper testing to someone a bit more versed in ARM opcodes, unless someone has some decent documentation so I can dive in myself :D
[Windows Phone 8 Development and Hacking] sireangelus:
..does it mean that we could have some sort of webkit/blink on the phone, if only devs would be so polite to spend some time on it?
[Windows Phone 8 Development and Hacking] cpuguy:
I didn't have much time to work on this but I have been able to get the address of any given method when running your demo on an actual device (ARM). If I get more time, I'll complete your entire demo for ARM (which shouldn't be too too complicated now that I figured out the opcodes used for "jumps")...

In the mean time, if you want to work on it yourself, here are the opcodes used:

MOVW R12, #<address_low>

MOVT.W R12, #<address_high> ;after this, R12 will contain the full 32-bit address of the method

BX R12​

All you have to do is read the address low and address high and combine them in a 32-bit int to get the address of the method. Also note that the MOVW and MOVT.W are 32-bit instructions (hence the W) while the BX is a 16-bit instruction. I found this document to be very useful: http://web.eecs.umich.edu/~prabal/teaching/eecs373-f10/readings/ARMv7-M_ARM.pdf

Cheers!
[Windows Phone 8 Development and Hacking] Myriachan:
Don't forget to call FlushInstructionCache once you're done writing to memory before you jump to it. ARM CPUs are not x86's - they don't maintain coherence between the data and instruction caches like x86 processors do.

Melissa

---------- Post added 15th November 2013 at 12:03 AM ---------- Previous post was 14th November 2013 at 11:54 PM ----------

The exception and interrupt handlers of the Windows RT and Windows Phone kernels always set the Thumb bit of the CPSR register in the frozen thread's context. This means that if the interrupted thread was running ARM code, when it resumes, it will crash.

Chrome's V8 generates ARM code, not Thumb-2, as does Firefox's code generator. This is a massive reason why these browsers haven't been ported to Windows RT, let alone Windows Phone.

This can be fixed with kernel patches, but this would require jailbreaking Windows RT or Windows Phone, and defeating PatchGuard.

Melissa
[Windows Phone 8 Development and Hacking] oZed:
Thanks for the link! Got it to work, but is a little hackish getting the instruction alignment right. I've got both function patching and memory allocation methods working just like on X86, it appears that extracting information from and building opcodes is far more expensive on ARM than X86, ie this is what I was using:

#define MOVW(x, Rd) \
(0x0000F240 | \
((x & 0xF000) >> 12) | \
((x & 0x0800) >> 1 ) | \
((x & 0x0700) << 20) | \
((x & 0x00FF) << 16) | \
Rd << 24)

#define MOVTW(x, Rd) (MOVW(x, Rd) | 0x00000080)

#define BX(Rm) (0x4700 | (Rm << 3))

int inline FuncPtrToFuncAdr(void * ptr)
{
#if defined(_M_IX86)
char * instruction = (char *)ptr;
return (int)ptr + *(int *)(instruction + 1) + 5;
#else
#define EXTRACT(x) (\
((x & 0x0000000F) << 12) | \
((x & 0x00000400) << 1 ) | \
((x & 0x70000000) >> 20) | \
((x & 0x00FF0000) >> 16) )

int * instruction = (int *)((char *)ptr - 1);
return EXTRACT(instruction[1]) << 16 | EXTRACT(instruction[0]);
#endif
}

Thanks, while I didn't experience any problems so far I've switched to using it, if only for good practice! It's a shame we are only limited to Thumb-2, but if we find a hack for RT hopefully we'll be able to cross-pollinate and get in working on WP and vise-versa.
[Windows Phone 8 Development and Hacking] sireangelus:
why should we need to patch the kernel, as i said, if developers were to port the code from arm to thumb-2 everything would be fine. I'm starting to think that the "they won't port over for political reasons" it's not completely untrue.
[Windows Phone 8 Development and Hacking] GoodDayToDie:
Modifying a Just-In-Time compiler to emit a different instruction set is not a trivial operation. Porting the browser itself is *relatively* easy (still a colossal task for one person, but possible), but it's kind of like porting some desktop C compiler to RT or WP8. You'd get a C compiler that runs THUMB2 code, yeah... but it would still generate x86 binaries.
[Galaxy S I9000 Themes and Apps] gargeya_369:
Hi guys.,

I have seen the status bar quick peek feature in some of the JB ROM's (Like, Slim bean, illusion, etc).

I am talking about

When the phone is in expanded desktop mode or while using a full screen app like temple run, etc...

with a quick swipe from the top edge of the screen we can access the status bar and next expand it to access the notification panel..(Useful to access the notifications, without closing the app currently running in full screen)

Can anybody tel me how to port this feature into any JB ROM ?

What are to be modified in order to get this feature ?

Kindly provide detail expalnation...

Thankyou in advance..:good:

I am attaching a iOS video just for the clear understanding,,

I didn't find any android video explaining about the status bar quick peek feature.

http://www.youtube.com/watch?v=8wbAUTFTFXw
[Galaxy S I9000 Themes and Apps] NimeniAltu:
Try this app

https://play.google.com/store/apps/details?id=com.kiumiu.ca.statusbar.free&hl=ro
[Galaxy S I9000 Themes and Apps] gargeya_369:
i actually wanted this build into the ROM..like this is already in-built to Slimbean, carbon, illusion, PAC, etc ROM's..
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] htcsfragg:
Hello guys i need help from you really need help..

Soo here is problem my touch doesnt work but display work perfectly but touch dosnt respond when i installed windows mobile 6.5 from android.

I tried factory reset,restoring Official Rom but nothing can fix my touch not respond.

WHEN I GO TO BOOTLOADER OR what is that with 4 colors (Volume - key + Red call button) there is not showed any MicroP(touch)

Just this is showed in 4 color menu.

PB81*** SS-BC

SPL-1.42.0000 XE

MicroP(LED) 0x05

Nothing else what is wrong please i need your help please ? ? ? ?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Mister B:
First off try a new original ROM for your HD2 & flash complete spl rom & radio & see what result is.

If same would expect hardware & digitizer replacement needed, digitizer failure very common but normally still seen in bootloader but have seen this on an already replaced digitizer that went bad & needed replacing a second time.

Those android roms tend to cook the HD2 & heat cycles is main cause of all faults really.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] htcsfragg:
Heloo

My friend sayed that he was deleted some System touch folder and i need to install some TOUCH DRIVERS ? What the hell is that ? i never heard about driver for touch ? any suggest aniway i buyed this phone from my friend and it camed without system he sayed that he delted from sd card and everything was worked ?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Mister B:
As my previous post:

Flash an original ROM for your type of HD2 & test, if the same I would suspect digitizer.

Check under battery cover & see if original void sticker still on screw heads as if not it been played with before ... If so worth opening device CAREFULLY and check digitizer ribbon connection & lcd ribbon to mainboard connection & if the seem ok & same issue present after reseating conectors, a new digitizer needs be tested on it.

My money is on hardware of either bad previous repair work or new fault in digitizer assembly & your friend being a plonker ...

HD2 Wiki has ROM links and all info you need to get started on testing/repairing this, read through it well & review guides if need open device as one wrong move will result in you holding pure electronic scrap ...
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] htcsfragg:
Heloo

Yeah thanks brto i will try to open, but void button is there so nobody oopened phone before :D

i will try to open it but i guess that i will change digitizer
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Mister B:
Yes expect digitizer needed, worth getting button board ribbon too as makes testing it before assembly really easy plus many people break the button board ribbon when stripping phone down.

Take care opening it, back cover comes off very easy once top clips released then work don right side, don't do much on left side & keep pry tool out of volume area & ONLY use plastic tool.

Razor blade, fishing line & hot air gun or hair dryer will help stripping but care & thought on what you are doing is a must, No need lift the entire flex board ribbon & volume button as can be done with this left in situ & just flex board loosened near connector to mainboard & makes easier in long run & neater final result.

Have a look at a few guides to get better idea on layout & delicate areas .
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] htcsfragg:
Help

Bro how can i see if my digitizer is soldier or connector type ? ? i dont have MicroPtouch in my bootloader ? ? ?

i first wanna buy digitizer than i will open my phone but i need help to determine what is my digitizer ? ? ?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] htcsfragg:
Bro how can i see if my digitizer is soldier or connector type ? ? i dont have MicroPtouch in my bootloader ? ? ?

i first wanna buy digitizer than i will open my phone but i need help to determine what is my digitizer ? ? ?
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] Mister B:
With no MicroP (touch) in bootloader you will have to open it to find out by looking at hardware.

Best opening first as you may need more parts if not careful, try removing digitizer from LCD first because if you not good at it you will need LCD too then would need LCD & digitizer set rather than just digitizer for example ...
[Windows Phone 8 Q&A, Help & Troubleshooting] Sotos183:
Hello,

I am planning on buying a HTC 8X with Windows Phone 8. As a previous Windows Phone 7.8 user (I own the HTC Trophy), I have a question about the display and keyboard language on my new phone.

My question is, if the device I buy is the German Vodafone version can I add the Greek language (my native) even if it is not listed in the languages list?

Another question is, if there is no way to add Greek language as the display language, is there a way to add just the greek keyboard so that I can write greek?

Thank you in advance
[Windows Phone 8 Q&A, Help & Troubleshooting] dxdy:
all WP8 devices have all supported languages in WP8... no need and no possible to add additional language...

http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202918(v=vs.105).aspx
[Windows Phone 8 Q&A, Help & Troubleshooting] sinister1:
I added Spanish to my keyboard a while back ago but forgot how. :\
[Windows Phone 8 Q&A, Help & Troubleshooting] dxdy:
on unlocked/custom ROM Wp7 with Native Keyboard maybe?

with WP8 only in settings you can add available keyboards
[Windows Phone 8 Q&A, Help & Troubleshooting] StevieBallz:
My unlocked german Lumia 920 allows me to install the greek keyboard under Settings / Keyboard

As for UI language I can't tell as they decided to write language names in the UI selection in the countries letters and there's quite some that I can't read. How would you write "Greek" in greek?
[Windows Phone 8 Q&A, Help & Troubleshooting] drait:
Well, Greece in Greek is 'Ελλάδα' (Hellada) or sometimes 'Ἑλλάς' (Hellas).

Perhaps somebody can inform me if it's possible to install extra languages but retain a certain (fixed) keyboard lay-out.

That is to say, I tend to converse in English, Dutch and German all the time and sometimes in French. I would like to be able to install these dictionaries and use the languages interchangeably, but keeping all the same QWERTY-layout all the time.

In other words: when I write something in German, I want the keyboard to retain the US-style QWERTY-layout that in standard in the Netherlands, rather than the QWERTZ-layout that is standard in the German-speaking countries. Similarly, the keyboard shouldn't switch to AZERTY when writing something in French.

This piece of information I haven't been able to find out from the documentation on-line. Because utilities such as Swype and especially SwiftKey do not exist for Windows Phone (yet?) it's something I'd like to know before I make the plunge.
[Xperia Z1 Android Development] krabappel2548:
I'm proud to present to you:

Flashable stock rom for Xperia Z1​

== Information ==

- Latest stock rom

- Flashable zip

- Deodexed

- Zipaligned

- Added a few tweaks

- Debloated a little bit :)

== Download ==

Version for 14.1.G.2.257 fw:

Mega: Deodexed - tweaked 257 stock rom for CWM & TWRP

Version for 14.1.G.1526 fw:

Mega: Deodexed 526 stock rom v2 for CWM

== Installation ==

- Flash via CWM

- Flash SuperSu zip to be sure you are rooted

- [Optional] Clear cache and dalvik cache

== Extra ==

Enjoy this guys :)

If you like my work consider donating to me for my future Xperia devices!

== Changelog ==

== 12/09 v2 ==

- Updated updater-script

- Removed advanced stock kernel from zip​

== 11/09 v1 ==

- Released version of Taiwan 526 fw​
[Xperia Z1 Android Development] Urticant2:
Thanks
[Xperia Z1 Android Development] Mi|enko:
Anybody that's flashed this via CWM getting a Status 7 abort due to challenges setting permissions?
[Xperia Z1 Android Development] yeeson:
526 cameras have a problem, can not take pictures
[Xperia Z1 Android Development] xperiasblack:
Mirror!!!!!!!!
[Xperia Z1 Android Development] krabappel2548:
I'll upload new version tonight with fixed flashing script :)

EDIT2: Uploaded, let me know if there are errors now.

If there are, try to boot into the rom and tell me if there are issues ;)
[Xperia Z1 Android Development] Mi|enko:
This new version still gives a status 7 when setting permissions. Not sure what that's about. It's after the pieces of the ROM have technically been flashed, so it still boots. Just not sure what permissions you're trying to set, why it's failing, or what the downside is of whatever permissions are failing. Hope that makes sense.
[Xperia Z1 Android Development] krabappel2548:
Oh ok, so it flashes and works but error.with permissions. I'll check them again tomorrow :p
[Xperia Z1 Android Development] swedan:
I got the permission error as well, but for me it won't boot. Just a good old bootloop. Wouldn't be an issue if not due to the fact that I can't enter recovery other than with adb :).

What fw were you on before flashing?
[Xperia Z1 Android Development] Mi|enko:
The 526 ftf. Was just trying to switch to the deodexed version.
[Xperia Z1 Android Development] yeeson:
After unlocking the camera can not be used

for Z1
[Xperia Z1 Android Development] swedan:
Yeah I got this too. Can't use camera on stock (ftf) 518 or 526 after unlocking bootloader. Worked fine before. Would love if someone could test camera directly after unlocking bootloader from stock.
[Xperia Z1 Android Development] yeeson:
Restore TA, can use the camera！
[Xperia Z1 Android Development] swedan:
Of course I didn't backup TA since I've never had this problem before :), so I guess I'm screwed...
[Xperia Z1 Android Development] yeeson:
Your camera can be used?
[Xperia Z1 Android Development] swedan:
No. Completely useless on my Z1 with ULBL. Doesn't matter if I use fw 518 or 526. But the camera on my my Xperia Z worked fine with ULBL.
[Xperia Z1 Android Development] yeeson:
What does this mean?

---------- Post added at 12:51 PM ---------- Previous post was at 12:49 PM ----------

To resolve them, the camera does not work after unlocking problem？
[Xperia Z1 Android Development] swedan:
Not quite sure what you mean. But you said yourself that the camera didn't work after ULBL (unlocking bootloader), as I also experienced. If restoring TA works then that's a pretty crucial step for all who wants to ULBL.
[Xperia Z1 Android Development] yeeson:
ULBL (unlocking bootloader)，Can't solve?:crying:
[Xperia Z1 Android Development] Qwerty123 \m/:
What if you re lock ?
[Xperia Z1 Android Development] shem2409:
Yes. Anything stock based is for a locked bootloader. This is basically just a stock firmware with root, deodex and a few tweaks to the camera.
[Xperia Z1 Android Development] danw84:
I changed the data storage, it worked a few times but not anymore... No idea why.
[Xperia Z1 Android Development] ozgadgetguy:
Hi Dan I am almost there and just need the missing apps from your last few steps. As a complete newbie can you spell out:

1. how I get to adb shell, this is running on the Z1, right?

2. How do I extract files from the FTF

Thanks.

[Update], so I found how to create extract from the ftf then got system.ext4 from flashtool. I then found the ext4 unpacker but when I try it on system.ext4 it says "unknown file format".

On q1. can I use the adb shell from the dual recovery folder?
[Xperia Z1 Android Development] danw84:
1. You can find adb in the Android SDK. Download it here http://developer.android.com/sdk/index.html

The adb app is under sdk/platform-tools

2.

- Open the FTF file with an archive software (like Winrar).

- Extract system.sin

- In flashtool go to Tools > Sin editor

- Select your sin file and click on "Extract data". It sould create a ext4 file

- Open the ext4 file with an ext4 reader, like ext2explore, and extract the app and framework folders (Download it here : http://www.softpedia.com/get/System/File-Management/ext2explore.shtml)
[Xperia Z1 Android Development] ozgadgetguy:
Great, thanks. Got it extracted now.

Do I really need to copy ALL of the files? I was only looking to get a couple of missing apps, are these all needed?
[Xperia Z1 Android Development] danw84:
I would copy all of them and delete the one Idon't need afterwards. Otherwise you would have both odexed and deodexed apps : say hello to bootloop :P
[Xperia Z1 Android Development] ozgadgetguy:
All done, thanks for the help.
[Xperia Z1 Android Development] ozgadgetguy:
Quick follow up, do I need to keep both the .odex and .apk versions of the files in /system/app ?
[Xperia Z1 Android Development] MohammadAG:
Yes, the apk files now only contain resources (images, sounds, etc), but the odex files contain the actual code.
[Xperia Z1 Android Development] tufail.budoo:
Nice its faster than stock rom.. thanks
[Xperia Z1 Android Development] Amritttt:
I m using. 534 and I am touted and I have installed dual recovery. From here can someone please give me step by step guide from here
[Xperia Z1 Android Development] jagdesh:
I tried searching this thread but I could not find the answer

I am on the latest firmware now and I have tried using the flash tool to flash the old .537 firmware which I downloaded from XDA forum which was Generic IN firmware

When I try to flash it gives me an error always saying could not delete system.in ... this is the error which comes in flash tool ...

any advise ??
[Xperia Z1 Android Development] dilanopro:
what bloatware is missing from this rom guys?
[Xperia Z1 Android Development] fjoel:
restore missing apps

Can you please provide a flasheable zip with The deleted apps?

So we can chosse what to keep and stay so close to stock.
[Xperia Z1 Android Development] georgeartaki:
Hi, is there call rec in this Rom? And if not, is there any way to have on 2.257 latest firmware?
[Xperia Z1 Android Development] reignzy:
I've tried to flash this rom by the only working recovery I can find (twrp) and it fails...

Help please?

---------- Post added at 09:53 PM ---------- Previous post was at 09:51 PM ----------

Do you have the latest version of Flashtool installed?

Do you have the correct drivers installed?

Answering these questions could help you out ;)
[Xperia Z1 Android Development] fjoel:
update centre HELP!!

Please, i need update centre apk form this rom, i asked for the apk, but none of them worked.

or a guide to extract it, please help.

this is the only .257 rom that works rooted, close to stock, but no update centre.

---------- Post added at 03:23 PM ---------- Previous post was at 03:21 PM ----------

In the next rom update, please provide a flasheable zip to restore removed apps, so we chose what to keep or what to delete or disable.
[Xperia Z1 Android Development] fogw:
Hi!

fjoel : check out post #177 in this thread. Following those instructions leave you with an updateable, rooted version of this room. Running it now here, works flawlessly :)

Freddy