Closed WhiredPlanck closed 2 years ago
Wow, that's a lot of changes. I will have a look. How's the compatibility with older API versions?
On Tue, 12 Apr 2022, 01:21 WhiredPlanck, @.***> wrote:
Overview
As many features and changes come up with new Android SDK version (latest is 32), our 19-target-SDK-version app seems to be a little out-of-date. This PR is to adapt it to Android SDK API level 30 (corresponds to Android 11). Main Changes
- Adapt to Scoped Storage feature.
- Use NDK to build C module with Gradle
- Thus, the C module executable named libscan.so can be ran from app's native library directory directory, no need to chmod any more.
Other small changes
- Introduction of Kotlin library, which enables developers to use Kotlin in the future.
- Build ProtoBuf with Gradle to manage version and generation easier.
- Replace some deprecated API usage, like non-recommended AsyncTask.
- Polish code style (not very useful :P).
- Regroup code files / polish tree structure.
- Update Chinese translations.
- Add About dialog.
- Use device default theme style to make look more modern.
- ...
Test Result
LGTM on my Android 10 phone and pad. Screenshot
[image: Screenshot_20220411_225511_com google android diskusage] https://user-images.githubusercontent.com/47623588/162768009-23542349-ea57-4860-8278-6ecac22727c5.jpg
[image: Screenshot_20220411_230852_com google android diskusage] https://user-images.githubusercontent.com/47623588/162771788-f2645f2d-29c6-4d9b-97a1-7b50a6e41d08.jpg
[image: Screenshot_20220411_230846_com google android diskusage] https://user-images.githubusercontent.com/47623588/162772055-b44fba71-b37a-4c0b-aeb2-48df291e2ca6.jpg
You can view, comment on, or merge this pull request online at:
https://github.com/IvanVolosyuk/diskusage/pull/75 Commit Summary
- 14c908c https://github.com/IvanVolosyuk/diskusage/pull/75/commits/14c908c09b1e652a00c62f252916d030314c2b10 meta: update gradle to 7.3.3
- 2797323 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/279732319db37d90e88a6b297e31a03ad30c6a79 meta: add google and mavencentral repositories
- 524d4dc https://github.com/IvanVolosyuk/diskusage/pull/75/commits/524d4dc483fe1a80b2e2a005595daa9eb057eace meta: replace deprecated gradle function
- 4d8185b https://github.com/IvanVolosyuk/diskusage/pull/75/commits/4d8185b2fddd77aee03492794a903b32f9488014 meta: update sdk version
- 8079431 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/80794318202304ff0e10b1c45940f27aeb456fb4 meta: mark compileOptions
- 0e58a0c https://github.com/IvanVolosyuk/diskusage/pull/75/commits/0e58a0c26e18338247bf11c9d1153fc11ebf52e0 meta: move jni to src/main
- 02c53f9 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/02c53f9c505dce257d18e5b745eba56829949ec3 jni: rename C module to libxxx.so format ...
- 35bcc29 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/35bcc29c2ea14debab07b974522e42d9fdf20cce src: NativeScannerStream: run C module from the native library directory
- 2f9b607 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/2f9b607c5c91074470bb483f1c5524f96e25970f meta: enable viewbinding build feature
- dd00733 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/dd00733d8bdb9bd474590cc140df68f88c552d02 meta: introduce Kotlin plugin and dependency
- eeff29c https://github.com/IvanVolosyuk/diskusage/pull/75/commits/eeff29cf0e5f2677492352f07f797531df8ec364 res: change to Device Default theme style
- a7d12b8 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/a7d12b883c38efbc0bc6a4013aa3211de94aafe8 meta: update compile sdk and build tools version to 31
- 6d814e9 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/6d814e9ac3bf85898c00a32ebcf0ae52577e17e9 src: PermissionRequestActivity: roughly support scooped storage for Android 10/11
- 8eabbab https://github.com/IvanVolosyuk/diskusage/pull/75/commits/8eabbab8c13ae1a5483d10797303b0f8964ae0ac res: update and polish Chinese translation
- 8ff2263 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/8ff22639a76c3c8a7e7f48046672356eb5a90bf8 src: polish code style
- 327a922 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/327a9228d6efe27fb1dbd5a5015e87003ab9539f src: regroup some classes into corresponding packages
- 47e52b3 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/47e52b3d2a1ed45fcbb7f60fb870636fb545329b src: DiskUsageMenu: simplify implementation
- 95b756a https://github.com/IvanVolosyuk/diskusage/pull/75/commits/95b756a31d06ef6bda8f5aefe413338a6591d1df res: delete_view: polish layout
- 9e1c173 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/9e1c17365a797a82b174c495be8486f3b9b32bc6 src: FileInfoAdapter: replace deprecated AsyncTask with Executor
- f881fdb https://github.com/IvanVolosyuk/diskusage/pull/75/commits/f881fdb1b0d07bfa10f698d2cf6c459a1c217a4c src: DiskUsageMenu: add About dialog
- a1bfd14 https://github.com/IvanVolosyuk/diskusage/pull/75/commits/a1bfd1454d72feaa664ccf7732df7cce8cbeb7c1 meta: add clean task to delete build directory
- 694095e https://github.com/IvanVolosyuk/diskusage/pull/75/commits/694095e09eefa71dc119304ecb57e9c2edb71827 meta: add junit test implementation
- a5c0d0f https://github.com/IvanVolosyuk/diskusage/pull/75/commits/a5c0d0f9806bb874c40cf102be79e39e988f34a4 meta: build proto with Gradle
File Changes
(103 files https://github.com/IvanVolosyuk/diskusage/pull/75/files)
- M app/build.gradle https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-51a0b488f963eb0be6c6599bf5df497313877cf5bdff3950807373912ac1cdc9 (58)
- M app/src/main/AndroidManifest.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-7fa6aef292187a049f7a4d6060d8df3ba212d838789c78940bd363344b1c38cd (20)
- D app/src/main/java/com/google/android/diskusage/DiskUsageMenuFroyo.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-1b72c9c5e56820ea2d712e786a18d1ede92ba6d0a58ed0de32828c9ce9c6db3c (17)
- D app/src/main/java/com/google/android/diskusage/DiskUsageMenuPreCupcake.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-584cdeacd001bcb04288f5efe58c3c434c2fb48b37f34805a5f5d2fda37c8384 (134)
- D app/src/main/java/com/google/android/diskusage/PermissionRequestActivity.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-05a46a4fcbb92b8d07ef100c304f5166715b50e472a1bee36b2f367df8dd83f0 (113)
- D app/src/main/java/com/google/android/diskusage/ShowHideMountPointsActivity.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-47025d4648ff22024c6a4465acdaf6a8d9f023e9e5868bc4df888a8a296e49df (64)
- R app/src/main/java/com/google/android/diskusage/core/NativeScanner.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-1b330e0b3a54367541f73e4c022042a6cbd4858b213061064480695adba963a6 (91)
- R app/src/main/java/com/google/android/diskusage/core/Scanner.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-469db0b72cf866c0a88a13fb3b28ee183f9d0867381adb6491552acd7c7f7d2c (66)
- M app/src/main/java/com/google/android/diskusage/datasource/DataSource.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-6cb9fbb90a468769fda121d5a64f044d1d252cc9c105659255bdab62cc425685 (2)
- R app/src/main/java/com/google/android/diskusage/datasource/SearchManager.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-b5630ff728e6d756057fac826e88b50547ee53520780891b2829155fd79bd4b3 (18)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/AppInfoProtoImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-b1ffecec9d76a42abc351f23964a446a80dffb60b9b3bfd61d67076a8f5cdb37 (42)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/AppStatsProtoImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-ea4f1080220c14dd27b009fb100958e2816183c015a13c810d4e4174e48e3546 (47)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/DebugDataSource.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-dadbcdefb995c0662d5c575595a8c14563c1afd3b6ba9cca02f0a6a4200f19cd (189)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/PortableExceptionProtoImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-ac871d0d835ccf6a16d20ae0264d963c2e21a29481a2c1115f0f7da78882a2e1 (22)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/PortableFileProtoImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-2757a649ccfdd71297af644b072e93d98fe512ad999e468b542db895f7d027f3 (51)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/PortableResult.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-e1fee01f3407f2f4e886f0d83175ff511568e063a810a67519b4630b9ec7814a (18)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/PortableStreamProtoReaderImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-012b04e01d81f5333e1fbc0b63d1b2a9c21ca0f01b19a4b9db1aff8a4fff2a4d (15)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/PortableStreamProtoWriterImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-7eefcf4dcd60bc76409b244e069232ef06dd06fdcd98f90a06acad8a5c232c48 (20)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/Precondition.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-328ceea6e6f06617db24268602d37cf67b6f1107199d741a17f37ece97f93a6f (5)
- M app/src/main/java/com/google/android/diskusage/datasource/debug/StatFsSourceProtoImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-ba10ecac2a09a7ded65e07cd140c0d38fbdcf6620f10cbbb01547f5d975b94a3 (55)
- M app/src/main/java/com/google/android/diskusage/datasource/fast/AppStatsImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-54d6b23a17e5e18394197cddf9163abc03bb13941889f8c8bf65fab5d8f01c2d (13)
- M app/src/main/java/com/google/android/diskusage/datasource/fast/DefaultDataSource.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-afb8f797f7eca5e33859f39301e5cd0b73a344dd64ff531f78082731bc8e9805 (11)
- M app/src/main/java/com/google/android/diskusage/datasource/fast/LegacyFileImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-4d94de91eaac17db4aae56c854bcbb3f36dbd1604da9475df60a90ea57ef2406 (7)
- M app/src/main/java/com/google/android/diskusage/datasource/fast/NativeScannerStream.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-e5a7e849957e5f3f731481610c1d0ac072eea5df084b70bb089cece5c576d4e7 (39)
- M app/src/main/java/com/google/android/diskusage/datasource/fast/PortableFileImpl.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-18481b62f0730b7b7dcf11cf0f8f0188f318988dd967df512037b8ca42d277b2 (2)
- M app/src/main/java/com/google/android/diskusage/datasource/fast/StreamCopy.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-b9dc515618ebd4a13320ce9e869ebf5dc76e9d320db8cb7b5d111ef8ed1cda3f (5)
- D app/src/main/java/com/google/android/diskusage/delete/FileInfoAdapter.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-7757192d6cdf9ca4d3bde1d0c718cb4589c248d235d9c851f8260d11b32d23ab (290)
- R app/src/main/java/com/google/android/diskusage/filesystem/Apps2SDLoader.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-788cff689f3a6793a8bcc3d6315f3d7843ad744ee25c28a2b4a9dddbe72bee37 (15)
- R app/src/main/java/com/google/android/diskusage/filesystem/BackgroundDelete.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-7dfe6c2abe857aa44fdeb8b56bd3fc7686299fcd4eeb86fe25267414f8d7c2fe (92)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemEntry.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-03bca00fd8f7295c1d36535158f635bf826dddee7cddf60adbf010b5454e86d2 (319)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemEntrySmall.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-a96bed05c8d07025d953e9b404d044dc0207aebc5f91dab6d48c1db975bb1e7b (6)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemFile.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-f77435f272f9d72998ad887cb0a20708f809ee10a981b859aaa1dd5922e0eaf0 (7)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemFreeSpace.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-de1afc86e54a39e7e8ce33201648f22689345f31ea9848fd44a0da0bfbc11847 (8)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemPackage.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-c6d1999a8653b7e1ebdb628fea8b55a07c2cad55b39983611729ce326f90d3ef (15)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemRoot.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-76c3ff14022594816b3e750cb2c681370737d7b07803ea85dfb33105e114f24d (11)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemSpecial.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-5f6e5a61afc4ac41fe891c57fd7b55ed315216683ff3ecc07dcd5b5771124490 (11)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemSuperRoot.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-57f1ca48b5eac59d41fcb8544f37cfd4087181e583826db50b17bc84225366aa (16)
- R app/src/main/java/com/google/android/diskusage/filesystem/entity/FileSystemSystemSpace.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-adc3205f669351195364dbc8faa82773e770fc59c28c8e1010b7c7a27570d1be (8)
- R app/src/main/java/com/google/android/diskusage/filesystem/mnt/MountPoint.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-aee9ba86cf156856dce3bca40fe3cbcb57d919af7572ef347baf40269bb2515c (10)
- R app/src/main/java/com/google/android/diskusage/filesystem/mnt/RootMountPoint.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-ea77176a95979f483a0461f175d7c801968ff993ce9ce0c029d23a530ed5412f (22)
- M app/src/main/java/com/google/android/diskusage/opengl/AbstractRenderingThread.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-095283f36aeb602b398dd73632514c528fe2485bd724caac4672ea0800de5b31 (20)
- M app/src/main/java/com/google/android/diskusage/opengl/DrawingCache.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-785a8f912863ef1de1e539da0e73004b94c8cc98fccc45ba595fe8ed8a869062 (4)
- M app/src/main/java/com/google/android/diskusage/opengl/FileSystemViewGPU.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-d33685ba2cac330e97c9e62aaf878d1893eff8a231dfecec836e224db472c9dc (37)
- R app/src/main/java/com/google/android/diskusage/opengl/RendererManager.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-4b2e2a553738f4c02e55c5715be118e1d8933685efcc4d631cd2ea8074eb820e (37)
- M app/src/main/java/com/google/android/diskusage/opengl/RenderingThread.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-5e19a508c230475f0a8cee21b60d17384e0ee055baac2a41d61f5424efce5232 (57)
- D app/src/main/java/com/google/android/diskusage/proto/AppInfoProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-0a600500e4234bb61126b9faa3f66d02d400c09904d1a973b8d13e921d757b1e (254)
- D app/src/main/java/com/google/android/diskusage/proto/AppStatsProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-f2db35a2d9e2a0ec852566e60ac74b134a3b6d094dbefbe28698e900a7a5dac2 (268)
- D app/src/main/java/com/google/android/diskusage/proto/BooleanValueProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-1535eff130d7241aa59189790770175ff3b1a20c431e6aa5ee00c219efdaf2a2 (106)
- D app/src/main/java/com/google/android/diskusage/proto/Dump.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-e6fccfc11e85e26c50e31ae925fcae0ce29c778d451fb63ceeb49fa7a3b27bcc (369)
- D app/src/main/java/com/google/android/diskusage/proto/LegacyScan.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-35c08e2e7ca268965dce87035b142169ecbcd1da4aa6d2a301c0a98471ac2cea (88)
- D app/src/main/java/com/google/android/diskusage/proto/NativeScanProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-8b8828e25f7eec5a12344cd9bb07c9737e6f7f5bd4ded805b749d84ea19d483e (121)
- D app/src/main/java/com/google/android/diskusage/proto/PortableExceptionProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-1dacaf70964ca568c5c86a1fa1577d087ca4b7f6c5e40b41183d2d1ffe2a3738 (118)
- D app/src/main/java/com/google/android/diskusage/proto/PortableFileProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-97e6884177ba3d1cee1be3aebf013683b6d1c49d9012da0d76bc4f3d719d9d42 (172)
- D app/src/main/java/com/google/android/diskusage/proto/PortableResultProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-fca65d7b9b65c0457f005cd94185f8b3d713b43b70f7efebeed707de9723bbf7 (106)
- D app/src/main/java/com/google/android/diskusage/proto/PortableStreamProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-7aa7907b61fc322fb823276f3e0af8a3fa0c9be2d69ddfcf8a325110854ee1f4 (124)
- D app/src/main/java/com/google/android/diskusage/proto/StatFsProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-e0037b517d1617144d70b8c5b0f17bed9ca600a00542e3b23304b541f70ff8fa (253)
- D app/src/main/java/com/google/android/diskusage/proto/StringValueProto.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-a0d39b34b010daf68c412c7f17e1e4f1664c6bba21987960c3c9046a62f12dca (88)
- R app/src/main/java/com/google/android/diskusage/ui/Cursor.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-74bac06514bf09b170b31152478603bd2009dc663df90c8fcf7ded7af3420585 (18)
- R app/src/main/java/com/google/android/diskusage/ui/DeleteActivity.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-d133e49dd3478f626a442df51651bc04b82b0e5ceab391ee749eb2a594946b92 (85)
- R app/src/main/java/com/google/android/diskusage/ui/DiskUsage.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-52d35f7c6e6d9d650abae06629f42490101784e0ebcbbbfb515772ca6dcb4909 (230)
- R app/src/main/java/com/google/android/diskusage/ui/DiskUsageMenu.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-df759b23d35ec36b0bad21964e5078ed6443b78f5f55140673a6e3b7452770b3 (116)
- R app/src/main/java/com/google/android/diskusage/ui/DiskUsageMenuHoneycomb.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-67f972bec93b5ec03b9d7d4daa80c7946deb9d3e5b1ec4ca10db9dae9dd97723 (13)
- R app/src/main/java/com/google/android/diskusage/ui/FileSystemState.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-b9ea22d7c7e916850d08ca47e61e16a3588ae3b20d8e0ec2f15bd60e3e72cbaa (276)
- R app/src/main/java/com/google/android/diskusage/ui/FileSystemViewCPU.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-58f08727531432a908224219e34c3bba5c7906f63da2e6cc51feb2b231276c68 (19)
- R app/src/main/java/com/google/android/diskusage/ui/LoadableActivity.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-ede5ee738174931ac2243e1cc838a83f6ef1b50bb2eafac1af599d6d555746aa (145)
- R app/src/main/java/com/google/android/diskusage/ui/MyProgressDialog.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-1b6005118c45873e4616c170e1335a2ecf7e91b9faf5c554138b6343c328c532 (49)
- R app/src/main/java/com/google/android/diskusage/ui/MyTextView.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-fc48ca08dbf01ad37b6e88dd88ee38e177b3ee49e2d70e167eb49302afd8cd33 (4)
- A app/src/main/java/com/google/android/diskusage/ui/PermissionRequestActivity.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-e3f0ceb0d6646f0dcb18be53ada4c1098cfb3f99ff1327f249d05f1c464ad883 (155)
- R app/src/main/java/com/google/android/diskusage/ui/SelectActivity.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-4e2466564653bb99e6dc256883beb5db678f2a56c8da55dbec127df59d56c481 (59)
- A app/src/main/java/com/google/android/diskusage/ui/ShowHideMountPointsActivity.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-fe59f16b254a43db712cf7a558da2233bc46e9dcfff4a138b234ba7e2f79d45a (64)
- A app/src/main/java/com/google/android/diskusage/ui/delete/FileInfoAdapter.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-3ea17d3fd80e7c2038a59bd91c78ea94aaceb36fd3ad0b6325cdd5ad5efa0d23 (307)
- M app/src/main/java/com/google/android/diskusage/utils/MimeTypes.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-4413365e27c78f82553c5c5236c83bc016fcbb162586b5d06c66eb0580f1fdc4 (5)
- D app/src/main/java/com/google/protobuf/nano/CodedInputByteBufferNano.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-3456da32c0664fd4721b3cb29d386c9f2403257f9c8525f798b219d4778aa57c (683)
- D app/src/main/java/com/google/protobuf/nano/CodedOutputByteBufferNano.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-3262b950f4f2d8c672971e880f2850960245690fb61a8f9c603f963e511e7859 (1214)
- D app/src/main/java/com/google/protobuf/nano/ExtendableMessageNano.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-883c4e99b2f77656e74f06bd23a9abac0dec4703bc6fb74090f10536663f0f1f (169)
- D app/src/main/java/com/google/protobuf/nano/Extension.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-289b26a1a00eef4495ae743ff0f19f46014437caec477445f35dbe522e330c35 (706)
- D app/src/main/java/com/google/protobuf/nano/FieldArray.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-902ef05fca2e72a0d480ac027f299733f8049a06f553bb0d3bb3929c9028e3e0 (291)
- D app/src/main/java/com/google/protobuf/nano/FieldData.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-422e6eba444bb78c0c32643487c2e3e7897c13d7ad483a7cd5d025afaea53b65 (240)
- D app/src/main/java/com/google/protobuf/nano/InternalNano.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-babbc3bfd13c495b8ee4a7cb730e4cb2a447d7528fe6b4de6ac5023c5cb105ce (547)
- D app/src/main/java/com/google/protobuf/nano/InvalidProtocolBufferNanoException.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-eb894b778c8238fbc6bf69050bd1df0cf1a43d4324c3dcaadfc7095e05bf46c9 (93)
- D app/src/main/java/com/google/protobuf/nano/MapFactories.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-6ff63116faaf2d4468605afd6560d626a0d9276e499228ff337351e2960b1a65 (67)
- D app/src/main/java/com/google/protobuf/nano/MessageNano.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-ac8f599bb58c54bd0081897480ae937d4756f93d6332d6cc672f6dff63769ff3 (198)
- D app/src/main/java/com/google/protobuf/nano/MessageNanoPrinter.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-b98ce9666ef08152c6d0e3436dd6f6c155026704ccfc4b1bd79fc86fa95f5b79 (275)
- D app/src/main/java/com/google/protobuf/nano/UnknownFieldData.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-c429a883faddccb96feabd0c6ac3aad356b24646a58b71f6221ce1172e9100c5 (88)
- D app/src/main/java/com/google/protobuf/nano/WireFormatNano.java https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-c695272d6b64b5eb4474a43aa69fe26397e548ebfd28097b032f65d4c7a9fe54 (124)
- R app/src/main/jni/Android.mk https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-6200e9fd522d64f9c6e78b67c6bc1d9d9576815e800adf580caba8afd40b626d (8)
- R app/src/main/jni/scan https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-f38bfcde6cf3498887da466cdd909891172072d4ce18e5505f3a0e9e02f25066 (0)
- R app/src/main/jni/scan.c https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-b840a56185224477bd36d140a13c2b7d1df1d9673ad10aaed74f05026554d7eb (0)
- A app/src/main/res/layout/about_dialog.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-0ddd3143dcfdc6db50de13adfcba9a7ba0932d580f221ef1a928b032b9f37d8e (47)
- A app/src/main/res/layout/activity_common.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-3938efa8631616663d755bc0fb02bfa9bc1c9797517eb02a624eb12ffc7f8d3e (12)
- M app/src/main/res/layout/delete_view.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-65244a2f427749159a365bd29771fff78426b93241d995b243378b5d08db5e36 (88)
- M app/src/main/res/layout/list_dir_item.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-155cf03457a0250bcb00c294638c5f98b2a3be3fc9b3ef4e8f91a3cb3f640f7d (24)
- M app/src/main/res/layout/list_file_item.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-3d40e3a86d68581d7fcacc034a92437e0f08cfbf349f4694fd0e99d339fe8719 (57)
- A app/src/main/res/menu/ask_for_delete_menu.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-5d1029eef8126cfcf8de8ee16c7c22c1a3f958f39bcc78ae6fdd7b85ed623845 (9)
- M app/src/main/res/menu/menu.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-5ebfcf4c289f7c7ed5882bda07dac090ff6d722884129cf0f0ab95e60ca581c0 (5)
- D app/src/main/res/values-v11/theme.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-f84e0d4fe989e2e373080ae2cd15a54a71a9c06c40263c527c3f3d13727017aa (8)
- D app/src/main/res/values-v12/theme.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-9a6e33bc920d8e7bf881c05f709b3571bc06a7514a4a8ac0b95a48be1b65f7a8 (8)
- M app/src/main/res/values-zh-rCN/strings.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-d9c30b0c0a46ff73de30b4ec09e9219f1edad9a9ce584661d8170e5545d6aa50 (70)
- M app/src/main/res/values-zh-rTW/strings.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-6986b2eda15d624655c5962c57e12dea676b6aaa06bf31a5ced02f38141f47d1 (65)
- M app/src/main/res/values/strings.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-5e01f7d37a66e4ca03deefc205d8e7008661cdd0284a05aaba1858e6b7bf9103 (13)
- M app/src/main/res/values/theme.xml https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-6b1a322b672ea607222c2f3984ac61f21b2c15c718f1815f6d9da4dd38fa872b (6)
- M build.gradle https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7 (13)
- M gradle/wrapper/gradle-wrapper.properties https://github.com/IvanVolosyuk/diskusage/pull/75/files#diff-40640fe1078ece83d7ea8fb67daacd77923a86d13447baf9769660b3b46f2ece (2)
Patch Links:
- https://github.com/IvanVolosyuk/diskusage/pull/75.patch
- https://github.com/IvanVolosyuk/diskusage/pull/75.diff
— Reply to this email directly, view it on GitHub https://github.com/IvanVolosyuk/diskusage/pull/75, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXQ6HI4NALJHYLNDERZN7DVEQ7O5ANCNFSM5TDRWY6A . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Wow, that's a lot of changes. I will have a look. How's the compatibility with older API versions?
So sad that my old phone isn't working and I didn't test with old API versions yet. :rofl: But I will manage to do tests soon.
I've updated min SDK versiont to 21. This make new version app can be less concerned about the limitations of low API level.
And I've used the emulator to test, LGTM on API 21 (Android 5) and 28 (Android 9).
I merged this PR as it is much better than having non compiling broken source code. I see a few breakages comparing to the version on play store for me (android 12, Pixel 4 XL):
The app is crashing at the start as Intent(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION) is not available. I defaulted to Android.M variant to get some permissions.
Viewing files is not working. It seems the intent created is correct, but somehow viewer is not found. Not sure what google broke here this time.
Only a few apps are displayed, the rest throwing exceptions and as a results all corresponding space is attributed to system data.
I merged this PR as it is much better than having non compiling broken source code. I see a few breakages comparing to the version on play store for me (android 12, Pixel 4 XL):
* The app is crashing at the start as Intent(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION) is not available. I defaulted to Android.M variant to get some permissions. * Viewing files is not working. It seems the intent created is correct, but somehow viewer is not found. Not sure what google broke here this time. * Only a few apps are displayed, the rest throwing exceptions and as a results all corresponding space is attributed to system data.
As far as I know, Android 12 has some breaking changes in some way which is a little difficult to figure out.
On Android 10 and below,Android/data
in Internal Storage is still accessible like other scopes, so this part will be duplicate with the Apps
part in the view. And viewing files has been broken already before I work on this PR. I don't want to make this PR too complex so I doesn't fix them. (Actually I also have no idea to workaround them 🤣 )
As I said, this entire effort became a compatibility nightmare. Android doesn't seem to provide a stable API for apps like this and it is just frustrating to make anything work especially if you don't have access to a pool of test devices.
On Fri, Apr 15, 2022 at 6:44 PM WhiredPlanck @.***> wrote:
I merged this PR as it is much better than having non compiling broken source code. I see a few breakages comparing to the version on play store for me (android 12, Pixel 4 XL):
The app is crashing at the start as Intent(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION) is not available. I defaulted to Android.M variant to get some permissions.
Viewing files is not working. It seems the intent created is correct, but somehow viewer is not found. Not sure what google broke here this time.
Only a few apps are displayed, the rest throwing exceptions and as a results all corresponding space is attributed to system data.
As far as I know, Android 12 has some breaking changes in some way which is a little difficult to figure out. On Android 10 and below,Android/data in Internal Storage is still accessible like other scopes, so this part will be duplicate with the Apps part in the view. And viewing files has been broken already before I work on this PR. I don't want to make this PR too complex so I doesn't fix them. (Actually I also have no idea to workaround them 🤣 )
— Reply to this email directly, view it on GitHub https://github.com/IvanVolosyuk/diskusage/pull/75#issuecomment-1099969998, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXQ6HKP2EXK2CPWNMCJIG3VFET6BANCNFSM5TDRWY6A . You are receiving this because you modified the open/close state.Message ID: @.***>
Overview
As many features and changes come up with new Android SDK version (latest is 32), our 19-target-SDK-version app seems to be a little out-of-date. This PR is to adapt it to Android SDK API level 30 (corresponds to Android 11).
Main Changes
libscan.so
can be ran from app's native library directory directory, no need to chmod any more.Other small changes
Test Result
LGTM on my Android 10 phone and pad.
Screenshot