yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] guitardedhero:
After pasting the apk from the directory in /sdcard or /storage into /system/vendor/overlay you are automatically redirected to the directory from where the apk was copied. If you do not navigate to /system/vendor/overlay after pasting then you are trying to change permissions of the apk in /storage which is not allowed nor is it achieving your goal. :good:

If you download and extract the Layers multi-apk Installer.zip from the OP attachments section and extract it, you will find instructions to make your own custom installer that you can flash in recovery to make it even easier, especially when using more than one Layers apk's. You can also make multiple installer zips for different purposes by using unique names for the zips after zipping them up when you're finished moving the desired apk's into the overlay folder of the extracted zip.
[Nexus 6 Android Development] Heszusz:
Ohh thanks for the help ill try again sry for that waste of time.. I hope.. To do this right.

I really love the layers and theme machine.
[Nexus 6 Android Development] guitardedhero:
Never feel as if you are wasting my time. By offering this publicly I assume responsibility in ensuring a trouble-free experience. And I would be very disappointed to learn a user has settled with not using a compatible feature for whatever reason to cause it not to work for fear of wasting my time. I am here for you! :good:
[Nexus 6 Android Development] Heszusz:
Ohh ty bro... U know I could not end the instalation .... After I paste the layers apk In the overlay folder.. I got redirected to where I cut the app ... After that I go to system >vendor>overlay> tap the app then chmod and type 0644 or do I have to select the other one chmod 0750 ?? After that a swipe and I got the message I send In the image before: unable to mount storage... I really dont get it.... Dunno what im doing wrong... Besides witg the apk layers I can choose any later from PlayStore true?

Thanks for your patient.....
[Nexus 6 Android Development] guitardedhero:
Was the error before or after pasting the apk to /system/vendor/etc? The error stating storage makes me think it should not have any issues mounting System, although, that is the first step in the instructions I quoted above.

Boot to recovery

Mount > System

Advanced > File Manager

Navigate to desired Layers apk

Tap apk and select Copy

Navigate to /system/vendor/overlay

Tap Paste button on lower right and swipe to execute

Navigate to /system/vendor/overlay

Tap on apk and select chmod

Input 0644 and swipe to execute

Mount > uncheck System

Reboot
[Nexus 6 Android Development] Heszusz:
Ok bro I did it... Finally no issues but now.. I thought I was gonna see like the theme chooser or an apk for changing layers... But How do I install tha layers... ??????? Sry xD im soo noob
[Nexus 6 Android Development] guitardedhero:
Are you rooted? You can simply install Layers Manager from Play Store if you are. Those instructions are for users without root to do the tasks that Layers Manger performs with SU privileges.

If you know the visual result of a specific Layers apk when properly installed and you do not see it now then something is amiss. If you want to remain unrooted then I highly suggest downloading and extracting the Layers multi-apk Installer.zip from the OP attachments section and reading the instructions in the readme.txt. Creating your own flashable zip following the simple instructions in that readme.txt is far easier than the manual method you just performed and allows you to install as many Layers apk's as you want with just a simple flash. :good:
[Nexus 6 Android Development] Heszusz:
Ohh no bro im not rooted.. Thats why im using your metod but ill try to do what u said to make my own.. And no. I didnt see any Apk For choosing layers or theme engine.... Thankyou imma try doing mines. :D
[Nexus 6 Android Development] guitardedhero:
If you have any questions after looking at the extracted contents of the Layers multi-apk Installer.zip just let me know. :good:
[Nexus 6 Android Development] jcrompton:
If AP not working what is the advantage of not rooting? I just wondered if I'm missing something
[Nexus 6 Android Development] Heszusz:
U know... I couldnt.. So I rooted the Phone now im using layers. Cause I thought I was gonna find and apk layers changer or something like that after doing the steps but I couldnt... Now im happy but i didnt want to root the phone but i needed to until now :D
[Nexus 6 Android Development] guitardedhero:
I fixed the rom to not conflict with Android Pay starting with version 2.0 by removing the few Sony permissions and framework files. :good:

Do you always use the same Layers apk(s) or do you change them often? If you zip up your current /system/vendor/overlay folder and attach it to a post I can create a flashable zip like I was describing last night.
[Nexus 6 Android Development] jcrompton:
Oh sorry ..... I was looking at post 323 ..... But that beware was for the add on you made .... Not your ROM

