How To Guide [Close].Advanced-CustomAP

Search This thread

tom.android

Senior Member
Jul 12, 2016
1,046
342
Step by Step Tutorial for changes mount Read Only To Read/Write.《

Example in tutorial:
(install PixelExperience_Plus Android 13 , Can install on A12 but not works)

Slim has no Recorder (voice), Pixel Wallpapers, Pixel Live Wallpapers, Drive, Maps, Photos, Gmail and Google app

Step | test on Stock A11
PREREQUISITE: Known how to create CustomAP.tar.md5 in Part 1. Tutorial


✓1. Download: https://github.com/ponces/treble_build_pe/releases

✓2. Test with DSU Sideloader :
All Booted Variant (Read only)

2.1. PixelExperience_Plus_arm64-ab-13.0-20221124-UNOFFICIAL.img.xz
2.2. PixelExperience_Plus_arm64-ab-slim-13.0-20221124-UNOFFICIAL.img.xz (only 1 app Google play store )

》》》Note: vndklite R/W not booted ,
Then you must changes Read only to R/W mode by yourself.

》》》This PE+ version has Offline-Charging (show % remain power level) that can break "Warranty Bit warning" state and supported exFAT micro-sdcard.

Option:
It's still a good idea to flash stock firmware every now and then, because critical system components get updated and fixed, like the bootloader etc.


✓3. Create CustomAP for Flashing with Odin (include patched-Magisk of boot and vbmeta)

After 1'st boot Finished Flashing
3.1 setup magisk v.24.3
(download additional some part) if not you can't uses magisk.

odin-pe13+.PNG


3.2 Computer
download platform-tools and extract to C:\

3.3 look at belows video for beginning process.
( But it is not my mod with CustomAP, only want to get rid of read only feature from our system.img that be installed before. )
✓ Resources:
How to mount Read Only System TO Read/Write.?


3.4 Tab A7 Lite
1. install Root File Manager. (Such as MiXplorer)
2. copy "systemrw_1.32" folder from Archive to /data/local/tmp

3.5 Computer + USB cable +Tab A7 Lite
Open CMD as Administrator and Run in folder C:/platform-tools

Code:
adb shell

su
   * check magisk supersu permission--given to Shell program or not

cd /data/local/tmp/systemrw_1.32

chmod +x ./systemrw.sh

./systemrw.sh size=15

or
./systemrw.sh out=/mnt/media_rw/8644-7453/patch/super_fixed.bin size=100

**changes 8644-7453 with your external storage number.


OUTPUT
Code:
 Read only
 --------------------------------------------------
|    SystemRW v1.32 automated script by lebigmac   |
|  @xda ©2021 Big thank you to @Kolibass @Brepro1  |
|@munjeni @AndyYan @gabrielfrias @YOisuPU @bynarie |
|   without your help this would not be possible!  |
 --------------------------------------------------
systemrw: Custom output detected: /mnt/media_rw/8644-7453/patch/super_fixed.bin
systemrw: Custom size detected: 15 MB
systemrw: Initiating procedure...

systemrw: Device is in Android mode. Ignoring
systemrw: Current device: samsung
systemrw: Current Android version: 14
systemrw: Current SELinux status: Enforcing
systemrw: Current slot is: 0
systemrw: Your super partition is located at: /dev/block/mmcblk0p45
systemrw: / is read-only
systemrw: /product is already R/W capable. Ignoring
systemrw: /vendor is already R/W capable. Ignoring
systemrw: Adjusting permissions...
systemrw: Attempting to disable dm-verity and verification...
verification is already disabled.
verity is already disabled.
systemrw: Dumping super partition to: /data/local/tmp/systemrw_1.32/img/super_original.bin
systemrw: Please wait patiently...

11902976+0 records in
11902976+0 records out
6094323712 bytes (5.6 G) copied, 132.285471 s, 44 M/s

systemrw: Successfully dumped super partition to: /data/local/tmp/systemrw_1.32/img/super_original.bin
systemrw: Unpacking embedded partitions from /data/local/tmp/systemrw_1.32/img/super_original.bin
systemrw: Nested partitions were successfully extracted from super

systemrw: Current size of system.img in bytes: 3090964480
systemrw: Current size of system.img in MB: 2947
systemrw: Current size of system.img in 512-byte sectors: 6037040

systemrw: 'shared_blocks feature' detected @ system.img

systemrw: Increasing filesystem size of system.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system.img to 943287 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system.img is now 943287 (4k) blocks long.

systemrw: Removing 'shared_blocks feature' of system.img...
e2fsck 1.46.2 (28-Feb-2021)
systemrw: Read-only lock of system.img successfully removed

systemrw: Shrinking size of system.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system.img to 887293 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system.img is now 887293 (4k) blocks long.

systemrw: Custom size of system.img in bytes: 3650080768
systemrw: Custom size of system.img in MB: 3480
systemrw: Custom size of system.img in 512-byte sectors: 7129064

systemrw: Increasing filesystem size of system.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/system.img to 891133 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/system.img is now 891133 (4k) blocks long.

