yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] mionica:
No, only a fix in Xposed can prevent that. You can't close another process' files - if that were possible, I'd have solved it already :)

Btw, if you disabled init.d support, you should get bootloops, IMO... ;)

This is as good as it's going to get without the Xposed guys fixing the leak.

---------- Post added at 06:45 PM ---------- Previous post was at 06:44 PM ----------

@baha76_s

leakplug 1.2 is up - install it and give yourself a call :)

if it doesn't, try to get rid of the system tuner pro things and tell me if that helps :)

also,

IMO, there isn't a chance in hell of SimLocking your phone by flashing a custom operator's firmware. This isn't the iPhone FFS.

As for the "Customized CH" :D If you don't know how to create your own firmware update zip's from any version, PM me and I'll give you a crash course :)

Ummm, no. Not since xposed-sonyfix-v3.0.zip - but rather, since you installed XZDR 2.8.14 over (I presume) 2.8.12 :p
[Sony Cross-Device General] juancaretta:
Xperia Z3 D6603, running 23.1.A.0.726 pre-rooted, installed the newer fixes. No reboots after calls or messages, I'll keep testing for random reboots. Logs are attached.
[Sony Cross-Device General] infinitylook:
Thanks for the fast reply. I tried disabling init.D support in the xzdr.prop by setting value to false from true. It results in bootloops with no access to recovery. Fortunately I was able to undo it by inserting my SDCARD on pc and change again the value to true. Any idea why it causes bootloops? Or should I not disable it? They mentioned it here disabling also init.D support may help
[Sony Cross-Device General] mionica:
Yes, I do have an idea what's causing the bootloops. It's Xposed :D - that's why I made this fix in the first place.

Here's the trick. My script (xposed-leakplug 1.2, currently) is an init.d script, and it's the one thing preventing the bootloop. If you disable init.d support, my script can't run, so the system does what it normally would with the current Xposed version - bootloop.

It's perfectly fine to disable init.d - but please remove Xposed first ;)
[Sony Cross-Device General] infinitylook:
Now i get it. Thanks they should have mentioned that Anyway thanks. Hope that this would really be sort out. The leakplug version is the same with the workaround.zip you made except for the debugging ability right? Won't be upgrading to it. I think it's as stable as it gets. Thanks
[Sony Cross-Device General] mionica:
If your XZDR is < 2.8.14, I strongly recommend to upgrade to leakplug 1.2. Because your phone will become instantly unstable once you upgrade XZDR if you don't. And it's probably a better idea to do a small upgrade (leakplug) than not to do a big one (XZDR). But it's your choice :)

Oh btw. When upgrading, please follow the procedure described in the release post...

Caveat: I have no intention of providing any support to people who aren't on the latest version. So if you don't want to upgrade, make sure you have no problems, and you never will ;)
[Sony Cross-Device General] baha76_s:
hi,

i installed the new leakplug 1.2.zip since about 20 min, don't have reboot, i did call and use message but no reboot (but i prefer continue observing some more time because as i know the device need some more time after reboot to accumulate the active resources to be exhausted).

and for the simlocking by flashing, no i didn't means that, i'm not a beginer, but i answered your question about the disposable swiss firmware, and i said i have unlocked (non simlocked) phone with Customized CH firmware :D:D.

and for the creating the update zip, as i told you i have a long experiance about phone flashing and rom customization from the era of HTC one X+, i know how to create update.zip and even modified the "META-INF" and the "updater-script" to be compatible with any phone :p ( i said that because most of android users asked me for a problem in flashable.zip a cause of some error in updater-script line or in mounting/remounting lines).

thanks

Note: by the way, now i can confirm that there is no more double entry in the flimit.log
[Sony Cross-Device General] kamalaggi:
Hi,

I installed this patch but everytime I reboot I get the screen where android is upgrading and it starts optimizing 14 apps. Anyone know how to fix this?

Thanks
[Sony Cross-Device General] mionica:
See this post - the find /system/... -name \*.apk bit
[Sony Cross-Device General] nzzane:
Help :P

Hi, I have done everything you said to do and my device boots up to the "Powered by android" screen then restarts and just keeps looping from there

Logs are attached
[Sony Cross-Device General] hassanmahmood:
I followed the steps, but when I tried installing leak plug 1.2 I was met with an error in Philz.

It said FAILED, and sure enough, when I installed the apk and activated a single module, I got stuck in a boot loop and had to run the uninstall zip.

I also found after running the four zips, my phone no longer vibrates when I power it on.
[Sony Cross-Device General] mionica:
Very interesting. You're having bootloops because my script didn't succed in installing - see install_leakplug.log:

...
Installing flimit tool...
Installing init.d script...
[b][color=red]> FAILED[/color][/b]
All done.

This is interesting. So first, wipe dalvik cache from twrp, then reboot (it will work - ONCE), then let me know 1) whether you have a file or folder in /system/etc named init.d, 2) what the permissions of that are, 3) if /system/etc/init.d is a folder, whether you have a file named 01_flimit in /system/etc/init.d, 4) if that file exists, what the permissions of that file are.

The easiest way to do that is to use an app called Total Commander; in it, go to "file system root", then system, etc. Look for a folder named 'init.d', and if you have one, long-press, properties,and you'll see the permissions (should be something like drwxr-xr-x).

If you don't have that folder, scroll down, see if you have a file.

Then report back :)

Oh btw, if you're more comfortable with a terminal / adb instead, just do a

ls -l /system/etc/init.d
ls -l /system/etc/init.d/01_flimit

and send back the results.

Can't help you mate. I asked specifically that you used TWRP, and you didn't. I don't test with PhilZ, and the "get into TWRP" (as opposed to, "get into recovery") was, I think, explicit enough
[Sony Cross-Device General] hassanmahmood:
Sorry, that was effing stupid of me.

I'm doing this whilst at work, but totally my bad.

I just had issues with TWRP the previous time and wasn't thinking.

I'll try again via TWRP.
[Sony Cross-Device General] kamalaggi:
All the permissions are fine. Any other ideas?

Is there anyway to find what 14 apps are optimising at startup.

Thanks
[Sony Cross-Device General] mionica:
I'll assume that "All the permissions are fine" means that you did run those lines - you can screw things up pretty nicely by, for instance, removing one of the 3 execute bits on, say, /system/app/YouTube/lib/arm, so that it's 754 instead of 755... and I refuse to believe that you looked manually at the permissions of every file and folder :)

It might happen - TB's "integrate update into ROM" does screw up that way occasionally.

None that I know of. I had a very similar problem (only one app though) - and despite combing the logcats like mad, I wasn't able to find out which app exactly was causing it. So I did a clean reflash of my D6633_23.1.1.E.0.1_CE1.zip (with integrated TWRP 2.8.14 and SSU 2.46), and it was gone.

One thing's for sure: it's something in /system. If it wasn't, the /system reflash wouldn't have workd.

That was inconvenient enough that I figured the permissions bit eventually :)
[Sony Cross-Device General] kamalaggi:
I did all those lines and also used root Explorer and made sure each folder is 0755 rwxr-xr-x and all files are 0644 rw-r--r--

Some folders do have missing odex files if this helps.
[Sony Cross-Device General] Pandemic:
oke thanks for that kinda info :)
[Sony Cross-Device General] McBane87:
Well for Xposed installtion the order is:

1. Flash xposed-arm-20150308.zip (Zip will wipe Dalvik-Cache on its own)

2. Reboot or flash my two files, then reboot

3. Install Xposed APK.

4. Reboot

If you get bootloops, try to flash my files again.
[Sony Cross-Device General] ondrejvaroscak:
Because this workaround works on very low Linux system level, you dont need to reinstall / wipe anything. Of course for sake of simplicity, I recommend either my script or [MENTION=4712883]McBane87[/MENTION] flashable BEFORE you install Xposed, so you dont have to do this after bootloop. Simply do it before and there will be no bootloop at all.

Anyway, there may be other culprits as for example the Opera problem solved by lowering open files limit to 2048. Need to try. Also, as we play with open file limits, there may be (even unlikely) a case, that if you will have again too much installed apps (around 1500-2000) you can get to bootloop again...
[Sony Cross-Device General] Pandemic:
[MENTION=6351145]ondrejvaroscak[/MENTION] and [MENTION=4712883]McBane87[/MENTION]

I flashed both of the zips and the XZDR.prop is not edited, we must do it manually ?
[Sony Cross-Device General] ilos:
[MENTION=2902434]Pandemic[/MENTION] yes do it manually

set on true this line

dr.initd.active=true

and add this line

dr.keep.byeselinux=true

[MENTION=6351145]ondrejvaroscak[/MENTION] Working great on my Z1, just to do

su
/etc/init.d/01_flimit

to set value before testing by

/data/flimit/flimit $(pgrep zygote)

coz when i test value after installing all necessary files , they're still the same untill i execute the init.d file :)
[Sony Cross-Device General] Pandemic:
thanks buddy :D
[Sony Cross-Device General] McBane87:
Sorry to hear that.

Did the Script found XZDR.prop?

It should say:

XZDR.prop Modification Successful

or

XZDR.prop Modification failed
[Sony Cross-Device General] hzmenxd:
thanks [MENTION=4712883]McBane87[/MENTION], and thanks [MENTION=6351145]ondrejvaroscak[/MENTION]. I got xposed working!

EDIT: full root lost
[Sony Cross-Device General] gsapient:
It worked! I could kiss you right now!!! :D

The first time I flashed the 2 zips (with phillz) immediately after xposed, without booting in between and it did not work. Then I flashed them again (with TWRP) and it worked!!!!

Thanx a billion!
[Sony Cross-Device General] lebartman:
I flashed the 2 zips and it worked.

Perfect

Thanx 2 billion!
[Sony Cross-Device General] ondrejvaroscak:
syntax of flimit is: flimit PID [softlimit hardlimit]

so if you run only flimit $(pgrep zygote) it will return only current limits without any change

flimit $(pgrep zygote) 2048 4096 will set limits for zygote process ($pgrep zygote returns PID) to 2048 soft and 4096 hard.

anyway it was only for testing if script and binary are executed..
[Sony Cross-Device General] hispanico957:
But if you install like first xposed-arm-20150308.zip and reboot dont you think taht i go in bootloop ??

Hispa
[Sony Cross-Device General] McBane87:
Well, the best solution is to flash this workaround first, but in the end it dosn't matter if you flash before, after or in the middle :)

Even if you getting bootloop, you will still be able to enter Recovery (TWRP/CWM) to correct that.

BTW:

On first boot xposed normally doesn't create any bootloops because Dalvik-Cache was cleared.
[Sony Cross-Device General] gsapient:
Is there an (easy) way, or a reason (?) to undo all that if and when xposed gets fixed?
[Sony Cross-Device General] McBane87:
Easy way to disable (delete Script only):

su
rm -f /system/etc/init.d/01_flimit

Full undo:

su
# Delete Files
rm -f /system/etc/init.d/01_flimit
rm -f /system/bin/flimit
rm -rf /data/flimit

# Modify XZDR.prop
sed -i '/dr.initd.active/d' /storage/sdcard1/XZDualRecovery/XZDR.prop
echo "dr.initd.active=false" >> /storage/sdcard1/XZDualRecovery/XZDR.prop
sed -i '/dr.keep.byeselinux/d' /storage/sdcard1/XZDualRecovery/XZDR.prop
echo "dr.keep.byeselinux=false" >> /storage/sdcard1/XZDualRecovery/XZDR.prop
[Sony Cross-Device General] hispanico957:
...and create a flashable zip also to disable ?? :cowboy::cowboy::cowboy:

Hispa
[Sony Cross-Device General] McBane87:
OK, OK.

Just gimme some time :)
[Sony Cross-Device General] ondrejvaroscak:
As long as you disable or remove the script, it is back to old limits.
[Sony Cross-Device General] hispanico957:
My personal procedure (with n. 483 system and apps installed):

1. Firmware 5.02 D5803_23.1.A.0.726 with Root e Recovery (2.8.12)

2. Enter in recovery

3. Flash file flash XZDR_Initd-Enabler.zip

4. Flash file flimit_flashable_4096.zip

5. Reboot (no wipes)

6. In Android reboot and enter in recovery

7. Flash file xposed-arm-20150308.zip e reboot (xposed make wipe-cache and Dalvik-Cache).

8. From Android install XposedInstaller_3.0-alpha2.apk, open it and select soft-reboot

9. After reboot install xposed module

.... and ALL IS OK :) :)

Hispanico
[Sony Cross-Device General] chesterr:
Thank you for this awesome finding brother. Gonna try on my Z2 and Tab Z2
[Sony Cross-Device General] juancaretta:
Quoting for context:

After a 25 minute call I tried reading a Whatsapp message and the phone rebooted. Still, it's much better than the older versions, where 2 or 3 updates would cause the phone to reboot.
[Sony Cross-Device General] nzzane:
I am pretty sure the installation failed because in the past I flashed the old flimit enable files - booted fine after i re-installed my rom and re-flashed these files

After installing Xposed app and restarting still boots fine

although when it wasn't working i still had an init.d folder and 01_flimit file inside that but I also had an init.d file inside /System/etc

1)I have a folder called init.d

2)permissions on it are rwxr-xr-x

3)01_flimit file

4)permissions on the flimit file are rwxr-xr-x

Thanks for your great work with this :D
[Sony Cross-Device General] joseangel.alv:
Next time, instead of a clean reflash, you can also try to restore the SELinux security labels context...

It should be done by TB but, who knows? :eek:

adb shell
su
export PATH=/system/xbin:$PATH
mount -o remount,rw /system
[COLOR="Red"]restorecon -v -R /system
restorecon -v -R /data[/COLOR]
find /system/app -type d -exec chmod 755 {} \;
find /system/app -type f -exec chmod 644 {} +
find /system/priv-app -type d -exec chmod 755 {} \;
find /system/priv-app -type f -exec chmod 644 {} +
find /data/app -type d -exec chmod 755 {} \;
find /data/app -type f -exec chmod 644 {} +
mount -o remount,ro /system

Sometimes, an additional '-F' option should be needed.

In our case, SELinux is expected to be in permissive mode, so the trick should not do anything especially useful...

But it doesn't hurt either. :laugh:
[Sony Cross-Device General] mionica:
Weird, that should've worked just fine.

Try the following, in TWRP:

get into TWRP

mount /system

go to advanced > terminal and select the /system/etc directory;

type the following:

chmod 777 init.d, enter;

chcon u:object_r:system_file:s0 init.d, enter;[/b]

rm init.d/*flimit*, enter;

if you got any error, say here;

if no error, flash just xposed-leakplug-v1.2.zip, nothing else;

see if it reports any errors and say here
[Sony Cross-Device General] hassanmahmood:
Seems like it's working! *touch wood*

I just wish I could get XPrivacy on lollipop.

Thanks so much for all your help, especially mionica
[Sony Cross-Device General] mionica:
No prob. Just keep in mind, it will occasionally restart - Xposed is still leaking handles, all I'm doing is allow it to leak as much as possible before going kaboom.

And as the healer of Arroyo once said, "may this be of no use!" as soon as possible :)
[Sony Cross-Device General] slinson:
May I ask where do I find this xposed-sdk21-arm-date.zip ?
[Sony Cross-Device General] Masoud.Ser:
go ahead:

http://xdaforums.com/showthread.php?t=3034811
[Sony Cross-Device General] e_mc_square:
Overlooked

:eek:...

I was overlooked... stupid me...
[Sony Cross-Device General] hassanmahmood:
Other than XPrivacy which I haven't tried, most/all the modules I've activated have not caused any trouble. Xposed Less Frequent Notifications doesn't seem to work on Lollipop.

And Gravity Box doesn't seem to have the option to switch from LTE to 3G. Also, Stamina no longer has location based Wi-Fi , which sucks.

I also don't remember how I set it up so that my Bluetooth headphones would have maximum volume automatically off the get go rather than three fourth, but I digress.

I also want to add, mionica, you're really f*****g smart? What do you do?
[Sony Cross-Device General] w. junior:
Thank you.

Worked on my D6633.
[Sony Cross-Device General] kientrongtran:
even when my phone (Z Ultra) is rebooting randomly seemingly for no reason whatsoever (i could be choosing wallpapers on QuickPic and it will restart) but at least I could 'basically' use xposed and all modules working beautifully without bootloops. After some days it becomes kinda annoying and disruptive, so I uninstalled xposed (the apk part) and decided I should wait for a new version from revo. Still, thanks for the fix, devs
[Sony Cross-Device General] mionica:
Uninstalling the apk isn't going to help - the cause is the framework (the .zip file). If you want to really get rid of the reboots, may I suggest you use xposed-uninstall-v1.1.zip instead?
[Sony Cross-Device General] kientrongtran:
No. Actually i just uninstalled the apk., all the xposed components and your fixes are still in the system, but I havent experienced any random reboots ever since
[Sony Cross-Device General] misterpingle:
I'm sorry mionica but I do not understand all these beta one behind the other creating confusion, for the files to use and also for Installation System. I appreciate the will give more support, but I think it's better to take one step at a time. I think it's best that you try the new release and only after having tried for a while to make available.? Just a tip

MrPingle
[Sony Cross-Device General] ondrejvaroscak:
sorry but it's development we need many people to try and test. if it's confusing then sorry and wait for stable release of Xposed.
[Sony Cross-Device General] Pandemic:
This is a way to install it and thanks to my bro [MENTION=1900966]ptmaniac[/MENTION] and works on Xperia Z2 on LP latest FW .726

Flash xposed-leakplug-v1.2

Reboot

Flash Xposed arm zip

Reboot (no need to wipe dalvik and cache, the updater script will do it)

Let the apps settle

Install XposedInstaller.apk and enable it

Reboot

Install Xperia Xposed v1.0 and enable it in Xposed installer under modules

Reboot

Done
[Sony Cross-Device General] infinitylook:
[MENTION=1103233]mionica[/MENTION] another question. During the time when we don't have this fix on xposed, we need to clear art and apps would reoptimize again right? Can we still go back to that if we Uninstall the fix? Or this will cause recovery not to load as well if we Uninstall the fix without removing xposed also? I also wonder why I wasn't experiencing any restarts with that despite I have a lot of apps at that time.
[Sony Cross-Device General] baha76_s:
Hi mionica,

As I promised to provide you with all logs as soon as possible after a forced reboot, so this is what I had:

Yesterday after installing your leakplug v1.2 package for a while, I had 3 reboots (only after calling or messaging), but the third reboot was very strange (it lead me to bootanimation then it block at the last frame of the animation, so I obliged to go to recovery to wipe cache to pass to system) anyway, I deleted (as you proposed) the 3 init.d scripts for system tuner pro (without deleting the App), and I took assurance that they will not recreate after reboot, and now I waiting (with heavy testing, calling and messaging) for any force reboot (it take time sorry, but till now there is nothing.

#.attached the logs after the 3rd reboot.

#.I confirm there is no more double entries in /tmp/flimit.log.

#.If I have another reboot I will uninstall the system tuner App (next step of testing) completly then retest the phone for some more time and see if it will change anything or no.

Thanks:good:
[Sony Cross-Device General] ogunja:
I resumed using Xposed but serajr Xposed and to date no reboot, yes I said so far.
[Sony Cross-Device General] mionica:
Some people just don't like to read - because if they did read, they wouldn't have to ask.

Please go away.
[Sony Cross-Device General] Pandemic:
[MENTION=1103233]mionica[/MENTION]

yes i know buddy and why we must go away and you acting in that kind of way ?

We try to help well at least me, how we can install it and not continues updating etc !
[Sony Cross-Device General] mionica:
See, here's the thing. If you provide "customized" instructions, that are different from mine, there's a chance people will follow those. Which is fine.

BUT. Once they do, when they ask me for support, I won't have any idea what state their phone is in; and when I won't be able to help, it is I who will take the blame, since, well, I'm the dev.

I guess you'll understand how I might not like that.

There's a saying I really like btw - the road to hell is paved with good intentions.
[Sony Cross-Device General] new_world_2006:
Thanks [MENTION=1103233]mionica[/MENTION]

After 15 tries , this method works for me like a magic

Finally wow
[Sony Cross-Device General] Pandemic:
Oke i see and kno what you mean and i totally agree with that, its just just awesome how you and the OP find a way to install Xposed and let it work, i am thankfull for that so my apologize for those kind steps howto install but that is just the way i installed it and works fine on my Z2 with LP FW .726

Peace
[Sony Cross-Device General] ogunja:
following his instructions, all working fine here, just not installed xposed-uninstall-v1.1.zip it had not Xposed working on some given device.

I want to thank from the heart Bro [MENTION=1103233]mionica[/MENTION] for their work, since there is no compensation and it is proposed to solve not just a problem, but diveras people at once.
[Sony Cross-Device General] Pandemic:
Bro [MENTION=4716941]ogunja[/MENTION]

You mean my instructions ?

Sorry but correct me if you mean another one ^^
[Sony Cross-Device General] ogunja:
Bro not...... Used [MENTION=1103233]mionica[/MENTION], just not installed Xposed-uninstall and follow the installation the way he quoted #123
[Sony Cross-Device General] Pandemic:
Aah oke is cool bro ^^
[Sony Cross-Device General] juanpirulo:
Sorry [MENTION=1103233]mionica[/MENTION]. Just trying to understand a Little about sh script i was looking at install_leakplug.sh and i dont know if this line in blue color is ok? shouldnt be comma after remount?

mount -o remount,rw $mp

T=1

fi

done

mount | grep /external_sd

if [ "$?" != "0" ]

then

log " mounting /external_sd..."

# the fstab version doesn't quite work

# (at least, not with exfat - try both)

mount $(blkid|grep fat|awk '{print "$3"}') /external_sd || \

mount /external_sd || \

log " > FAILED"

mount -o remount.rw /external_sd
[Sony Cross-Device General] ondrejvaroscak:
Yes...
[Sony Cross-Device General] mionica:
Nice catch :) You're obviously right, there should have been a comma there.

Now, that said, I'll leave it as-is unless I have a better reason to update the package - that bug is real, but it's harmless (/external_sd is mounted r/w by default - /system is probably the only partition for which you have to use the rw remount).

Btw, I should say this - I learned a lot of what I did there while I was doing it :D For instance, when I started, I had no idea things like pidof and pgrep existed at all. So there's a good chance you'll find other boo-boo's; do keep me posted (and, if possible, use PM - as this thread is about the fix, not about the shell scripts that implement it ;) )
[Sony Cross-Device General] slinson:
after doing all these steps:

install, in this order, without rebooting:

xposed-uninstall-v1.1.zip

xzdr-busybox-enable-v1.0.zip

xposed-sdk21-arm-date.zip

xposed-leakplug-v1.2.zip

I no longer see Xposed app on desktop, but plugins such as AdAway, Greenify just working fine.

Is this supposed to be like this? Or should I install Xposed3.0.apk again?