Wonder if it's possible to sneak systemless root on this newest version and not break Pay
[Nexus 6 Android Development] guitardedhero:
Oh gotcha, yeah the add-on would be useless without the permissions and framework data. Is there something in particular that you want that requires root?
[Nexus 6 Android Development] jcrompton:
Well the most important is TiBu. Use Cat mod to make stock bearable (realize there are some work around s but percent battery that's visible is really helpful). I use multirom also

But we really appreciate your work
[Nexus 6 Android Development] guitardedhero:
How often do you use TiBu? If it's infrequent you should be able to temporarily root and then Full Unroot from within SuperSU when finished with your task(s). You're very welcome and I appreciate the support. I'm actively looking for ways to do the routine root required operations in an unrooted setting. What is the exact purpose you use for TiBu or is it various different operations? Creating an app and app data flashable zip should be a piece of cake I'm thinking.
[Nexus 6 Android Development] jcrompton:
Point well taken .... I'll try. When you temporarily root what steps (which version etc) do you take?

I've tried the update zip way of restoring with tibu and it won't restore the data properly
[Nexus 6 Android Development] guitardedhero:
Boot to recovery

Install > SuperSU zip

Reboot

Execute and complete your operations requiring root

Reboot to ensure everything set in place

Open SuperSU

Settings > Full Unroot

Device will reboot when finished and will be unrooted

So, without being rooted, flashing the TiBu restore zip in TWRP did not successfully write the data and/or permissions?
[Nexus 6 Android Development] jcrompton:
No it's weird. Some things restore data fine and others don't
[Nexus 6 Android Development] guitardedhero:
If you have a copy of that zip would you mind extracting the META-INF folder, zipping it up, and attaching it to a post so I can take a look?
[Nexus 6 Android Development] jcrompton:
OK. I'll make a new one and send
[Nexus 6 Android Development] jcrompton:
Here ya go
[Nexus 6 Android Development] guitardedhero:
Taking a look now. I didn't think it would show the contents of your backup so you may want to edit your post and remove the attachment. Sorry man, I was trying to prevent you from sharing any contents by asking for that folder only. Just a head's up. :good:
[Nexus 6 Android Development] guitardedhero:
Here's something I came up with that may work better as the TiBu script seems to have permissions all over the place among other redundant actions. This zip is essentially a blank template to create your own Data App Restorer zip that can be flashed in recovery. I'm also attaching the readme.txt already in the zip for you to go over and see if it's something you may want to try sometime. :good:

Edit*

Project not complete.
[Nexus 6 Android Development] jcrompton:
I'm working on using the zip you created but in the process I do remember one other app ....

Do any of you use High Brightness Mode widget? It unfortunately requires root

It's helpful..... So I wonder if there is a work around?
[Nexus 6 Android Development] ucpro:
So would I lose free tethering?
[Nexus 6 Android Development] guitardedhero:
I do use it. I'll see what can be done. :good:

Enabled via build.prop already. :good:
[Nexus 6 Android Development] jcrompton:
Hey thanks ...... Ur working hard

But crap. Just flashed a clean flash (everyone needs to know it takes a LONG time to first boot). Two issues.....

AP wouldn't work at first (didn't have time to troubleshoot)

Then second issue ( tried the TiBu update zip and then with a second try, tried the hand made zip ) .... After flashing that ... Crap.... Wouldn't boot
[Nexus 6 Android Development] guitardedhero:
Damn, /data permissions are not set by TWRP like /system then. I now see why the TiBu script was so heavy with copy and permissions lines for each folder. I'm sorry for the inconvenience but I really do appreciate you testing that for me. Your bootloop is certainly a permissions issue. I am going to remove the attachment until I come up with something more comprehensive. :good:

Edit*

Also, if you haven't yet got to a stable state, I am curious if Fixing Permissions through TWRP as thr last step would have solved any present issues. I am curious what the outcome of thr restore is, but fully booting is obviously required.

Edit**

Which rom version did you flash?

Edit***

I also just remembered that I've added /data/app folders and files in several zips without setting any permissions through the script. The /data/data permissions are definitely the issue I believe. I'm willing to bet that if the /data/data folder was removed from the Restorer zip then it would work perfectly, except of course, having the same results as installing the apps after a Factory Reset with no app data present. At least that is half of the project that is fine.
[Nexus 6 Android Development] jcrompton:
I'll try again. Out for dinner in Miami

You think it's OK to try as a secondary in multirom?
[Nexus 6 Android Development] ricco333:
Hungry for some Cuban? Where are you going?

Erik
[Nexus 6 Android Development] guitardedhero:
I finished the Restore template but it is definitely a laborous chore depending on the amount of /data/data to be restored. If adding /data/app folders only, nothing extra will need to be done as TWRP handles those permissions as they don't vary. Upon looking at /data/data folders and files, those permissions vary a lot.

/data/data/* folders do share the same permissions as one another, but folders in the app folder (*) can have different permissions from one another as can the files. I'll attach the corrected Data App Restorer for you and others to take a look. Then, observe the /data/data folders and files you would like to backup and restore and you will know if it's worth the work or not. I'll copy the new readme.txt below. The additional information and instructions for handling /data/data is the section between the ******* lines.

Please know that I don't expect you or anyone to do this as it is likely not worth the time it takes unless your backup is small and doesn't contain dozens of /data/data folders with many more folders and files inside those. The only reason I wanted to try this was your issue with the zip prepared by TiBu. Now, if restoring that TiBu zip while rooted works perfectly then doing that is the obvious choice. If the TiBu zip still doesn't properly restore while rooted then this may be a good option as long as you are conservative with what you decide to backup. It all amounts to the available time you have to prepare this zip the first time. Updating the apps and data in the zip will be quick and painless as the folder names, file names, and permissions will remain the same. Carefully compare the contents of the updated /data/data folders to see if the set_perm lines need to be edited to reflect what will be in the updated restore zip.

Honestly, I know this has been a waste of a substantial amount of time for the meagerness of this offering lol, but I learned quite a bit while doing so and I completely understand if not a single person considers trying this. :good:
[Nexus 6 Android Development] jcrompton:
Ended up Italian on Lincoln Rd .... Wasn't my choice
[Nexus 6 Android Development] guitardedhero:
Were you flashing the TiBu zip to a secondary rom? That may be the sole issue with the TiBu zip.
[Nexus 6 Android Development] jcrompton:
Yes but I've done it before without bootloop
[Nexus 6 Android Development] guitardedhero:
Not the bootloop, that was obviously caused by incorrect /data/data permissions from the Data App Restorer zip.

I'm talking about the issue of the TiBu zip not completely or properly restoring your backup.
[Nexus 6 Android Development] ricco333:
Can go wrong with Lincoln Rd, anything there is great and awesome atmosphere, I work in Miami Beach and love it, hope you had a nice time.

Sorry for the off-topic.

Erik
[Nexus 6 Android Development] Rajul:
Why there is flickering in sound levels any idea?
[Nexus 6 Android Development] guitardedhero:
Disable MusicFX if enabled:

Settings > Apps > Menu > Show System > MusicFX > Disable

Reboot

Open Dolby Atmos to make these adjustments:

Music highlighted at the top

Open or Flat EQ preset

All three effects on the bottom turned Off

Is v4a enabled and loaded with a profile?
[Nexus 6 Android Development] Rajul:
Music fx is already disabled ...don the dolby setting ....no v4a is disabled on speakers but enabled for headphones...

In general section there is discussion thread about this but the problem is severe on this rom... the sound comes back to normal once we change the song or change orientation
[Nexus 6 Android Development] jcrompton:
So I know this is not an Android Pay thread but after all the TiBu discussion I finally got around to checking AP functionality ....... I can't fit the life of me get AP to work on the latest build

Any suggestions? Anything in doing wrong
[Nexus 6 Android Development] guitardedhero:
Which rom and version #?
[Nexus 6 Android Development] jcrompton:
Is this enough info

It was latest one
[Nexus 6 Android Development] guitardedhero:
What rom and version #?

What kernel and version is currently installed?
[Nexus 6 Android Development] Rajul:
Your rom version 2.1
[Nexus 6 Android Development] guitardedhero:
I apologize for your frustration, I tried to make it clear in the OP that the Xperia add-on and the Xperia edition rom will break Android Pay because of the permissions and framework data necessary for the add-on to properly function.
[Nexus 6 Android Development] guitardedhero:
And the included Elite Kernel?
[Nexus 6 Android Development] jcrompton:
Sorry my bad. I thought it was just that add on package! Sorry
[Nexus 6 Android Development] pillo85:
Yes 3rd time with adb finally Twrp stuck , now I just wipe dalvik and cache but all my set up stayed the same, all apps and everything I was in stock non rooted
[Nexus 6 Android Development] guitardedhero:
That's normal unless you Factory Reset or wipe Data. :good:
[Nexus 6 Android Development] pillo85:
But the ROM got installed
[Nexus 6 Android Development] pillo85:
As you can see
[Nexus 6 Android Development] guitardedhero:
Pretty painless, eh? ;)
[Nexus 6 Android Development] guitardedhero:
Looks perfect! Great job! :good:
[Nexus 6 Android Development] pillo85:
Thank you sir now I think I will enjoy my "stock" unrooted ROM more.
[Nexus 6 Android Development] SFG:
If I root and use a kernel like Hells Core enforcing will I break any of the vipermods?
[Nexus 6 Android Development] HaKKeD:
This makes a Rom without root worth considering...onto backing $hit up again to prepare for another flash-fest I guess =)
[Nexus 6 Android Development] guitardedhero:
:highfive:

This is what you'll want to do for rooted Enforcing:

Boot to recovery

Install > HC kernel

Install > SuperSU

Install > Supolicy script from below

Reboot

:good:

:good:
[Nexus 6 Android Development] pillo85:
So if I want to run tupac base I need to wipe system and data when flashing?
[Nexus 6 Android Development] guitardedhero:
If you want to run tupac4u's rom instead, simply flash his rom over this one. No system wipe necessary unless the ViPER4Android and Dolby Atmos™ apps remain.
[Nexus 6 Android Development] pillo85:
Since your ROM is base on tupac, I didn't wipe system nor data and I end up with my stock ROM , + the nice sound mod , my question is if I want to run your full ROM I just wipe system data and caches?

Thank you for bringing viper+ROM combo to our device
[Nexus 6 Android Development] Miustone:
Lookin good...

Nice ROM Man. Finally Your own Baby with Rootless Viper... Really Cool!

All the Best!
[Nexus 6 Android Development] guitardedhero:
No wipes even necessary. :good:

That means a lot to me friend! I know you've been crazy busy, so I appreciate you popping in! :highfive:
[Nexus 6 Android Development] derdjango:
Very interesting. I'm on Tupac's rom with elite and cataclysm. Do I need to wipe data or are there no wipes needed?
[Nexus 6 Android Development] guitardedhero:
No need to wipe System and Dalvik and Cache are wiped during installation. :good:
[Nexus 6 Android Development] derdjango:
Data is fine too? ☺️ When currently rooted, I guess I have to flash unsu first?
[Nexus 6 Android Development] guitardedhero:
Or just tap Full Unroot within the SuperSU app. Data wipe is only necessary for some custom roms.
[Nexus 6 Android Development] SFG:
[MENTION=4445176]guitardedhero[/MENTION] thanks for this! I'm all setup and rocking out to what sounds like a new sound device. I'm hooked!
[Nexus 6 Android Development] Rajul:
Yeah its the default not updated to the latest one he released
[Nexus 6 Android Development] guitardedhero:
No worries, I anticipated that happening when adding it to the OP but I wanted to share it with you guys. :good:

The current Elite Kernel for Marshmallow is 03-21 which should be the version in 2.1. Have you made any kernel changes through a management app? You might look in the Sound section of your kernel management app to be sure everything is set to 0.

Also, is this widespread across various audio players and various audio outputs like Speaker, Bluetooth, or Headset use?
[Nexus 6 Android Development] jcrompton:
Since I've gotten away with several other non ROM related questions .... Lol (?).....

One other issue.....

I had DU as a primary ROM so I copied it to secondary. Booted it and ran it for a while before undertaking the install as primary of this ROM. After I installed this ROM as primary I'm pretty sure I booted to DU once. But after I booted to this ROM and set it up I could no longer boot to my DU secondary ... Went into a boot loop.

I used the question is there any obvious reason why seeing up the primary ROM would then cause a previously bootable secondary ROM to no longer boot ??
[Nexus 6 Android Development] guitardedhero:
It's been a while since I used MultiRom, but I remember an option in TWRP > Advanced > MultiRom that makes sure that doesn't happen after performing modifications in TWRP. I believe it is found on the MultiRom > Options page.

A MultiRom setip is dependent on the Primary rom kernel and I know for a fact that Elite Kernel supports or has kexec or whatever it is called.
[Nexus 6 Android Development] jcrompton:
Thanks for the suggestion ..... I'll take a look

Kexec support is needed for the secondary to boot at all .... I mean even go past the multirom boot page
[Nexus 6 Android Development] guitardedhero:
Maybe, most kernels have kexec support but the option I described is needed regardless. I also just remembered that the option I'm talking about also has a setting to tick so that it is executed automatically when flashing anything with the MultiRom TWRP. I'll Google it here in a few to get the precise name.

Edit*

Inject current boot sector
[Nexus 6 Android Development] Herk718:
[MENTION=4445176]guitardedhero[/MENTION], first and foremost thx for the kick-a$$ rom. If its not to much of a burden on u can u make a flashable zip with the latest Sony music apk here: https://www.apkmirror.com/apk/sony-...release/music-9-1-7-1-0-android-apk-download/ thanks in advance bro.
[Nexus 6 Android Development] martinez5241:
Anyone rocking hC-b15-M-t1-permissive? It Doesn't have the sound section in auditor kernel app. I did notice that the sound became clearer like elite kernel a few updates back. The new elite kernel I ran into issues with sound in calling and choppy music from Pandora. I'm still on 2.0.. When you mentioned that you removed framework and permissions on the new update I decided not to update. I do use the phone with root.
[Nexus 6 Android Development] guitardedhero:
You're most welcome man! :good:

https://www.androidfilehost.com/?fid=24459283995306478

2.0 was the version restoring Android Pay compatibility via the removal of those files. Since you are rooted and enjoy the Sony permissions and framework you might want to try the Xperia™ Z5 Premium Media System version of the rom. It is located towards the bottom of the OP with this link:

https://www.androidfilehost.com/?fid=24459283995307143

It combines the ViPER|Atmos rom and the Xperia Z5 Premium Media System add-on and uses the latest B14CKB1RD kernel. It doesn't include SuperSU so flash your SuperSU zip immediately after flashing the rom in case your current SuperSU does not survive the rom flash. You can simply flash it over 2.0 with no wipes at all. It is the rom version I run. :good:
[Nexus 6 Android Development] Herk718:
U tha man! [MENTION=4445176]guitardedhero[/MENTION]!
[Nexus 6 Android Development] frenchy714:
Can we dirty flash the xperia z5 full ROM over a previous build of your ROM. I read a few pages back but wasn't sure if it was only OK to dirty flash the add-on vs. the full ROM. If it is OK, is there anything special I need to do with Sony permissions still, or would I be good to go out the box? Thanks in advance for your response and keep up the great work!
[Nexus 6 Android Development] nodnarb91:
Good to see fellow Miami Shamu owners. [emoji106]
[Nexus 6 Android Development] guitardedhero:
Sorry for the delay, I was asked about MaxxAudio again and foolishly spent hours trying to get it to work on Marshmallow... again. :eek:

Install with no wipes whatsoever. The installation script will wipe both caches at the end. :good:
[Nexus 6 Android Development] frenchy714:
Np! I ended up doing a fresh install lol. Thanks for the reply! Running beastly btw!

---------- Post added at 08:19 PM ---------- Previous post was at 08:10 PM ----------

Ok cool! I noticed that when I checked Viper Audio driver status, where it says "Processing", it says no. Do I have to flash the Viper Audio supolicy script since running Blackbird's kernel? I'm running the Latest Xperia full ROM build with his kernel being the stock one.
[Nexus 6 Android Development] frenchy714:
Ok cool! I noticed that when I checked Viper Audio driver status, where it says "Processing", it says no. Do I have to flash the Viper Audio supolicy script since running Blackbird's kernel? I'm running the Latest Xperia full ROM build with his kernel being the stock one and I'm rooted.

EDIT: Sorry for the double post! Using XDA on my phone and there was an error after I hit send the first time. Mods, can you please delete the dupe post?