=================================================

systemrw: Current size of vendor.img in bytes: 641204224
systemrw: Current size of vendor.img in MB: 611
systemrw: Current size of vendor.img in 512-byte sectors: 1252352

systemrw: NO 'shared_blocks feature' detected @ vendor.img

systemrw: Shrinking size of vendor.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/vendor.img to 151299 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/vendor.img is now 151299 (4k) blocks long.

systemrw: Custom size of vendor.img in bytes: 635449344
systemrw: Custom size of vendor.img in MB: 606
systemrw: Custom size of vendor.img in 512-byte sectors: 1241112

systemrw: Increasing filesystem size of vendor.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/vendor.img to 155139 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/vendor.img is now 155139 (4k) blocks long.

=================================================

systemrw: Current size of product.img in bytes: 1091608576
systemrw: Current size of product.img in MB: 1041
systemrw: Current size of product.img in 512-byte sectors: 2132048

systemrw: NO 'shared_blocks feature' detected @ product.img

systemrw: Shrinking size of product.img back to minimum size...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/product.img to 262240 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/product.img is now 262240 (4k) blocks long.

systemrw: Custom size of product.img in bytes: 1089863680
systemrw: Custom size of product.img in MB: 1039
systemrw: Custom size of product.img in 512-byte sectors: 2128640

systemrw: Increasing filesystem size of product.img...
resize2fs 1.45.4 (23-Sep-2019)
Resizing the filesystem on /data/local/tmp/systemrw_1.32/img/product.img to 266080 (4k) blocks.
The filesystem on /data/local/tmp/systemrw_1.32/img/product.img is now 266080 (4k) blocks long.

=================================================

systemrw: Joining all extracted images back into one single super image...
systemrw: Please wait and ignore the invalid sparse warnings...

Not enough space on device for partition product with size 1089863680

systemrw: Error! failed to create super_fixed.img file. Error code: 70

gta7lite:/data/local/tmp/systemrw_1.32 #

ignored " Error! failed to create super_fixed.img file. Error code: 70"
(we don't need it.)

✓4. Final copy /data/local/tmp/systemrw_1.32/img/system.img for making new CustomAP.

----Happy with Read/Write Mount System-----

if you want to fix not enough space Solved with changing size from 15 to 100
But I want only "new system.img" which removed shared_blocks.​
 
Last edited:

tom.android

Senior Member
Jul 12, 2016
1,046
342
systemrw: Removing 'shared_blocks feature' of system.img...
systemrw: Read-only lock of system.img successfully removed

-----------------

systemrw: NO 'shared_blocks feature' detected @ vendor.img

-----------------

systemrw: NO 'shared_blocks feature' detected @ product.img

**Ignored ---No 'shared_blocks feature'--
detected @ xxxx.img

Tools for download:
note>>already mod systemrw_132.zip
 

Attachments

  • systemrw_1.32.zip
    6.5 MB · Views: 22
  • platform-tools_r33.0.3-windows.zip
    5.4 MB · Views: 10
Last edited:

tom.android

Senior Member
Jul 12, 2016
1,046
342
This bit of code was included in my systemrw_1.32.zip

Code:
sdkVersion=`getprop ro.build.version.sdk`
    if [ $sdkVersion -lt 29 ]; then
        printf "$app: Please install Android 10 or newer and try again\n\n" && exit 1
    else
        android=$(($sdkVersion - 19))  
    fi
    printf "$app: Current Android version: %s\n" $android
 
Last edited:

tom.android

Senior Member
Jul 12, 2016
1,046
342
Tools

Unpacker Kitchen for Android(UKA)​


 

Attachments

  • UKA_5.15_eng_magisk.zip
    54.3 MB · Views: 2

tom.android

Senior Member
Jul 12, 2016
1,046
342
PE + A13 GSI (Read/Write) in Actions
-Overlay didn't work on A13
Then uses this.

✓1.Auto Brightness (velis auto brightness )

Screenshot_20221201-090405_Pixel Launcher.png


✓2.DT2W (Double-tap to wake)
Enable PHH Treble Setting
Screenshot_20221201-092740_PhhTrebleApp.png


✓3.Turn Screen-Off

3.1.Setting>Display>Double tap status bar to screen off
3.2.Use Gesture features

Screenshot_20221201-111842_Settings.png


✓4. Fixed tablet taskbar

hide: Long press taskbar to completely hide it (for Android 12.1+)
  • Long press bottom of the screen (when not in desktop) to show taskbar again
  • In PixelExperience ROMs, hiding the taskbar pill also fixes the problem of not being able to add icons to the desktop
fix: Fix the wrong taskbar height in PixelExperience ROMs (12.1)



CONTINUE...
 

Attachments

  • Velis Auto Brightness_4.65.226.apk
    660.8 KB · Views: 1
  • Screenshot_20221201-092740_PhhTrebleApp.png
    Screenshot_20221201-092740_PhhTrebleApp.png
    100 KB · Views: 4
Last edited: