S5 Toolbox For Galaxy Note 3 - Galaxy Note 3 Q&A, Help & Troubleshooting

Hi Guys,
I have been looking into porting of Galaxy S5 toolbox for Note 3.
I have decompiled all the S5 files (SecSettings, Framework-res, SystemUI) and found that it is possible to port it to Note 3 (I might be wrong);
But I don't have fluent knowledge of .smali files, Somehow I manage to understand something by converting .smali files into .java..
So can some dev help me, so that we can work together for porting toolbox to Stock firmware of Note 3.
Thanks.

amk19 said:
Hi Guys,
I have been looking into porting of Galaxy S5 toolbox for Note 3.
I have decompiled all the S5 files (SecSettings, Framework-res, SystemUI) and found that it is possible to port it to Note 3 (I might be wrong);
But I don't have fluent knowledge of .smali files, Somehow I manage to understand something by converting .smali files into .java..
So can some dev help me, so that we can work together for porting toolbox to Stock firmware of Note 3.
Thanks.
Click to expand...
Click to collapse
Tollbox
need android.policy.jar framework2.jar service.jar edit

qwerty123258 said:
Tollbox
need android.policy.jar framework2.jar service.jar edit
Click to expand...
Click to collapse
Hi,
No need to make changes in SecSettings and SystemUI..?
For S5, I found that most piece of code is present in SecSettings.
Thanks.

amk19 said:
Hi,
No need to make changes in SecSettings and SystemUI..?
For S5, I found that most piece of code is present in SecSettings.
Thanks.
Click to expand...
Click to collapse
yes no edit

qwerty123258 said:
yes no edit
Click to expand...
Click to collapse
Can you just tell me which all file I have to look into for porting toolbox.
1. For com.android.policy.jar
2. Services.jar
3. Framework2.jar
I have decompiled all the files from S5 and trying to find it out.

amk19 said:
Can you just tell me which all file I have to look into for porting toolbox.
1. For com.android.policy.jar
2. Services.jar
3. Framework2.jar
I have decompiled all the files from S5 and trying to find it out.
Click to expand...
Click to collapse
service.jar = severthread.smali
android.policy.jar= phonewindowmanager$settingobserver.smal phonewindowmanager.smali
framework2.jar=viewrootimpl.smali toolboxmanager.smali toolboxfloatingviewer.smali and.. i don't remember

qwerty123258 said:
service.jar = severthread.smali
android.policy.jar= phonewindowmanager$settingobserver.smal phonewindowmanager.smali
framework2.jar=viewrootimpl.smali toolboxmanager.smali toolboxfloatingviewer.smali and.. i don't remember
Click to expand...
Click to collapse
Thank you.
Thanks a lot.
I found all the files except ViewRootImp.smali in framework2.jar.
Are you sure that file is present?
And I found a whole folder named TwToolBox with all smali files in framework2.jar.

amk19 said:
Thank you.
Thanks a lot.
I found all the files except ViewRootImp.smali in framework2.jar.
Are you sure that file is present?
And I found a whole folder named TwToolBox with all smali files in framework2.jar.
Click to expand...
Click to collapse
ViewRootImp >>> ViewRootImpl

qwerty123258 said:
ViewRootImp >>> ViewRootImpl
Click to expand...
Click to collapse
Sorry.
I couldn't find viewrootimpl.smali in framework2.jar.
I am still searching.
Thanks a lot for your help.

amk19 said:
Sorry.
I couldn't find viewrootimpl.smali in framework2.jar.
I am still searching.
Thanks a lot for your help.
Click to expand...
Click to collapse
android/view folder maybe...

qwerty123258 said:
android/view folder maybe...
Click to expand...
Click to collapse
Yeah. I got it.
Thanks a lot buddy.

@qwerty123258
Hi. Thanks for your help.
I got all the files you mentioned.
What should I do now?
I have to copy those changes to my Note 3 jar files? And recompile it?
That's it?
Or any other things I have to take care of?

Related

[GUIDE] How to port ROMS

