yashsingh1/xdaforums huggingface dataset:
[Windows Phone 7 Development and Hacking] rudelm:
Fiinix this is just amazing work! Because of you, I've need to rewrite a chapter of my thesis :o

Let me ask some questions regarding the supplied source code:

There are four folders inside the rar archive:

The Lib folder contains all OEM DLLs from Samsung, HTC and LG.

The Homebrew folder contains all old code from davux that is necessary to open up the sockets, files and registry entries (if needed?)

NativeIO_Mango contains your altered native DLL that can be used under Mango

The Webserver folder contains the actual WP7 application, that glues everything together into one nice app.

From the underlying workings:

Davux tried to build an API that resembles C# Sockets from the desktop. This way the C# Webserver project of jgauffin can be reused in the WP7 application. You removed from Davux's NativeIO project the references to all parts that require the native OEM DLLs (which is why GoodDayToDie stripped the unneeded DLL files and removed ID_CAP_INTEROPSERVICE to allow users without interop-unlock to use the app).

If this is so far correct, I'm wondering how some things in this application could work:

Ok, so you've removed the code that allows access to the filesystem and registry which uses the native OEM DLLs. How is it possible, that this application can access folders outside its Isolated Storage??? The application should not be allowed to access the windows folder nor any other folders? I know only of one folder, that should be read/writeable. Its a folder that heathcliff found in the policies, I think it was some kind of log folder. Or is readable access with WM6 native API to all files possible? :eek:

In WMAppManifest.xml stands ID_CAP_NETWORKING. This is necessary for navigating between different XAML pages but also necessary if we want to do something with the native network access. Can this capability removed or will the application break?

To sum up, if these assumptions are all correct, the policy system is partly useless from the moment on, where someone is capable to call native code, that does not require ID_CAP_INTEROP. This would theoretically allow a submission to the Marketplace?

Right now, I'm heavily confused and irritated, please explain me my error in thinking :confused:

PS: I tried to build the NativeIO_Mango project. I changed to release target and build. However, it exits with error message regarding the missing _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA setting. I've added it, but then I get 19 more errors. Each time it is unresolved external symbol.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Hi Rudelm,

I can't answer exactly what Fiinix did, but I can resolve a couple other points for you.

The OEM DLLs allow higher-than-normal app permissions (breaking out of the low-privilege "sandbox" that apps normally operate in). However, there are a few parts of the filesystem that can be accessed even without them, by design. One of those is the Isolated Storage for the app, which obviously needs to be readable and writable by the app. Another one is the install directory, which only needs to be readable so libraries and resources can be loaded (the webserver app doesn't allow you to browse this folder, but I'm confident that it could if it was coded to). The third is the Windows directory, which is also read-only (and many files and folders within it can't be read) but is similarly required because the app needs to be able to load system libraries (including the TaskHost.exe binary that hosts the app DLL). "Normal" apps can't access these folders simply because the Silverlight API doesn't have a function to open or list an arbitrary location on the filesystem (only within the isostore, which it abstracts the path to).

I don't know what happens if ID_CAP_NETWORKING is removed. It's quite likely the app would break, since that capability may be checked any time the app tries to open a socket (directly as this app does, or indirectly via the Silverlight APIs). You could experiment and do some research to find out, though. It would be interesting to see.

I wouldn't worry too much about apps in the marketplace running amok with native code (even in the low-privileged process, they could still do some harm). The ComBridge Silverlight API that is required to access native code at all is prohibited from use by independent software vendors - only Microsoft and their partners are allowed to use it for Marketplace apps. Somebody tried submitting a Homebrew app to the marketplace (another opportunity for some research, if you'd like to find out more) and discovered that the use of ComBridge is detected and blocked during the submission process.
[Windows Phone 7 Development and Hacking] fiinix:
There we go, a enchanted new version v0.2 :)

