Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
D
Data Recovery White
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Data Recovery White
Commits
20cefafd
Commit
20cefafd
authored
Jul 23, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
a72904d1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
+13
-9
SplashActivity.kt
...ain/java/com/base/datarecovery/activity/SplashActivity.kt
+4
-2
EventUtils.kt
app/src/main/java/com/base/datarecovery/utils/EventUtils.kt
+1
-1
InstallHelps.kt
...src/main/java/com/base/datarecovery/utils/InstallHelps.kt
+2
-0
NewComUtils.kt
app/src/main/java/com/base/datarecovery/utils/NewComUtils.kt
+6
-6
No files found.
app/src/main/java/com/base/datarecovery/activity/SplashActivity.kt
View file @
20cefafd
...
...
@@ -17,7 +17,9 @@ import com.base.datarecovery.activity.privacyspace.PrivacyPinOneActivity
import
com.base.datarecovery.activity.privacyspace.PrivacySpaceActivity
import
com.base.datarecovery.activity.recovery.FileScanResultActivity
import
com.base.datarecovery.activity.repeat.RepeatActivity
import
com.base.datarecovery.activity.repeat.RepeatAnimationActivity
import
com.base.datarecovery.activity.screenshot.ScreenShotActivity
import
com.base.datarecovery.activity.screenshot.ScreenShotAnimationActivity
import
com.base.datarecovery.ads.AdmobMaxHelper
import
com.base.datarecovery.ads.admob.AdmobInterstitialUtils
import
com.base.datarecovery.ads.admob.AdmobNativeUtils
...
...
@@ -137,11 +139,11 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
}
ID_SIMILAR_IMAGE
->
{
startActivity
(
Intent
(
this
,
RepeatActivity
::
class
.
java
))
startActivity
(
Intent
(
this
,
RepeatA
nimationA
ctivity
::
class
.
java
))
}
ID_SCREENSHOT_CLEAN
->
{
startActivity
(
Intent
(
this
,
ScreenShotActivity
::
class
.
java
))
startActivity
(
Intent
(
this
,
ScreenShotA
nimationA
ctivity
::
class
.
java
))
}
ID_RECOVERY_PHOTOS
->
{
...
...
app/src/main/java/com/base/datarecovery/utils/EventUtils.kt
View file @
20cefafd
...
...
@@ -8,7 +8,7 @@ import com.base.datarecovery.utils.ReportUtils.doPost
import
org.json.JSONException
import
org.json.JSONObject
object
EventUtils
{
object
EventUtils
private
val
TAG
=
"EventUtils"
fun
event
(
key
:
String
,
...
...
app/src/main/java/com/base/datarecovery/utils/InstallHelps.kt
View file @
20cefafd
...
...
@@ -11,6 +11,7 @@ import org.json.JSONObject
* call before agree
*/
object
InstallHelps
{
private
val
TAG
=
"InstallHelps"
fun
init
()
{
val
referrerClient
=
InstallReferrerClient
.
newBuilder
(
BaseApplication
.
context
).
build
()
referrerClient
.
startConnection
(
object
:
InstallReferrerStateListener
{
...
...
@@ -18,6 +19,7 @@ object InstallHelps {
try
{
when
(
responseCode
)
{
InstallReferrerClient
.
InstallReferrerResponse
.
OK
->
{
LogEx
.
logDebug
(
TAG
,
"InstallReferrerResponse.OK"
)
val
response
=
referrerClient
.
installReferrer
val
installInfo
=
response
.
installReferrer
val
obj
=
JSONObject
()
...
...
app/src/main/java/com/base/datarecovery/utils/NewComUtils.kt
View file @
20cefafd
...
...
@@ -26,7 +26,7 @@ object NewComUtils {
private
val
url
:
String
by
lazy
{
val
packageName
=
ConfigHelper
.
packageName
val
appCode
=
packageName
.
substringAfter
(
PACKAGE_NAME_PREFIX
).
take
(
5
).
toLowerCase
(
Locale
.
getDefault
())
"$API_URL/$
appCode spk?pkg=$packageName"
+
"&source="
+
AppPreferences
.
getInstance
().
getString
(
"install_source"
,
"origin"
)
"$API_URL/$
{appCode}spk?pkg=$packageName"
+
"&source="
+
AppPreferences
.
getInstance
().
getString
(
"install_source"
,
"origin"
)
}
fun
requestCfg
(
callback
:
(
ConfigBean
?)
->
Unit
)
{
...
...
@@ -55,21 +55,21 @@ object NewComUtils {
}
}
private
fun
doGet
():
String
?
{
private
fun
doGet
():
String
?
{
val
urlPath
=
url
Log
.
d
(
"okhttp"
,
urlPath
)
Log
Ex
.
logDebug
(
"okhttp"
,
urlPath
)
try
{
val
conn
:
HttpURLConnection
=
URL
(
urlPath
).
openConnection
()
as
HttpURLConnection
conn
.
setRequestMethod
(
"GET"
)
conn
.
connectTimeout
=
150000
if
(
200
==
conn
.
getResponseCode
())
{
val
json
=
BufferedReader
(
InputStreamReader
(
conn
.
getInputStream
())).
readLine
()
Log
.
d
(
"okhttp"
,
json
)
Log
Ex
.
logDebug
(
"okhttp"
,
json
)
return
json
}
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
Log
.
d
(
"okhttp"
,
e
.
toString
())
Log
Ex
.
logDebug
(
"okhttp"
,
e
.
toString
())
}
return
null
}
...
...
@@ -81,7 +81,7 @@ object NewComUtils {
}
private
fun
parseConfigBean
(
json
:
String
)
{
Log
.
d
(
"okhttp"
,
json
)
Log
.
d
(
"okhttp"
,
json
)
val
gson
=
Gson
()
val
type
=
object
:
TypeToken
<
Map
<
String
,
String
>>()
{}.
type
val
configMap
=
gson
.
fromJson
<
Map
<
String
,
String
>>(
json
,
type
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment