yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Android Development] AndroPlus:
I added patch for auo panel from unified kernel in v28a (experimental version).

https://github.com/WedyDQ10/android...mmit/d9ae8245ca2d31aced5eece34b1cc2b188a89681

If you have auo panel, please check if it works.
[Xperia Z3 Compact Android Development] :
I flashed this kernel "28a" but the phone no boot. I don't know what is happening. Oo

Now I have to flash the rom old stock, to the root and then install recovery.

The strange thing is that the same thing happened with the CM12, when I went to install the kernel to be able to install the rom.

What I do is: install the old rom stock with the exploit to root, then do the root, then install the recovery and then install the current rom stock already integrated root and recovery.

I followed the installation procedure normally, but it happens. I honestly do not know what the hell's going on with my device. :mad:
[Xperia Z3 Compact Android Development] someone755:
1st: Is your bootloader unlocked?

2nd: You don't need to flash the entire stock FTF all over again if flashing a kernel fails -- just flash the stock kernel, and even if it doesn't work it'll provide you (and us) information on what is happening and why.

3rd: You make it seem like you need root to install a custom kernel, but that is not the case, and I do hope that you know this (and that it was only your choice of words that was off, not your way of thinking). Unlock the bootloader, then flash a custom kernel, no steps needed in between that.
[Xperia Z3 Compact Android Development] Hackpb:
Have you unlocked your bootloader? If not there is the problem...
[Xperia Z3 Compact Android Development] :
I had forgotten to unlock the bootloader. :silly:

Thanks for reminding me of that. ;)
[Xperia Z3 Compact Android Development] PantsDownJedi:
After initially, as I've lost my DRM keys, following the steps to apply the patch, is it a problem to simply upgrade your kernel as you release new versions; if I've done the DRM patch correctly once with version 20, as an example, and I want to upgrade to the current version, can I just simply upgrade without having to worry about applying the patch again and losing my data?
[Xperia Z3 Compact Android Development] AndroPlus:
Yes, you can upgrade kernel without flashing patch.

You'll need patch if you flash new ROM or wiped data.
[Xperia Z3 Compact Android Development] wind0zer:
Flashed v29 to test. Recovery is updated. I can't flash UKM_v3.8.1AndroPlus.zip. There's an error. I've attached the recovery log.

View attachment recovery.log
[Xperia Z3 Compact Android Development] AndroPlus:
mount: mounting /dev/block/mmcblk0p25 on /data failed: Device or resource busy

This is the cause of problem.

Please try this v29a (reverted to old TWRP)to see if the problem is from 2.8.5.0 or not.
[Xperia Z3 Compact Android Development] wind0zer:
Same error while flashing the zip after v29a.
[Xperia Z3 Compact Android Development] AndroPlus:
Can you try unmount/remount /data before flashing?
[Xperia Z3 Compact Android Development] meisanerd:
Does UKM_v3.8.1AndroPlus.zip require a specific AndroPlus kernel version? I am still on v26 (haven't had the time to update yet), and would be willing to try to see if the process works on mine, just to eliminate the possibility of the TWRP update+downgrade process breaking it.
[Xperia Z3 Compact Android Development] wind0zer:
I tried remounting data partition, but no use. I even tried going back to kernel v21d.
[Xperia Z3 Compact Android Development] someone755:
Is that only the integrated recovery or does the FOTA recovery also do that?
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

I'm Using V29

Really Very Good Kernel

No Issues Now >> Even Sound Control Inside Synapse Is Working Like A Charm !

Alucard HotPlug Is So Good & Really Helpful !

I Got 52K In Antutu After Some Modifications With V29 >> Specially With Alucard HotPlug ;)

Thanks For Your great Work :)
[Xperia Z3 Compact Android Development] AndroPlus:
No, all version should support installing it.

hmm... are you using SD card?

If so, please try pull SD card.

Sometimes SD card causes strange problem.
[Xperia Z3 Compact Android Development] HIcycles:
Out of curiosity, what rom are you using? I flashed 29 and the ukm mod, and I soft bricked my phone. Had to restore old backup... I'm on Rectify.
[Xperia Z3 Compact Android Development] meisanerd:
Yah, just tested it, and it flashes fine on AndroPlus v25 and v28.

I flashed the file from internal memory, but I do have an SD card in the phone, and that didn't seem to cause any issues. Are you storing the UKM zip on internal or the sd card? Maybe that is the issue...
[Xperia Z3 Compact Android Development] AndroPlus:
Actually I put UKM zip in sd card.

I don't know why it sometimes causes problem...
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