I know that there are actually LOTS of "How to port ROMS" in this forum now.. but I would like to share a certain source I found that is actually fool proof
Here it goes!
find a ROM that is designed for the same CPU type and the same phone manufacturer. Any stock Gingerbread, ICS, or CyanogenMod 7/9 ROM should work, but you’ll have to make sure your phone can handle the ROM – no ICS for an HTC Hero, for example. Also, your Port ROM's original Phone should have the same RESOLUTION with that of your phone's.
You will need:
**Notepad++
**a compression program (WinZip or 7zip and etc)
**the ROM you want to port to your phone (let’s call it the "Port ROM")
**a ROM designed for your phone (let’s call it"Base ROM")
Click to expand...
Click to collapse
This guide may mention some files or directories that aren’t present in your particular ROM; don’t worry, just carry on.
On your PC, extract the .ZIP files containing the two ROMs, and navigate to /system/app in your extracted Port ROM and copy stk.apk, vpnservices.apk, camera.apk, and bluetooth.apk into a temporary directory somewhere else on your PC.
Click to expand...
Click to collapse
Now, delete the following folders from your Port ROM and replace them with the ones from your Base ROM: /data, /system/app, /system/framework, /system/fonts and /system/media.
Click to expand...
Click to collapse
From your Base ROM, copy /system/lib/libandroid_runtime.so to the system/lib/ directory of your Port ROM, overwriting the file.
Click to expand...
Click to collapse
Next up, move the .APKs you copied earlier back into the /system/app directory of your Port ROM.
Click to expand...
Click to collapse
Open up /system/lib in your Port ROM and copy all the files and folders. Paste them into the Base’s /system/lib directory, replacing all. Then go back to the Port ROM and delete the /system/lib folder, and replace it with the /system/lib folder from the Base ROM.
Click to expand...
Click to collapse
Next, navigate to the /system/etc/init.d folder in the Port ROM and do the same copy-from-Port, paste-to-Base, delete-from-Port, copy-from-Base, paste-to-Port shuffle as before.
Click to expand...
Click to collapse
Navigate to /system/etc/permissions and do that same copy-paste dance one more time.
Click to expand...
Click to collapse
open system/build.prop from both the port and the base ROM in Notepad++. Update the Base build.prop to match the values for “ro.build.description=” and “ro.build.fingerprint=” from your Port. Now save the Base build.prop, exit Notepad++, and copy the Base build.prop into the Port ROM, overwriting the Port build.prop.
Click to expand...
Click to collapse
In Notepad++, open \META-INF\com\google\android\updater-script from both your base and port ROMs. Edit the Port’s script to be like the Base’s updater-script: specifically, change, edit, or add the sections for permissions, ui_prints, asserts, run_programs, and installing the kernel. Don’t change any of the symlinks. In the Port script, make sure that the ‘format’ values are appropriate for your device (compare them to the Base script).
Click to expand...
Click to collapse
Finally, make sure that your kernel is specifically for your device.
Click to expand...
Click to collapse
Now, if you desire, you can update any apps you require, or add any tools like BusyBox or SuperSU.
And that’s it! Your base ROM is now ready to be zipped and installed on your device via Clockwork Mod!
SOURCE: http://apcmag.com/port-roms-to-your-android-device.htm
ADDITIONAL INFORMATION:
CUSTOM ROM FOLDERS EXPLAINED
List of Resolution for Smartphones
How to change Kernel of ROM Before installation in its zip file.
[GUIDE][How to Make CWM Recovery Flashable Zip file without Computer]
copy - paste, easy made. nice guide, thanks
30adi said:
copy - paste, easy made. nice guide, thanks
Click to expand...
Click to collapse
Yes but i found the source highly confusing i just "cleaned it up"
Sent from my GT-I9300 using xda premium
Very good job, thank you.
ADDED:
[GUIDE][How to Make CWM Recovery Flashable Zip file without Computer]
I port a ROM but I am getting unknown baseband no imei please tell me how to fix
khan_frd2002 said:
I port a ROM but I am getting unknown baseband no imei please tell me how to fix
Click to expand...
Click to collapse
go to build.prop in /system and edit rild.libpath=
rild.libargs=
to match your device and that should fix it
your guide was just copied by a person from One V forums without giving proper credits.
see here: here
1ceb0x said:
your guide was just copied by a person from One V forums without giving proper credits.
see here: here
Click to expand...
Click to collapse
I see.. he should've given proper credits to the website
Sent from my GT-I9300 using xda premium
changing lib path in buildprob
not work
erm hello, can you put the other guides in your OP? some are in your other posts and it would not be easy for others to see..
nice guide and gonna try this when i got time
:good:
kemaro30 said:
erm hello, can you put the other guides in your OP? some are in your other posts and it would not be easy for others to see..
nice guide and gonna try this when i got time
:good:
Click to expand...
Click to collapse
What "other" guides do you mean?
Sent from my GT-I9300 using xda premium
Hello I Wanted to port Cm7 On a New cpu named as - MediaTek 6573 ! it is an armv6 one ... any suggestions from where to start ....etc ?
I will definitely give this a try.
Great guide. Subscribed!!
ChummyDays said:
Okay, question: what is the point of porting a ROM made for a device with the same CPU and same manufacturer?? there is VERY few phones that are made by the same company and the same cpu!
Click to expand...
Click to collapse
Well that is to ensure "safety" when porting a ROM.. the guide i posted was a beginner's guide on how to port.. as you can see, almost 80% of the procedure is just basically copy&paste..
however, if you have a good background now in codes and porting things, i believe you may not follow step-by-step the procedures i stated above.
Sent from my GT-I9300 using xda premium
mandeep1 said:
Hello I Wanted to port Cm7 On a New cpu named as - MediaTek 6573 ! it is an armv6 one ... any suggestions from where to start ....etc ?
Click to expand...
Click to collapse
Search for other phones with similar cpu
Sent from my GT-I9300 using xda premium
What about dual Sim ph?
Does anyone have any idea what would cause a "Modem Crashed Forced Upload Mode" on a port for SGS3?
I can't seem to pinpoint what causes that (I think it's a kernel panic but I could be wrong)
Looks like this would work on International Note 2 and Tmobile Note 2. They have the exact same hardware and everything. I was wondering about the last statement about kernel. Can't I just copy the boot.img from tmobile note 2 to international note 2 ? would that work ? I am not familiar with kernels and stuff. Need advice.
Thanks

