Big problem

Alex2012

Member
Licensed User
Longtime User
I have a big problem. Yesterday I published my widget on Google
I typed linsensig cod to application design by Erel
all good just a small detail that have written google
of my widget:


This application has access to the following:
Phone calls
read phone status and identity
Allows the app to access the phone features of the device. This permission allows the app to determine the phone number and device IDs, whether a call is active, and the remote number connected by a call.


This is my cod:

Sub Process_Globals
Dim DB_REAL, DB_INTEGER, DB_BLOB, DB_TEXT As String
DB_REAL = "REAL"
DB_INTEGER = "INTEGER"
DB_BLOB = "BLOB"
DB_TEXT = "TEXT"
Dim DBTableName As String
Dim DBFileName As String
Dim DBFileDir As String
Dim DSQL As SQL
Dim publicKey As String
publicKey = "MIIBIjAN..."
Dim test_1 As String
End Sub

Sub Globals
Dim imgk1 As ImageView
Dim imgz2 As ImageView
Dim Label1 As Label
Dim lblmoon As Label
Dim Panel1 As Panel
Dim Panel2 As Panel
Public secret As String
End Sub

Sub Activity_Create(FirstTime As Boolean)

Dim lc As LicenseChecker
Dim p As PhoneId
lc.Initialize("lc", p.GetDeviceId, publicKey, "abcdef".GetBytes("UTF8"))
lc.SetVariableAndValue("test_1","alert")
lc.CheckAccess
If File.Exists(File.DirInternal,"ktm.db") = False Then
File.Copy(File.DirAssets,"kmt.db",File.DirInternal,"kmt.db")
End If
If DSQL .IsInitialized = False Then
DSQL.Initialize(File.DirInternal & "/", "kmt.db", False)
End If
End Sub

Sub lc_Allow
Log("Allow")
End Sub
Sub lc_DontAllow
Log("DontAllow")
ToastMessageShow("Closing application.", True)
ExitApplication
End Sub
Sub lc_Error (ErrorCode As String)
Log("error: " & ErrorCode)
ToastMessageShow("Closing application.", True)
Activity.Finish
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub


How to change it to use only the license check and no phone libraries


Please Help !!!
:sign0085:
 
Last edited:

eps

Expert
Licensed User
Longtime User
What do the permissions in your Manifest file look like? Don't post any identifiers or so on.

I'm guessing you want the Licence check, but feel that including it, has included some Phone permissions as well, which you don't want it to do? I don't think that will happen - if you don't use a feature in your code it won't be included.

It may be that it was included and your manifest file still has a link to a permission that is no longer needed though.

A little more info. would help - such as what libs you've included - I guess you've just got the bear minimum in there?
 
Upvote 0

Alex2012

Member
Licensed User
Longtime User
Idon't change manifest that was automatic.
that I find:

<uses-permission android:name="com.android.vending.CHECK_LICENSE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

Libraries:
Core
Licensing
Phone
Sql
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Well unless you access something which needs the Phone Intent to be in there, you should remove it. But I'm guessing that you've accessed something that requires it. Simply using the Phone library does not cause this.

a) work out what has made that intent appear in there.

b) copy your manifest file. Then edit the one used, removing the intent and see what effect this has on the App generated. It may well highlight what has caused the Intent to appear - they usually only appear if they are needed.
 
Upvote 0

Alex2012

Member
Licensed User
Longtime User
Thank You

I looked at it earlier but I was not sure
I think it will be a work.
Still needs a phone liberias but not in manifest.
:icon_clap:
 
Upvote 0
Top