hello guys
today i gonna present you a new tut
for all the devices running from 2.x to till now versions
Thanks to Cyanogenmod and Resurrection Remix
All you need is settings ( deodexed )
1. Dcompile the settings.apk
2. Open Settings.apk/res/values/array.xml and add these codes below
Code:
<string-array name="slimsizer_profile_array">
<item>Load Profile</item>
<item>Save Profile</item>
</string-array>
3. Open Settings.apk/res/values/strings.xml and add these codes below
Code:
<string name="sizer_message_sdnowrite">Cannot write to SD Card.</string>
<string name="sizer_message_sdnoread">Cannot read SD Card.</string>
<string name="sizer_message_filesuccess">Created profile.</string>
<string name="sizer_message_filefail">Failed to create profile.</string>
<string name="sizer_message_noselect">Nothing selected.</string>
<string name="reboot">All done! Reboot your device now.</string>
<string name="reboot_ok">Reboot now</string>
<string name="reboot_cancel">"Don't reboot"</string>
<string name="listsystem">list</string>
<string name="sizer_title"><b><i>System App Remover</i></b></string>
<string name="caution">Caution!</string>
<string name="sizer_message_startup">This tool allows you to delete system apps. Use with caution and only delete apps you know are safe to be removed.</string>
<string name="cancel">Cancel</string>
<string name="sizer_message_delete">Are you sure you want to delete this app?</string>
<string name="sizer_message_delete_multi_one">Are you sure you want to delete selected app?</string>
<string name="sizer_message_delete_multi">Are you sure you want to delete selected apps?</string>
<string name="btn_delete">Delete selected APPs now!</string>
<string name="delete_progress_title">Deleting</string>
<string name="delete_progress">Selected files are being deleted, please wait.</string>
<string name="delete_success">Deleted</string>
<string name="delete_fail">Unable to delete</string>
4.1 For 4.x and Below devices ( thanks to vanya& maaadr )
Download this View attachment 2.x+_settings.zip and merge the complete code
Then add this below code any part of your settings you need ( example Display_settings.xml)
Code:
<PreferenceScreen android:title="@string/sizer_title" android:key="slimsizer" android:fragment="com.android.settings.cyanogenmod.SlimSizer" />
Now compile and decompile the settings and compare public ids and replace with yours
Now compile and done.....! enjoy
4.2 For 5.x and above devices
Download this View attachment 5.x+_Settings.zip and merge the complete code
Then add this below code any part of your settings you need ( example Display_settings.xml)
Code:
<PreferenceScreen android:id="@+id/system_app_remover" android:title="@string/sizer_title" android:fragment="com.android.settings.rz.SystemappRemover" />
Now compile and decompile the settings and compare public ids and replace with yours
Now compile and done.....! enjoy
Have fun guys
If you used my tuts just tag me
Awesome bro ^^
“Sent From MWE V8.0.0 On My Z3”
Great tutorial bro.. Hope all your tutorials will work with Marshmallow.
Rajeev said:
Great tutorial bro.. Hope all your tutorials will work with Marshmallow.
Click to expand...
Click to collapse
They work bro
No problem with 6.0 tooo Haha
anyone can help me with this?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i've try to decompile it but always show log like that? can anyone correct me on where i'm wrong please ?
Nicklas Van Dam said:
anyone can help me with this?
View attachment 3594154
i've try to decompile it but always show log like that? can anyone correct me on where i'm wrong please ?
Click to expand...
Click to collapse
Hmm
Remove cancel string bro
( in your log it show it was already there)
Then for id add it in ids
If you miss drawable you can find in other zip bro (in 4.x zip)
venkat kamesh said:
Hmm
Remove cancel string bro
( in your log it show it was already there)
Then for id add it in ids
If you miss drawable you can find in other zip bro (in 4.x zip)
Click to expand...
Click to collapse
Thanks sir!!! @venkat kamesh :good::good:
yes, i only need to remove cancel string and add btn_delete on ids.xml
it's done recompile it succesfully
system app remover it's show on my developer option, but when i try to open it. settings directly to fc?
and now what i must do with public.xml that you include it on zip?
Thanks your all tutorial
Hi! How to compare public IDS? Can anyone help? Thank you!
Related
Hello!
I do not know where to ask this, so maybe I am wrong in this topic, I apologize for this.
I would like to translate an existing ROM to German, the Ultimate Droid 2.5.0 ROM. At the developer's forum nobody responds to my questions, but I really love this ROM and would like to have it in German.
I do not need any translator or translation help as I am a translator for English myself, I only need advice how to unpack the files, espacially which files I need for this, and how I repack and flash the whole thing again.
Thx in advance.
Somewhere in the XDA forums you will find an application called apktool.
Download it and extract it somewhere.
Then copy inside the applications folder the framework-res.apk file.You gonna find it inside the ROM you re trying to translate.In the same folder you should copy all the applications that you want to translate.
So now you need to decompile each and every one of them.
Run CMD.EXE and browse to that folder.Then type:
apktool if framework-res.apk
apktool d framework-res.apk (where framework-res.apk it can be anything..e.g Mms.apk,Settings.apk,Browser.apk...)
You will see a new folder named framework-res.Inside that folder you ll find another one called res and inside it another called values.From the values folder you should translate strings.xml and arrays.xml(if available).
Do this for every application that you want to translate.When you re done with the strings let me know and i ll assist you further.
A little help on where to post threads!
Post What Where:
General - general technical discussion items, news, anything else that does not fit into the other fora categories.
Q&A (Questions and Answers) - all questions, irrespective of type, get posted in here whether they be theme related, accessory related, technical, etc.
Accessories - any items to do with components and/or accessories relating to your device.
Rom Development - only meant for very advanced technical discussion directly related to ROM development activity and the delivery of actual ROMs and ROM components ONLY. Nothing else goes in here.
Themes & Apps - anything to do directly with the development of themes and/or applications. Nothing else goes in here.
Thx rolfd for moving the thread
Thx Ivanovic for your help, everything works fine with apktool. Now I got the folder u mentioned. I got the code:
<string name="cancel">Cancel</string>
<string name="copy">Copy</string>
<string name="copyUrl">Copy URL</string>
<string name="cut">Cut</string>
<string name="defaultVoiceMailAlphaTag">Voicemail</string>
<string name="defaultMsisdnAlphaTag">MSISDN1</string>
<string name="emptyPhoneNumber">(No phone number)</string>
<string name="httpErrorBadUrl">The page could not be opened because the URL is invalid.</string>
<string name="httpErrorUnsupportedScheme">The protocol is not supported.</string>
<string name="no">Cancel</string>
<string name="ok">OK</string>
<string name="paste">Paste</string>
<string name="search_go">Search</string>
<string name="selectAll">Select all</string>
Click to expand...
Click to collapse
Do I need to translate the whole <string ... </string> set or "only" the things between > and </string>, like >Select all</string>?
I also got some folders called values-... in my directory now, do I need to do something there? I attached a screenshot where you can see what I mean.
Thx in advance!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Only the stuff between <string> and </string>.
Only the xmls inside values or values-en.The strings are usually located in the strings.xml,arrays.xml and plurals.xml.Only the first is allways there.
Sent from my HTC Desire using Tapatalk
I am done so far with the framework, I translated both strings and arrays in the values folder, now I tried to open the settings.apk, but I got the following:
How can I solve the problem?
You dont need to do the if settings.apl
This is only for framework installation
Which means:
apktool if framework-res.apk
apktool d framework-res.apk
apktool d Settings.apk
apktool d Mms.apk.....
You install the framework using the if framework-res.apk and you decompile the APKs later using d XXX.apk
It works fine. What do I need to do to rebuild the ROM later?
Did you just decompiled all the APKs and translated the strings inside the values-folder?
If yes then use the following command to rebuild the APK
apktool b ./folder name of the decompiled apk goes here/ newnameoftheapk.apk e.g apktool b ./settings/ SettingsDE.apk
In a while you ll see the new APK.Right click on it and open with 7zip.Do the same for the original APK too(Take it off the zipped rom and place it in the dekstop).Then having both APKs opened with 7zip drag n drop from the new APK to the old the file resources.arsc
Do the same for every APK that you have translated strings.
I am done with the translation of the needed files, I attached the decoded files and the error log I get when I try to repack the whole thing. Something is wrong with the public.xml, but I got no idea what to do. Maybe you can find the problem.
Merry Christmas btw
First of all create a folder named values-de (inside res folder).
Thats where you keep your translated files.Strings.xml,arrays.xml and plurals.xml
Only strings.xml is always there.The other two not always.
hello
i can't open file rsr with p3do explorer it says me acces violation
how can i open this file ? it's not an image ?
yakapa40 said:
hello
i can't open file rsr with p3do explorer it says me acces violation
how can i open this file ? it's not an image ?
Click to expand...
Click to collapse
You can see file rsr with Wave Remaker.
Read this thread: http://forum.xda-developers.com/showthread.php?t=984482&page=27
thanks
i know how i can see file rsr i'm testing a custom csc on my wave 723
i've find :hexedit
You can edit rsr file with Wave Remaker
There is import/export function to edit languages in txt format
Also rsr files from the CSC from the SDK are very useful....those contain all the languages supported so far
It is not an easy job but it is not too hard to do
Best Regards
i would like to delete some languages from xxx.rsr
with samsung geextractor it's too long file by file
with wave remaker key delete run but not save
is there another solution ?
yakapa40 said:
with wave remaker key delete run but not save
Click to expand...
Click to collapse
Instead yes, with wave remaker you can save it. See here:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello,
I made a small program to edit and compare .rsr files.
This is an alpha version, there is still a lot of bug.
It exists only in French for now.
Tell me what you think.
Thank you
Download:
-http://www.mediafire.com/download.php?8nb562511ebtc18
-http://dl.dropbox.com/u/40346750/LBE/Langage%20Bada%20Editor%20V1.0.0.0%20Alpha.rar
wave remaker : i've not see control file for saving
thanks every body
matheo1010 said:
Hello,
I made a small program to edit and compare .rsr files.
This is an alpha version, there is still a lot of bug.
It exists only in French for now.
Tell me what you think.
Thank you
Download:
-http://www.mediafire.com/download.php?8nb562511ebtc18
-http://dl.dropbox.com/u/40346750/LBE/Langage%20Bada%20Editor%20V1.0.0.0%20Alpha.rar
Click to expand...
Click to collapse
Thanks! Awesome! Can I help you to translate it in Italian and English?
to aurex
no, thanks for me ,my job is done new file string:1,74 Mo (original::5,12 Mo)
yakapa40 said:
to aurex
no, thanks for me ,my job is done new file string:1,74 Mo (original::5,12 Mo)
Click to expand...
Click to collapse
I was referring to matheo1010
RSR Editor
hi, it's me again
yes I know Wave Remaker do this for a long time. However, something was missing
2nd thing - i measured time I was writing this script and, to be honest, i would NOT feed my family if want to do this as my basic way to make money, seriously. I spent over 3 hours to write that script and i must admit I could better spend that time
now it's time for small preview
Code:
Rsr Editor
---------------------------
<1.> Select languages
<2.> Parse rsr to xml
<3.> Parse xml to rsr
<0.> Quit
Select languages you want to preserve or press enter to exit (STRING_ID is dumped anyway).
ENGLISH selected
POLISH selected
done
Rsr Editor
---------------------------
<1.> Select languages
<2.> Parse rsr to xml
<3.> Parse xml to rsr
<0.> Quit
processing /SystemCSC/String/...
parsing Admin.rsr...OK
parsing AppTimer.rsr...OK
parsing AppWidget.rsr...OK
parsing BluetoothApp.rsr...OK
parsing BookmarkViewer.rsr...OK
parsing Browser.rsr...OK
parsing CallCommon.rsr...OK
...
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<LANGUAGES>
<STRING_IDS>
<IDS type="ASCII">IDS_FM_BODY_ALTERNATIVE_FREQUENCY</IDS>
<IDS type="ASCII">IDS_FM_HEADER_FM_RADIO</IDS>
<IDS type="ASCII">IDS_FM_BODY_MHZ</IDS>
<IDS type="ASCII">IDS_FM_POP_EARPHONE_NOTCONNECTED</IDS>
...
</STRING_IDS>
<LANGUAGE>
<ID type="INTEGER">1</ID>
<NAME type="ASCII">ENGLISH</NAME>
<STRINGS>
<STRING type="ASCII">Alternative frequency</STRING>
<STRING type="ASCII">FM radio</STRING>
<STRING type="ASCII">MHz</STRING>
<STRING type="ASCII">Earphone not connected</STRING>
<STRING type="ASCII">Frequency</STRING>
...
</STRINGS>
</LANGUAGE>
</LANGUAGES>
br
Hello Guys Today i am back with a new guide. I will show you how to add shortcut of an app to any app.
Preview
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE: Follow all steps carefully.I am not responsible if you damage your phone.
So lets start:
1.Decompile the app in which you want to add the another app shortcut + the app which you want to add under that option
(Hope iam clear)
2.Download attatched files from attachments and merge with your 1st decompiled app.
3.NOW, Open the xml in layout folder where you want to add the app screenshot.
[Like in statusbar You need to edit statusbar_expanded.xml]
4.Add this code where you want to place the appcaller button.
Code:
<com.appscaller.Apps android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@id/appcaller" />
5.Now, Open res/values/ids.xml and add this in the last above </resources>
Code:
<item type="id" name="appcaller">false</item>
6.Compile your app.
7.Decompile it again.
8.Now open res/values/public.xml and search for "appcaller" and "appcallericon" and note their ids .
Now open smali/com/appcaller/Apps.smali
and search for
Code:
0x7f
9.Copy that whole id and replace that with your "appcaller" ids id.
10.Search again for the code and copy whole id and replace that id with the id of "appcallericon" drawable in public.xml
11.Now open the 2nd decompiled app and open its Android-manifest.xml.
12.Copy the code written under package on the first line .
13.Now open smali/com/appcaller/apps$1.smali and search "package" and add the copied code there.
14.Open 2nd apps Android-manifest.xml again and check the first <activity and in it check android:name="COPY THE CODE WRITTEN HERE" and then open smali/com/appscaller/apps$1.smali in 1st app and search "name" and
then add the copied code from "package" +"name" with second app.
for eg if package is
HTML:
com.android.deskclock
" and name is "deskclock" then
name should be written like this "
HTML:
com.android.deskclock.deskclock
(HOPE YOU UNDERSTOOD IT)
Credits:
b16h22
Musadiq
Reserved
san122 said:
Hello Guys Today iam back with a new guide.Today i will show you how to call an app from any app including framework-res.apk,dialer.apk,SystemUI.apk to any app.
looks nice.....but what it actually does??? ...i did not get that
Click to expand...
Click to collapse
vishal1404 said:
looks nice.....but what it actually does??? ...i did not get that
Click to expand...
Click to collapse
Its like a shortcut that u can add this like in dialer to open your app like facebook
u could also rempve th ID value in source code and simply change the smali name for every app u want.
like TaskButton for taskmanager
or DialerButton for dialer and such .
Sent from my S500 using xda app-developers app
SpaceCaker said:
u could also rempve th ID value in source code and simply change the smali name for every app u want.
like TaskButton for taskmanager
or DialerButton for dialer and such .
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
I know but this method is helpful for adding taskmanager button on long home press see ss above.
san122 said:
I know but this method is helpful for adding taskmanager button on long home press see ss above.
Click to expand...
Click to collapse
yeah i know.
i had extended Button class in java aswell to create 3 extra toggle classes aswell
but i removed the IDs from classname as i didnt want to mess with const value xD
Sent from my S500 using xda app-developers app
SpaceCaker said:
yeah i know.
i had extended Button class in java aswell to create 3 extra toggle classes aswell
but i removed the IDs from classname as i didnt want to mess with const value xD
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Can you tell me how to do that
san122 said:
Can you tell me how to do that
Click to expand...
Click to collapse
Code:
Button button = (Button) findViewById(R.id.launch_tasks);
remove this kind of code from the java source i also removed the imageresource because i wanted to load it from android:background tag instead.
Nice :thumbup:
Press Thanks if help - G S c u l e r l o r
san122 said:
Reserved
Click to expand...
Click to collapse
i dont find code 0x7f
plz help
Wi-fi Name
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Code:
Wifi Name, original idea from sir [user=4715592]@mariozawa[/user], but sadly, he didn't
release or continue it. This is also what we had on my theme, Android L
theme. It updates whenever you open/close your wifi. It gets the SSID
of the connection that is being scanned. So the bug here, it gets the
SSID even we are not connected, but I did put an onClickListener that will
make it to update whenever you got null or wrong SSID. You can put it
wherever you want. Let's get Started!
Steps
1.) Decompile your SystemUI.apk.
2.) Download ten_WifiName.zip on attachment and extract it to your smali/com folder.
3.) Now put this line:
Code:
<com.tenten.WifiName android:layout_width="100.0dip" android:layout_height="25.0dip" android:textSize="17.659973dip" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:gravity="center_vertical|center_horizontal" />
I didn't use wrap_content so you can still click it to update whenever it gets null SSID
Click to expand...
Click to collapse
4.) Recompile your SystemUI.apk and push or flash it.
5.) If working, dont forget to.. yeah , to jump! hehe
NOTE: Dont put it on status_bar_tracking.xml. Any customviews that i putted there was not clickable, I dont know why, only the close drag handle that was built-in. Any help/information on why we cant click on that layout is appreciated. Thank you
Click to expand...
Click to collapse
Credits
@mariozawa (original idea)
@PineappleOwl (My master hehe)
StackOverFlow
Lenox Devs
Potato Inc
first, ruining your reserved XD
Mranggapo said:
first, ruining your reserved XD
Click to expand...
Click to collapse
hahaha, I dont need to reserve anything for this xD
tentenponce said:
hahaha, I dont need to reserve anything for this xD
Click to expand...
Click to collapse
can i put this on statusbar ? not expanded
Another mod again. Will try it asap
EDIT: Done. See Attachment. Thanks ten ten
Mranggapo said:
can i put this on statusbar ? not expanded
Click to expand...
Click to collapse
yes, anywhere you want I edited my guide, dont put it on status_bar_tracking.xml, read my guide for information on lockscreens also , because it catches intent. But you can try, I havent tried on lockscreen. hehe
<com.tenten.WifiName android:layout_
width="100.0dip" android:layout_
height="25.0dip"
android:textSize="17.659973dip"
android:textColor="#ffffffff"
android:layout_gravity="center_vertical"
android:gravity="center_vertical|center_
horizontal" />
Click to expand...
Click to collapse
whr i hav to paste these lines??
nd i didnt found smali/ com folder after decompiling SystemUI.apk
can u explain in detail?
yagnesh97 said:
whr i hav to paste these lines??
nd i didnt found smali/ com folder after decompiling SystemUI.apk
can u explain in detail?
Click to expand...
Click to collapse
You can paste that anywhere you want to put it. Maybe you didnt decompile properly that's why you cant see the smali folder.
work on 4.3?
Myth2014 said:
work on 4.3?
Click to expand...
Click to collapse
give it a try it might work and if it works, Ill put it on the thread
tentenponce said:
give it a try it might work and if it works, Ill put it on the thread
Click to expand...
Click to collapse
:good:yeah..sir...it work on 4.3..and no bug...
It works perfect!!!!
And i test to put it in status_bar_tracking and it works as clikable!!!!!!
Here is a photo and my status_bar_tracking
(The vodafone icon in header its from your other guide lenox animated and this work perfect!!!!)
I want to achieve the following two tasks by flashing a .zip file in recovery:
1. Open the following file:
Code:
/system/etc/permissions/handheld_core_hardware.xml
Add in the following lines right before the </permissions> closing tag at the end:
Code:
<feature name="android.software.vr.mode" />
<feature name="android.hardware.vr.high_performance" />
2. Open
Code:
/system/build.prop
Add this line:
Code:
ro.product.device=sailfish
So how can I do it?
Lownita said:
I want to achieve the following two tasks by flashing a .zip file in recovery:
1. Open the following file:
Code:
/system/etc/permissions/handheld_core_hardware.xml
Add in the following lines right before the </permissions> closing tag at the end:
Code:
<feature name="android.software.vr.mode" />
<feature name="android.hardware.vr.high_performance" />
2. Open
Code:
/system/build.prop
Add this line:
Code:
ro.product.device=sailfish
So how can I do it?
Click to expand...
Click to collapse
Find an existing zip so you can see the structure of the file. SuperSU would be good so it uses a shell script rather than the Android mess.
You can use the sed built in to busy box to do the rest. Just call it from your shell script.
Sent from my ONEPLUS A3000 using Tapatalk
Lownita said:
2. Open
Code:
/system/build.prop
Add this line:
Code:
ro.product.device=sailfish
Click to expand...
Click to collapse
You do not need to spoof it as a Pixel for Daydream. Just the additions to /etc/permissions will work.
SpasilliumNexus said:
You do not need to spoof it as a Pixel for Daydream. Just the additions to /etc/permissions will work.
Click to expand...
Click to collapse
Hey man, thanks for answering!!!!! I already checked your magisk module for OP3T as I was thinking about using it with my current RR rom!! Spoofing as Pixel because I read that it is important for some apps to work: https://www.reddit.com/r/oneplus/comments/5spgpb/how_to_make_your_op3t_daydream_capable_requires/
Lownita said:
Hey man, thanks for answering!!!!! I already checked your magisk module for OP3T as I was thinking about using it with my current RR rom!! Spoofing as Pixel because I read that it is important for some apps to work: https://www.reddit.com/r/oneplus/comments/5spgpb/how_to_make_your_op3t_daydream_capable_requires/
Click to expand...
Click to collapse
Nope, I've tested it on OxygenOS, RR, and LineageOS (currently running), and it's not needed at all
Also, having interest in creating a flashable zip which inserts those lines you wanted in OP as I did not want to keep adding them manually when I do a ROM update, I've did a bit of research and figured how to do it:
This one searches for the word "mode" and inserts
Code:
<feature name="android.software.vr.mode" />
below in /system/etc/permissions/handheld_core_hardware.xml
Code:
sed -i -r 's/(.*mode.*)/\1\n <feature name="android.software.vr.mode" \/>/g' /system/etc/permissions/handheld_core_hardware.xml
This one searches for the word "high_performance" and inserts
Code:
<feature name="android.hardware.vr.high_performance" />
below in /system/etc/permissions/handheld_core_hardware.xml
Code:
sed -i -r 's/(.*high_performance.*)/\1\n <feature name="android.hardware.vr.high_performance" \/>/g' /system/etc/permissions/handheld_core_hardware.xml
As those words are the only ones in that XML, it made the process pretty easy. I'm still new to using sed, so maybe someone will come up (hopefully) with an even better solution. I haven't created a flashable zip yet as I'm not home, but tested these commands in TWRP and they run perfectly.
Credits to John WH Smith on Stack Exchange for the solution: http://unix.stackexchange.com/quest...-a-new-line-after-the-test-message1-using-sed
And jherran for the replace: http://unix.stackexchange.com/quest...tribute-to-existing-xml-file-using-sed-or-awk
Flashable ZIP attached.
EDIT: Screenshot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Spoofing it as another device will make the Daydream apps available if you do these edits on a device that is already set up and synced with your Google account
If you do the XML edits on a clean install BEFORE booting to Android, no spoofing is needed in build.prop.
SpasilliumNexus said:
Flashable ZIP attached.
Click to expand...
Click to collapse
Thanks a lot! I just tested without sailfish spoofing in buildprop and the app called "Within" didn't work properly. After I added the line back, it worked again!