How to make a 4-Way / 5-Way Reboot MOD on Android 5.0 Lollipop? Need Help! - Galaxy S 5 Q&A, Help & Troubleshooting

Hi!
I need help for a Reboot MOD for the Samsung S5 G900F with the new Android 5.0 Lollipop Firmware (BNL9).
I have allready make this MODs for other Devices and Android Versions (4.1.2 / 4.2.2 / 4.4.2) and all works, but nothing is working in the G900F with Lollipop.
So i try this Guides:
http://forum.xda-developers.com/showthread.php?t=1573032
and
http://forum.xda-developers.com/galaxy-note-3/development/dev-tw-lollipop-torch-5way-reboot-t2997748
My Posts: http://forum.xda-developers.com/gal...tw-lollipop-torch-5way-reboot-t2997748/page22 and the follow parts...
But nothing is working.... if i replace the android.policy.jar it is nothing change in the System. With a ZIP over Custom Recovery with wipe cache but also nothing is changed. I can delete the android.polica.jar and nothing change in system
If i check on Reboot Menu "Reboot" it comes the normal Screen with "Yes" or "No" but not the Reboot MOD.
Here are my files (Stock and modded) Download
The files deodexed with this Tool http://forum.xda-developers.com/and.../script-app-joeldroid-lollipop-batch-t2980857 (Only android.policy.jar is deodexed)

have u tried xposed?
it has option to enable 4-ways like soft reboot,reboot recovery etc.
check it out

First i do not like Xposed because i want to make it my self and second... Xposed is not working on Android 5.0 Lollipop at the Moment.
So i need to make it in the Code Section without Xposed.

make your own mod then

You can't use deodexed framework on Odexed system/
Simply pushing deodexed file and removing correcsponding .odex is true only in case of apk NOT jar
So if you want to use it on Odexed version you have to reodexed that modified jar and have to replace both files. Again I don't know on your device S5 any reOdexing script working or not. If you want to test your jar is properly modified or not then jst test on any DeOdexed ROM.

Okay thank you @dr.ketan for this explanation.
But i have look in the Original Files and i see that the android.policy.jar don´t have a *.odex File.
My misstake that i wrote that i delete the *.odex file. I have test and do so much :silly: sorry.
So it is then the same Issue? Because the only changes i make are in the android.policy.jar

Yeah lollipop doesn't have Android. Policy. Odex but it's hidden and that's why it doesn't make any difference when you replacing deodexed Android.policy jar
Because hidden odex part is still there and which is responsible for normal view of reboot menu.
If you have did same with any other jar which have odex part and you have removed odex and pushed deodexed file, likely system wouldn't have booted.
Sent from my SM-N910G using xda premium

Ok thanks again.
Now i must deodex all files in the folder app, framework and priv-app then it must work?
Lollipop is a great Version but very difficult to mod and many too learn new.

there are several mods already
http://forum.xda-developers.com/galaxy-s5/development/mod-translatable-4-reboot-outsource-t2835432
http://forum.xda-developers.com/galaxy-note-3/development/dev-tw-lollipop-torch-5way-reboot-t2997748

deleted

Darkman said:
Hi!
I need help for a Reboot MOD for the Samsung S5 G900F with the new Android 5.0 Lollipop Firmware (BNL9).
I have allready make this MODs for other Devices and Android Versions (4.1.2 / 4.2.2 / 4.4.2) and all works, but nothing is working in the G900F with Lollipop.
So i try this Guides:
http://forum.xda-developers.com/showthread.php?t=1573032
and
http://forum.xda-developers.com/galaxy-note-3/development/dev-tw-lollipop-torch-5way-reboot-t2997748
My Posts: http://forum.xda-developers.com/gal...tw-lollipop-torch-5way-reboot-t2997748/page22 and the follow parts...
But nothing is working.... if i replace the android.policy.jar it is nothing change in the System. With a ZIP over Custom Recovery with wipe cache but also nothing is changed. I can delete the android.polica.jar and nothing change in system
If i check on Reboot Menu "Reboot" it comes the normal Screen with "Yes" or "No" but not the Reboot MOD.
Here are my files (Stock and modded) Download
The files deodexed with this Tool http://forum.xda-developers.com/and.../script-app-joeldroid-lollipop-batch-t2980857 (Only android.policy.jar is deodexed)
Click to expand...
Click to collapse
hi buddy, I have the same problem, can you help and share with me the solution?
https://forum.xda-developers.com/attachment.php?attachmentid=4307358&stc=1&d=1508394148

Related

[Q] Trying to modify a system app - what am I missing?

I'm trying to modify Email.apk. I'm currently running stock 3.1 from http://forum.xda-developers.com/showthread.php?t=1154492
Here's what I did:
1. Extracted Email.apk from update zip and dumped using APKTools.
2. Made my modifications - specifically I'm editing a .smali file with my desired changes.
3. Rebuild Email.apk using APKTools.
4. Renamed existing Email.apk and Email.odex for backup.
5. Copy my Email.apk to system\app and set permissions.
6. Reboot into CWM and wipe davlik cache (not sure if this is required).
7. Reboot.
Now the email app no longer exists in list of applications.
What steps am I missing?
If I'm not mistaken You can't edit odexed firmware!
You must first flash a deodexed rom and then change it to your heart's desire.
I guess I'll have to try deodex the rom myself then.
Thanks!
I'm now using Virtuous Picasso which is deodexed and am now able to modify /system/app applications.
However I think the actual problem was I forgot to sign the modified Email.apk. (Also had to sign Exchange.apk also as they need to be signed with the same certificate)
I think as long as the device is rooted you can replace /system/app applications?
See my signature for signing - piece of cake!
If you have a good and clear deodexing tutorial I'd appreciate it

[MOD] 36DPI NavBar for OmniROM & How-To

