Quote: Originally Posted by AndroidSlave Originally Posted by Not really a "port" when you just pull the apk from the ROM...



Sent from my Nexus 6P using XDA-Developers mobile app

decompiledAPK

decompiledMOD

decompiledAPK

decompiledMOD

decompiledAPK

Like the apk pulled from the ROM even works (atleast the new 6.0.1 version);Anyway here's the source with the classes i modified in a different folderAnd since you just jumped to conclusions, here's what i did to patch the app:1) Pulled the original apk from the ROM and decompiled it with apktool (we'll call it).2) Pulled the app source from the original Github Trebuchet page and created a new Android Studio project.3) Removed all cyanogenmod dependencies with android studio; (at this point the app had some API related bugs and glitches so i couldn't just build it from android studio).4) Compiled the (Buggy) app i had created with Android Studio, than decompiled it again with apktool to obatin all the modified smali files (we'll call it).5) Pulled the Github source again and created Android Studio project again, but this time instead of correcting the errors related to CM dependencies i highlighted them.6) I searched the same highlited methos inside the SMALIs ofand corrected them by copying there the equivalent methods from7) Modded OverviewSettingsPanel.java to remove "Protected Apps" option, then modded the equivalent smali by repeating step 6 for this one.8) Modded user_folder.xml to remove the lock icon overlay, wich was referring to a cyanogenmod feature (protected apps and folders)9) Removed the cyanogenmod package as i had already cleared all dependencies.10) Recompiled the newly-modified, recreated the APK and signed it.And here's how you "pull an apk from the ROM"