Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
RogerPodacter
Old
#21  
Senior Member
Thanks Meter 383
Posts: 5,527
Join Date: Apr 2010
Location: Los Angeles, CA
Quote:
Originally Posted by Mach3.2 View Post
Erm, is it accurate to say that my code did not work since the SystemUI.apk crashed?
I replaced the SystemUI.apk in stock 4.1.1 OTA from takju.
Yes most likely did not work. But when I did a similar project to what you're attempting, I had to make code change and flash it to test probably over 50 times to finally get it working because I'm not the best coder. So don't expect to get it right the first time. I made code changes over and over trying to tweak it till I finally got it right.

What change are you trying anyway? I'll go look at your first post again, I just skimmed it first time.

---------- Post added at 10:35 AM ---------- Previous post was at 10:27 AM ----------

OK I read the code and kinda see what you're doing. But did you add the additional PNG for the new 4g case condition you're trying to add? It looks like you have a gsm nexus, and you're adding 4g icon of some sort. So you will have to add that in the XML of the systemUI apk as well. Did you get it to compile with no warnings?
My boring Github
My N1 Battery Project

Phone: Galaxy Nexus
ROM: AOKP 29 4.0.4
Recovery: CWM Touch
 
Mach3.2
Old
(Last edited by Mach3.2; 15th July 2012 at 11:41 PM.)
#22  
Senior Member - OP
Thanks Meter 347
Posts: 1,651
Join Date: May 2012
Location: Singapore
Quote:
Quote:
Originally Posted by Mach3.2
Erm, is it accurate to say that my code did not work since the SystemUI.apk crashed?
I replaced the SystemUI.apk in stock 4.1.1 OTA from takju.
Yes most likely did not work. But when I did a similar project to what you're attempting, I had to make code change and flash it to test probably over 50 times to finally get it working because I'm not the best coder. So don't expect to get it right the first time. I made code changes over and over trying to tweak it till I finally got it right.

What change are you trying anyway? I'll go look at your first post again, I just skimmed it first time.

---------- Post added at 10:35 AM ---------- Previous post was at 10:27 AM ----------

OK I read the code and kinda see what you're doing. But did you add the additional PNG for the new 4g case condition you're trying to add? It looks like you have a gsm nexus, and you're adding 4g icon of some sort. So you will have to add that in the XML of the systemUI apk as well. Did you get it to compile with no warnings?
Uh, I'm sure the 4g icon is in the SystemUI already, warning part, I did not look at the terminal while it was compiling.
I'll look at the SystemUI I compiled later tonight to confirm that the icon is there. Just to mention, I'm not even a coder, that part I did were based on the pattern in the code.

Pressed from my BANNED unified search enabled Maguro
Titanium Silver GSM Galaxy Nexus 16GB
Recovery: CWM 6.0.3.1
ROM: AOKP 4.2.2 Milestone 1
Kernel: Franco Kernel r376
Radio: UGLL1
Bootloader: PRIMELC03

Jubakuba's Guide
Stock Nexus Images
Unlock gnex bootloader without root

Making a Dropbox account?
Click this referral link to signup and download the Dropbox application so both of us get extra 500MB of space
 
knsai
Old
#23  
Member
Thanks Meter 66
Posts: 66
Join Date: May 2010
the ROM you are using is it OTA or AOSP?
when i did some mod and compile SystemUI.apk from source, it crashes for me as well if I use it on an OTA ROM. no idea why though


Sent from my Galaxy Nexus using Tapatalk 2
 
Mach3.2
Old
(Last edited by Mach3.2; 17th July 2012 at 09:41 AM.)
#24  
Senior Member - OP
Thanks Meter 347
Posts: 1,651
Join Date: May 2012
Location: Singapore
OTA rom.

So there's no problem with the code?

I think i know why SystemUi.apk crashed in stock android.

Quote:
Deodexed ROM - More than likely, you'll want this version, which allows for themes and mods

Primary Link (Goo.im)
Mirror (Sendspace)
Mirror (Depositfiles)

MD5 Checksum (check this if you think your download may be corrupt)

3614947cc31913eaac191ca7e19eca5f bigxie_maguro_OTA_JRO03C-signed.zip


Odexed ROM - This is an untouched version with odex files. Flash this only if you know for sure that's what you want

Primary Link (Goo.im)
Mirror (Sendspace)
Mirror (Depositfiles)
http://forum.xda-developers.com/show....php?t=1737849

Apparently stock ROM is odexed.
Titanium Silver GSM Galaxy Nexus 16GB
Recovery: CWM 6.0.3.1
ROM: AOKP 4.2.2 Milestone 1
Kernel: Franco Kernel r376
Radio: UGLL1
Bootloader: PRIMELC03

Jubakuba's Guide
Stock Nexus Images
Unlock gnex bootloader without root

Making a Dropbox account?
Click this referral link to signup and download the Dropbox application so both of us get extra 500MB of space
 
knsai
Old
#25  
Member
Thanks Meter 66
Posts: 66
Join Date: May 2010
that's not the reason. it will still work in a odexed ROM, but remember to delete the .odex file.

you can send me the SystemUI.apk and I can test it for you.

you doing this for the fun of it? you can just use mine provided on the other thread you know.

Sent from my Galaxy Nexus using Tapatalk 2
The Following User Says Thank You to knsai For This Useful Post: [ Click to Expand ]
 
Mach3.2
Old
(Last edited by Mach3.2; 17th July 2012 at 12:17 PM.)
#26  
Senior Member - OP
Thanks Meter 347
Posts: 1,651
Join Date: May 2012
Location: Singapore
Quote:
Originally Posted by knsai View Post
that's not the reason. it will still work in a odexed ROM, but remember to delete the .odex file.

you can send me the SystemUI.apk and I can test it for you.

you doing this for the fun of it? you can just use mine provided on the other thread you know.

Sent from my Galaxy Nexus using Tapatalk 2
Trying to learn:P
No wonder.. I did not delete the .odex file.

Anyway i'm flashing Jelly Bean again, so i can test it out myself.

Edit: Worked on bigxie's deodex ROM., the 4G mod worked too.
Titanium Silver GSM Galaxy Nexus 16GB
Recovery: CWM 6.0.3.1
ROM: AOKP 4.2.2 Milestone 1
Kernel: Franco Kernel r376
Radio: UGLL1
Bootloader: PRIMELC03

Jubakuba's Guide
Stock Nexus Images
Unlock gnex bootloader without root

Making a Dropbox account?
Click this referral link to signup and download the Dropbox application so both of us get extra 500MB of space
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...