I'm Using Stock Deodexed KK 4.4.4 FW 23.0.1.A.5.77

I Uninstalled Some System App Too :D

Device Is Really So Fast >> Better Than My Brother Note 4 :D

P.S. >> No Problem At ALL Flashing UKM & Using Synapse

I'm Using V29
[Xperia Z3 Compact Android Development] HIcycles:
Thanks. Had to flash via flashtool...
[Xperia Z3 Compact Android Development] :
After the procedure to restore the drm keys, I can flash another ROM, kernel and continue with intact keys? Or do I have to redo it again? :confused:
[Xperia Z3 Compact Android Development] someone755:
If you look at the zip that restores your DRM functions (it doesn't actually restore your keys!!), you'll see that many files in there are flashed to the system partition. If you wipe that partition or overwrite it (with, say, flashing a different ROM), you'll lose them.
[Xperia Z3 Compact Android Development] boilavera1980:
Alucard gouverner doesn't show up in synapse on v30. Anyone can confirm?
[Xperia Z3 Compact Android Development] sessingø:
This is by far the best kernel for the Xperia Z3 Compact. I really enjoy the new Lollipop update, unfortunately AndroPlusKernel is not yet available for Lollipop - so i'm currently without root and most importantly the sound-boost functionality :(

What are the status on porting it to lollipop? Will it be possible to port an experimental release, because i'm not sure if it's worth downgrading just to get the benifits of root and sound.

Thanks and much love and support from Denmark, it's great to see how long AndroPlusKernel has come since I started using it on version 1!
[Xperia Z3 Compact Android Development] someone755:
You can root. Flash via fastboot, then flash SuperSU through TWRP. When you're done, flash back the stock kernel. Cha-ching, root on stock Lollipop.

I'm nitpicking here but you don't port a kernel. AndroPlus has to take the stock Lollipop kernel source, make it compile (this is a chore on its own), then cherry-pick the commits that give the kernel its features (which is a huge hassle). Or (a smarter way), only upload the changes from Lollipop to the already working KitKat tree.
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

Can You Start Porting Your Great kernel To Lollipop ??
[Xperia Z3 Compact Android Development] someone755:
If you want to go on an adventure, you can try taking the existing AndroPlus zImage and pack it into a boot image with the Lollipop ramdisk. Should work just fine.

Check this though: http://developer.sonymobile.com/downloads/all-android/ and this: https://github.com/sonyxperiadev/kernel-copyleft . I'd say AndroPlus is waiting for the 23.1.A.0.690 archive to become available. I don't know how fast these kernel sources pop up but Sony is said to be fast with them.
[Xperia Z3 Compact Android Development] AndroPlus:
Uploaded ADV_stock_LP.zip, it should work...
[Xperia Z3 Compact Android Development] lamducthien:
Bootlop, the screen isn't show but when touching it vibrate
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

So What Is The Features Of " Z3C ADV Stock LP " ?? Just Stock Kernel With Working Recovery ??

Anyone Can Confirm If It Is Working ??
[Xperia Z3 Compact Android Development] lamducthien:
No, it doesn't work
[Xperia Z3 Compact Android Development] ilbefun:
Z3C_ADV_stock_LP.zip

what is this for?
[Xperia Z3 Compact Android Development] spida_singh:
Z3C_ADV_stock_LP.zip will not boot, will try and grab some logs, just get a blank screen, doesn't go any further than that.
[Xperia Z3 Compact Android Development] AndroPlus:
I pushed ADV_stock_LP_v2.

I recreated with Z3C kernel.

Maybe I forgot to use Z3C kernel when I created v1, sorry...

For Xposed bootloop, please make test module if someone can do it.

https://github.com/rovo89/Xposed/issues/31#issuecomment-84591276
[Xperia Z3 Compact Android Development] lamducthien:
Now the kernel is working ( recovery too), I will try some xpose Lollipop, hating the big navigation bar
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

Great Job :good::good::good::good::good:
[Xperia Z3 Compact Android Development] Infy_AsiX:
I had the same error and compared the updater_script to my file system to find i had to delete the file /system/etc/init.d as the zip puts a folder there instead
[Xperia Z3 Compact Android Development] spida_singh:
Anyone else having THIS issue?
[Xperia Z3 Compact Android Development] veimus:
I just testing that, i give feedback in few minutes...

EDIT1: i put Z3C_ADV_stock_LP_v2.zip in my extSD, and also unpack boot.img on pc, flashed kernel using Flashtool, recovery was working, for testing i flashed again Z3C_ADV_stock_LP_v2.zip in TWRP and reboot to system, recovery still is working, i make nandroid backup and after it was ok did reboot, boot was OK, no problem here, now I just try restore that backup :)

EDIT2: restore nandroid backup is working well, no problem for me, great job [MENTION=5169444]AndroPlus[/MENTION] :)
[Xperia Z3 Compact Android Development] hispanico957:
...uhmm i think taht this kernel and recovery are indicated for Z3C with unblocked bootloader ??

But is this is true if it possible flash first time from recovery and so if we have already Lollipop if not possible

Hispa
[Xperia Z3 Compact Android Development] veimus:
Yes
[Xperia Z3 Compact Android Development] boilavera1980:
I get completely wrong battery percentage readings on the LP kernel...
[Xperia Z3 Compact Android Development] serajr:
Bro... just read rovo's words and here is a test module based on his comments!

I'm on locked bootloader yet, so I can't test it, but if someone dares!!

Output log can be filtered out with Z3_Lollipop_Xposed_ActivityManagerNative verbose tag.

For the techies here, the module source code (Xposed.java) is:

package serajr.test.module;

import android.app.ActivityManagerNative;
import android.app.IActivityManager;
import android.util.Log;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;

public class Xposed implements IXposedHookLoadPackage {

private static String ANDROID_PACKAGE_NAME = "android";
private static String LOG = "Z3_Lollipop_Xposed_ActivityManagerNative";

@Override
public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {

if (lpparam.packageName.equals(ANDROID_PACKAGE_NAME)) {

XposedHelpers.findAndHookMethod(ActivityManagerNative.class, "getDefault", new XC_MethodHook() {

@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {

if (param.getResult() != null) {

// try casting IActivityManager
IActivityManager am = (IActivityManager) param.getResult();
Log.v(LOG, "method: getDefault | IActivityManager cast: " + am + " | success: IActivityManager is not null !!!");

} else {

Log.v(LOG, "method: getDefault | failed: IActivityManager is null !!!");

}
}
});

XposedHelpers.findAndHookMethod(ActivityManagerNative.class, "gDefault", new XC_MethodHook() {

@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {

if (param.getResult() != null) {

// try casting IActivityManager
IActivityManager am = (IActivityManager) param.getResult();
Log.v(LOG, "method: gDefault | IActivityManager cast: " + am + " | success: IActivityManager is not null !!!");

} else {

Log.v(LOG, "method: gDefault | failed: IActivityManager is null !!!");

}
}
});
}
}
}
[Xperia Z3 Compact Android Development] ulysse34:
I just flashed Z3C_ADV_stock_LP_v2 through Flashtool and then flashed Xposed from recovery (unlocked BL)

System did boot ok

What is your test module intended for?
[Xperia Z3 Compact Android Development] serajr:
Read above github's link!
[Xperia Z3 Compact Android Development] ulysse34:
So it's supposed fix the bootloop.

Well, it actually seems to do so as I rebooted twice now and everything apperas to be fine :)
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

Xposed Is Working Fine here
[Xperia Z3 Compact Android Development] Michealtbh:
Is this for debugging purposes or does this module fix the bootloop?
[Xperia Z3 Compact Android Development] AndroPlus:
Thank you very much!

It helps us a lot!:good:
[Xperia Z3 Compact Android Development] Borz93:
Hi [MENTION=3989065]serajr[/MENTION], this is a catlog in Xperia Z2 of thy test module

http://pastebin.com/CjeNZKsp

I post in rovo89 Github.
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

Can U Request UKM To Work On LP ??
[Xperia Z3 Compact Android Development] ulysse34:
Since I installed Xposed, I get the following message at every boot

"Android is upgrading - Optimizing application 1 of 1"

Is that normal?
[Xperia Z3 Compact Android Development] PantsDownJedi:
Anyone want to share their experience comparing DRM patch on Lollipop vs. Kit Kat?
[Xperia Z3 Compact Android Development] someone755:
I think you're in the wrong thread for that.

But nevertheless, I'll chime in with my opinion: it works just as well as in KitKat. Reportedly some people can't open Movies and Album but that's all there is to it.
[Xperia Z3 Compact Android Development] serajr:
Anytime bro!

Just read last rovo's comment. We are still needing a log produced just after the device starts bootloop!
[Xperia Z3 Compact Android Development] PantsDownJedi:
Thanks.

As for the thread I chose I'm responding for the original post and just using your response to do so. In any case, yeah I was a little concerned about where I was putting it when I did. The situation inevitably, that I used as justification, is that I'm probably not alone in the respect that I'm not using a desktop or laptop much anymore unless I'm working and my work doesn't require it. It becomes difficult to find information On looking for on XDA even with a phone that doesn't have tons of info in its subsection.

I pull my laptop out on rate occasions when I'm fixing a service where a config file was overwritten on an update (server) or when I'm using flashtool or whatnot and that's it.

Given this and while we're in a transition that people are using both Lollipop and KitKat Androkernels, I'm going to be really bold here and request that the original post be updated perhaps with a link to some feedback about the DRM patch on Lollipop since the patch is part of the post.

I'm genuinely not trying to be a jerk or justify my post but simply say that it might be helpful since XDA is more and more an unsafe place to post at all. It is annoying to see redundant questions but its also annoying to see people criticised (which is not what happened to me) for asking something and the answer was 20 pages back and not necessarily searchable or even up to date (in some cases)

Thanks for your time and thanks someone755 for the feedback (and

piss off to the person who says "read the thread" to the same thing 10 pages forward from here"
[Xperia Z3 Compact Android Development] Alhaddad:
i just uploaded a log from Z2 stock lollipop bootllooped running xposed with nothing but your test module enabled.
[Xperia Z3 Compact Android Development] serajr:
Thank you so much!!!

Edit:

Just downloaded and read your logs and there is no reference to the test module in question (but others)!

Are the shared logs the correct ones?
[Xperia Z3 Compact Android Development] Alhaddad:
yes indeed... but i guess the system hangs before running any module!
[Xperia Z3 Compact Android Development] Lefteris Fragiadakis (Frago):
So hi guys, i finally unlocked bootloader,but i have a problem,i did everything like the guide,all are working ,i have flash Z3C_ADV_stock_LP_v2 kernel,all working expect one thing,i restore the keys with the zip from recovery and i have to say,no xreality works,should i relock the bootloader???and then try again?someone can confirm if the keys are 100% restore,just go to service menu from the dialer then service test and then security,are all the keys right,some screenshot will be ok
[Xperia Z3 Compact Android Development] veimus:
[MENTION=4561223]frago21ps[/MENTION] you can`t restore DRM keys when you are on unlocked bootloader and use custom kernel, bravia, xreality and other stuff are off. If you want them back on unlocked bootloader this is for you: http://xdaforums.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
[Xperia Z3 Compact Android Development] AndroPlus:
Released v50 - Now supports Lollipop 23.1.A.0.690!

All features except sound control, SELinux Permissive, F2FS support (with genfstab.rhine, it stuck at logo) are included.
[Xperia Z3 Compact Android Development] someone755:
To set SELinux to Permissive, add the following to the --cmdline flag when running the mkbootimg script:

androidboot.selinux=permissive

(how can people live without Xposed?)
[Xperia Z3 Compact Android Development] AndroPlus:
Actually, I did it but somehow SELinux status after booting is Enforcing...

https://github.com/WedyDQ10/android_kernel_sony_msm8974ac/blob/lollipop/build_it4_all

[EDIT]

also setprop selinux.reload_policy 0 in init.rc didn't work
[Xperia Z3 Compact Android Development] someone755:
Strange indeed. Maybe Sony is forcing it via ramdisk?

(downloading the new version to check)

EDIT: Made some changes to the Z3C ramdisk (see attachment), don't have the resources to put it into a boot.img right now though -- if any one of you can, please do and try it out.
[Xperia Z3 Compact Android Development] AndroPlus:
Added taiko_control in v50a.

See this post to enable / configure:

http://xdaforums.com/showpost.php?p=55765178&postcount=3
[Xperia Z3 Compact Android Development] htuananharch:
Seem don't work with z3c so-02g. Blackscreen when boot, bootloop...

I'm using Androkernel to restore drm fucntions. After re flash stock kernel, everything is ok.
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

What App Do You Use On V50 To Fully Control Kernel On LP ??

Edit :

Does V50 Have " system r/w " ??
[Xperia Z3 Compact Android Development] YongJeah:
Speaker digital gain not work in v50a
[Xperia Z3 Compact Android Development] agam1308:
Kernel Adiutor, FauxClock...

Yes it does.

Enviado desde mi D5803 mediante Tapatalk
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

Can You Add Intellidemand Hotplug For LP ??
[Xperia Z3 Compact Android Development] AndroPlus:
It's too old and has stability problem.
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

So What Hotplug You WIll Add ??

I need To Control My CPU & GPU Like In KK Kernel
[Xperia Z3 Compact Android Development] AndroPlus:
intelliplug, alcurd, fast hotplug are already there.
[Xperia Z3 Compact Android Development] wars045:
how to use taiko sound control ?
[Xperia Z3 Compact Android Development] someone755:
Slide the slider left or right and that's it.
[Xperia Z3 Compact Android Development] wars045:
#Enable/Disable

echo on/off > /sys/kernel/wcd9320/spkdig_gain

#Do not set this value too high, in order to protect the speaker,

#enabled booster by default

echo 3 > /sys/kernel/wcd9320/spkdig_gain

#Enable/Disable:

echo on/off > /sys/kernel/wcd9320/hplana_gain

echo on/off > /sys/kernel/wcd9320/hprana_gain

#Gain: Max=0 Default=5 (Lower is louder)

echo 5 > /sys/kernel/wcd9320/hplana_gain

echo 5 > /sys/kernel/wcd9320/hprana_gain

how to use :)

i cant edit this file /sys/kernel/wcd9320/spkdig_gain

when i change value not save
[Xperia Z3 Compact Android Development] someone755:
Why would you go edit sysfs files by hand? You do realize sound control is available in apps such as Kernel Adiutor and the donate version of TricksterMOD, right?
[Xperia Z3 Compact Android Development] wars045:
where kernel adiutor? can you show me? or you not check
[Xperia Z3 Compact Android Development] Sichroteph:
---Post mistake---
[Xperia Z3 Compact Android Development] wind0zer:
I noticed in log cat hundreds and more of mpdecision errors while using the KK kernel. Its still there in LL kernel but not as much. Is it something to be worried about?
[Xperia Z3 Compact Android Development] someone755:
In the logcat? Are you sure it wasn't a kernel or driver log instead? Seems a tad strange for the Android system to report on a kernel error.

Disable mpdecision with an app, then see if it still appears in the log.
[Xperia Z3 Compact Android Development] wind0zer:
Here's a catlog of 2 and half hours like approximately 150 minutes and I have logged 3132 errors of just MP-Decision

04-03 17:22:22.969 E/MP-Decision( 3012): Error(-22) changing core 1 status to offline

I had to zip the logfile because it exceeds the 512kb limit.
[Xperia Z3 Compact Android Development] someone755:
What hotplugging solution do you have enabled, and do you only have one of them enabled? This is concerning to say the least.

(Also for future reference, pastie.org is a great site for sharing logs, saves you the hassle of zipping it up etc.)
[Xperia Z3 Compact Android Development] wind0zer:
I'm not using any CPU software...just kept things stock. There was the same error on the kitkat rom as well, while using AndroPlusKernel. Before I could report it LL came and I upgraded. However I did save KK logcats - http://pastee.co/xNaCFR

I didn't think it was necessary to setup settings with CPU software after flashing(?).

PS: I tried pastebin in the beginning and it had 500kb limit. I tried pastie.org and strangely it's not creating a link. Anyway I got pastie.co to work.
[Xperia Z3 Compact Android Development] someone755:
Well you're using your phone, so you must be using some software (else your phone would just be a brick). I'm not sure what the default is, but whatever it is, it's not good. [MENTION=5169444]AndroPlus[/MENTION] should know. Changing the settings isn't necessary, but without doing so, it's (almost) the same as using the stock kernel. Think of using your legs as not necessary -- you don't have to use them, strictly speaking, but crawling around using your hands would be hella slow.

Nitpick time: What does LL stand for? Lollipop? (I'm sorry, but nobody abbreviates it like that. KitKat has two capital K's in the name, that's why is LL. Lollipop is just Lollipop, or L for short.)
[Xperia Z3 Compact Android Development] wind0zer:
Haha, oops LL...what was I thinking! : p
[Xperia Z3 Compact Android Development] YongJeah:
with v50~ , every time the phone boot complete, my external SD become unmounted . and Chinese characters among the file name will be replaced by question marks

I have to reinstall Ex SD after every boot

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

4/18: I found that is not about the kernel, sorry!
[Xperia Z3 Compact Android Development] gibihr:
Using cocafe Taiko_control for sound, but everytime I reboot phone after applying Headset digital gain, presets go back to default (Headset digital gain goes off), I've been looking on the referring thread but can't seem to find any "apply on boot". string.. (I always used faux control so far, no strings)
[Xperia Z3 Compact Android Development] MrMmmkay:
Hi,

Mobile Hotspot isn't working for me on v51, just says error when trying to activate it.

Anybody else with that problem?
[Xperia Z3 Compact Android Development] scottjb:
I am using v51 and posting this via WiFi hotspot. Seems to work fine. Sorry, it is probably no help for you but it does work.
[Xperia Z3 Compact Android Development] :
v50 or v51 work on .729? :confused:
[Xperia Z3 Compact Android Development] Amr Nasser:
Important

Both Worked For Me

But stick With V50