Android Question Parsing - Anti virus blocking

Discussion in 'Android Questions' started by Richard Phipps, Dec 22, 2018.

  1. Richard Phipps

    Richard Phipps Member Licensed User

    For some obscure reason my anti virus BULLGUARD has started to think a trojan virus is present when parsing my app to my Samsung s8 using the B4a Bridge

    I havent been developing for several months and am having these problems

    I get this error

    Infected object: temp.ap_=>AndroidManifest.xml
    Malware: Android.Trojan.SMSSend.AMA
    Path: C:\Android\GPS Tracker\Objects\bin\temp.ap_=>AndroidManifest.xml
    Infected process: [9060] C:\Android\build-tools\19.1.0\aapt.exe
    22/12/2018 18:21:13

    I turned off anti-virus and Firewall and got further but...


    GOOGLE PLAY PROTECT is stopping installation. So I turned it off but app wont install

    INSTALL UNKNOWN APPS IS "allowed from this source". I tried installing an older app which exists on my phone already but even this wont install :(

    How do I stop this happening, please :)
    Last edited: Dec 22, 2018
  2. Erel

    Erel Administrator Staff Member Licensed User

    Try to use a different signing key (assuming that you haven't yet released your app).
  3. Richard Phipps

    Richard Phipps Member Licensed User

    I excluded the Android Directory from being scanned by Bullguard and also I changed the signing key. It now installs successfully


    1) In Debug the Activity appears with two buttons as designed BUT
    2) In release In crashes

    I put the #Bridgelogger to see errors and now the

    The layout1.bal is in the files directory C:\Android\GPS Tracker\Files\layout1.bal

    BUT -

    ** Service (starter) Destroy (ignored)**
    *** Service (starter) Create ***
    ** Service (starter) Start **
    ** Activity (main) Create, isFirst = true **
    main_activity_create (java line: 344) layout1.bal
    at android.content.res.AssetManager.openAsset(Native Method)
    at anywheresoftware.b4a.objects.streams.File.OpenInput(
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(
    at b4a.gpstrack2.main._activity_create(
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(
    at b4a.gpstrack2.main.afterFirstLayout(
    at b4a.gpstrack2.main.access$000(
    at b4a.gpstrack2.main$
    at android.os.Handler.handleCallback(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.reflect.Method.invoke(Native Method)

    I also added a simple bit of code....

    Sub Process_Globals
    'These global variables will be declared once when the application starts.
        'These variables can be accessed from all modules.
    Dim sms As PhoneSms
    End Sub

    Sub Globals
    'These global variables will be redeclared each time the activity is created.
        'These variables can only be accessed from this module.
    Private smslink As Button
    Private Button1 As Button
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    Activity.Title = "Hello"

    End Sub

    Sub smslink_Click
    End Sub

    Sub Button1_Click
    End Sub
    In debug where I can see the the Activity I pressed the button but got another crash :( Relating to a 'Dangerous Permssion'

    Error occurred on line: 45 (Main)
    java.lang.SecurityException: Sending SMS message: uid 10631 does not have android.permission.SEND_SMS.
    at android.os.Parcel.readException(
    at android.os.Parcel.readException(
    at android.telephony.SmsManager.sendTextMessageInternal(
    at android.telephony.SmsManager.sendTextMessage(
    at b4a.gpstrack2.main._smslink_click(
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(
    at anywheresoftware.b4a.BA.raiseEvent2(
    at anywheresoftware.b4a.BA.raiseEvent(
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(
    at android.view.View.performClick(
    at android.widget.TextView.performClick(
    at android.view.View$
    at android.os.Handler.handleCallback(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(

    After returning to coding this has become a difficult job :( used to work a dream :( What am I doing wrong?

  4. DonManfred

    DonManfred Expert Licensed User

  5. DonManfred

    DonManfred Expert Licensed User

    This looks like you are reusing an old SDK Installation (or maybe an old installation from Android Studio or so)!?
    If yes then i strongly suggest to install a new SDK for B4A using the B4A SDK Manager.

    You can find the Setup-Instructions here.
    You also can watch this Video as it describes it clearly.

    Start with a new Blank folder like you see in the Video.
  6. Richard Phipps

    Richard Phipps Member Licensed User

  7. Richard Phipps

    Richard Phipps Member Licensed User

    I see and thank you. It seems i have missed a lot of updates and changes....i need to get up to speed.

    I download jar 28 and the new SDK and will look into permissions.

    By the way, and i am happy to pay, but i need someone to write a simple class to add to a project simple to interrogate my online hosted mysql abd return 1 or a number of records. Text fields mainly

    Do you know who or how i can ask? Is it inappropriate on this forum?
  8. DonManfred

    DonManfred Expert Licensed User

    You need to setup jRDC2 on a Servermachine (VPS for ex.) which does the connection to your Database.
    You can always create Threads to ask Questions.

    If you want to make a paid offer then you also can create a thread in the JobOffer-Forum.

    Please create a new Thread for any new Question you have.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice