80 Commits

Author SHA1 Message Date
topjohnwu
d56f4fbc90 Fix stub on API 34 2024-03-08 15:57:49 -08:00
topjohnwu
93876b5fd3 Update dependencies, AGP, and SDK level 2023-08-11 09:38:59 -07:00
LoveSy
75ba62d588 Fix stub resource loading on Android 9, 10
They can only load resources from zip files

Co-authored-by: canyie <a1364259@163.com>
Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
2023-07-06 04:53:26 -07:00
LoveSy
54ecc001f4 Clean up more codes 2023-03-19 23:20:19 -07:00
vvb2060
d06e9a0b51 Allow R8 to delete fetchCanary 2023-03-02 02:05:38 -08:00
LoveSy
4ba365565f Upgrade gradle 2023-02-20 00:08:23 -08:00
canyie
15a7e9af57 Fix ResourcesProvider being closed 2023-01-20 19:32:22 +08:00
canyie
babdfe80cb Fix stub resources load on Android 5 2023-01-12 01:12:56 +08:00
vvb2060
52cf72002a Update resources load
addAssetPath supports apk and directory
2022-10-12 13:07:30 -07:00
topjohnwu
e9af773901 Remove usage of AndroidX CoreComponentFactory 2022-08-26 06:31:51 -07:00
topjohnwu
38ab6858f0 Do not crash root service in stub 2022-08-23 05:10:18 -07:00
topjohnwu
3f7f6e619a Use VERSION_CODES instead of raw numbers 2022-08-23 01:43:53 -07:00
topjohnwu
0b26882fce Build dynamic stub resource APK at runtime
Close #6013

Co-authored-by: vvb2060 <vvb2060@gmail.com>
2022-06-22 05:19:27 -07:00
topjohnwu
9016e6727d Fix stub app loading on older Android versions 2022-06-05 01:09:30 -07:00
topjohnwu
dfa36fb25d Move things around 2022-05-22 19:36:47 -07:00
topjohnwu
c8492b0c58 Use official APIs to load dynamic resources 2022-05-22 19:20:24 -07:00
topjohnwu
dc65a2b884 Introduce new debug channel 2022-05-15 01:01:54 -07:00
vvb2060
4202b7a9dc Enable gms provider for stub 2022-05-06 00:00:41 -07:00
vvb2060
000a163beb Match components which are direct boot unaware 2022-03-02 22:32:35 -08:00
vvb2060
945de8d9a0 Directly stream APK into install session 2022-02-16 23:03:32 -08:00
topjohnwu
668e549208 Refactor APKInstall 2022-02-13 19:54:59 -08:00
topjohnwu
2414d5d7f5 Minor changes 2022-02-13 14:23:06 -08:00
topjohnwu
b7fc15d399 Code refactoring 2022-02-13 07:24:34 -08:00
topjohnwu
c09b4dabc4 Generate class mapping at runtime 2022-02-13 06:22:42 -08:00
topjohnwu
a4aa4a91a3 Refactor DynLoad 2022-02-13 03:32:11 -08:00
topjohnwu
8f0ea5925a Relaunch process without second process 2022-02-13 02:58:55 -08:00
南宫雪珊
936ad1aa20
Handle download fail
Co-authored-by: topjohnwu <topjohnwu@gmail.com>
2022-02-13 02:30:09 -08:00
topjohnwu
10f991b8d0 Directly stream APK into install session 2022-02-03 03:50:52 -08:00
topjohnwu
ffec9a4ddd Minor changes 2022-02-02 05:06:12 -08:00
topjohnwu
9b18960bbd Getting APK doesn't need ContentProvider 2022-02-02 04:58:31 -08:00
topjohnwu
a009fdbdc3 Fix root service on stub 2022-02-02 04:49:23 -08:00
topjohnwu
c1fc3f373c Proper app relaunch for stub 2022-02-02 04:44:22 -08:00
topjohnwu
f4cf5dc0cd Rename class 2022-02-02 02:50:27 -08:00
topjohnwu
355341f0ab Use AppComponentFactory to replace ClassLoader 2022-02-01 22:43:44 -08:00
vvb2060
636479b15b Fix dynLoad 2022-01-24 21:31:27 -08:00
vvb2060
afcc60066e Fix toast 2021-12-27 12:17:35 -08:00
vvb2060
d3ade06421 Use InputStream transfer 2021-12-27 12:17:35 -08:00
南宫雪珊
df191cd2b5
Use AGP to compile resources 2021-12-14 05:30:15 -08:00
南宫雪珊
baa19f0ccf
Rewrite app installation
Fix  #4960
2021-12-14 05:20:29 -08:00
topjohnwu
54e3f1998a Support RootService on stub APKs 2021-12-13 04:05:42 -08:00
topjohnwu
de3747d65e Copy APK from external storage in stub
Much faster and easier development
2021-12-13 04:05:42 -08:00
vvb2060
65224ed22b Fix NPE when apk could not be parsed 2021-11-29 00:04:51 -08:00
topjohnwu
714feeb9a7 Support building on case insensitive filesystems
Fix #4643, close #4641
2021-09-07 04:02:29 -07:00
topjohnwu
9c09ad3b62 Open source fully obfuscated stub 2021-09-02 21:31:33 -07:00
topjohnwu
1b9d8e068a Remove/move unused files 2021-04-18 05:04:14 -07:00
topjohnwu
4c1ea0e421 Update stub implementation
Prevent some potential issues
2021-04-17 22:14:54 -07:00
topjohnwu
7e01f9c95e Minor changes 2021-04-17 19:57:47 -07:00
topjohnwu
15e27e54fb Migrate to new endpoints 2021-03-05 05:09:25 -08:00
topjohnwu
d2e2847b03 Fix stub 2021-02-23 03:24:51 -08:00
topjohnwu
fba83e2330 Support stub APK loading down to Android 5.0 2021-01-26 07:27:35 -08:00