- Optimization's from what everybody has told, the best from all worlds :)
[Windows Phone 7 Development and Hacking] rudelm:
thanks for the explaination!

It seems like a plausible idea that the native code and the WP7 app needs to access some of the folders to work. So the silverlight managed code won't grant access by design to the Windows folder. Can you tell me where this folder for the installation packages is?

Regarding the capabilities: I've checked it with the marketplace capability test tool:

Result Details

[INFORMATION] : Capabilities used by application :

ID_CAP_PUSH_NOTIFICATION

ID_CAP_NETWORKING

ID_CAP_IDENTITY_DEVICE

I've removed ID_CAP_NETWORKING and it immediately stopped working. No dialogue that shows the IP address, only username and password. That is at least good to hear :)

Regarding the marketplace certification: You could be right, I've also read somewhere that COM is only available to some third parties like Adobe and manufacturers. Maybe I try to submit a little test app that uses interop.
[Windows Phone 7 Development and Hacking] fiinix:
The Capabilities Test only checks through managed code and its caller references (Dll references, method usage within dll)

Why the ID_CAP_NETWORKING is needed is because of the WP7 policy system; ID_CAP_NETWORKING allows usage to those resource locations:

Allowance to "WINSOCK", windows socket API

<Rule Description="Authorization rule for capability ID_CAP_NETWORKING" ResourceIri="$(GLOBAL_RESOURCES)/WINSOCK/CONNECT" SpeakerAccountId="$(SYSTEM_USER_NAME)" PriorityCategoryId="PRIORITY_STANDARD">
- <Match AccountId="$(CAPMACRO_ID_CAP_NETWORKING)" AuthorizationIds="GENERIC_ALL" />
<Rule Description="Authorization rule for capability ID_CAP_NETWORKING" ResourceIri="$(GLOBAL_RESOURCES)/WINSOCK/LISTEN" SpeakerAccountId="$(SYSTEM_USER_NAME)" PriorityCategoryId="PRIORITY_STANDARD">
- <Match AccountId="$(CAPMACRO_ID_CAP_NETWORKING)" AuthorizationIds="GENERIC_ALL" />
<Rule Description="Authorization rule for capability ID_CAP_NETWORKING" ResourceIri="$(GLOBAL_RESOURCES)/WINSOCK/ACCEPT" SpeakerAccountId="$(SYSTEM_USER_NAME)" PriorityCategoryId="PRIORITY_STANDARD">
- <Match AccountId="$(CAPMACRO_ID_CAP_NETWORKING)" AuthorizationIds="GENERIC_ALL" />
<Rule Description="Authorization rule for capability ID_CAP_NETWORKING" ResourceIri="$(GLOBAL_RESOURCES)/WINSOCK/SERVICE_PROVIDER_CHAIN" SpeakerAccountId="$(SYSTEM_USER_NAME)" PriorityCategoryId="PRIORITY_STANDARD">
- <Match AccountId="$(CAPMACRO_ID_CAP_NETWORKING)" AuthorizationIds="GENERIC_READ" />

"Can you tell me where this folder for the installation packages is?"

\Applications\Install\9bfacecd-c655-4e5b-b024-1e6c2a7456ac\Install\
[Windows Phone 7 Development and Hacking] rudelm:
Nice, thanks for the policy entry. Where did you find it?

Regarding the installation path: I thought you ment a special path to the place where the compressed xap is deployed or something like that before installation. But now it is clearer to me why the application is able to access Windows, installation dir and isolated storage :)

I've tried to upload a small app with native code but as GoodDayToDie said, the marketplace will see that it contains access to native API and that my account isn't allowed to do that.

So the world is safe again, I'm calmed down now hehe
[Windows Phone 7 Development and Hacking] fiinix:
The policy is from a ROM dump: BasePolicy.xml (Currently got "WP7 Mango Build 7661" dump), i think its this one i downloaded: [DUMP]WP7.1 Build 7661 "Mango"

Some more clearance: \Applications\Install\{ The application Guid }\Install\

- Each application has its own isolation storage:

\Applications\Data\{Guid}\Data\IsolatedStore\
[Windows Phone 7 Development and Hacking] voluptuary:
I don't know if it's possible but can you add access to /My Documents?
[Windows Phone 7 Development and Hacking] fiinix:
Sorry to say but the basics of this app allows only access to \Windows (dll reference location) as used for extracting of xap files, xml and dll (reverse engineer). You will probably need WP7 Root tools.
[Windows Phone 7 Development and Hacking] voluptuary:
Ok, I figured if you could have you would have already, thanks for the answer though.
[Windows Phone 7 Development and Hacking] dragonide:
We do really need the ability to delete the files in the Isolated Storage :(

Otherwise you have to remove the app everytime to recover used space ... :(
[Windows Phone 7 Development and Hacking] aristeua:
This app is really cool, but it would even nicer if we could get a delete button and the option use the webserver as a html server (currently, it downloads any html file we put into the isolated storage). It also would be very cool if we could access the uploaded files through the phone.
[Windows Phone 7 Development and Hacking] Magpir:
what does this do??
[Windows Phone 7 Development and Hacking] GoodDayToDie:
@Magpir: This version allows anybody with a developer-unlocked phone to browse their phone's Windows directory (read-only, but you can download files that aren't locked) and to browse the app's IsolatedStore folder, which allows uploading and downloading of files (you can kind of use the phone like a flashdrive, by uploading files to it using the web browser on one computer, then connecting the phone to the network the second computer is on and using that computer's web browser to download the files).

To use this app, it's best to be connected via WiFi. When you run the app, it will tell you several IP addresses that it sees. The WiFi one (often a 192.168.X.Y address and often labeled starting with BCM, which stands for Broadcom who are a common maker of WiFi chips) can be accessed via the web browser on a PC connected to the same network.
[Windows Phone 7 Development and Hacking] GoodDayToDie:
@fiinix (or soembody else): You might want to look at back-porting some of my changes from the HtcRoot Webserver project to this one. I've tried to keep the abstraction fairly clean, so simply removing (or even just putting behind #if checks) the HtcRoot stuff should result in something runnable on phones without HtcRoot compatibility.

Features I've added that would be useful:

File attributes, including identifying ROM Modules (can't be downloaded).

File sizes for everything, including ROM Modules.

A *MUCH* faster way to list the \Windows directory.

A "Content" folder that includes files which can be served directly to the browser (instead of downloading them as files).

Some improvements to error handling.

Stuff that would need to be taken out:

Anything that writes to the filesystem outside of IsoStore (actually, probably the whole /FileSystem handler; turn it back into the /Windows handler instead).

Maybe move the "Content" folder to IsoStore (or put one there) so people can upload to it.

Anything which initializes HtcRoot.

ID_CAP_INTEROPSERVICES in the manifest.

As a side note, if anybody knows of a good Mango-ready registry library that is open-source, that would be awesome. I'm guessing the one distributed with this app (and not included in the project build) is not Mango-comptible (I could fix this, but it might be a waste of time if somebody already has).
[Windows Phone 7 Development and Hacking] Lanex777:
I have a question - is it possible to make a list of files and open them with installed apps? For example, send a pdf file, open it and it will be saved this way? It is important for developer unlocked devices!
[Samsung Galaxy SL i9003] K0rkunc:
my father's brother is my

I agree between you over turkey so bad my English is not very good I'm sorry for my English:)

I am using the i9003, but I installed the firmware and now I've lost my phone csc tour turkey specific network ser-cor-dbt, etc.. IMEI # * # 272 * tour is not happening, but I've tried the option is not available in the tour

Thank you very much for your help in advance
[Samsung Galaxy SL i9003] vishal24387:
Buddy I understand that this is ur 1st post so that why telling u that plz from next time post ur question in general section.
[Optimus One, P500, V General] JastaPein:
just wanna ask on how to update Android Market'? because mine keeps on Force Closing everytime i launch it..

or can i just install a new apk that ive seen around here in xda'?
[Optimus One, P500, V General] MechanicaIMan:
You can install it like other APKs. But FWIW, it will install over the old version and leave behind the old data, doubling the amount of space that the app uses. If you want to avoid that, you can use one of the alternate installation methods described here. I personally use Root Explorer to install new versions of Market, overwriting the older Vending.apk.
[Optimus One, P500, V General] FPChaim:
It's because you didn't change the permission to make it executable...:cool:
[Defy Android Development] iaio72:
CM7 RewaMped |DarkGreen|

**

Based from official cm7 7.1.0 RC |android 2.3.7|

Features

*

Theme Amoled Green

by Etoy from Nexus-s, ported by me to CM7 for defy

* Geniewidget transparent

* Gmail latest edition Black

* LatinIme Android keyboard Black

* Google authenticator

* CustomLocale from ics

* Bottanimation from ics

* Ringtones pack from MIUI

* Roboto fonts style from ics

* All types of lockscreen modded transparent by me :D

* Zeam Launcher 3.1.6

* Google plus from ics

* New Market 3.3.1.1

* Google Music from ics

* Latest superuser

* Added LunarUI theme to apply with theme chooser

* Removed some apps

* Ics default WP

*

All applications modified with green effect

:

Calculator, Camera, Contacts, Desclock, DownloadProvider, Email, Gallery3d,

GoogleQuicksearch, Mms, PackageInstaller, Phone, Settings,

SystemUi, Torch and Market.

------> Put the rom into the microsd, enter in recovery/mode, do a wipe-data and cache, and install as a zip file, then reboot!

------>

DOWNLOAD
[Defy Android Development] Cristi_10:
nice job iaio:D gona try it as soon as i can;)
[Defy Android Development] iaio72:
thanks! :D
[Defy Android Development] hailmary:
OMG,this is great! 1st thing on my list to do when i get home tomorrow...

BTW,do we just install it like the ordinary CM7 way? like the nightlys?
[Defy Android Development] iaio72:
stable 7.1!;)

you installed in the same way, how all version of quarx cm7....
[Defy Android Development] mick711:
Thanks ..0. just i don't like green i prefer Blue :rolleyes:
[Defy Android Development] thrutheeyes:
looks great, what about just the theme?

what's it like compared to the latest nightly?
[Defy Android Development] mikeman8484:
looks promising :)...but why zeam luncher :P?
[Defy Android Development] iaio72:
adw and launcherpro are old, not have update to many month ....

so i had to decide between nemus and zeam!

at the end i choose zeam, because its very very light "417kb" and stable for this modded rom!
[Defy Android Development] iaio72:
i dont try the nightly....i used official cm7 710!!

what you want to know about the theme??

the theme its a porting from original amoled green for nexus-s to defy...(you find it in nexus-s/themes and apps)
[Defy Android Development] Sigray:
Doesnt matter if its updated or not. The LP still the smoothest, fastest launcher at this moment with scrolling widgets. The Zeam is fine too but with wallpaper scrolling the screen scrolling is everything but not smooth, and it has no scrolling widgets feature.
[Defy Android Development] walter79:
Try ICS-Launcher from market.
[Defy Android Development] Sigray:
Tried. Ugly and slow without the smooth scroll.
[Defy Android Development] onlinejobwork:
Hi all

I am on CM7 oficial , pl. mention quick step how to install this ROM? need to install optional update/patch for google? 720p record/play and call recording working/added in it?

Thanks

Urvish

Update:just install, After 1st boot DSP manager FC(Process.com.bel.android)crashed,restart and still crash, crash in music application as well and Zeam Launcher is rubbish

Update2: going back to oficial CM7.1.0 nothing special, nice work but bit boaring for me, for me best rom would be CM7 oficial with 720p record/play and call record

Thanks
[Defy Android Development] iaio72:
before to install, you do a wipe data and cache?
[Defy Android Development] Cristi_10:
hows the battery life?
[Defy Android Development] onlinejobwork:
Yes, but only cache and dalvik coz i dont want to loose my apps
[Defy Android Development] zkrayem:
Amazing Rom fully supports arabic

man, this is an amzing rom, fast and stable.

i liked the theme as well.

it's fully supporting arabic and other languages.

Excellent job.
[Defy Android Development] iaio72:
thanks! ;)
[Defy Android Development] Cristi_10:
iaio i synced facebook contacts but when i click them it says that the process android.proces.acore stopped:confused: wiped dalvick/data/chache nothing
[Defy Android Development] Sigray:
Is it because of the crappy facebook app...Its NOT the ROM's fault.
[Defy Android Development] Cristi_10:
didnt know.thx:D i know facebook app sucks but didnt know it was its fault

---------- Post added at 02:26 PM ---------- Previous post was at 02:09 PM ----------
[Defy Android Development] dumrul:
Nice theme i like it
[Defy Android Development] Hooda_mask:
It Support 720p Or Not???
[Defy Android Development] iaio72:
i dont put the 720p patch!
[Defy Android Development] zkrayem:
Battery Charging at 85% max

there is something my Defy+ enherited from previous trials of roms.

the battery indicator is charging to 85% maximum.

i saw some solutions to delete some battery logs files but i want your advice before trying as i'm happy with this rom except for the battery thing.

what do you suggest to do?
[Defy Android Development] Hooda_mask:
Can U Tell Me How Can I Patch It? :D:D:D:D
[Defy Android Development] xel666:
I'll ask again: how's the battery life in comparison to cm7 official?
[Defy Android Development] max-k:
Good job

Hi,

Thanks for this great work.

Your rom is cool, even if there are some little bugs :

-Unable to update google+ (needs to remove with TB and factory reset)

-Some crashes of zeam at startup (don't know why, stopped now)

The thing wich is embarrassing is that i can't read notification titles because they are writtent in black on a black background.

Is it possible to make it to be written in white ?

Thank you by advance.
[Defy Android Development] zed_fauji:
Getting FC while importing contacts

Gud works

but here what i faced,

While importing contacts from SD cards . i faced FC. and it happens many times. !!!

So please make sure This is a bug Developer.! :confused::confused::confused:
[Defy Android Development] Hooda_mask:
Its AWESOME !!!!!!!!!!!!!!!!!!!!!1

THXXXXX

I Installed It Very Fast & Nice
[Defy Android Development] Cristi_10:
iaio is there any way we modify your green theme because i cant see the notifications(they are black:() thx in advance:D
[Defy Android Development] iaio72:
yes i saw this bug, its bug original from the theme, and with the porting it is ...

i do to recompile the services.jar!;)
[Defy Android Development] bogdyy13:
does this work with 3.4.2-177-3 or i have to install a newer one? if so please tell me which one :d

green lens here....
[Defy Android Development] Cristi_10:
thx man:D:D
[Defy Android Development] hailmary:
iaio, battery step is on -5 ,isnt it should be -1..??

battery performance is good though.

its just the indicator :)
[Defy Android Development] Hooda_mask:
But How Can I Set A Ringtone??? :(

& Why When I Add A new Contact (Force Close)?? :confused::confused:
[Defy Android Development] Jean-DrEaD:
here everything is fine for now... waiting for revised notification text(please, add 1% to battery too ;)...

thanks so much for this awesome mod!

EDIT: Fixed Notification, added 1% battery, and changed Wallpaper... removed - Without autor autorization... :x

*PS: The carrier text are black in black, soon as possible im upload the new file*

EDIT2 - HERE IS THE FINAL FIX: http://www.multiupload.com/1RPPLIQ6SZ
[Defy Android Development] Hooda_mask:
thx Jean

Good Job Jean ;)

