Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .github/workflows/market-build-action.yml

This file was deleted.

17 changes: 17 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
RJ Open Source License / RJ 开放源代码许可
© RJMultiDev 2023-2025.
RJ保留一切解释权,最终决定以RJ为准。

I.关于对本仓库内容的使用。
对于本仓库中的代码文件(尤指以.c/.cpp/.java/.kt/.cs/.bat/.ps1或其他代码文件后缀结尾的、具有可读性的、由编程语言构成的文件),允许您通过包括但不限于Git Clone、Download Zip、抄录的方式获取这些内容、二次编译。在编译时,您必须要确保您的二次编译版本不包含任何原项目的名称、地址。
对于本仓库中所有由RJ及贡献者创建的媒体文件,RJ及其贡献者保留所有权。
对于未遵照上述方法且未经授权地使用源代码,RJ保留追究的权利。
对于本许可未规定的内容,按照闭源内容对待。

II.关于授权二次开发的许可证限制
您可以选择自定义许可或GPL-3.0。若您使用自定义许可,您必须在许可中明确声明具有本许可证大旨的内容。
不允许使用本仓库内容进行盈利性商业活动。代码属于贡献者。

III.免责声明​​
本软件按“原样”提供,不提供任何形式的明示或暗示担保,包括但不限于对适销性、特定用途适用性及非侵权性的担保。
在任何情况下,作者或版权所有者均不对因软件使用或其他交易产生的任何索赔、损害或其他责任承担责任。
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
# 华软应用商店

**这里将用于放置华软应用商店的开源代码和发行版本**

华软应用商店是一款专为华为儿童手表3系列打造的应用商店。
# Re:华软应用商店

特色:

使用无线调试安装应用

·无线调试相关功能使用了开源项目RareBox的代码
·无线调试相关功能使用了开源石山RareBox的代码(ReBox Soon™️)

(https://github.com/Genouka/RareBox)

应用源专为华为儿童手表打造
专为华为儿童手表打造

丰富的附加功能

Expand All @@ -24,4 +20,4 @@

·内置shell截屏

未来会添加更多新功能,目前商店仍未完善,将于2.0版本发布正式版
未来会添加更多新功能,目前仍未完善
Empty file added app/.gitignore
Empty file.
21 changes: 10 additions & 11 deletions src/app/build.gradle → app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ android {
compileSdk 33

defaultConfig {
applicationId "com.baihu.huadows"
applicationId "rj.rehuadows"
minSdk 21
targetSdk 33
targetSdk 31
versionCode 1
versionName "1.6.8"
versionName "1.0"

vectorDrawables {
useSupportLibrary true
Expand All @@ -23,13 +23,12 @@ android {
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

buildFeatures {
Expand All @@ -44,12 +43,12 @@ implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

implementation 'com.github.bumptech.glide:glide:4.13.2'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
//implementation 'com.squareup.picasso:picasso:2.8'
// implementation 'com.github.bumptech.glide:glide:4.12.0'
// annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
// implementation 'com.github.bumptech.glide:glide:4.15.0' // 最新版本可以从 Glide GitHub 页查询
implementation 'com.squareup.picasso:picasso:2.8'
// implementation 'com.github.bumptech.glide:glide:4.12.0'
// annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
// implementation 'com.github.bumptech.glide:glide:4.15.0' // 最新版本可以从 Glide GitHub 页查询
//annotationProcessor 'com.github.bumptech.glide:compiler:4.15.0'
implementation("com.google.android.material:material:1.9.0")
implementation("com.google.android.material:material:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
android:name="MainActivity"
android:exported="true">
<intent-filter>

<action
android:name="android.intent.action.MAIN" />
<category
Expand All @@ -36,8 +37,8 @@
<activity android:name=".Appmanage" />
<activity android:name=".AppOperationActivity" />
<activity android:name=".InputMethodSwitcherActivity" />
<activity android:name=".AccessibilityPermissionManagerActivity" />


<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,10 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
setRoundedImage(imageButtonRight, R.drawable.sample_image);

LinearLayout extraButton1 = view.findViewById(R.id.extraButton1);
LinearLayout extraButton2 = view.findViewById(R.id.extraButton2);

extraButton1.setOnClickListener(v ->{
Intent intent = new Intent(getActivity(), Appmanage.class);
startActivity(intent);




});
extraButton2.setOnClickListener(v ->{
Intent intent = new Intent(getActivity(), AccessibilityPermissionManagerActivity.class);
startActivity(intent);




});

GridLayout squareContainer = view.findViewById(R.id.squareContainer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
if (installedPackageInfo.versionCode >= apkPackageInfo.versionCode) {
// 清理临时文件
deleteTempFile(newApkPath);
appendMessage("已安装的应用版本高于或等于当前安装包,取消安装。");
appendMessage("拒绝降级,从我做起!请先卸载旧版!");
return; // 取消安装
}
}
}
}
// 显示正在执行的命令
appendMessage("正在执行命令: pm install " + newApkPath);
appendMessage("正在执行目标: pm install " + newApkPath);
// 执行 ADB 安装命令
executeInstallCommand(newApkPath);
} else {
appendMessage("获取包名失败!");
appendMessage("包异常!");
}
} else {
appendMessage("复制文件失败!");
Expand Down Expand Up @@ -106,9 +106,9 @@ private void deleteTempFile(String apkPath) {
if (apkFile.exists()) {
boolean deleted = apkFile.delete();
if (deleted) {
appendMessage("临时文件已删除。");
appendMessage("安装包已删除。");
} else {
appendMessage("删除临时文件失败。");
appendMessage("删除安装包失败。");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
android:layout_width="match_parent"
android:orientation="vertical">

<LinearLayout
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginBottom="16dp"
Expand All @@ -19,21 +19,21 @@
android:orientation="vertical"
android:id="@+id/announcementLayout">

<ImageView
<ImageView
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:scaleType="centerCrop"
android:id="@+id/announcementImage" />

<TextView
<TextView
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:textSize="18sp"
android:layout_marginTop="8dp"
android:id="@+id/announcementTitle"
android:textStyle="bold" />

<TextView
<TextView
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:visibility="gone"
Expand All @@ -49,7 +49,7 @@
android:gravity="center"
android:orientation="horizontal">

<LinearLayout
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="0dp"
android:background="@drawable/home_button"
Expand All @@ -59,55 +59,25 @@
android:focusable="true"
android:id="@+id/extraButton1">

<ImageButton
<ImageButton
android:layout_height="40dp"
android:layout_width="40dp"
android:src="@drawable/app_manage"
/>

<TextView
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="16sp"
android:layout_marginStart="8dp"
android:text="应用管理"
android:layout_gravity="center" />

</LinearLayout>

<View
android:layout_height="wrap_content"
android:layout_width="16dp" />
</LinearLayout>

<LinearLayout
android:layout_height="wrap_content"
android:layout_width="0dp"
android:background="@drawable/home_button"
android:clickable="true"
android:padding="8dp"
android:layout_weight="1"
android:focusable="true"
android:id="@+id/extraButton2">
</LinearLayout>

<ImageButton
android:layout_height="40dp"
android:layout_width="40dp"
android:src="@drawable/toolbox"
android:background="@android:color/transparent" />

<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="16sp"
android:layout_marginStart="8dp"
android:text="综合工具箱"
android:layout_gravity="center" />

</LinearLayout>

</LinearLayout>

<TextView
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="24sp"
Expand All @@ -116,7 +86,7 @@
android:text="分类"
android:textStyle="bold" />

<LinearLayout
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginBottom="24dp"
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">华软商店2</string>
<string name="app_icon">Logo</string>


<string name="announcement_image">公告图片</string>
<string name="search_hint">搜索...</string>

</resources>
File renamed without changes.
File renamed without changes.
0 src/gradlew → gradlew
100755 → 100644
File renamed without changes.
Loading