Hey folks,
I'm running OmniROM on my Nexus 5 and was very much missing the option to change the NavBar height from AOKP on my Nexus 4.
I did a feature request for OmniROM but until it will be implented in the future I'm helping my self and wrote a little How-To on my Android 4.4 experiences.
Use at your own risk!
I'm not responsible for what you do on your phone.
If you don't even know how to flash a ZIP stop reading here this goes far more into detail.
Download for
omni-4.4.2-20140224-hammerhead-NIGHTLY
(it can work with newer or older versions too, It changes the framework-res.apk and SystemUI.apk, if they are changed on later nightlies I't will not work)
Screenshot with original 48 DPI NavBar
If you want to make a smaller NavBar by yourself I have made a little 20 Step How-To for you, based on this Guide by APatte111 and using this great Tool by Flextrick
you need AndroidMultitool, Java, Notepad++ and 7-Zip on your PC (this How-To is made for Windows).
(don't forget to add "C:\Program Files (x86)\Java\jre7\bin" (for your Java Runtime) to the PATH Var. in your Windows System Settings)
Here is the How-To:
Folder structure of the AndroidMultitool
GUI of the AndroidMultitool
1. Extract SystemUI.apk (system\priv-app) and framework-res.apk (system\framework) from ROM-ZIP
2. put both original files into a Recovery flashable ZIP, "framework-res.apk" under (system\framework) and "SystemUI.apk" under (system\priv-app) for restoring.
3. Copy both files to the "Files" folder of AndroidMultitool
4. Install Framework in AndroidMultitool
5. Decompile framework-res.apk
6. Go to "decompiled_apk" into "res\values" and open "dimens.xml" with Notepad++
7. Look for the "navigation_bar_height", "navigation_bar_height_landscape" (only matters for tablets) and "navigation_bar_width" entry
8. Change the DPI values to your preferences, for example 36.0dip/36.0dip/32.0dip and Save
9. Take a look into "decompiled_apk\framework-res\res" for folders like "values-mcc310-mnc-1" and delete the "-" in front of the last number it have to be "values-mcc310-mnc1" for compiling without errors.
10. Under compiling choose the folder of the decompiled framework-res "decompiled_apk\framework-res" and click compile
11. Open the new framework-res.apk under "Compiled_apk\framework-res" with 7-Zip and extract the "resources.arsc" file (thats the only one wich includes our changes)
12. Open the Original "framework-res.apk" with 7-Zip and put the resources.arsc into it, apply the overwriting and close 7-Zip
13. Decompile SystemUI.apk
14. Go to "decompiled_apk" into "SystemUI\res\layout" and open "navigation_bar.xml" with Notepad++
15. Search for "@drawable/ic_sysbar_back" and "@drawable/ic_sysbar_back_land" and delete the line " android:scaleType="center" " after it and save.
16. Under compiling choose the folder of the decompiled SystemUI "decompiled_apk\SystemUI" and click compile.
17. Open the original extracted "SystemUI.apk" with 7-Zip and extract the "META-INF" folder and "AndroidManifest.xml"
18. Open the new SystemUI.apk under "Compiled_apk\SystemUI" and insert the "META-INF" folder and "AndroidManifest.xml" file from the original "SystemUI" in it, apply the overwriting and close 7-Zip
19. Put both changed files into a Recovery flashable ZIP, "framework-res.apk" under (system\framework) and "SystemUI.apk" under (system\priv-app)
20. flash the ZIP in recovery and see your changes (if it failes, install your Restore-Zip from 2. and try the steps again)
Have fun with your new NavBar guys :highfive: :victory:
Changelog:
- version updated for OmniROM 4.4.2 20140224 (2014-02-24)
- version updated for OmniROM 4.4.2 20140206 (2014-02-07)
- version updated for OmniROM 4.4.2 20140203 (2014-02-03)
- version updated for OmniROM 4.4.2 20140128 (2014-01-28)
- version updated for OmniROM 4.4.2 20140123 (2014-01-23)
- version updated for OmniROM 4.4.2 20140117 (2014-01-17)
- version updated for OmniROM 4.4.2 20140115 (2014-01-15)
- version updated for OmniROM 4.4.2 20140105 (2014-01-05)
- version updated for OmniROM 4.4.2 20131227 (2013-12-27)
- version updated for OmniROM 4.4.2 20131217 (2013-12-17)
- version updated for OmniROM 4.4.2 20131212 (2013-12-12)
- version updated for OmniROM 4.4.1 20131208 (2013-12-09)
- 20131201 Version works flawless on Nightly 20131204, name changed (2013-12-04)
- version updated for OmniROM 20131201 (2013-12-02)
​
nvm, solved
auggie246 said:
nvm, solved
Click to expand...
Click to collapse
?!
tested on 20131204 and it works fine because there are no changes to SysUi and framework
next update will come after 4.4.1 OmniROM is available
Updated to 4.4.1 (Nightly 20131208)
which file should I modify to CM11? i can't find the string: "@drawable/ic_sysbar_back" and "@drawable/ic_sysbar_back_land" in SystemUI.apk... Can you help me?
[email protected] said:
which file should I modify to CM11? i can't find the string: "@drawable/ic_sysbar_back" and "@drawable/ic_sysbar_back_land" in SystemUI.apk... Can you help me?
Click to expand...
Click to collapse
are you looking in the navigation_bar.xml under the Decompiled "SystemUI\res\layout" folder?
€: OK, I've checked it and it is true there are not such values in CM11 SystemUI, so just try it with just the modified framwork-res.apk and see what happens, if the back button is not awkwardly big all is fine
Edit: - version updated for OmniROM 4.4.2 20131212 (2013-12-12)
No, I tried and does't work
[email protected] said:
No, I tried and does't work
Click to expand...
Click to collapse
Seems like CM is using some different code, and if you just change the values in the "dimens.xml" nothing happens?
€: - version updated for OmniROM 4.4.2 20131217 (2013-12-17)
I tried just changing the values ​​in "dimens.xml" and doesn't change
kabauterman said:
Seems like CM is using some different code, and if you just change the values in the "dimens.xml" nothing happens?
€: - version updated for OmniROM 4.4.2 20131217 (2013-12-17)
Click to expand...
Click to collapse
updated to 20131227
anyone tried if it works with 20140103?
€: Doesn't work, I tried it.
can you please build a new version of your mod for omnirom 2014-01-03?
illnez said:
anyone tried if it works with 20140103?
€: Doesn't work, I tried it.
can you please build a new version of your mod for omnirom 2014-01-03?
Click to expand...
Click to collapse
for 20140105
https://drive.google.com/file/d/0B4ESb_YBhAxIRzhqelFWYmxRNnM/edit?usp=sharing
Thanks kabauterman for this mod.
It works with latest build also omni-4.4.2-20140113-hammerhead-NIGHTLY but with some problems,please can you fix it?
Thanks in advance
micr0g said:
Thanks kabauterman for this mod.
It works with latest build also omni-4.4.2-20140113-hammerhead-NIGHTLY but with some problems,please can you fix it?
Thanks in advance
Click to expand...
Click to collapse
I have made a how-to for all of you wich use a version of Omni I havn't made yet
Now you can find 20130115 in OP :victory:
https://drive.google.com/file/d/0B4ESb_YBhAxIYWZWWkdiX3dYWXM/edit?usp=sharing
20140117 added to OP
20140123 online
You can find 20140128 in Post #1
Pretty cool change to OmniROM, changing the SystemUI if no more needed thanks to the new NavBar changes possible in OmniROM.
And it seem that the framework-res file is still the same then in the last releases. :good:
Post #1 updated

Deodexing files for s3v3n's ROM v5.0

I deodexed system files for s3v3n's v5.0 ROM - as I know, not all customizations through xPosed are working with odexed, or partialy deodexed ROMs. Hopefully s3v3n won't have objetions. One more thing - there isn't Gravitybox - You have to install it again - I deodexed it after upgrading Gravitybox to newer version.
Instructions:
unzip files to your SD-card
boot to TWRP
go to mount and select to mount system partition
go to advanced/filemanager
delete /system/app, /system/priv-app & system/framework - you have to go to particular folder, then tap&hold select then delete
copy app, priv-app, framework from your sdcard to
/system/
fixing permissions is not necessary
PS: You are doing it on your own risk.
Download here: deodex-s3v3n-v5.0
Can you please deodex 5.1?
working on that, maybe @ evening, I have to deodex several 32bit apps...64bit are done already but because of some 32b there are some conflicts
phsnake said:
I deodexed system files for s3v3n's v5.0 ROM - as I know, not all customizations through xPosed are working with odexed, or partialy deodexed ROMs. Hopefully s3v3n won't have objetions. One more thing - there isn't Gravitybox - You have to install it again - I deodexed it after upgrading Gravitybox to newer version.
Instructions:
unzip files to your SD-card
boot to TWRP
go to mount and select to mount system partition
go to advanced/filemanager
delete /system/app, /system/priv-app & system/framework - you have to go to particular folder, then tap&hold select then delete
copy app, priv-app, framework from your sdcard to
/system/
fixing permissions is not necessary
PS: You are doing it on your own risk.
Download here: deodex-s3v3n-v5.0
Click to expand...
Click to collapse
file that comes in the download folder build.prop, we must also put ??
I hope we will see newer versions of 7 HD rom after the little storm that happened.
Back to topic: which apk is the one for smartnotice widget? I want to mod it to make it semi-transparent

how to installe note3 cam ?

how to install note3 camera on i9506 ?
it's work on stock frimeware (4.4.2) ?
answer pleas ?
find a touchwiz based note3 custom rom for 4.4.2 and download it. open the zip and navigate to the system apps folder and copy the camera apk and any odex file that comes with it onto your phone.
then go to the same place in your own root folder and check the permission of your current camera (and odex) and make copies of them (you'll need these when this most likely doesn't work).
with some copies stored safely you can delete your current camera in /system/apps/ folder and any odex with it and replace them with the note3 versions and then fix their permissions to match the originals. reboot and test.

signing modified touchwiz

hii all..
I used to theme touchwiz for my S3 to look like s6..
after themeing I used to compile it with apktool and then zipalign and finally sign it with signApk..
it used to work fine..
Now I am trying to theme TouchWiz for my G900H.. but when I recompile, zipalign and sign the final apk as I used to do earlier it doesnt work.. Touchwiz doesnt install in recovery nor after I push it manually and set permissions..
where can be the problem ? what am I missing ?
P.S: I also used Advanced APK Tool v4.1 but same result..
please help if u can..
thanks
any help ??
Open the apk in 7zip, open original unmodified apk in 7zip as well, drag the unmodified apk's meta-inf folder to the modified one, should install now.
Sent from my SAMSUNG-SM-G900A using Tapatalk

Categories

Resources