Security detection - Security Discussion

method public detectApkIntgError(ZZ)V
.locals 2
.param p1, "bShowMsgbox" # Z
.param p2, "bExit" # Z
.prologue
.line 157
invoke-direct {p0}, Lnmss/app/NmssSa;->nmssNativeSendLogApkIntgError()V
.line 159
if-eqz p1, :cond_0
.line 160
const/4 v0, 0x1
const-string v1, "Security Detection"
invoke-virtual {p0, v0, v1, p2}, Lnmss/app/NmssSa;->AlertMsg(ILjava/lang/String;Z)V
.line 161
:cond_0
return-void
.end method
I already tried:
1.
#if-eqz p1, :cond_0
goto :cond_0
2.
if-nez p1, : cond_0
Still don't know how to bypass that condition. Still learning Dalvik's opcodes. Can you help me a little bit? Some tips ? Have a good day . The game is marvel future fight. Netmarble company. I am doing something wrong ?

Related

Wifi turning on automatically,DnD turning off automatically, WifiP2pService to blame?

Hi,
I am using tasker to trigger a night-profile when I go to bed, that profiles deactivates WiFi and activates androids Do-not-disturb-mode.
Everything used to work well but the last three nights, at around 06:30 the phone started activating WiFi and deactivating DnD.
I don't think it has anything to do with tasker, I checked the RunLog of it and no task fired during that time.
The logcat shows that something happens at 6:30 but I can't understand it. Everything before and after is fine but I think WifiP2pService does something around that time.
As you can see the log before and after 6:30 is quiet but goes crazy during that one minute.
Can anybody help me reading that log or point me in the right direction to fix my problem?
Code:
08-28 05:50:00.126 1223 1240 I chatty : uid=1000(system) Binder:1223_1 expire 4 lines
08-28 05:51:00.111 1223 2411 I chatty : uid=1000(system) Binder:1223_D expire 8 lines
08-28 05:52:42.908 1223 1241 I chatty : uid=1000(system) Binder:1223_2 expire 5 lines
08-28 05:53:12.990 1223 12293 I chatty : uid=1000(system) Binder:1223_1B expire 5 lines
08-28 05:54:13.150 1223 10734 I chatty : uid=1000(system) Binder:1223_19 expire 8 lines
08-28 05:56:43.628 1223 2398 I chatty : uid=1000(system) Binder:1223_9 expire 5 lines
08-28 05:57:00.050 1223 1251 I chatty : uid=1000(system) android.bg expire 1 line
08-28 05:59:14.191 1223 2053 I chatty : uid=1000(system) Binder:1223_6 expire 2 lines
08-28 06:00:44.482 1223 12767 I chatty : uid=1000(system) Binder:1223_1D expire 3 lines
08-28 06:01:14.575 1223 12625 I chatty : uid=1000(system) Binder:1223_1C expire 6 lines
08-28 06:03:45.124 1223 2513 I chatty : uid=1000(system) Binder:1223_13 expire 4 lines
08-28 06:05:45.590 1223 10705 I chatty : uid=1000(system) Binder:1223_18 expire 5 lines
08-28 06:06:30.918 1223 1256 I chatty : uid=1000(system) batterystats-sy expire 5 lines
08-28 06:08:46.377 1223 13843 I chatty : uid=1000(system) Binder:1223_20 expire 9 lines
08-28 06:10:00.251 1223 2402 I chatty : uid=1000(system) Binder:1223_B expire 5 lines
08-28 06:14:31.120 1223 1223 I chatty : uid=1000 system_server expire 5 lines
08-28 06:14:31.223 1223 1438 I chatty : uid=1000(system) onProviders.ECP expire 1 line
08-28 06:15:58.599 1223 12125 I chatty : uid=1000(system) Binder:1223_1A expire 5 lines
08-28 06:30:01.149 1223 1426 I chatty : uid=1000(system) WifiP2pService expire 8 lines
08-28 06:30:04.200 1223 1428 I chatty : uid=1000(system) WifiStateMachin expire 1 line
08-28 06:30:05.707 12390 12433 E ActivityThread: Failed to find provider info for com.teslacoilsw.notifier
08-28 06:30:05.874 1223 1516 I chatty : uid=1000(system) Binder:1223_3 expire 7 lines
08-28 06:30:05.914 1223 10624 I chatty : uid=1000(system) Binder:1223_17 expire 5 lines
08-28 06:30:05.976 1223 2496 I chatty : uid=1000(system) Binder:1223_12 expire 7 lines
08-28 06:30:06.097 1223 10705 I chatty : uid=1000(system) Binder:1223_18 expire 5 lines
08-28 06:30:06.112 1223 1426 I chatty : uid=1000(system) WifiP2pService expire 15 lines
08-28 06:30:06.227 1223 2880 I chatty : uid=1000(system) Binder:1223_14 expire 5 lines
08-28 06:30:06.611 1223 2351 I chatty : uid=1000(system) Binder:1223_8 expire 6 lines
08-28 06:30:06.825 1223 9868 I chatty : uid=1000(system) Binder:1223_16 expire 6 lines
08-28 06:30:06.979 1223 2403 I chatty : uid=1000(system) Binder:1223_C expire 6 lines
08-28 06:30:08.364 1223 2399 I chatty : uid=1000(system) Binder:1223_A expire 4 lines
08-28 06:30:10.979 1223 9758 I chatty : uid=1000(system) Binder:1223_15 expire 4 lines
08-28 06:30:11.230 1223 1432 I chatty : uid=1000(system) ConnectivitySer expire 3 lines
08-28 06:30:11.389 1223 1256 I chatty : uid=1000(system) batterystats-sy expire 2 lines
08-28 06:30:11.542 1223 12125 I chatty : uid=1000(system) Binder:1223_1A expire 4 lines
08-28 06:30:18.184 1223 1415 I chatty : uid=1000(system) InputReader expire 4 lines
08-28 06:30:18.272 1223 1277 I chatty : uid=1000(system) PowerManagerSer expire 14 lines
08-28 06:30:18.273 1223 1252 I chatty : uid=1000(system) ActivityManager expire 7 lines
08-28 06:30:18.645 1223 2398 I chatty : uid=1000(system) Binder:1223_9 expire 4 lines
08-28 06:30:18.745 1223 1274 I chatty : uid=1000(system) android.display expire 12 lines
08-28 06:30:19.303 1223 2437 I chatty : uid=1000(system) Binder:1223_10 expire 4 lines
08-28 06:30:19.303 1223 1272 I chatty : uid=1000(system) android.fg expire 4 lines
08-28 06:30:19.304 1223 2421 I chatty : uid=1000(system) Binder:1223_E expire 5 lines
08-28 06:30:20.339 19777 19862 E ActivityThread: Failed to find provider info for com.google.android.gm
08-28 06:30:20.347 19777 19862 E ActivityThread: Failed to find provider info for com.google.android.gm
08-28 06:30:20.635 1223 2054 I chatty : uid=1000(system) Binder:1223_7 expire 5 lines
08-28 06:30:20.907 1223 1843 I chatty : uid=1000(system) Binder:1223_5 expire 11 lines
08-28 06:30:21.119 1223 2053 I chatty : uid=1000(system) Binder:1223_6 expire 6 lines
08-28 06:30:21.296 1223 1613 I chatty : uid=1000(system) Binder:1223_4 expire 3 lines
08-28 06:30:21.325 1223 1223 I chatty : uid=1000 system_server expire 9 lines
08-28 06:30:21.601 1223 1241 I chatty : uid=1000(system) Binder:1223_2 expire 3 lines
08-28 06:30:21.636 1223 10734 I chatty : uid=1000(system) Binder:1223_19 expire 3 lines
08-28 06:30:21.708 1223 2402 I chatty : uid=1000(system) Binder:1223_B expire 3 lines
08-28 06:30:21.832 1223 2411 I chatty : uid=1000(system) Binder:1223_D expire 3 lines
08-28 06:30:24.905 1223 2478 I chatty : uid=1000(system) Binder:1223_11 expire 8 lines
08-28 06:30:25.065 1223 1253 I chatty : uid=1000(system) android.ui expire 2 lines
08-28 06:30:25.159 1223 13698 I chatty : uid=1000(system) Binder:1223_1E expire 5 lines
08-28 06:30:25.352 1223 12625 I chatty : uid=1000(system) Binder:1223_1C expire 5 lines
08-28 06:30:26.326 1223 13843 I chatty : uid=1000(system) Binder:1223_20 expire 4 lines
08-28 06:30:28.445 1223 2513 I chatty : uid=1000(system) Binder:1223_13 expire 3 lines
08-28 06:30:31.020 1223 12293 I chatty : uid=1000(system) Binder:1223_1B expire 1 line
08-28 06:30:31.572 28834 28834 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:877 android.content.ContextWrapper.sendBroadcast:421 org.cyanogenmod.cmparts.profiles.ProfilesSettings.onEnablerChanged:257 org.cyanogenmod.cmparts.widget.CMBaseSystemSettingSwitchBar.setSwitchBarChecked:95 org.cyanogenmod.cmparts.widget.CMBaseSystemSettingSwitchBar.setSwitchState:103
08-28 06:30:32.139 1223 12767 I chatty : uid=1000(system) Binder:1223_1D expire 3 lines
08-28 06:30:46.553 1223 1277 I chatty : uid=1000(system) PowerManagerSer expire 3 lines
08-28 06:30:51.792 1223 1240 I chatty : uid=1000(system) Binder:1223_1 expire 4 lines
08-28 06:31:08.092 1223 2430 I chatty : uid=1000(system) Binder:1223_F expire 2 lines
08-28 06:31:16.561 1223 13817 I chatty : uid=1000(system) Binder:1223_1F expire 4 lines
08-28 06:34:31.348 1223 1251 I chatty : uid=1000(system) android.bg expire 2 lines
08-28 06:34:57.276 1223 2054 I chatty : uid=1000(system) Binder:1223_7 expire 7 lines
08-28 06:34:58.032 1223 2399 I chatty : uid=1000(system) Binder:1223_A expire 3 lines
08-28 06:35:02.526 1223 13817 I chatty : uid=1000(system) Binder:1223_1F expire 6 lines
08-28 06:35:07.733 1223 10624 I chatty : uid=1000(system) Binder:1223_17 expire 8 lines
08-28 06:35:12.916 1223 12625 I chatty : uid=1000(system) Binder:1223_1C expire 8 lines
08-28 06:35:18.173 1223 13698 I chatty : uid=1000(system) Binder:1223_1E expire 4 lines

[DEV][Android 4.0+] Morpion V2 (Tic Tac Toe)

Hi
You can test my new app Android:
Title : Morpion V2 (Tic Tac Toe)
Morpion V2 (Tic Tac Toe) is an improvement of the Morpion V1 that I already published.
In this new Morpion, you can now play against the computer or at 1 VS 1 with your friends
The interface has also been improved.
The Morpion is a game in which you must play in turn by placing Xs or Os in boxes.
The 1st that aligns 3 "X" or 3 "O" wins the game.
Google Play: https://play.google.com/store/apps/details?id=com.sospc95.Morpion_V2
Install it and test it
Thanks

Lines pack6m

https://play.google.com/store/apps/details?id=com.gameclubsite.linespack6m
Six games Lines (balls):
- Lines (balls) 98 (classic)
- Lines (balls) 2000
- Lines (balls) Pair
- Lines (balls) Chaos
- Lines (balls) Real time
- Digit lines (balls)

Lines pack6

https://play.google.com/store/apps/details?id=com.gameclubsite.linespack6
Six games Lines (balls):
- Lines (balls) 98 (classic)
- Lines (balls) 2000
- Lines (balls) Pair
- Lines (balls) Chaos
- Lines (balls) Real time
- Digit lines (balls)

[HELP] Capturing audio data and save to raw PCM file in AudioFlinger

