Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

Addon.d script for Xposed to survive CM13 dirtyFlashes!! thnx to @adlx.xda

472 posts
Thanks Meter: 231
 
Post Reply Email Thread
/system/addon.d/ is a folder in CM ROMs where the user (and sometimes apps) can put scripts that will be run when you flash a new version of the ROM.

Tipically those scripts are used to backup system apps, and their files, so that they can survive a format and reFlash.

For example, this is how you would keep SuperSU (root), Avast Agent,...

I made the script below so that @rovo89's Xposed for Marshmallow will survive (that is keep it installed) when I flash a new CM13 nightly.

Tested on my phone #MotoG #Falcon (32bits), just flashed latest CM13 nightly, wiped cache and dalvik-cache and the phone rebooted fine (and Xposed was still working). Tested on latest TWRP might not work with other recovery.

Warning: It's for Xposed for Marsshmallow only. It work as of today. It might not work later with new future versions of Xposed. Also not sure it would work for 64bits.

If you use superSu or you have root permitions, you can put this file under "/system/addon.d" and give it the right permitions as the other files in the folder:
81-Xposed.sh

Or just flash the zip attached!!

Haven't tested it on 64bit but It should work, please try and report back!!

this was possible thanks to @adlx.xda so just go over his thread and grab him a beer!! Thank him as well!!

👍👍Thank me if you appreciate👍👍
Attached Files
File Type: zip 81-Xposed-update-signed.zip - [Click for QR Code] (125.3 KB, 4736 views)
The Following 69 Users Say Thank You to objr For This Useful Post: [ View ] Gift objr Ad-Free
 
 
11th December 2015, 12:25 PM |#2  
reemar's Avatar
Senior Member
Thanks Meter: 230
 
Donate to Me
More
It works!
Good work man, install nightlie and xposed still there..
Niceee
The Following User Says Thank You to reemar For This Useful Post: [ View ] Gift reemar Ad-Free
11th December 2015, 12:42 PM |#3  
objr's Avatar
OP Senior Member
Flag Italy
Thanks Meter: 231
 
Donate to Me
More
Quote:
Originally Posted by reemar

It works!
Good work man, install nightlie and xposed still there..
Niceee

I would like to know your device model and if it is a 64bit!!! Can you provide me this infos?
11th December 2015, 01:52 PM |#4  
Senior Member
Thanks Meter: 40
 
More
Worked for me on lg g3 verizon

Sent from my LG-VS985 using Tapatalk
The Following User Says Thank You to dcooterfrog For This Useful Post: [ View ] Gift dcooterfrog Ad-Free
11th December 2015, 02:50 PM |#5  
reemar's Avatar
Senior Member
Thanks Meter: 230
 
Donate to Me
More
Quote:
Originally Posted by dcooterfrog

Worked for me on lg g3 verizon

Sent from my LG-VS985 using Tapatalk

No, its g2 by lg...

I want to quote the message that up from you..
11th December 2015, 03:08 PM |#6  
marsaltito's Avatar
Senior Member
Thanks Meter: 43
 
More
Just tested it on Flo (Nexus 7 2013) and it works , next time i will try without cleaning cache .
13th December 2015, 07:51 PM |#7  
.MoHaMaD's Avatar
Senior Member
Thanks Meter: 999
 
Donate to Me
More
Just add

bin/app_process32
bin/app_process64

The script@adlx.xda
worked my rom

Code:
. /tmp/backuptool.functions

list_files() {
cat <<EOF
bin/app_process32
bin/app_process32_xposed
bin/dex2oat
bin/oatdump
bin/patchoat
framework/XposedBridge.jar
lib/libart-compiler.so
lib/libart-disassembler.so
lib/libart.so
lib/libsigchain.so
lib/libxposed_art.so
xposed.prop
EOF
}

case "$1" in
  backup)
    echo "STARTING TO BACKUP XPOSED"
    list_files | while read FILE DUMMY; do
      echo backup_file $S/"$FILE"
      backup_file $S/"$FILE"
    done
    ls -al /tmp
    echo "ENDING TO BACKUP XPOSED"
  ;;
  restore)
    echo "STARTING TO RESTORE XPOSED"
    list_files | while read FILE REPLACEMENT; do
      R=""
      [ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
      [ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
      echo $S/$FILE $( ls -alZ $S/$FILE )
    done
    echo "ENDING TO RESTORE XPOSED"
  ;;
  pre-backup)
    # Stub
  ;;
  post-backup)
    # Stub
  ;;
  pre-restore)
    # Stub
  ;;
  post-restore)
echo "STARTING POST-RESTORE XPOSED"
# /system/bin/app_process32
chmod 0755 /system/bin/app_process32
chown root:shell /system/bin/app_process32
chcon u:object_r:zygote_exec:s0 /system/bin/app_process32
# /system/bin/app_process
chmod 0755 /system/bin/app_process32_xposed
chown root:shell /system/bin/app_process32_xposed
chcon u:object_r:zygote_exec:s0 /system/bin/app_process32_xposed
# /system/bin/dex2oat
chmod 0755 /system/bin/dex2oat
chown root:shell /system/bin/dex2oat
chcon u:object_r:dex2oat_exec:s0 /system/bin/dex2oat
# /system/bin/oatdump
chmod 0755 /system/bin/oatdump
chown root:shell /system/bin/oatdump
chcon u:object_r:system_file:s0 /system/bin/oatdump
# /system/bin/patchoat
chmod 0755 /system/bin/patchoat
chown root:shell /system/bin/patchoat
chcon u:object_r:dex2oat_exec:s0 /system/bin/patchoat
# /system/framework/XposedBridge.jar
chmod 0644 /system/framework/XposedBridge.jar
chown root:root /system/framework/XposedBridge.jar
chcon u:object_r:system_file:s0 /system/framework/XposedBridge.jar
# /system/lib/libart-compiler.so
chmod 0644 /system/lib/libart-compiler.so
chown root:root /system/lib/libart-compiler.so
chcon u:object_r:system_file:s0 /system/lib/libart-compiler.so
# /system/lib/libart-disassembler.so
chmod 0644 /system/lib/libart-disassembler.so
chown root:root /system/lib/libart-disassembler.so
chcon u:object_r:system_file:s0 /system/lib/libart-disassembler.so
# /system/lib/libart.so
chmod 0644 /system/lib/libart.so
chown root:root /system/lib/libart.so
chcon u:object_r:system_file:s0 /system/lib/libart.so
# /system/lib/libsigchain.so
chmod 0644 /system/lib/libsigchain.so
chown root:root /system/lib/libsigchain.so
chcon u:object_r:system_file:s0 /system/lib/libsigchain.so
# /system/lib/libxposed_art.so
chmod 0644 /system/lib/libxposed_art.so
chown root:root /system/lib/libxposed_art.so
chcon u:object_r:system_file:s0 /system/lib/libxposed_art.so
# /system/xposed.prop
chmod 0644 /system/xposed.prop
chown root:root /system/xposed.prop
chcon u:object_r:system_file:s0 /system/xposed.prop
echo "DONE POST-RESTORE XPOSED"
  ;;
esac
The Following User Says Thank You to .MoHaMaD For This Useful Post: [ View ] Gift .MoHaMaD Ad-Free
16th December 2015, 08:34 AM |#8  
Will_Xda's Avatar
Senior Member
Flag Leicester
Thanks Meter: 756
 
More
Worked for me on LG G3 D855 Shared with the AICP G+ page. Nice work
25th December 2015, 05:17 AM |#9  
rubenyai's Avatar
Member
Flag Caracas
Thanks Meter: 3
 
More
Works with v79 in moto g falcon , cm13
25th December 2015, 07:29 AM |#10  
baltics's Avatar
Senior Member
Thanks Meter: 1,182
 
More
Works with CM13 on i9300.

Sent from my GT-I9300 using Tapatalk
The Following User Says Thank You to baltics For This Useful Post: [ View ] Gift baltics Ad-Free
25th December 2015, 03:23 PM |#11  
marcdw's Avatar
Senior Member
Flag Baldwin Park
Thanks Meter: 1,886
 
More
Must say, works great with MoKee MM, v79, on G3 D851.

LG G3 D851, MoKee Open Source MM ROM, Tapatalk 4.9.5
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes