Compiling and Decompiling - Nexus 4 Q&A, Help & Troubleshooting

Is anyone able to successfully do it? I want to modify my nav bar (add soft keys and reduce bar height). I get a string of errors when I attempt. Thanks in advance
Sent from my Nexus 4 using xda premium

nbeebe24 said:
Is anyone able to successfully do it? I want to modify my nav bar (add soft keys and reduce bar height). I get a string of errors when I attempt. Thanks in advance
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
I'm in the same boat as you. I think apktool has to be updated to the new api level if I'm not mistaken. Could be wrong though.

BaNkS said:
I'm in the same boat as you. I think apktool has to be updated to the new api level if I'm not mistaken. Could be wrong though.
Click to expand...
Click to collapse
Okay. Just making sure I didn't screw up my tools somehow
Sent from my Nexus 4 using xda premium

nbeebe24 said:
Okay. Just making sure I didn't screw up my tools somehow
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Same here then I gave up lol. The guy iBotpeaches that maintains apktool now says he will update apktool soon though. At least that is what it says in his thread.
---------- Post added at 02:29 AM ---------- Previous post was at 02:12 AM ----------
Check this out.
http://forum.xda-developers.com/showpost.php?p=34406050&postcount=915
Just tried the linux version and worked liked a charm.
Just decompiled my framework-res.apk and made the changes to dimens.xml to lower navbar height and compiled with no errors.

Related

Pulling a theme out of a ROM ?

Is it possible to pull a theme out of a ROM ? this ROM looks so good , but I dont like its speed : http://forum.xda-developers.com/showthread.php?t=2282015
I combine A X I 0 M's nav bar and wallpapers with PA , is it possible ?
Thanks !
rkiller51 said:
Is it possible to pull a theme out of a ROM ? this ROM looks so good , but I dont like its speed : http://forum.xda-developers.com/showthread.php?t=2282015
I combine A X I 0 M's nav bar and wallpapers with PA , is it possible ?
Thanks !
Click to expand...
Click to collapse
Yes.
Get the ROM, find for framework-res.apk, decompile it, grab the navbar pngs, transfer it to your phone, get an app called softkeyz from the themes and app section and apply it.
Wallpaper should be in framework-res too.
Sent from my Nexus 4 using xda premium
exb0 said:
Yes.
Get the ROM, find for framework-res.apk, decompile it, grab the navbar pngs, transfer it to your phone, get an app called softkeyz from the themes and app section and apply it.
Wallpaper should be in framework-res too.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
What will happen if I will replace the entire framework-res.apk ?
It will likely boot loop as many of the dependencies from the paranoid framework won't be in the other one
Sent from my Nexus 4 using xda app-developers app
Alex240188 said:
It will likely boot loop as many of the dependencies from the paranoid framework won't be in the other one
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Got it . thank you !

Resize CyanogenMod nav bar

Hey guys how do i resize CM nav bar?
Sent from my Nexus 4 using xda app-developers app
Theres no actual option in the rom, but you could check out this: http://forum.xda-developers.com/showpost.php?p=38102614&postcount=25
I would make nandroid before flashing it just in case
Nandroid whats that? Ohh and i checked the forum out but it wasn't helpful any other forums?
Sent from my Nexus 4 using xda app-developers app
JayMix said:
Nandroid whats that? Ohh and i checked the forum out but it wasn't helpful any other forums?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Nandroid is the backup you make through recovery
Okay. Well i have searched around several times and i can't seem to fine anything that on resizing CMs nav bar.
Sent from my Nexus 4 using xda app-developers app
You can't change it from within CM, but you can flash different mods in recovery (like the one posted above) to change it manually.
Ill be honest if You dont know what a nandroid is you may want to take some time and do some basic research before you end up bricking your phone. Messing with the OS of a device is NOT fool proof. Things can go wrong and then you are stuck with a non working device that you cant return.
Ok just learned what nandroid is and so i guess the next step is to nandroid backup my phone and then flash the mod from the link right?
Sent from my Nexus 4 using xda app-developers app
JayMix said:
Ok just learned what nandroid is and so i guess the next step is to nandroid backup my phone and then flash the mod from the link right?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
Yep. And if something goes wrong after flashing the mod (systemui crashing, bootloop, etc) just restore the nandroid.
Sent from my HTC Desire using xda app-developers app
Hey guys it didn't work what did i do wrong?
Sent from my Nexus 4 using xda app-developers app
JayMix said:
Hey guys it didn't work what did i do wrong?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You probably didnt do anything wrong, its just that the mod didnt work lol.
Try out this tutorial. It should work, but its a bit of work.
These are the lines that you have to change:
Code:
<dimen name="navigation_bar_height">[COLOR="Red"]38.0[/COLOR]dip</dimen>
<dimen name="navigation_bar_height_landscape">[COLOR="red"]38.0[/COLOR]dip</dimen>
<dimen name="navigation_bar_width">[COLOR="red"]38.0[/COLOR]dip</dimen>
The link you provided is broken.
Sent from my Nexus 4 using xda app-developers app
JayMix said:
The link you provided is broken.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
That's odd. It was just working fine...and now it says account suspended .
Anyways this is basically what you have to do(may require some other searching):
-navigate to system/framework and copy the framework-res.apk to your computer
-decompile framework-res.apk
-in the decompiled folder navigate to /res/values/ and open the file named dimens.xml in a text editor
-edit the lines that I posted above to your liking
-recompile framework-res.apk and push it back to the phone. Also make sure the permissions are set to rw-r-r
Hey what does bar width do? hey I am having issues signing and pushing files back to my phone?
Sent from my Nexus 4 using xda app-developers app
JayMix said:
Hey what does bar width do?
Click to expand...
Click to collapse
You should keep it the same as the height. All three values should be the same
hey I am having issues signing and pushing files back to my phone?
Click to expand...
Click to collapse
Whats the issue? You cant just put a question mark at the end of your vague statement and expect someone to figure out your problem
Sorry typo, by the way thx for all your help so far. I have edited my framework nav bar to 36 but i dont know how to replace my original framework.
Sent from my Nexus 4 using xda app-developers app
you should try a rom with more control built in like aokp, slim, or pa if you want to change stuff more and dont quite know how to mod system files correctly
anyway, heres what i found with a quick google: http://forum.xda-developers.com/showthread.php?t=2159270
its pretty complicated but the instructions are clear
---------- Post added at 08:39 PM ---------- Previous post was at 08:35 PM ----------
JayMix said:
Sorry typo, by the way thx for all your help so far. I have edited my framework nav bar to 36 but i dont know how to replace my original framework.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
just copy the original framework incase you want to go back to it and paste the modded framework in place of the original framework and reboot you phone
JayMix said:
Sorry typo, by the way thx for all your help so far. I have edited my framework nav bar to 36 but i dont know how to replace my original framework.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
-Make a nandroid backup just in case
-Download an root file manager. I would recommend root explorer (paid), but there are other free ones like es file explorer.
-Copy the framework-res.apk from your computer to your phone. (just use the usb cable and transfer it over using MTP)
-Open the root file manager and copy the framework-res.apk from where you put it
-Navigate to system/framework and rename the existing framework-res.apk to framework-res.apk.bak
-Paste the new framework-res.apk
-Long press the new framework-res.apk and go to permissions and change them to rw-r-r
-reboot
yep I do that but as soon as I get done renaming framework.apk.bak the phone restarts and goes into boot loop.
I reflash CM10.1 and nandroid backup and everything is fine again. then I tryed just replacing framework but same thing happens.
ohh and mbucks911 the reason why I dont use AOKP is becasue my battery life with AOKP is terrible it causes my phone to run at around 38c which is warm enough to make my hands sweat and my battery drains 10% for every 10mins my screen is on. when I use CM my phone barely gets over 30c and operates around 27c for every and 10% of my battery thats almost 2 hours of sot thats why i am trying to stick with CM.
JayMix said:
yep I do that but as soon as I get done renaming framework.apk.bak the phone restarts and goes into boot loop.
I reflash CM10.1 and nandroid backup and everything is fine again. then I tryed just replacing framework but same thing happens.
Click to expand...
Click to collapse
Try using adb to push it.
Code:
adb remount
adb push \path\to\framework-res.apk /system/framework/
adb reboot

[REQ] Moto X NavBar

Does anybody knows about a mod of Transparen NavBar like tihs http://www.gizbot.com/img/2013/07/24-motoxleak.jpg???
or anybody who can compile this http://forum.xda-developers.com/showthread.php?t=2361902 for android 4.3
And share please.
Thanks
Hope they can port the rom! Specs are pretty much the same as the nexus 4 plus moto isn't as heavy as sense or tw
Sent from my Nexus 4 using xda premium
If someone could do this, will thank him forever, transparent navbar is the feature that i want the most, not a total transparent one, but something like 70% or 60% transparent. PLEASE SOMEONE DO THIS!
aleespa said:
Does anybody knows about a mod of Transparen NavBar like tihs http://www.gizbot.com/img/2013/07/24-motoxleak.jpg???
or anybody who can compile this http://forum.xda-developers.com/showthread.php?t=2361902 for android 4.3
And share please.
Thanks
Click to expand...
Click to collapse
But your link is already supported by 4.3
rcoliveirajr said:
But your link is already supported by 4.3
Click to expand...
Click to collapse
Yes but I don't know decomplie and compile please anybody who know do it!!!
Sent from my Nexus 4 using xda app-developers app
Why not use PA ??
Sent from my Nexus 4 using Tapatalk 4 Beta
daferrill said:
Why not use PA ??
Sent from my Nexus 4 using Tapatalk 4 Beta
Click to expand...
Click to collapse
PA??? Is 4.3??
Sent from my Nexus 4 using xda app-developers app
daferrill said:
Why not use PA ??
Sent from my Nexus 4 using Tapatalk 4 Beta
Click to expand...
Click to collapse
I work as app developer, so i need my phone to be on stock to test the apps.
guigadourado said:
I work as app developer, so i need my phone to be on stock to test the apps.
Click to expand...
Click to collapse
Yes sometines we don't need a custom Rom, just some mods
http://forums.androidcentral.com/moto-x/302045-moto-x-system-dump-wallpapers.html#post2968829
Sent from my Nexus 7 using Tapatalk HD
aleespa said:
PA??? Is 4.3??
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2020336
How I can decompile this file???
Please search before posting. There are tons of tut that will help you
Wayne Tech Nexus
zelendel said:
Please search before posting. There are tons of tut that will help you
Wayne Tech Nexus
Click to expand...
Click to collapse
Well I Read this thread: http://forum.xda-developers.com/showthread.php?t=2251719 but when I try to open .jar file I don't get classes.dex file.
- Copy *.jar file to apktool folder (make sure is the same folder). for example : android.policy.jar
- Open android.policy.jar using Winrar or 7zip and extract classes.dex file
- Drag & drop classes.dex to Quick-Baksmali.cmd (decompile process)
- wait and you will see a folder with the name "classout"
- now you can start editing smali file on classout folder (use Notepad++ for editing it)
- After editing is complete, Drag & drop classout folder to Quick-Smali.cmd (recompile process)

Kitchen issue? (Solved)

Solved
FYI I am not an Android DEV, but I have a few suggestions to try
Install or reinstall:
-Android SDK
-Java JDK (Different from the "standard" JDE....)
-.NET Framework? Seems crazy and un likeltly, yet worth looking at as a last resort. Youd be surprised how many things rely on .Net framework... despite it often not being installed on the OS.
PS I know .NET framework is probably WAY off.... yet with the minimal info you offered I figure it is worth a shot.
Any chance you can add a screenshot?
Sent from my SCH-I545 using xda app-developers app
---------- Post added at 03:42 PM ---------- Previous post was at 03:40 PM ----------
PetrichorXFi said:
FYI I am not an Android DEV, but I have a few suggestions to try
Install or reinstall:
-Android SDK
-Java JDK (Different from the "standard" JDE....)
-.NET Framework? Seems crazy and un likeltly, yet worth looking at as a last resort. Youd be surprised how many things rely on .Net framework... despite it often not being installed on the OS.
PS I know .NET framework is probably WAY off.... yet with the minimal info you offered I figure it is worth a shot.
Any chance you can add a screenshot?
Sent from my SCH-I545 using xda app-developers app
Click to expand...
Click to collapse
Oh! One more idea... many dont realize Cygwin installs a default set of tools... some of the most basic are missing by default (SSH and Telnet for example).
Let me know how it works
Sent from my SCH-I545 using xda app-developers app
PetrichorXFi said:
FYI I am not an Android DEV, but I have a few suggestions to try
Install or reinstall:
-Android SDK
-Java JDK (Different from the "standard" JDE....)
-.NET Framework? Seems crazy and un likeltly, yet worth looking at as a last resort. Youd be surprised how many things rely on .Net framework... despite it often not being installed on the OS.
PS I know .NET framework is probably WAY off.... yet with the minimal info you offered I figure it is worth a shot.
Any chance you can add a screenshot?
Sent from my SCH-I545 using xda app-developers app
---------- Post added at 03:42 PM ---------- Previous post was at 03:40 PM ----------
Oh! One more idea... many dont realize Cygwin installs a default set of tools... some of the most basic are missing by default (SSH and Telnet for example).
Let me know how it works
Sent from my SCH-I545 using xda app-developers app
Click to expand...
Click to collapse
Thanks man. Im about to redo it all. I will post results
.
Sent from my SGH-M919 using xda app-developers app
alloycowboy said:
Thanks man. Im about to redo it all. I will post results
.
Sent from my SGH-M919 using xda app-developers app
Click to expand...
Click to collapse
Found the problem. When I extracted the img file I put it in the wrong folder.
But its all good now. Thanks for your help
Sent from my SGH-M919 using xda app-developers app

[THEME][4.3/4.4][UPDATE 1/6/14] Rain

Hello everybody, This is my first theme for 4.3/4.4 devices....
Please Welcome my theme.
RAIN
I dont have 4.3/4.4 device...but made a theme for it..I hope you all will love it
Screenshots:
https://www.dropbox.com/s/zsotu7bufysekrf/IMG_20140601_024912.jpg
https://www.dropbox.com/s/ghkdbnca61uwhfu/IMG_20140601_024842.jpg
https://www.dropbox.com/s/b6ek5i79qdagtnn/Screenshot_2014-06-01-13-51-50.png
Big Thanks to @dipesh1502 and @funky0308 For screenshots and testing it
CHANGELOG:
Fixed some bgs.
Downloads:
NEW VERSION:
http://d-h.st/7fa
OLD VERSION:
http://d-h.st/QUc
Install it like a normal apk or move the apk to system/app and set correct permissions
OR Flash the Zip in CWM recovery..Thats It
ALWAYS MAKE A BACKUP BEFORE PROCEEDING FORWARD!!
Please be kind in pressing thanks button, if you liked my work...
ENJOY!!
I doubt if the theme will work with non-rooted phones..
It will work and and only the wallpaper and colour will change
Nice Theme
Installed on rooted xsp
dipesh1502 said:
I doubt if the theme will work with non-rooted phones..
It will work and and only the wallpaper and colour will change
Nice Theme
Installed on rooted xsp
Click to expand...
Click to collapse
Ok thanks bro for clarifying my doubt and testing it ..Can you please pm me some screenshots..?
Sent from my LT26ii using XDA Premium 4 mobile app
balrajs99 said:
Ok thanks bro for clarifying my doubt and testing it ..Can you please pm me some screenshots..?
Sent from my LT26ii using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sent
Beautiful! Love it :good:
Sent from my LT25i using XDA Premium 4 mobile app
charmidz said:
Beautiful! Love it :good:
Sent from my LT25i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks bro..I'm glad you loved it I Hope everyone else too
balrajs99 said:
Thanks bro..I'm glad you loved it I Hope everyone else too
Click to expand...
Click to collapse
Waiting for more themes , I love all theme 4.1.2 from you
Sent from my LT25i using XDA Premium 4 mobile app
charmidz said:
Waiting for more themes , I love all theme 4.1.2 from you
Sent from my LT25i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks bro Yeah I'm working on new themes for 4.1.2, 4.3 and 4.4 devices...Surely will be out soon
Sent from my LT26ii using XDA Premium 4 mobile app
Great theme ! It will be just in the mood in rainy days and so much refreshing in the hot summer days. Thanks !
omegastarr said:
Great theme ! It will be just in the mood in rainy days and so much refreshing in the hot summer days. Thanks !
Click to expand...
Click to collapse
Thanks dude for such nice words about the theme...Continue Enjoying it
Sent from my LT26ii using XDA Premium 4 mobile app
Hi mate...
Few questions if I may...
Why do you think it's not possible to install it like "normal" apk file?
It should work that way...
If it won't install try to resign it.
And yeah....custom themes won't work on non-rooted device, that's for sure.
At least not on Z/ZL/Z1/Z2
Sent from my C6903 using Tapatalk
funky0308 said:
Hi mate...
Few questions if I may...
Why do you think it's not possible to install it like "normal" apk file?
It should work that way...
If it won't install try to resign it.
And yeah....custom themes won't work on non-rooted device, that's for sure.
At least not on Z/ZL/Z1/Z2
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Custom themes dont work on any 4.3 4.4 device that are made by
Us.no way we can disable the signature check.
funky0308 said:
Hi mate...
Few questions if I may...
Why do you think it's not possible to install it like "normal" apk file?
It should work that way...
If it won't install try to resign it.
And yeah....custom themes won't work on non-rooted device, that's for sure.
At least not on Z/ZL/Z1/Z2
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
First thing mate, I dont have any device with android 4.3/4.4, so didnt test it installing like a normal apk. Secondly it may require superuser mod to install it like a normal apk which also requires root.So i think it may not work..But it may work. I need someone to test it.
Sent from my LT26ii using XDA Premium 4 mobile app
So basically it requires root i think
Sent from my LT26ii using XDA Premium 4 mobile app
Yeah right @dipesh1502 ..
Sent from my LT26ii using XDA Premium 4 mobile app
dipesh1502 said:
Custom themes dont work on any 4.3 4.4 device that are made by
Us.no way we can disable the signature check.
Click to expand...
Click to collapse
Exactly what I said.
Actually we disabled signature check but in services.jar, that's why we are using superuser mod.
That's nothing special, only services.jar
without few lines of code.
But that's not enough.
balrajs99 said:
First thing mate, I dont have any device with android 4.3/4.4, so didnt test it installing like a normal apk. Secondly it may require superuser mod to install it like a normal apk which also requires root.So i think it may not work..But it may work. I need someone to test it.
Sent from my LT26ii using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sure...I saw that you don't have device on JB/KK - that's why I'm telling you - install like any other app will work.
Haven't tried your theme but it'll work 100%.
It'll require patched services.jar for sure, that's not optional.
Users have to trick system with it so it'll not asking for a keys (for installation)
Anyway...
Keep up good work, it's great to see new themes and apps.
Obviously, we can't rely on manufacturers so it's great to have XDA community...
BTW...I just test it for you...
You can add to OP "install like any other app"
Sent from my C6903 using Tapatalk
funky0308 said:
Exactly what I said.
Actually we disabled signature check but in services.jar, that's why we are using superuser mod.
That's nothing special, only services.jar
without few lines of code.
But that's not enough.
Sure...I saw that you don't have device on JB/KK - that's why I'm telling you - install like any other app will work.
Haven't tried your theme but it'll work 100%.
It'll require patched services.jar for sure, that's not optional.
Users have to trick system with it so it'll not asking for a keys (for installation)
Anyway...
Keep up good work, it's great to see new themes and apps.
Obviously, we can't rely on manufacturers so it's great to have XDA community...
BTW...I just test it for you...
You can add to OP "install like any other app"
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Yep sonys themes are signed differently via a different
Tool maybe that allow the theme to work even on a non-rooted phone
dipesh1502 said:
Yep sonys themes are signed differently via a different
Tool maybe that allow the theme to work even on a non-rooted phone
Click to expand...
Click to collapse
Actually, Sony demands that every theme pass their check and then they, if they approve it, sign it with their own keys.
That's the problem, we don't have that keys...
But at long as we have rootable firmware we could do whatever we want
Sent from my C6903 using Tapatalk
funky0308 said:
Actually, Sony demands that every theme pass their check and then they, if they approve it, sign it with their own keys.
That's the problem, we don't have that keys...
But at long as we have rootable firmware we could do whatever we want
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Yep the .sf(signature files) and .rsa files.these 2 files make the difference..
funky0308 said:
Exactly what I said.
Actually we disabled signature check but in services.jar, that's why we are using superuser mod.
That's nothing special, only services.jar
without few lines of code.
But that's not enough.
Sure...I saw that you don't have device on JB/KK - that's why I'm telling you - install like any other app will work.
Haven't tried your theme but it'll work 100%.
It'll require patched services.jar for sure, that's not optional.
Users have to trick system with it so it'll not asking for a keys (for installation)
Anyway...
Keep up good work, it's great to see new themes and apps.
Obviously, we can't rely on manufacturers so it's great to have XDA community...
BTW...I just test it for you...
You can add to OP "install like any other app"
Sent from my C6903 using Tapatalk
Click to expand...
Click to collapse
Ok thanks mate...I'll add it
Sent from my LT26ii using XDA Premium 4 mobile app

Categories

Resources