Implementation of mobile phone lie Software

Source: Internet
Author: User
Implementation of mobile phone lie Software

Recently, rogue software has become popular, and even mobile platforms have joined the fallen ranks. Now, I will briefly explain how this kind of hooligans on mobile phones fool people.

The main function of the mobile phone lie software is that you are doing anything you want. At this time, when Dad calls you to ask what you want to do, this software will play a role, playing a recording of playing basketball or giving lectures to teachers, in this way, your poor dad thinks you are studying hard. Alas ....

First, let's talk about the current mobile phone platform. The main platform is Symbian development under Nokia, using C ++.

Rogue preparation:

1. After installing the Development SDK of the Nokia s60 platform, you can develop s60 applications.

2. Go to the Nokia website to download the source code of <developing Series 60 applications-A Guide for Symbian OS C ++ developers>.

3. Open VC. You can start coding.

I am not here to have some basic s60 development knowledge. This section mainly introduces the function implementation:

First, we need to intercept incoming calls. Here we can refer to the ansphone example in the source code of the book mentioned above.

OK. Now, when you call, I can catch it. The next step is to enable online uplink playback. There are more than three methods available, here we only introduce a simple and clear implementation: cmdaaudioplayerutility class

We use cmdaaudioplayerutility to play and stop the video.

First, we encapsulate a class called caudiouplinkplayer.

Class caudiouplinkplayer: Public cbase, public mmdaaudioplayercallback
{

...

........

Void docrime (tdesc & filename );

// Inherit frm mmdaaudioplayercallback

Void mapcinitcomplete (tint aerror, const ttimeintervalmicroseconds &/* aduration */);
Void mapcplaycomplete (tint aerror );

PRIVATE:
Cmdaaudioplayerutility * imdaaudioplayerutility;

};

Implementation:

Void docrime (tdesc & filename)

{

Imdaaudioplayerutility = cmdaaudioplayerutility: newfileplayerl (filename,
* This, 80, (tmd1_oritypreference) 0x00060001 );

}

Mapcinitcomplete (tint aerror, const ttimeintervalmicroseconds &/* aduration */)
{

Imdaaudioplayerutility-> playl ();

}

Mapcplaycomplete (tint aerror)
{

// The playback is complete.

}

Well, after simple definition, pay attention to the implementation steps. After a call, call docrime (audiofilename) to play the sound. After newfileplayer is called, asynchronous call initialization will be performed, after fileplayer Initialization is complete, the mapcinitcomplete function is returned before playback.

OK. The rogue software has been completed. :)

So how can we prevent it? The answer is: when Dad buys a s9.0 mobile phone for his son (nokia3250/5500/n71/n73/N80/n9x/E50/E60 /), s9.0 development programs must apply for a formal certificate to install, so that Nokia fundamentally eliminates the operation of viruses and malware. In addition, mobile phones with some defects cannot perform online uplink playback, such as several uiq mobile phones and Nokia 6620 and Panasonic x700/x800

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.