View Poll Results: What does u want in the next version?
Ability to read/write the device contacts? 1 50.00%
Ability to read/write device sms/mms? 1 50.00%
Voters: 2. You may not vote on this poll

Post Reply Subscribe to Thread Email Thread

[DEV] AndroidCtrl.dll [0.0.0.10] (AAPT/ADB/Fastboot/(apk/zip) Signer - Framework)

4th March 2015, 09:31 PM   |  #71  
OP Senior Member
Flag Delmenhorst
Thanks Meter: 110
 
168 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by squabbi

I got the connection monitor working! Thanks! Now with your advice for the identifier token, I get this:

Code:
System.Collections.Generic.List`1[System.String]
I remember once we had this issue and we fixed it somehow.

Thanks for the UI example too! I haven't looked at it yet but I will soon! Thanks friend!

Heyho

Sry for the little mistake, i fixed it, for me and my token it works now. :P

Code:
List<string> _token = new List<string>();
foreach (string line in Fastboot.Instance().OEM.GetIdentifierToken())
{
    GroupCollection groups = Regex.Match(line, @"^\(bootloader\)\s{1,}(?<PART>.*?)$").Groups;
    string part = groups["PART"].Value;
    if (String.IsNullOrEmpty(part) == false && Regex.IsMatch(part, @"^<{1,}.*?>{1,}$") == false)
    {
        _token.Add(part);
    }
}
//the final string which u can write to an file
string token = String.Join("\n", _token.ToArray());
About the "monitor" np.

Regards,
Sebastian
The Following User Says Thank You to k1ll3r8e For This Useful Post: [ View ]
10th March 2015, 11:10 AM   |  #72  
squabbi's Avatar
Senior Member
Flag Sydney
Thanks Meter: 1,033
 
1,258 posts
Join Date:Joined: Jul 2012
Donate to Me
More
Quote:
Originally Posted by k1ll3r8e

Heyho

Sry for the little mistake, i fixed it, for me and my token it works now. :P

Code:
List<string> _token = new List<string>();
foreach (string line in Fastboot.Instance().OEM.GetIdentifierToken())
{
    GroupCollection groups = Regex.Match(line, @"^\(bootloader\)\s{1,}(?<PART>.*?)$").Groups;
    string part = groups["PART"].Value;
    if (String.IsNullOrEmpty(part) == false && Regex.IsMatch(part, @"^<{1,}.*?>{1,}$") == false)
    {
        _token.Add(part);
    }
}
//the final string which u can write to an file
string token = String.Join("\n", _token.ToArray());
Hmmm. Its still displaying the same line instead of the code.
About the "monitor" np.

Regards,
Sebastian

It still doesn't work for me. It shows the same string as before! Thanks for helping!
10th March 2015, 01:13 PM   |  #73  
OP Senior Member
Flag Delmenhorst
Thanks Meter: 110
 
168 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by squabbi

It still doesn't work for me. It shows the same string as before! Thanks for helping!

Heyho

That's sad to hear... I think ur token output is different from mine... That's why the regex dun works...

I've send u an example from my token-dialog (window) so u can check the output with ur's.

Regards,
Sebastian
Post Reply Subscribe to Thread

Tags
adb, androidctrl.dll, dll, fastboot, framework
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes