Lost this somewhere took awhile to find.
Now open up the framework-res.apk. (In windows 7-zip will open this without having to change the extension to .zip) (Do not extract)
Now go into the res/layout folder and extract the following three files to the folder you made on the desktop
status_bar_expanded.xml
status_bar.xml
status_bar_latest_event_content.xml
Here is what these files control
status_bar_expanded.xml
Controls the text color for:
1) Clear Button
status_bar.xml
Controls the text color for:
1) USB Connected and Preparing SDcard
2) USB Debugging and Status Bar Notifications
status_bar_latest_event_content.xml
Controls the text color for:
1) Title text in pull down bar for Ongoing and Notifications
2) Description text in the pull down bar under Ongoing and Notifications
3) Text notifications time stamp in the pull down bar under notifications
Open status_bar_expaned.xml with your Hex Editor
Do a search for 08 00 00 1C
The next four 2 digit segments control color and alpha (Transparency) in this order BGRA (Blue, Green, Red, Alpha) (Sorry I had this reversed earlier)
In Hex FF would be the darkest and 00 would be the lightest, so if you set the next four 2 digit segments like this -> FF 00 00 FF then your USB Connected and Preparing SDcard text would be red. I suggest not messing with the alpha, just leave it FF
you will find two areas in this file where 08 00 00 1C appear and in the section above I show the order in which you find 08 00 00 1C and what they control. REMEMBER TO EDIT THE FOUR 2 DIGIT SEGMENTS FOLLOWING 08 00 00 1C
Save the file and edit the other two files (status_bar_expanded.xml has one instance of 08 00 00 1C, and status_bar_latest_event_content.xml has three instances of 08 00 00 1C)
All instances of 08 00 00 1C are in the order that I have outlined above
When you are done open up the framework-res.apk and go into the layout folder
Drag your newly edited files into the res/layout folder, wait for it to update then exit
I use FF FF FF FF for white text on black background.
http://forum.xda-developers.com/showthread.php?t=674157
thanks to the hoffster...
Date
1. Date and notification ticker
Files that have to be edited:
/system/framework/framework-res.apk
DECOMPILED_DIR/res/layout/status_bar.xml
What you have to do:
Extract the framework-res.apk from your phone/rom zip file
Decompile your framework-res.apk using apkmanager
Edit the file DECOMPILED_DIR/res/layout/status_bar.xml
Search for <com.android.server.status.TickerView
As child nodes you will see TWO <TextView> tags. If not present, you must add android:textColor="#ffffffff" to the attributes. It will set your color. the four bytes mean: transparency, Red, Green, Blue (where transparency means: FF no transparency and 00 fully transparent). You have to set the color for both <TextView>s as Android will alternate between them when the notification ticker should show more than one line.
The color for the date will be in the <com.android.server.status.DateView>
Save the file
IN APKManager choose the option to compile your framework
Answer yes when you get asked if it is a system apk and if you want to copy files from the original framework. After the original framework has been extracted, change to your "keep"-Directory and delete the files resources.arsc and res/layout/status_bar.xml.
Let apkmanager continue its work.
now you have a new apk file in your place-here-for-modding directory, which you can push on your phone (DO IT IN RECOVERY): adb push unsignedframework.apk-filename /system/framework/framework-res.apk
Krad said:
Lost this somewhere took awhile to find.
Now open up the framework-res.apk. (In windows 7-zip will open this without having to change the extension to .zip) (Do not extract)
Now go into the res/layout folder and extract the following three files to the folder you made on the desktop
status_bar_expanded.xml
status_bar.xml
status_bar_latest_event_content.xml
Here is what these files control
status_bar_expanded.xml
Controls the text color for:
1) Clear Button
status_bar.xml
Controls the text color for:
1) USB Connected and Preparing SDcard
2) USB Debugging and Status Bar Notifications
status_bar_latest_event_content.xml
Controls the text color for:
1) Title text in pull down bar for Ongoing and Notifications
2) Description text in the pull down bar under Ongoing and Notifications
3) Text notifications time stamp in the pull down bar under notifications
Open status_bar_expaned.xml with your Hex Editor
Do a search for 08 00 00 1C
The next four 2 digit segments control color and alpha (Transparency) in this order BGRA (Blue, Green, Red, Alpha) (Sorry I had this reversed earlier)
In Hex FF would be the darkest and 00 would be the lightest, so if you set the next four 2 digit segments like this -> FF 00 00 FF then your USB Connected and Preparing SDcard text would be red. I suggest not messing with the alpha, just leave it FF
you will find two areas in this file where 08 00 00 1C appear and in the section above I show the order in which you find 08 00 00 1C and what they control. REMEMBER TO EDIT THE FOUR 2 DIGIT SEGMENTS FOLLOWING 08 00 00 1C
Save the file and edit the other two files (status_bar_expanded.xml has one instance of 08 00 00 1C, and status_bar_latest_event_content.xml has three instances of 08 00 00 1C)
All instances of 08 00 00 1C are in the order that I have outlined above
When you are done open up the framework-res.apk and go into the layout folder
Drag your newly edited files into the res/layout folder, wait for it to update then exit
I use FF FF FF FF for white text on black background.
http://forum.xda-developers.com/showthread.php?t=674157
Click to expand...
Click to collapse
You are aware these files are compiled and you cannot simply extract them and begin to work on them. They need to be decompiled and compiled to work.
I will keep working with this to see where it gets me.
alperin1 said:
You are aware these files are compiled and you cannot simply extract them and begin to work on them. They need to be decompiled and compiled to work.
I will keep working with this to see where it gets me.
Click to expand...
Click to collapse
these are more of reference for me later one when I have to cook a new framework-res.apk and services.odex
with the above directions you can hexedit to change colors...
I now know it is easier using apk manager.
Krad said:
thanks to the hoffster...
Date
1. Date and notification ticker
Files that have to be edited:
/system/framework/framework-res.apk
DECOMPILED_DIR/res/layout/status_bar.xml
Click to expand...
Click to collapse
If you don't have /res/layout/status_bar.xml
It is located in system-ui.apk instead
rachelm920 said:
If you don't have /res/layout/status_bar.xml
It is located in system-ui.apk instead
Click to expand...
Click to collapse
system-ui only exists on GB based roms, the streak has no GB stable roms.
Streakdroid 2.0 isnt exactly stable
Krad said:
thanks to the hoffster...
Date
1. Date and notification ticker
Files that have to be edited:
/system/framework/framework-res.apk
DECOMPILED_DIR/res/layout/status_bar.xml
What you have to do:
Extract the framework-res.apk from your phone/rom zip file
Decompile your framework-res.apk using apkmanager
Edit the file DECOMPILED_DIR/res/layout/status_bar.xml
Search for <com.android.server.status.TickerView
As child nodes you will see TWO <TextView> tags. If not present, you must add android:textColor="#ffffffff" to the attributes. It will set your color. the four bytes mean: transparency, Red, Green, Blue (where transparency means: FF no transparency and 00 fully transparent). You have to set the color for both <TextView>s as Android will alternate between them when the notification ticker should show more than one line.
The color for the date will be in the <com.android.server.status.DateView>
Save the file
IN APKManager choose the option to compile your framework
Answer yes when you get asked if it is a system apk and if you want to copy files from the original framework. After the original framework has been extracted, change to your "keep"-Directory and delete the files resources.arsc and res/layout/status_bar.xml.
Let apkmanager continue its work.
now you have a new apk file in your place-here-for-modding directory, which you can push on your phone (DO IT IN RECOVERY): adb push unsignedframework.apk-filename /system/framework/framework-res.apk
Click to expand...
Click to collapse
Ok, Im confused. I tried doing all of the following and everything seemed to work, except that my modified XMLs are not in the new compiled apk. Where do you put them in to get compiled with everything else? When I rebooted my phone, the text is back to white (the color is was before).
did you recompile it?
Half the xmls end up being compressed into resources.arsc only a handful become binary xmls inside res\<various dirs>
Yes, I get an unsignedframework-res.apk. There is no resources.arsc file and the status_bar.xml, status_bar_extneded.xml, and status_bar_latest_event_content.xml are missing from the layout folder.
You might be decompling/recompiling it wrong then
I got it taken care of in another thread. Some of the PNGs in the drawable-hdmi folder were incompatable. I fixed them and it it compiled just. Now I just gotta put it on the phone and see if it works.
Related
Could someone point me to where the reg keys are stored for:
1) hardware buttons program assignments (example if I push message button it opens shortcut for \Windows\Start Menu\Programs\Messaging.lnk, etc).
2) Desktop background (i found an entry in HKCU\ControlPanel\Desktop\Wallpaper but it was for a file that isn't there ... \Windows\Default.2bp). I formatted the file I use by going into pictures and settings and setting transparency to zero. I could photoshop to the right size and copy or use xml to replace but I need some guidance on this one.
For anyone that is interested in helping me proof my xml I attached it here. I am stuck on setting HTC Home contacts.
Could someone point me to where the reg keys are stored for:
1) hardware buttons program assignments (example if I push message button it opens shortcut for \Windows\Start Menu\Programs\Messaging.lnk, etc).
2) Desktop background (i found an entry in HKCU\ControlPanel\Desktop\Wallpaper but it was for a file that isn't there ... \Windows\Default.2bp). I formatted the file I use by going into pictures and settings and setting transparency to zero. I could photoshop to the right size and copy or use xml to replace but I need some guidance on this one.
For anyone that is interested in helping me proof my xml I attached it here. I am stuck on setting HTC Home contacts.
Click to expand...
Click to collapse
1. Defined here [HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys.
2. Don't think this can be done via registry. I still have to manually change theme after flash in Today settings.
3. The following is from your _setup.xml file.
Code:
<characteristic type="HKLM\Software\HTC\Contacts\0">
<parm name="LastUpdate" datatype="string" value="D8 07 07 00 01 00 15 00 0D 00 1B 00 03 00 00 00"/>
<parm name="OID" datatype="string" value="2147483768"/>
<parm name="PHONE" datatype="string" value="(805)588-84XX"/>
<parm name="PHONETYPE" datatype="string" value="9830431"/>
It's not working because you have some of the datatypes wrong. The LastUpdate parm datatype is binary not string. OID is integer not string. PHONE is string, so you have that one right. PHONETYPE is integer not string.
I think that button location will help, but I just realized that pocket plus adds long hold application launching to the existing buttons so I will look in that folder for those, not sure if that is going to be easy.
Anyone have a way to auto load a jpg with zero transparency as background.
Thanks for the help on the contacts, I got that one to work ok.
I have a question, ive decompiled the apk, and edited some png files.
But since the old smiley files were much too big when shown in the mms.apk Ive used some that are small like 33 x 33 insted of 67 x 67
I get error when trying to recompile it. If i then make the 33 x 33 to 67 x 67 files it will compile just fine.
Is there a line in a xml file I need to edit befor it will allow me to use these small filers? or is there a line in a xml file that defines the size of them ?
or in a smali file?
Please reply
fixed but bypassed the compile.
I think that if you are going to modify .png only, you can just open the .apk using 7zip and replace/modify the file you want without compiling/decompiling.
I know I didn't answer your question, but just showing an easier way in case you didn't know.
Sent from my GT-I9100 using Tapatalk 2
i made this video for a friend, and think it helpful with some one , so i made a thread for it
(in 1:42 just delete resources.arsc)
If anyone want other video, just request for it, i'll do if i can :cyclops:
in this video, i used this tool: https://docs.google.com/file/d/0B1jXm_WqN2CaRWMybk42NXJSRDg/edit?usp=sharing
Ok, this is all steps:
1, Decompile SystemUI
Copy your Sony-based SystemUI.apk from system/app in phone to Apkmanager/place_here_to_modding folder
Open cmd file in APK manager, choose 9 to decompile
2, edit XML
Open file projects/SystemUI.apk/res/values/styles.xml by notepad++
Find a line have statusbar.clock (if you want change clock in status bar color, for other items, just find it's style code in this xml file)
Change color from ffffff (white opaque) in a line below to color you want ( for example : if i have a color code 00123456 (hex) means: 2 first hex number 00 is full transparent, ff is no transparent; 2 next hex numbers is green values, then 34 is green value, 56 is blue value. For each color value, 00 is zero and ff full of that color). After all changes, save the file
3, Recompile your apk:
Reopen cmd window and chosse 11, enter then y ,enter then y,enter. After that go to keep folder and delete resources.arsc. go back cmd windows and press enter. DONE, YOUR FILE IS unsignedsystemui.apk in place-apk-here-for-modding folder
i dont understand a SH#T...sorry but u can make a new video with more explanation? or something :S
leloiboi said:
i made this video for a friend, and think it helpful with some one , so i made a thread for it
(in 1:42 just delete resources.arsc)
If anyone want other video, just request for it, i'll do if i can :cyclops:
in this video, i used this tool: https://docs.google.com/file/d/0B1jXm_WqN2CaRWMybk42NXJSRDg/edit?usp=sharing
Click to expand...
Click to collapse
What This?
Sent from my ST15i using xda premium
Updated step by step
Hello,
Recently i lost all my phone data and i had to recover it via a software. i recovered few files but i have few more files ending up as file names
.thumbdata5-1763508120_0
.thumbdata5-1763508120_1
.thumbdata5-1763508120_2
is there any data under those files as i see they are almost around more then 50mb each
how can i open those files and copy the pics under them ?
Hello,
can anyone reply ??
rinku2012 said:
Hello,
Recently i lost all my phone data and i had to recover it via a software. i recovered few files but i have few more files ending up as file names
.thumbdata5-1763508120_0
.thumbdata5-1763508120_1
.thumbdata5-1763508120_2
is there any data under those files as i see they are almost around more then 50mb each
how can i open those files and copy the pics under them ?
Click to expand...
Click to collapse
can someone help me here
Thumbdata Answer
Yes there is a way... You need a Hex Editor. Open your thumbdata file with this Hex editor. A jpg file starts ff d8, ends ff d9. find and copy ff d8 to ff d9 and save it as a new file in Hex editor. Find that saved file on your pc and make it '.jpg' and have fun. If your thumbdata is not corrupted, it works well.
Hi,
thanks for the answer. When i search for ff d8 its giving as no pattern found. but when i search for ff or d8 it comes up and d9 doesnt come up.
what should i do now ?
Hex Editor Neo
Try Hex Editor Neo. Open file and go Edit/Find/Type -> Select 'HEX' then search ff d8. There must be hundreds of ff d8/ff d9, no way. If you cant find again, let me see one of that file if it has no very special content.
Will iy work in my Android phone
I tried the above steps and saved the files but I ain't able to open it. Is there any problem or I need to do it in my pc.
5
down vote
accepted
It contains 96x96 pixel versions of your photos. The file is simply a concatenation of JPEG files. You can split it into individual JPG files by searching for the signatures indicating the start and end of a JPG file, i.e. the two bytes FF D8 for the start and FF D9 as the end. If you can transfer the file to your computer and you can access Python, the following Python code will extract the files (name the file thumbdata3.dat):
#!/usr/bin/python
"""extract files from Android thumbdata3 file"""
f=open('thumbdata3.dat','rb')
tdata = f.read()
f.close()
ss = '\xff\xd8'
se = '\xff\xd9'
count = 0
start = 0
while True:
x1 = tdata.find(ss,start)
if x1 < 0:
break
x2 = tdata.find(se,x1)
jpg = tdata[x1:x2+1]
count += 1
fname = 'extracted%d03.jpg' % (count)
fw = open(fname,'wb')
fw.write(jpg)
fw.close()
start = x2+2
The program will save the files with the names extractednnn.jpg, where nnn is a number.
so I trying to assets ripping/mod the game; I already locate most if not all the assets for the game
the problem is that its use weird extension, so I can't modify them
change it to
.zip
.rar
.7z
nothing
TrID. no avail
magic number
It shows something but its kinda nothing
file signature says
6E 73 69 66 ( nsif ) .nsi
6E 73 08 00 ( ns ) .ns
6E 73 08 00 ( ns ) .nsj
can't really find anything with that
with a simple deduction
those extensions came from the game name (the ns part) and looking at the size
.nsi so like i for Image(?)
most likely image/texture pack files like
.png
.pvr.ccz
.nsj j for js as in javascript or JSON(?)
the other most likely script to run the assets like
.toml
.plist
.xml
or something like that
for these files, judging by the size, maybe it's a sliced-up version of the original file
so it's like an original or made-up file extension
and I don't know how to access them
other things I could do probably debug the .apk and see how it treats those assets
there is also .exe version so I could try the same
but my android studio/visual studio is not in a good mood for some weird reasons, too much weird errors
so is there a thing I could do with the file to make it accessible?
I attach some files if anyone interested