thx I Tried It Notification Has been Fixed & 1% battary :eek:
[Defy Android Development] Jean-DrEaD:
HERE IS THE FINAL FIX: http://www.multiupload.com/1RPPLIQ6SZ

CM7 original ICS LockScreen, 1% battery, Original Wallpaper, 30% Transparency in StatusBar, StatusBackground and Carrier.

Enjoy! :D
[Defy Android Development] geffersons:
Sorry for the english google translator

How to shoot in 720p?

there is a MOD for CM7?
[Defy Android Development] Cristi_10:
cm7 doesnt support the 720p record.you can try the gb rooms that are posted here+the 720p record patch;)
[Defy Android Development] bogdyy13:
hmm so i have to install cm7 and then this?

if so which cm7? the one from quarx or official cm7...

oh and what sbf is needed?

pls help me i'm new at this
[Defy Android Development] Jean-DrEaD:
Im upgraded this mod to cm7.11-1 for personal use... if anyone want, I will post the link.. :)
[Defy Android Development] max-k:
Try battery calibrator from market and follow instructions.
[Defy Android Development] iaio72:
if you read the post above, i write "based from official cm7 7.1.0" ;)
[Defy Android Development] iaio72:
no invers!

this rom is modded from official cm7!
[Defy Android Development] t1MzN:
yeah pls ! 7.11-1 is the newest one right? ... i wanted to update but not sure that this will work so easiely. can u pls upload it? :) thanks !
[Defy Android Development] Jean-DrEaD:
here is: http://www.4shared.com/get/qVAZDmv5/CM710-11_Defy_Green_MOD.html ;)
[Defy Android Development] ithink:
Is it good for green lens or green lens patch has to be applied?
[Defy Android Development] Hooda_mask:
When I Add A new Contact Give Me ( Force Close )

What Should I Do Now?????
[Defy Android Development] iaio72:
you do a wipe/data and reboot?
[Defy Android Development] Hooda_mask:
!!!!!! ROM Will Be Deleted :confused::confused:

And Then????
[Defy Android Development] iaio72:
with wipe data and cache you dont delete the rom, but the cache and data in memory of device!
[Defy Android Development] Hooda_mask:
THX For Help But Didn't Work :confused:
[Defy Android Development] sefrial:
Try deleting the cache and Dalvik cache. If that doesn't help, you can perform a clean install (format card, wipe data, wipe cache, wipe dalvik).

Hope it helps. This rom is wicked :)

Cheers,
[Defy Android Development] t1MzN:
thx a lot !

question: wipe cache -> install from zip -> wipe dalvik ?

should work? or fullwipe then install?
[Defy Android Development] Jean-DrEaD:
Fullwipe if you come from another rom that's not cm7

Wipe cache or dalvik first dosen't matter, wipe both before flash new ROM, ever!

First boot should keep loop... pull battery, etc... it's a cm7.1.0-11 bug
[Defy Android Development] t1MzN:
update is running but market is gone, theme chooser design isn working... an the lockscreen bubbles look crappy now :(
[Defy Android Development] iaio72:
what mean??
[Defy Android Development] Jean-DrEaD:
I updated the mod again... This time, more like the original by iaio72.. Except for notification bkg, statusbar bkg, default wallpaper and cm7 stock ring lockscreen

Based on cm72-111115.0500-NIGHTLY - http://www.multiupload.com/DBKXX0RR01

I hope you enjoy!

EDIT: UPDATED with CM7, Rewamped and ICS sounds...
[Defy Android Development] iaio72:
a little bit, its start the second release! :D
[Defy Android Development] Jean-DrEaD:
Thanks, but... :p

Trying helping some green lovers ;) Do you have any psd file? :rolleyes:
[Defy Android Development] iaio72:
what mean?