• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[OFFICIAL] AOSP R Mod //CAOS11

Search This thread

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite

Attachments

  • photo_2021-05-08_17-43-39.jpg
    photo_2021-05-08_17-43-39.jpg
    34.5 KB · Views: 70

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
Hi,

I flashed CAOS versions upto CAOS R 2021.04.24 on my HTC U12 LIfe and had no issues. But latest version CAOS R 2021.05.07 does not boot.

Was there any major update in latest version that would prevent booting ?
give more info
a. have magisk installed? remove if yes
b. which type of "not boot" - logo stuck or animation?
c. you did wipe Data?
d. you tried clean vanilla build without gapps?
e. you tried AOSP v307?
 
  • Like
Reactions: hacker812c

nsbandara

Member
Oct 21, 2018
10
9
give more info
a. have magisk installed? remove if yes
b. which type of "not boot" - logo stuck or animation?
c. you did wipe Data?
d. you tried clean vanilla build without gapps?
e. you tried AOSP v307?

a. No I don't have magisk installed
b. It get stuck at CAOS boot animation, I waited more than 10 mins and it doesnt go beyond CAOS boot animation
c. Did the flash as per steps provided in https://github.com/phhusson/treble_experimentations/wiki/HTC-U12-Life
d. No, I tried Arm64 , agZ rom
e. No
 
  • Like
Reactions: hacker812c

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
a. No I don't have magisk installed
b. It get stuck at CAOS boot animation, I waited more than 10 mins and it doesnt go beyond CAOS boot animation
c. Did the flash as per steps provided in https://github.com/phhusson/treble_experimentations/wiki/HTC-U12-Life
d. No, I tried Arm64 , agZ rom
e. No
if rom stuck on boot animation try
a. wipe data / Format data (or better Factory reset via stock recovery)
b. try boot vanilla build without gapps first
 
  • Like
Reactions: hacker812c

rw_on_xda

Senior Member
Jun 24, 2013
326
168
Berlin
Today I flashed v307 on an SM-T510 (Galaxy Tab A 10.1 2019) with stock 5BUC4.

it seems I found 2 bugs:
- Wifi connects only with WPA2, not WPA3 (counterpart is an AVM Fritzbox 7950, FW 7.27) [1]
- no access via USB cable to the device (Linux kernel 5.12.4, Windows 8.1),

apart from that:
all nice & easy
Thanks for your work

[1]
my Galaxy S4 with LOS 18.1 is able to connect with WPA3, though.
 
  • Like
Reactions: hacker812c

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
Today I flashed v307 on an SM-T510 (Galaxy Tab A 10.1 2019) with stock 5BUC4.

it seems I found 2 bugs:
- Wifi connects only with WPA2, not WPA3 (counterpart is an AVM Fritzbox 7950, FW 7.27) [1]
- no access via USB cable to the device (Linux kernel 5.12.4, Windows 8.1),

apart from that:
all nice & easy
Thanks for your work

[1]
my Galaxy S4 with LOS 18.1 is able to connect with WPA3, though.
1. i can't fix WPA3, ask phhusson about this
2. Samsung devices need specific custom kernel with MTP fix, otherwise in all GSI you never get MTP connection works
 

rw_on_xda

Senior Member
Jun 24, 2013
326
168
Berlin
1. i can't fix WPA3, ask phhusson about this
2. Samsung devices need specific custom kernel with MTP fix, otherwise in all GSI you never get MTP connection works
thanks for fast response.

cause I'm new to CaOS I didn't know of both things, but
for 1. I'll see what I can do (right now mailed via Forum conversation ...)
for 2. I use MiXplorer and SMB

anyway I'm completely satisfied with this ROM.
I was able to install 2 apps for my Mi band while I wasn't able to with lastest stock (somehow invisible/blocked in/by google (-playstore).
sort of "device not compatible" though I was running them with @Magendanz Nexus some weeks ago...
 
Last edited:

zyhk

Senior Member
May 9, 2020
134
45
@eremitein , I'm writing a "/data/adb/phh/run" script to execute a magisk module of mine on a device on which magisk cannot be installed (MTK Oreo vendor). I'm happy if you consider to move the invocation of the run script to the early boot stage before starting services.

My run script is as follows,

Bash:
#!/system/bin/sh
#

MODDIR=${0%/*}
MODNAME="hifi-maximizer-mod"

# Check whether this module exits and has been marked "remove" or "disable", or not
  if [ ! -d "$MODDIR/$MODNAME" ]; then
    exit 0
  elif [ -e "$MODDIR/$MODNAME/remove" ] ; then
#    Execute "uninstall.sh" of the magisk module, and then mark "disable"
    sh "$MODDIR/$MODNAME/uninstall.sh"
    rm -f "$MODDIR/$MODNAME/remove"
    touch "$MODDIR/$MODNAME/disable"
    exit 0
  elif [ -e "$MODDIR/$MODNAME/disable" ] ; then
    exit 0
  fi

# Replacement for "post-fs-data.sh" of the magisk module
#      Note: if "stopDRC" is commented out, the $dummyConfigXML itself will overlay the original stock one.

  . "$MODDIR/$MODNAME/functions.sh"
  configXML="audio_policy_configuration.xml"
  mirrorConfigXML="/system/vendor/etc/$configXML"
  dummyConfigXML="$MODDIR/$MODNAME/system/vendor/etc/$configXML"

  stopDRC "$mirrorConfigXML" "$dummyConfigXML"

# End of this replacement

# Set properties for "system.prop" of the magisk module
  OldIFS="$IFS"
  IFS="="
  while read -s name val || [ -n "$name"  -a  -n "$val" ]; do
    resetprop_phh "$name" "$val"
  done <"$MODDIR/$MODNAME/system.prop"
  IFS="$OldIFS"
# End of set properties

# Overlay system files specified by "$REPLACE" of the magisk module
  if [ ! -e "$MODDIR/$MODNAME/skip_mount" ]; then
    . "$MODDIR/$MODNAME/customize.sh"

    for f in $REPLACE; do
      if [ -r "$MODDIR/$MODNAME$f"  -a  -r "$f" ]; then
        chmod 644 "$MODDIR/$MODNAME$f"
        mount -o bind "$MODDIR/$MODNAME$f" "$f"
      fi
    done
  fi
# End of overlay system files

# Execute "service.sh" of the magisk module
  sh "$MODDIR/$MODNAME/service.sh"
# End of execute "service.sh"

# Resolving compatibility issues of the magisk module
#   restart audioserver for reloading audio configuration files
#   waiting audioserver's booting in an orphan process unitl 60+10*10 secs
  function reloadAudioServer() {
    sleep 60
    for i in `seq 1 10` ; do
      if [ "`getprop init.svc.audioserver`" = "running" ]; then
        setprop ctl.restart audioserver
        break
      fi
      sleep 10
    done
  }

   ((reloadAudioServer 0<&- &>"/dev/null" &) &)
# End of resolving compatibility issues
 

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
@eremitein , I'm writing a "/data/adb/phh/run" script to execute a magisk module of mine on a device on which magisk cannot be installed (MTK Oreo vendor). I'm happy if you consider to move the invocation of the run script to the early boot stage before starting services.

My run script is as follows,

Bash:
#!/system/bin/sh
#

MODDIR=${0%/*}
MODNAME="hifi-maximizer-mod"

# Check whether this module exits and has been marked "remove" or "disable", or not
  if [ ! -d "$MODDIR/$MODNAME" ]; then
    exit 0
  elif [ -e "$MODDIR/$MODNAME/remove" ] ; then
#    Execute "uninstall.sh" of the magisk module, and then mark "disable"
    sh "$MODDIR/$MODNAME/uninstall.sh"
    rm -f "$MODDIR/$MODNAME/remove"
    touch "$MODDIR/$MODNAME/disable"
    exit 0
  elif [ -e "$MODDIR/$MODNAME/disable" ] ; then
    exit 0
  fi

# Replacement for "post-fs-data.sh" of the magisk module
#      Note: if "stopDRC" is commented out, the $dummyConfigXML itself will overlay the original stock one.

  . "$MODDIR/$MODNAME/functions.sh"
  configXML="audio_policy_configuration.xml"
  mirrorConfigXML="/system/vendor/etc/$configXML"
  dummyConfigXML="$MODDIR/$MODNAME/system/vendor/etc/$configXML"

  stopDRC "$mirrorConfigXML" "$dummyConfigXML"

# End of this replacement

# Set properties for "system.prop" of the magisk module
  OldIFS="$IFS"
  IFS="="
  while read -s name val || [ -n "$name"  -a  -n "$val" ]; do
    resetprop_phh "$name" "$val"
  done <"$MODDIR/$MODNAME/system.prop"
  IFS="$OldIFS"
# End of set properties

# Overlay system files specified by "$REPLACE" of the magisk module
  if [ ! -e "$MODDIR/$MODNAME/skip_mount" ]; then
    . "$MODDIR/$MODNAME/customize.sh"

    for f in $REPLACE; do
      if [ -r "$MODDIR/$MODNAME$f"  -a  -r "$f" ]; then
        chmod 644 "$MODDIR/$MODNAME$f"
        mount -o bind "$MODDIR/$MODNAME$f" "$f"
      fi
    done
  fi
# End of overlay system files

# Execute "service.sh" of the magisk module
  sh "$MODDIR/$MODNAME/service.sh"
# End of execute "service.sh"

# Resolving compatibility issues of the magisk module
#   restart audioserver for reloading audio configuration files
#   waiting audioserver's booting in an orphan process unitl 60+10*10 secs
  function reloadAudioServer() {
    sleep 60
    for i in `seq 1 10` ; do
      if [ "`getprop init.svc.audioserver`" = "running" ]; then
        setprop ctl.restart audioserver
        break
      fi
      sleep 10
    done
  }

   ((reloadAudioServer 0<&- &>"/dev/null" &) &)
# End of resolving compatibility issues
i can give only point, you need adapt magisk module for direct running
or find a non-magisk variant, for sample i know ViperFX can works without magisk and even in enforced mode - need install Viper zip via TWRP and add some selinux rules
 

zyhk

Senior Member
May 9, 2020
134
45
i can give only point, you need adapt magisk module for direct running
or find a non-magisk variant, for sample i know ViperFX can works without magisk and even in enforced mode - need install Viper zip via TWRP and add some selinux rules
Thanks for your reply. My run script has already been running with a little bit uncertainty (audioserver doesn't always reload well and has a lag to be usable) without modifying my magisk module itself. So if I need the invocation of my script before staring other services, I should insert an invocation script into "vndk.rc" myself?
 

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
Thanks for your reply. My run script has already been running with a little bit uncertainty (audioserver doesn't always reload well and has a lag to be usable) without modifying my magisk module itself. So if I need the invocation of my script before staring other services, I should insert an invocation script into "vndk.rc" myself?
you can try, but as i described early, i know only method when used non-root zip for twrp + direct apk installation and then added selinux rules for making ViperFX works in enforced mode
 
  • Like
Reactions: zyhk

eremitein

Senior Member
May 16, 2017
1,108
1,396
Xiaomi Mi A2 Lite
Hi folks, as you maybe know all my GSI works suspended
Build server damaged and now for maintenance, I haven't information about his further fate
So... I don't know when I can resume my GSI building

By the way, this is not my server, literally I can't do anything to help
I can't even send money, my country is not supported in many payment systems

If you want to help, you can send donations to https://www.paypal.com/paypalme/electrikjesus
(he is the owner of the server, and he long gives me his server - I made a lot of GSI builds on it)
 
  • Like
Reactions: Balsamderaersche

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    CAOS v313 2021.09.11
    download /// changelog
    1
    I've already known this. For example, I'm making a root script USB SampleRate Changer (on the fly) using these dumpsys commands internally. It doesn't use magisk specific functions, but works only under magisk environment. I don't like using "setenforce" commands in it invisibly.
    if you want proper fix then you need ask phhusson, i guess need add specific selinux rule
    1
    This new revision ( caos-v313-210911 ) runs fine on NFC pay and Google Pay. They are OK.
    Also, SafetyNet in Magisk is fully green !!!!!!!!!!!

    My Blackview BV9600 is working better.

    Congratulations. ;)(y)
  • 20
    C A O S 11


    < Your warranty is now void! >
    We're not responsible for bricked devices, dead SD cards,
    thermonuclear war, or you getting fired because the alarm app failed. Please
    do some research if you have any concerns about features included in this ROM
    before flashing it! YOU are choosing to make these modifications, and if
    you point the finger at us for messing up your device, we will laugh at you


    CAOS 11 (Custom AOSP OS) is a project which based on @phhusson's Treble GSI AOSP 11. I began it because original project have not only pros (stability, speed, support) but also some issues and limitations - pure AOSP code have some bugs / haven't much useful things and it's a hard way pulling it. So i did this fork. System can run with SELinux enforced state, as an original Phh AOSP GSI. Fully compatible with PHH-Treble patches. Has dynamic root which can be activated/deactivated without reboot - 'su' binary and SuperUser app (can works on all devices even with system read-only). Also has dynamic SafetyNet helper (but it compatible not with all devices), users have four ways to pass SafetyNet: a. just enable SafetyNet option (recommended) b. disable SafetyNet and enable "Spoof Pixel 5" then reboot c. enable both options and reboot d. mount system as RW and create empty file /system/phh/secure (legacy method), and in the Recovery do Wipe Data or Factory reset

    UPDATE VERSION
    latest build:
    2021.09.11
    treble patches: v313
    SPL: 5 Sep 2021

    FEATURES/CHANGES
    see Project page changelog

    DOWNLOAD (CL1CK HERE)
    vanilla, gapps, go-gapps: all possible architectures

    NAMING
    Some information you should know about knowing what type of gsi it is

    <ARCH>_xyZ

    <ARCH>
    can either be arm, a64 (arm32_binder64) or arm64
    x
    can either be a or b
    y
    can either be v, o, g or f
    Z
    can be N or S

    b
    = a/b
    a = a-only

    g = gapps
    o = gapps-go
    v = vanilla (no gapps included)
    f = floss (free & open source apps instead gapps)

    N = no superuser
    S = superuser included
    Z = dynamic superuser included

    -lite = for VNDK Lite vendors (also can help with broken camera even on normal VNDK vendors)

    so in most common example "arm64_avZ" is ARM64 A-only vanilla with dynamic superuser

    CONTACTS
    > telegram group
    > project page

    KN0WN BUGS
    • excluding fixes, the same as on AOSP Roar (in some cases doesn't work: broadcasting on TV, calls via BT; offline charging does not work normally etc etc)
    NOTE: always test ROM first without Magisk (with clean boot ramdisk). and don't send me bug reports if you have:
    a) Magisk installed
    b) modified/custom vendor or kernel
    c) dirty flashing rom without wiping data
    d) modified props values (another device fingerprint and so on)


    CREDITS
    persons: @phhusson
    projects: TrebleGSI • BlissROMs • crDroid • PixelExperience • ION • neon-OS • Havoc-OS • LineageOS • Evolution-X • LiquidRemix • ExtendedUI • GrapheneOS • ABC Rom • SyberiaOS
    5
    CAOS v313 2021.09.11
    download /// changelog
    5
    CAOS v312 2021.08.15
    download /// changelog
    4
    CAOS v308 2021.05.27
    download /// changelog