Need Stock SM-G900F/International Qualcomm Apks

I need the stock secsettings.apk, framework-res.apk, SecSettingsProvider.apk, systemui.apk, and the framework-res.apk for development purposes. Just simple copy/paste from /system. Need as soon as possible. Also, please state device model, etc that extracting from. I'm on sprint, so I cannot do this myself and odin files I cannot extract from where I am. Thanks.
RevelationOmega said:
I need the stock secsettings.apk, framework-res.apk, SecSettingsProvider.apk, systemui.apk, and the framework-res.apk for development purposes. Just simple copy/paste from /system. Need as soon as possible. Also, please state device model, etc that extracting from. I'm on sprint, so I cannot do this myself and odin files I cannot extract from where I am. Thanks.
Click to expand...
Click to collapse
https://mega.co.nz/#!Ys5zSCZL!5MlUZQx0uGBDn2r_F3waa6OmPc6YbfXhjHK_rrE5Oko
SM-G900F French.
Djimmy said:
https://mega.co.nz/#!Ys5zSCZL!5MlUZQx0uGBDn2r_F3waa6OmPc6YbfXhjHK_rrE5Oko
SM-G900F French.
Click to expand...
Click to collapse
For some reason, MEGA not loading. Can I get mirror for apks listed above in OP and possibly the whole frameworks folder?
RevelationOmega said:
For some reason, MEGA not loading. Can I get mirror for apks listed above in OP and possibly the whole frameworks folder?
Click to expand...
Click to collapse
I do not understand what you want exactly
you want the zip on another link
Djimmy said:
I do not understand what you want exactly
you want the zip on another link
Click to expand...
Click to collapse
Just need those apks straight from ROM. But Mega is not working on my end, just try another site if you could so I could download.
RevelationOmega said:
Just need those apks straight from ROM. But Mega is not working on my end, just try another site if you could so I could download.
Click to expand...
Click to collapse
https://www.dropbox.com/s/gukzn3eqmhyesno/RevelationOmega.zip

[Q] [q] Porting Framework

Hello sirs/mams can I port any rom's framework to another rom?? Help needed asap:laugh:..Don't worry I won't stole any dev's credits..please tell masters.It'll be very helpful for me
[email protected] said:
Hello sirs/mams can I port any rom's framework to another rom?? Help needed asap:laugh:..Don't worry I won't stole any dev's credits..please tell masters.It'll be very helpful for me
Click to expand...
Click to collapse
copy png files from drawable folders and compare XML files for any addition, that's the fastest way
mohamedrashad said:
copy png files from drawable folders and compare XML files for any addition, that's the fastest way
Click to expand...
Click to collapse
Sir what do you mean by "compare XML files for any addition" ..explain please. am a newbie
Here is a guide on doing so.
http://forum.xda-developers.com/showthread.php?t=1719886
I tried it myself, but I think I did something wrong so it didn't work, but you could give it a shot and if you do, post the result.
Thanks
NightRaven49 said:
Here is a guide on doing so.
http://forum.xda-developers.com/showthread.php?t=1719886
I tried it myself, but I think I did something wrong so it didn't work, but you could give it a shot and if you do, post the result.
Click to expand...
Click to collapse
Thanks but the guide is for HDPI and MDPI devices..but our sgy is ldpi
[email protected] said:
Thanks but the guide is for HDPI and MDPI devices..but our sgy is ldpi
Click to expand...
Click to collapse
I guess if u go inside framework-res.apk, there will be drawable ldpi & drawable mdpi folders. Btw if u wanna change only pngs & xmls, then u can do it in ur phone itself. U just need a superb app called Ninjamorph.apk
Hope this helps...!!
Galaxy_Rohit said:
I guess if u go inside framework-res.apk, there will be drawable ldpi & drawable mdpi folders. Btw if u wanna change only pngs & xmls, then u can do it in ur phone itself. U just need a superb app called Ninjamorph.apk
Hope this helps...!!
Click to expand...
Click to collapse
I know bro about ninjamorph...but please provide me best .9.png editor for my pc (xp)
[email protected] said:
Hello sirs/mams can I port any rom's framework to another rom?? Help needed asap:laugh:..Don't worry I won't stole any dev's credits..please tell masters.It'll be very helpful for me
Click to expand...
Click to collapse
Nice thread sir..It might help noob like me too
Welcome
mimma7 said:
Nice thread sir..It might help noob like me too
Click to expand...
Click to collapse
Welcome..

[Help] notepad++ won't read any XML in rom

I am building a ROM but my notepad++ won't read any .XML file from any ROM.. Please explain me how to fix this thing?
livecouk said:
I am building a ROM but my notepad++ won't read any .XML file from any ROM.. Please explain me how to fix this thing?
Click to expand...
Click to collapse
Did you decompile the apks with apktool?
Sent from my Scorpion Mini
NO
ATTACK said:
Did you decompile the apks with apktool?
Sent from my Scorpion Mini
Click to expand...
Click to collapse
no i did't i just extracted them with 7Zip and Also it wont read some usual APK which are not in APK such as androidmanifest.apk....
livecouk said:
no i did't i just extracted them with 7Zip and Also it wont read some usual APK which are not in APK such as androidmanifest.apk....
Click to expand...
Click to collapse
Then that is your problem. You need to decompile first in order to edit any file other then images.
Yup that was it! Thanks ATTACK and Tecknofreak for help!

[REQUEST] Smaller Navbar

Anyone know of a working smaller navbar mod (not using xposed) that works on MHC19I ? or able to point me in the direction of guide that allows me to attempt to make one myself ?
Looking to stay stock+rooted, rather than a custom rom.
TIA
EDIT - I've modified framework-res.apk for MHC19I - Grab it here. Mod changes navbar to 24 instead of 48 height.
* Backup your original /system/framework-res.apk and replace it with the download.
I'd recommend to flash resurrection remix rom where you can set the navbar to 24dp.
snachez said:
Anyone know of a working smaller navbar mod (not using xposed) that works on MHC19I ? or able to point me in the direction of guide that allows me to attempt to make one myself ?
Looking to stay stock+rooted, rather than a custom rom.
TIA
Click to expand...
Click to collapse
U can make it by editing framework-res.apk
Decompile framework-res.apk then go to res/values/dimens.xml there u can change it.
Rajeev said:
U can make it by editing framework-res.apk
Decompile framework-res.apk then go to res/values/dimens.xml there u can change it.
Click to expand...
Click to collapse
Thanks, I'll give it a shot !
snachez said:
Thanks, I'll give it a shot !
Click to expand...
Click to collapse
So I've decompiled and made the edit, recompiled and signed the apk, pushed it to my device and replaced the original.. but now it just sits on the bootup logo animination and I cant get past that stage.
Hopefully you have a backup that you can restore. If not, push the stock framework via adb
snachez said:
So I've decompiled and made the edit, recompiled and signed the apk, pushed it to my device and replaced the original.. but now it just sits on the bootup logo animination and I cant get past that stage.
Click to expand...
Click to collapse
U have done something wrong.. Which apktool u used to edit ?
Rajeev said:
U have done something wrong.. Which apktool u used to edit ?
Click to expand...
Click to collapse
I used apktool 2.0.3 from https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.3.jar
Signed with tool from http://forum.xda-developers.com/showthread.php?t=2723579
Many thanks for any advice
snachez said:
I used apktool 2.0.3 from https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.3.jar
Signed with tool from http://forum.xda-developers.com/showthread.php?t=2723579
Many thanks for any advice
Click to expand...
Click to collapse
Aww yuss. I followed a different guide from http://forum.xda-developers.com/showthread.php?t=1814441 and found I was missing a few steps (copying the META-INF etc)
Much success now.
For anyone interested, I've posted a modded framework-res.apk in OP... Flashable Zip my next project.
snachez said:
Aww yuss. I followed a different guide from http://forum.xda-developers.com/showthread.php?t=1814441 and found I was missing a few steps (copying the META-INF etc)
Much success now.
For anyone interested, I've posted a modded framework-res.apk in OP... Flashable Zip my next project.
Click to expand...
Click to collapse
Glad u made it dude.. Enjoy. Feel free to ask any helps

Categories

Resources