After some research, I find out this is possible to capture the audio data in libaudioflinger of Android.
I think the audio data is being written to HAL in here:
Code:
ssize_t framesWritten = mNormalSink->write((char *)mSinkBuffer + offset, count);
Full code: android.googlesource.com/platform/frameworks/av/+/lollipop-release/services/audioflinger/Threads.cpp#2118
I'm sorry, XDA don't let me to post the link. So I need to remove the https.
So, I would like to save the
Code:
mSinkBuffer + offset
to a file (which I expected it will be raw PCM audio file). I using those stream to write it to file:
Code:
std::ofstream audioData ("/data/audiodata.raw", std::fstream::app);
audioData.write((char *)mSinkBuffer + offset, count);
audioData.close();
The file is successfully written and it has data in it. But, when I play the PCM file (audiodata.raw) with aplay or ffplay, the only sound I got is noise.
Code:
aplay -t raw -c 2 -f S16_LE -r 48000 audiodata.raw
I was worry about the config of aplay. So I print some log of the libaudioflinger:
Code:
10-07 10:14:54.575 1300 1366 I AudioFlinger: I/O handle: 13
10-07 10:14:54.575 1300 1366 I AudioFlinger: Standby: no
10-07 10:14:54.575 1300 1366 I AudioFlinger: Sample rate: 48000 Hz
10-07 10:14:54.575 1300 1366 I AudioFlinger: HAL frame count: 512
10-07 10:14:54.575 1300 1366 I AudioFlinger: HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
10-07 10:14:54.575 1300 1366 I AudioFlinger: HAL buffer size: 2048 bytes
10-07 10:14:54.575 1300 1366 I AudioFlinger: Channel count: 2
10-07 10:14:54.575 1300 1366 I AudioFlinger: Channel mask: 0x00000003 (front-left, front-right)
10-07 10:14:54.575 1300 1366 I AudioFlinger: Processing format: 0x5 (AUDIO_FORMAT_PCM_FLOAT)
10-07 10:14:54.576 1300 1366 I AudioFlinger: Processing frame size: 8 bytes
10-07 10:14:54.576 1300 1366 I AudioFlinger: Pending config events:
10-07 10:14:54.576 1300 1366 I AudioFlinger: none
10-07 10:14:54.576 1300 1366 I AudioFlinger: Output device: 0x2 (AUDIO_DEVICE_OUT_SPEAKER)
10-07 10:14:54.576 1300 1366 I AudioFlinger: Input device: 0 (AUDIO_DEVICE_NONE)
10-07 10:14:54.576 1300 1366 I AudioFlinger: Audio source: 0 (default)
I don't know what I did wrong. I have no idea why I only get the noise when play the file.
Any suggestion is much appreciated. Thank you in advanced!
Code:
10-07 10:14:54.575 1300 1366 I AudioFlinger: I/O handle: 13
10-07 10:14:54.575 1300 1366 I AudioFlinger: Standby: no
10-07 10:14:54.575 1300 1366 I AudioFlinger: Sample rate: 48000 Hz
10-07 10:14:54.575 1300 1366 I AudioFlinger: HAL frame count: 512
10-07 10:14:54.575 1300 1366 I AudioFlinger: HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
10-07 10:14:54.575 1300 1366 I AudioFlinger: HAL buffer size: 2048 bytes
10-07 10:14:54.575 1300 1366 I AudioFlinger: Channel count: 2
10-07 10:14:54.575 1300 1366 I AudioFlinger: Channel mask: 0x00000003 (front-left, front-right)
10-07 10:14:54.575 1300 1366 I AudioFlinger: Processing format: 0x5 (AUDIO_FORMAT_PCM_FLOAT)
10-07 10:14:54.576 1300 1366 I AudioFlinger: Processing frame size: 8 bytes
10-07 10:14:54.576 1300 1366 I AudioFlinger: Pending config events:
10-07 10:14:54.576 1300 1366 I AudioFlinger: none
10-07 10:14:54.576 1300 1366 I AudioFlinger: Output device: 0x2 (AUDIO_DEVICE_OUT_SPEAKER)
10-07 10:14:54.576 1300 1366 I AudioFlinger: Input device: 0 (AUDIO_DEVICE_NONE)
10-07 10:14:54.576 1300 1366 I AudioFlinger: Audio source: 0 (default)
I updated the full log printed out from AudioFlinger.
Could anyone please help? I'm not sure if I posted to correct forum section, so I would be appreciated if any Moderator can move this topic to where its belong.

Categories

Resources