forked from zjyzip/AdClose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'zjyzip:main' into main
- Loading branch information
Showing
61 changed files
with
1,374 additions
and
1,343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.close.hook.ads; | ||
|
||
parcelable BlockedBean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.close.hook.ads | ||
|
||
import android.os.Parcel | ||
import android.os.Parcelable | ||
import java.io.Serializable | ||
|
||
data class BlockedBean( | ||
val isBlocked: Boolean, | ||
val type: String?, | ||
val value: String? | ||
) : Parcelable, Serializable { | ||
constructor(parcel: Parcel) : this( | ||
parcel.readByte() != 0.toByte(), | ||
parcel.readString(), | ||
parcel.readString() | ||
) | ||
|
||
override fun writeToParcel(parcel: Parcel, flags: Int) { | ||
parcel.writeByte(if (isBlocked) 1 else 0) | ||
parcel.writeString(type) | ||
parcel.writeString(value) | ||
} | ||
|
||
override fun describeContents(): Int = 0 | ||
|
||
companion object CREATOR : Parcelable.Creator<BlockedBean> { | ||
override fun createFromParcel(parcel: Parcel): BlockedBean = BlockedBean(parcel) | ||
override fun newArray(size: Int): Array<BlockedBean?> = arrayOfNulls(size) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
app/src/main/aidl/com/close/hook/ads/IBlockedStatusProvider.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// IBlockedStatusProvider.aidl | ||
package com.close.hook.ads; | ||
|
||
import android.os.ParcelFileDescriptor; | ||
|
||
interface IBlockedStatusProvider { | ||
ParcelFileDescriptor getData(String type, String value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/close/hook/ads/data/model/ConfiguredBean.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.close.hook.ads.data.model | ||
|
||
data class ConfiguredBean( | ||
val packageName: String, | ||
val switchStates: List<Boolean> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.