Android Question Parsing - Anti virus blocking temp.pa

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...

    ALSO

    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

    However,

    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

    Code:
    Activity.LoadLayout("layout1")
    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)
    java.io.FileNotFoundException: layout1.bal
    at android.content.res.AssetManager.openAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:388)
    at android.content.res.AssetManager.open(AssetManager.java:362)
    at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:207)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:82)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.gpstrack2.main._activity_create(main.java:344)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
    at b4a.gpstrack2.main.afterFirstLayout(main.java:104)
    at b4a.gpstrack2.main.access$000(main.java:17)
    at b4a.gpstrack2.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6940)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)


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

    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.LoadLayout("layout1")
        
        
    Activity.Title = "Hello"

    End Sub


    Sub smslink_Click
        
        
    sms.Send("0780******","check123456")
        
    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(Parcel.java:1967)
    at android.os.Parcel.readException(Parcel.java:1913)
    at com.android.internal.telephony.ISms$Stub$Proxy.sendTextForSubscriber(ISms.java:1571)
    at android.telephony.SmsManager.sendTextMessageInternal(SmsManager.java:396)
    at android.telephony.SmsManager.sendTextMessage(SmsManager.java:350)
    at anywheresoftware.b4a.phone.Phone$PhoneSms.Send2(Phone.java:644)
    at anywheresoftware.b4a.phone.Phone$PhoneSms.Send(Phone.java:626)
    at b4a.gpstrack2.main._smslink_click(main.java:429)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:180)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:176)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:6896)
    at android.widget.TextView.performClick(TextView.java:12689)
    at android.view.View$PerformClick.run(View.java:26088)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at android.os.Looper.loop(Looper.java:164)


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

    RIchard
     
  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. https://www.b4x.com/b4a.html
    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.
     
Loading...
  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