Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,192 Members 37,912 Now Online
XDA Developers Android and Mobile Development Forum

[HELP] Native Toast Launcher

Tip us?
 
tids2k
Old
#1  
tids2k's Avatar
Senior Member - OP
Thanks Meter 632
Posts: 2,261
Join Date: Apr 2009
Location: Sydney
Default [HELP] Native Toast Launcher

I was able to install the HTC Sprint Diagnosis app on my Nokia Lumia 1520 and also have the HTC CSDDiag app installed.

Interesting Part : I was able to run CSDDiag on the Lumia handset and all tests were completed.

Now what i would like to know is how do i run this code in the Native Toast Launcher :

Code:
// Type: DiagnosticTool_Sprint.MainPage
// Assembly: DiagnosticTool_Sprint, Version=1.3.2319.13220, Culture=neutral, PublicKeyToken=null
// MVID: B9415712-08FA-4E66-9A8E-A318594B96CD
// Assembly location: C:\Users\Joshua\Desktop\SPRINT\Data\programs\{E69A2877-59B8-43ED-898D-554FBC4B8B2B}\Install\DiagnosticTool_Sprint.dll

using HTCLogUtil;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Windows.System;

namespace DiagnosticTool_Sprint
{
  public class MainPage : PhoneApplicationPage
  {
    public static string DIALER_CODE_CT_LAB = "0000";
    public static string DIALER_CODE_EMBEDDED_TOOL = "634";
    public static string DIALER_CODE_SERVICE_TOOL_1 = "778";
    public static string DIALER_CODE_SERVICE_TOOL_2 = "786";
    public static string DIALER_CODE_VZW_TOOL = "522";
    public static string DIALER_CODE_CSDIAG_TOOL = "3424";
    public static string DIALER_CODE_DEBUG = "33284";
    public static string DIALER_CODE_ZONE_TOOL = "611";
    public static string DIALER_CODE_DIAG = "3424";
    public static string DIALER_CODE_SCRTN = "72786";
    public static string DIALER_CODE_DATA = "3282";
    public static string DIALER_CODE_UPDATE = "873283";
    public static string strUri;
    internal Grid LayoutRoot;
    internal StackPanel TitlePanel;
    internal Grid ContentPanel;
    private bool _contentLoaded;

    static MainPage()
    {
    }

    public MainPage()
    {
      this.InitializeComponent();
    }

    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
      base.OnNavigatedTo(e);
      DiagDebugLogUtil.DiagDebugLog(LOG_SEVERITY.LOG_INFO, "[PC Tools]: OnNavigatedTo()++++", new object[0]);
      try
      {
        if (!PhoneApplicationService.Current.State.ContainsKey("VersionNumber"))
          PhoneApplicationService.Current.State.Add("VersionNumber", (object) ((object) Assembly.GetExecutingAssembly().GetName().Version).ToString());
        string str = "634";
        if (this.NavigationContext.QueryString.TryGetValue("DialString", out str))
        {
          if (str.Equals(MainPage.DIALER_CODE_SERVICE_TOOL_1) || str.Equals(MainPage.DIALER_CODE_SERVICE_TOOL_2) || (str.Equals(MainPage.DIALER_CODE_DATA) || str.Equals(MainPage.DIALER_CODE_SCRTN)))
            this.NavigationService.Navigate(new Uri("/ServiceToolLib;component/View/PageLists.xaml", UriKind.Relative));
          else if (str.Equals(MainPage.DIALER_CODE_EMBEDDED_TOOL) || str.Equals(MainPage.DIALER_CODE_DEBUG))
          {
            if (!PhoneApplicationService.Current.State.ContainsKey("DialString"))
              PhoneApplicationService.Current.State.Add("DialString", (object) "634");
            this.NavigationService.Navigate(new Uri("/EmbeddedTool;component/EmbMainPage.xaml", UriKind.Relative));
          }
          else if (str.Equals(MainPage.DIALER_CODE_CSDIAG_TOOL))
            this.NavigationService.Navigate(new Uri("/RedirectionTool;component/RedirectionPage.xaml?tool=CSDDiag", UriKind.Relative));
          else if (str.Equals(MainPage.DIALER_CODE_VZW_TOOL))
            this.NavigationService.Navigate(new Uri("/RedirectionTool;component/RedirectionPage.xaml?tool=LabApp", UriKind.Relative));
          else if (str.Equals(MainPage.DIALER_CODE_ZONE_TOOL))
          {
            if (!App.bNoBackForLaunchAPP)
            {
              MainPage.strUri = "sprintzone:callintercept?code=" + str;
              App.bNoBackForLaunchAPP = true;
              this.LaunchSprintAP();
            }
          }
          else if (str.Equals(MainPage.DIALER_CODE_UPDATE))
          {
            if (!App.bNoBackForLaunchAPP)
            {
              MainPage.strUri = "ms-settings-networkprofileupdate:";
              App.bNoBackForLaunchAPP = true;
              this.LaunchUpdate();
            }
          }
          else
            this.NavigationService.Navigate(new Uri("/EmbeddedTool;component/EmbMainPage.xaml", UriKind.Relative));
        }
        else
          this.NavigationService.Navigate(new Uri("/EmbeddedTool;component/EmbMainPage.xaml", UriKind.Relative));
      }
      catch (Exception ex)
      {
        DiagDebugLogUtil.DiagDebugLog(LOG_SEVERITY.LOG_ERROR, "[MainPage]  Get Exception msg :" + ((object) ex.Message).ToString(), new object[0]);
        this.NavigationService.Navigate(new Uri("/EmbeddedTool;component/EmbMainPage.xaml", UriKind.Relative));
      }
      DiagDebugLogUtil.DiagDebugLog(LOG_SEVERITY.LOG_INFO, "[PC Tools]: OnNavigatedTo()----", new object[0]);
    }

    public async void LaunchUpdate()
    {
      Uri uri = new Uri(MainPage.strUri);
      int num = await Launcher.LaunchUriAsync(uri) ? 1 : 0;
    }

    public async void LaunchSprintAP()
    {
      Uri uri = new Uri(MainPage.strUri);
      int num = await Launcher.LaunchUriAsync(uri) ? 1 : 0;
    }

    protected override void OnNavigatedFrom(NavigationEventArgs e)
    {
      base.OnNavigatedFrom(e);
      this.RemoveEntry("MainPage");
    }

    private void RemoveEntry(string sPageName)
    {
      foreach (JournalEntry journalEntry in this.NavigationService.BackStack)
      {
        if (journalEntry.Source.ToString().Contains(sPageName))
        {
          this.NavigationService.RemoveBackEntry();
          break;
        }
      }
    }

    [DebuggerNonUserCode]
    public void InitializeComponent()
    {
      if (this._contentLoaded)
        return;
      this._contentLoaded = true;
      Application.LoadComponent((object) this, new Uri("/DiagnosticTool_Sprint;component/MainPage.xaml", UriKind.Relative));
      this.LayoutRoot = (Grid) this.FindName("LayoutRoot");
      this.TitlePanel = (StackPanel) this.FindName("TitlePanel");
      this.ContentPanel = (Grid) this.FindName("ContentPanel");
    }
  }
}
I can reach the Main page by issuing :

Code:
app://E69A2877-59B8-43ED-898D-554FBC4B8B2B/_default
However I would like to run the Dialer commands to see if I can mod anything else on the phone. Could some with good brain explain how this will be possible.

I have tried install other platform Diag tools but was only able to install the two above using fiddler ( thanks ngame for your tutorial )
Attached Thumbnails
Click image for larger version

Name:	wp_ss_20140127_0001.png
Views:	684
Size:	120.0 KB
ID:	2541803   Click image for larger version

Name:	wp_ss_20140127_0002[1].png
Views:	568
Size:	104.8 KB
ID:	2541804   Click image for larger version

Name:	wp_ss_20140127_0003[1].png
Views:	646
Size:	217.8 KB
ID:	2541811  
lumia 1520>note 10.1 (2014)>nexus 5>s IV>htc one>sgs III>huawie quad xl>ipad 3>lg x3>htc z3tA>samsung galaxy note>samsung galaxy s II lte hd>iphone 4(g)>samsung galaxy s2 >htc desire hd>samsung galaxy s >htc desire (cancelled) :d>htc touch hd2>htc touch hd>nokia n97>iphone 3g>nokia n96>nokia n95> nokia n70
 
ngame
Old
#2  
Senior Member
Thanks Meter 88
Posts: 342
Join Date: Mar 2012
Location: Mashad
o.O Who did you do that ? I Try it many times before to install these aps on RM-821 Nokia Lumia 920 but didn't work !
how did you do that ? Could you please P.M Me ?
Nokia Lumia 920
GDR3 Developer Preview
Developer Unlock : ✔
Interop Unlock : Soon...
 
tids2k
Old
#3  
tids2k's Avatar
Senior Member - OP
Thanks Meter 632
Posts: 2,261
Join Date: Apr 2009
Location: Sydney
Quote:
Originally Posted by ngame View Post
o.O Who did you do that ? I Try it many times before to install these aps on RM-821 Nokia Lumia 920 but didn't work !
how did you do that ? Could you please P.M Me ?
It wasnt hard to install those apps. Just followed the fiddler tutorial posted.

Then I connected the phone and installed SysPushApp onto the device and did an update for the SysPushApp to get the non_OEM files of Samsung and HTC . I couldnt install Samsung Diagnosis as it wasn't letting nor was I able to install HTC Hub ( I dont know why, may be they check some .dll specific to them in the phone before install ) .

[B]Change the oSession in fiddler config file to the specific OEM you want to install the app. Example for HTC[ ->

oSession (NOKIA)
(NOKIA), (HTC) /B]

Mt device is Dev-Unlock.
lumia 1520>note 10.1 (2014)>nexus 5>s IV>htc one>sgs III>huawie quad xl>ipad 3>lg x3>htc z3tA>samsung galaxy note>samsung galaxy s II lte hd>iphone 4(g)>samsung galaxy s2 >htc desire hd>samsung galaxy s >htc desire (cancelled) :d>htc touch hd2>htc touch hd>nokia n97>iphone 3g>nokia n96>nokia n95> nokia n70
 
ngame
Old
#4  
Senior Member
Thanks Meter 88
Posts: 342
Join Date: Mar 2012
Location: Mashad
Quote:
Originally Posted by tids2k View Post
It wasnt hard to install those apps. Just followed the fiddler tutorial posted.

Then I connected the phone and installed SysPushApp onto the device and did an update for the SysPushApp to get the non_OEM files of Samsung and HTC . I couldnt install Samsung Diagnosis as it wasn't letting nor was I able to install HTC Hub ( I dont know why, may be they check some .dll specific to them in the phone before install ) .

[B]Change the oSession in fiddler config file to the specific OEM you want to install the app. Example for HTC[ ->

oSession (NOKIA)
(NOKIA), (HTC) /B]

Mt device is Dev-Unlock.
Samsung diagnosis already removed from wp store so you can't install it easy
and diagnosis you can see in store may different from one in Samsung phones! If you check file sizes you will get what i say
Most of HTC apps only can install ID_Resolution_HD720p and WVGA devices i don't know how is it possible to deploy them on 1080 devices
maybe MS accept this resolution for all apps because the old apps have to add 1080 support?
Nokia Lumia 920
GDR3 Developer Preview
Developer Unlock : ✔
Interop Unlock : Soon...
 
tids2k
Old
#5  
tids2k's Avatar
Senior Member - OP
Thanks Meter 632
Posts: 2,261
Join Date: Apr 2009
Location: Sydney
Quote:
Originally Posted by ngame View Post
Samsung diagnosis already removed from wp store so you can't install it easy
and diagnosis you can see in store may different from one in Samsung phones! If you check file sizes you will get what i say
Most of HTC apps only can install ID_Resolution_HD720p and WVGA devices i don't know how is it possible to deploy them on 1080 devices
maybe MS accept this resolution for all apps because the old apps have to add 1080 support?
correct some Samsung apps are Unpublished like Diagnosis. Can you tell me how to run the above codes in Native Launcher .. what to type after app://GUID/??
lumia 1520>note 10.1 (2014)>nexus 5>s IV>htc one>sgs III>huawie quad xl>ipad 3>lg x3>htc z3tA>samsung galaxy note>samsung galaxy s II lte hd>iphone 4(g)>samsung galaxy s2 >htc desire hd>samsung galaxy s >htc desire (cancelled) :d>htc touch hd2>htc touch hd>nokia n97>iphone 3g>nokia n96>nokia n95> nokia n70
 
ngame
Old
#6  
Senior Member
Thanks Meter 88
Posts: 342
Join Date: Mar 2012
Location: Mashad
Quote:
Originally Posted by tids2k View Post
correct some Samsung apps are Unpublished like Diagnosis. Can you tell me how to run the above codes in Native Launcher .. what to type after app://GUID/??
I don't have this xaps but you have to use .Net Reflector 8 or any .net Decompiler then u can see all hidden xamls after _default you have to enter a #/ then dll name without it's dll them a ; and then folder and xaml address
example :
app://GUID/_default#/dllname;Pages/ExamplePage.xaml
Nokia Lumia 920
GDR3 Developer Preview
Developer Unlock : ✔
Interop Unlock : Soon...
 
tids2k
Old
#7  
tids2k's Avatar
Senior Member - OP
Thanks Meter 632
Posts: 2,261
Join Date: Apr 2009
Location: Sydney
Quote:
Originally Posted by ngame View Post
I don't have this xaps but you have to use .Net Reflector 8 or any .net Decompiler then u can see all hidden xamls after _default you have to enter a #/ then dll name without it's dll them a ; and then folder and xaml address
example :
app://GUID/_default#/dllname;Pages/ExamplePage.xaml
here is the XAP
Attached Files
File Type: xap diagnostictool_sprint.xap - [Click for QR Code] (629.7 KB, 35 views)
lumia 1520>note 10.1 (2014)>nexus 5>s IV>htc one>sgs III>huawie quad xl>ipad 3>lg x3>htc z3tA>samsung galaxy note>samsung galaxy s II lte hd>iphone 4(g)>samsung galaxy s2 >htc desire hd>samsung galaxy s >htc desire (cancelled) :d>htc touch hd2>htc touch hd>nokia n97>iphone 3g>nokia n96>nokia n95> nokia n70
 
ngame
Old
#8  
Senior Member
Thanks Meter 88
Posts: 342
Join Date: Mar 2012
Location: Mashad
Quote:
Originally Posted by tids2k View Post
here is the XAP
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default

app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/DiagnosticTool_Sprint;Component/app.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/DiagnosticTool_Sprint;Component/MainPage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/app.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/dmswitchpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/embcheckspc.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/embmainpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/fieldtrialpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ft1xpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ftactiveapnconnpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ftbtpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ftconfigpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ftdatastatuspage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ftehrpdpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ftgpspage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/fthdrpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ftltepage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/EmbeddedTool;Component/ftmemorypage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/RedirectionTool;Component/redirectionpage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/ServiceToolLib;Component/homepage.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/ServiceToolLib;Component/view/checkspc.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/ServiceToolLib;Component/view/grouplists.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/ServiceToolLib;Component/view/itemedit.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/ServiceToolLib;Component/view/itemlists.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/ServiceToolLib;Component/view/lteavailablefile.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/ServiceToolLib;Component/view/pagelists.xaml
app://e69a2877-59b8-43ed-898d-554fbc4b8b2b/_default#/ServiceToolLib;Component/view/rwchoice.xaml


OMG!!!!!!!! so many xamls !
If you can get a Screen Shot of each xaml is more useful I think
Nokia Lumia 920
GDR3 Developer Preview
Developer Unlock : ✔
Interop Unlock : Soon...
 
tids2k
Old
#9  
tids2k's Avatar
Senior Member - OP
Thanks Meter 632
Posts: 2,261
Join Date: Apr 2009
Location: Sydney
None of them works. We need to add Dialercodes in the end.
lumia 1520>note 10.1 (2014)>nexus 5>s IV>htc one>sgs III>huawie quad xl>ipad 3>lg x3>htc z3tA>samsung galaxy note>samsung galaxy s II lte hd>iphone 4(g)>samsung galaxy s2 >htc desire hd>samsung galaxy s >htc desire (cancelled) :d>htc touch hd2>htc touch hd>nokia n97>iphone 3g>nokia n96>nokia n95> nokia n70
 
ngame
Old
#10  
Senior Member
Thanks Meter 88
Posts: 342
Join Date: Mar 2012
Location: Mashad
Quote:
Originally Posted by tids2k View Post
None of them works. We need to add Dialercodes in the end.
Oh i'm Really sorry . I have to buy an Ativ S to be a bit useful for other users but I have no money to buy
I'm again sorry I don't know what's going wrong in the Uris I provided :|
Nokia Lumia 920
GDR3 Developer Preview
Developer Unlock : ✔
Interop Unlock : Soon...

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Share Your Thoughts Anonymously with A Minimalist Social Network

Nowadays, almost everyone has a second life onthe Internet. Among the best … more

Enable Heads Up Notifications For The Sprint Galaxy S3

Heads up notifications, in case you didn’t already know, are an experimental … more

Android One Goes Live in India!

Android One is a Google initiative set to bring an AOSP-like experience tosome emergingmarkets like India, … more

XDA and LeaseWeb: Win Free Server Trial and Moto 360

As you might recall from a previousBehind the Scenesarticle we wrote, XDA’s … more