[FIX] Camera Hard Crash during Capture - LG Optimus G Pro

My Gpro (and I assume everyone elses gpro)'s camera crashes when I take two pictures from my camera rapidly. It's a hard crash, so I cannot use it again until I restart my device. I usually run into this on Snapchat, but it happens on all camera interfaces.
To Fix, add this to your /system/build.prop and reboot:
Code:
camera2.portability.force_api=1
This forces the camera to utilize the legacy API, props to @Sultanxda
PS: Are you a developer? You should add this to your system.prop so that it's patched by default (or at least quote this in your OP)

Man this works, thanks bro

Sorry, kind of new where is the 'build.prop' file? I have been having this issue.

TnT_ said:
Sorry, kind of new where is the 'build.prop' file? I have been having this issue.
Click to expand...
Click to collapse
Use a root enabled file manager and goto /system/.
The easier way is by using my App Tame and simply adding the property to the forced properties section.

thanks, was loocking for this, workd for me!!!

Related

[Guide]Locking Apps In Memory

Create a file local.prop in /data
Open it with text editor and add the following line :
For phone :-
Code:
sys.keep_app_1=com.android.contacts
for any other app
Code:
sys.keep_app_1=com.example.app
Step by Step Guide (Thank vaibhav) :
http://forum.xda-developers.com/showpost.php?p=31628598&postcount=24
Other methods if this does not work :
1 ) http://forum.xda-developers.com/showthread.php?t=1890495(by espaciosalter20)
2 ) http://forum.xda-developers.com/showthread.php?t=1012330(by zeppelinrox)
That's more of a help than asking people to stop raising flags...thanks buddy!
[email protected]
Has any1 tried this already??? does this work?
vaibhav palande said:
Has any1 tried this already??? does this work?
Click to expand...
Click to collapse
It's working for me.
actually i did'nt even have any delay opening the dialer earlier.
maybe someone who had this problem can try and report.
at least there is no boot loop or 'stuck at m logo' problem ,so no harm in trying.
i want to add gosms in memory... the app name is com.jb.gosms..
what line should i add??
sys.keep_app_1=com.jb.gosms OR something else???
vaibhav palande said:
i want to add gosms in memory... the app name is com.jb.gosms..
what line should i add??
sys.keep_app_1=com.jb.gosms OR something else???
Click to expand...
Click to collapse
if you already have contacts in memory then ,
sys.keep_app_2=com.jb.gosms
also you can check app name from package browser located in setting>developer option>launch tools
This works great. Tried it.. all the apps added to local prop take no time to open... thanx a lot... :good::good::highfive:
Do i have to set specific permissions to the file?
Found one thing about editing local.prop
Found one thing:
After entering the app name in local.prop file leave one line blank at the bottom otherwise even if u save it, phone says no changes made... and apps u added in local.prop file won't be locked in memory.. Hope i helped.. :good:
Great tip, thanks . Locked phone in memory, no more delays now.
Trimis de pe Motorola Defy
What about this??? kanpurite?
Mikis89 said:
Do i have to set specific permissions to the file?
Click to expand...
Click to collapse
What about this kanpurite? If we need to set specific permissions which i haven't done, i am living with a placebo effect here. :silly: But seriously now i kept my cell on standby for about an hour, and then tried opening phone, contacts and messaging apps.. BAM.... They open within a split second..
vaibhav palande said:
What about this kanpurite? If we need to set specific permissions which i haven't done, i am living with a placebo effect here. :silly: But seriously now i kept my cell on standby for about an hour, and then tried opening phone, contacts and messaging apps.. BAM.... They open within a split second..
Click to expand...
Click to collapse
EDIT:
when you create local.prop it already has the minimum permissions set (666).
so i don't think there is need to set any permissions.
okay, thanks. can someone make app for this? like hwa selector
mikrom.cz said:
okay, thanks. can someone make app for this? like hwa selector
Click to expand...
Click to collapse
I'm not sure ,but i think this one can help .
https://play.google.com/store/apps/details?id=com.lim.android.automemman&hl=en
Hey, thanks for the tips but i am noob so i want to ask, does this help to open the apps faster than before?
and if i want to put there the messeging app and the dialer what name i must write?
thank u in advance
oxristsis said:
Hey, thanks for the tips but i am noob so i want to ask, does this help to open the apps faster than before?
and if i want to put there the messeging app and the dialer what name i must write?
thank u in advance
Click to expand...
Click to collapse
It keeps your app's in memory all the time.
you can try it if your app's load slowly.
go to /data folder using any file explorer.
create a new file named 'local.prop'.
open it with text editor and add these lines :
sys.keep_app_1=com.android.contacts
sys.keep_app_2=com.android.mms
now save and reboot.
Thanks a lot!
Hope discussion in the main thread wil be over now.
I was in the ' camp' a phone is (still) a phone primarily (for me at least)....
Sd card?
May local.prop be on the sd card in the folder /mnt/sdcard/data ?
how do i create local.prop file.....can u tell me full steps and is data folder is on sdcard
Guys, the path is in the phone's memory. The / sign means the root of that file system.
To make it clear: if you put that file on the SD card the phone will EXPLODE .
Trimis de pe Motorola Defy

[Q] How to use "Restrict background data" WITHOUT notification ?

Hi,
I wish to permanently use the "Restrict background data" feature ( under settings->data usage ) on my JB rom, but the problem is that when I enable that feature, I always get a notification, asking me to "touch to remove" that feature...
I don't wish to do that, even by mistake! I want that notification GONE completely, but to retain the "restrict" feature...
I understand, it's possible to permanently disable notifications, by altering "Settings.apk" somehow - but I don't know what and where to change ( wish file inside that apk ).
I used "apktool" to unpack the apk, but again - which file should I change ? what value/line should I delete ?
My rom is VJ's AOKP v2.2, so "Settings.apk" file is from that rom's version.
Any help would be great :highfive::fingers-crossed:
EDIT:
Guess it has something to do with "DataUsageSummary.smali" (after unpacking the Settings apk -> smali\com\android\settings):
BUT WHAT SHOULD I CHANGE ?!
please reply
gps3dx said:
Any help would be great :highfive::fingers-crossed:
Click to expand...
Click to collapse
Seriously ? Not even the smallest hint you ppl can give me ?:crying::crying:
Can't you even redirect me to the most prevalent sub-forum, here at XDA, for that kind of question ?:silly:
gps3dx said:
Seriously ? Not even the smallest hint you ppl can give me ?:crying::crying:
Can't you even redirect me to the most prevalent sub-forum, here at XDA, for that kind of question ?:silly:
Click to expand...
Click to collapse
Something called the search function; it's really useful.
You can't just expect others to answer your questions promptly. As for your questions, that's part of the android system and if you want to modify it, go ahead. It's not a notification because you can't swipe it away; it's an ongoing thing. SO if you want to go on with that kind of attitude, you can try it yourself.
droid_<3er said:
Something called the search function; it's really useful.
As for your questions, that's part of the android system and if you want to modify it, go ahead. It's not a notification because you can't swipe it away; it's an ongoing thing.
Click to expand...
Click to collapse
I really do appreciate your reply man - even though I googled xda from top to button.
( there are thread about modifying various stuff inside settings.apk / SystemUI.apk - but NON are about that "restriction notification" i'm talking about. )
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Update: For a while now it's already available in Xposed modules repository: http://repo.xposed.info/module/org.adam77root.removerestrictednotification.
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
WOW thnx... but just a few moments before you posted your message I to fulfill that wish of mine... I SOLVED IT !
Although I admit - I DO NOT KNOW if I disabled all of the "restrict background" feature, but I DO managed to enable the "restrict backgound data" checkbox ( then press OK at the popup ) WITHOUT getting any notification at all !
HOW TO DISABLE NOTIFICATION ALERT FOR "RESTRICT BACKGROUND DATA" ( under settings-> data usage-> options )​( I tried that fix on JB 4.2.2 ( to be specific: AOKP VJ Jelly Bean v2.2), BUT I guess it works on all JB 4.2.2 )​1. copy "services.jar" from "/system/framework/services.jar" to your computer.
MAKE A SAFE COPY OF THIS FILE IF SOMETHING HAPPENS TO YOU.
2. extract the jar file using Winrar or any compatible app.
3. using MultiTool decompile the "classes.dex" file as instructed by Multitool's thread.
4. open with any txt editor ( I used Notepad++ ) the file "NetworkPolicyManagerService.smali" under "decompiled\classout\com\android\server\net\" ( which is a sub-folder of Mulitool's folder that you've previously extracted )
5. A . search for:
Code:
invoke-interface/range {v0 .. v6}, Landroid/app/INotificationManager;->enqueueNotificationWithTag(Ljava/lang/String;Ljava/lang/String;ILandroid/app/Notification;[II)V
delete completely that line or add "# " in the start of that line ( which is what I did ) so that line looks like that:
Code:
# invoke-interface/range {v0 .. v6}, Landroid/app/INotificationManager;->enqueueNotificationWithTag(Ljava/lang/String;Ljava/lang/String;ILandroid/app/Notification;[II)V
B. search for:
Code:
invoke-virtual {v0, p1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
add "# " in the start of that line ( which is what I did ) or delete completely that line
6. SAVE that smali file that you've just edited.
7. using Multitool, recompile the classes.dex file.
if everything went good, you'll have classes.dex file under MultiTool's sub-folder named "output"
8. using Winrar, open "services.jar", replace the current "classes.dex" with the recompiled one that you've made.
9. copy the remade "services.jar" to your device(using adb etc ):
Code:
adb push "services.jar" /system/framework/services.jar
10. chmod "services.jar" to "-rw-r--r--", meaning you need to:
Code:
adb shell chmod 644 /system/framework/services.jar
11. restart your device, and It should rebuilt your dalvik cache.
ONLY if it didn't, I guess you should delete "/data/dalvik-cache/[email protected]@[email protected]" file, reboot again so your OS will create that dalvik-cache file.
I'll be happy to know if anyone can verify that indeed my fix just remove his/her notification, but retain the ability to disable background data. THANKS !
Sorry I doubted you. You are a genius!
Many thanks!!
Adam77Root, thank you so much for that module! I can confirm it working on my Galaxy Note 2. That notification was unbelievably annoying.
gps3dx, thank you too for this thread and your fix. While I didn't try it because I already have Xposed framework installed and I'd rather use the less invasive approach, I am still grateful for your seeing a problem, addressing it, and proactively doing something about it. My respects to you. I searched around quite a bit and came across many other forums on different sites where people had this same problem unanswered. I hope they find their way to this thread.
To the above poster who jumped down the OP's throat for bumping this topic 4 days after it went unanswered, obviously you didn't do any search on this topic yourself. I did. And until this thread, I found nothing really useful. And lo-and-behold, someone was kind enough to actually do something useful instead of pointlessly sitting there and criticizing. The squeaky wheel gets the grease. Rudely telling someone to 'check their attitude and search' is not helpful- it's just rude and pointless. Just FYI.
I have an i9300 and I can't find the first line in that archive...
eXtremeDevil said:
I have an i9300 and I can't find the first line in that archive...
Click to expand...
Click to collapse
mybe it is because you run JB 4.1.2 not 4.2.2 like I do, plus mybe you're running some custom framework ( it is not AOKP as I suspect from you sig )
Adam77Root said:
...I've quickly put together an Xposed module that removes the notification.
Click to expand...
Click to collapse
@Adam77Root
Big thanks for this module: I installed another 4.2.2 JB rom for my HTC Desire, and your module works !:good::good:
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
this was working fine on my aokp jb mr1 Milestone 2, but stopped working when i installed the nigthly nightly (jb-mr1)2013-08-21 (wich fixes my camera issues and soe other stuff)
is there anything i can try myself to fix this or is it just incopatible with that nightly? (its still 4.2)
I'm using Lenovo phone, 4.2.1 Version. In "services.jar" I see only folder "META-INF" and file "MANIFEST.MF". I tried to rename the file to classes.dex then using MultiTool decompile but I receive: "Unexpected top-level exception:java.lang.RuntimeException:bad magic value...etc"
So what's wrong, where to find classes.dex? Someone?
new edit: Thanks a lot for all the replies, also Xposed framework+module didn't work.
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
Thanks a lot. Works awesome. Is it possible to post the source code to this?
css771 said:
Thanks a lot. Works awesome. Is it possible to post the source code to this?
Click to expand...
Click to collapse
I'm almost certain I don't have the original files anymore. Since it's pretty simple, you can either decompile the apk or check Android source of the class I mentioned in the post you quoted. Only one function is replaced with returning null.
Edit: Just checked, the function is enqueueRestrictedNotification.
Sent from my OmniROM-powered LG Optimus 4X HD
Xposed module works perfect on LG G2. Thanks a bunch!
Sent from my VS980 4G using Tapatalk
Adam77Root said:
I've seen this thread in the unread threads of XDA app and although I don't use that feature, I got curious to try it out. So I've quickly put together an Xposed module that removes the notification.
You have to install Xposed framework. Get it here: http://forum.xda-developers.com/showthread.php?t=1574401
Also, install my module from the attachment, enable it and do a soft reboot in Xposed.
It works for me on my Galaxy R with CM10.1 and I assume it will work for you too, as the module doesn't change the Settings, but com.android.server.net.NetworkPolicyManagerService class. If you have any problems, post a logcat and /data/xposed/debug.log
Click to expand...
Click to collapse
nice module.. work perfectly.. thanks
rooting?
do i have to root my phone to do this? will the module work without rooting? i'm new to playing with codes on my phone but I have done a lot of work with linux before so i can understand the process, i've just never rooted my phone before. i'd really like to get rid of this notification and the "usb connectivity" app's notification: internal storage &SD card- internal storage &SD card connected to PC. I mean, do i really need a notification to tell me that my phone is connected to my PC?
that last request isn't as important, at least if i accidentally click on that i'm not turning on background data use!
-yasboss
xperia z1s
jb 4.3
(just joined xda devs)
p.s.
is this the right place to ask this question?
yasboss said:
do i have to root my phone to do this? will the module work without rooting? i'm new to playing with codes on my phone but I have done a lot of work with linux before so i can understand the process, i've just never rooted my phone before. i'd really like to get rid of this notification and the "usb connectivity" app's notification: internal storage &SD card- internal storage &SD card connected to PC. I mean, do i really need a notification to tell me that my phone is connected to my PC?
that last request isn't as important, at least if i accidentally click on that i'm not turning on background data use!
-yasboss
xperia z1s
jb 4.3
(just joined xda devs)
p.s.
is this the right place to ask this question?
Click to expand...
Click to collapse
you need root to use xposed installer..
what else can it be used for?
ajeesh vijayan said:
you need root to use xposed installer..
Click to expand...
Click to collapse
can i use it for other notifications like i asked? I mean there's more than just the USB connectivity etc

Request)(DCP Extraction from dng Generated by find 7

Could some extract the dcp file from the dng file taken on the oppo find 7 need to generate ICC profile for the imx135 raw debayering.
here's the tool to extract the file thanks dcptool.sourceforge.net/Introduction.html
Thank you for your work!!
defcomg said:
Could some extract the dcp file from the dng file taken on the oppo find 7 need to generate ICC profile for the imx135 raw debayering.
here's the tool to extract the file thanks dcptool.sourceforge.net/Introduction.html
Click to expand...
Click to collapse
I have an Oppo Find 7 x9076 US version. Ran the dng as follows "dcptool img.dng img.xml" let me know if you need it ran any other way or if you want the original.
Real quick, would this camera app work on CM11 for Find 7... I'm still on the native os "Color OS"(which is very clunky) but I don't want to move over to CM11 without a camera that can do RAW.
jaceace32 said:
I have an Oppo Find 7 x9076 US version. Ran the dng as follows "dcptool img.dng img.xml" let me know if you need it ran any other way or if you want the original.
Real quick, would this camera app work on CM11 for Find 7... I'm still on the native os "Color OS"(which is very clunky) but I don't want to move over to CM11 without a camera that can do RAW.
Click to expand...
Click to collapse
in theory since cm11 uses the same hal as color is you could you use stock camera app in cm11 it probably just needs a quick XML edit Post the color os camera app will search what libs are needed. thanks for the XML the Matrix was empty tho oh let someone running cm11 try freedcam in settings image quality picture formats look for jpeg+dng /jpeg+raw.
defcomg said:
in theory since cm11 uses the same hal as color is you could you use stock camera app in cm11 it probably just needs a quick XML edit Post the color os camera app will search what libs are needed. thanks for the XML the Matrix was empty tho oh let someone running cm11 try freedcam in settings image quality picture formats look for jpeg+dng /jpeg+raw.
Click to expand...
Click to collapse
I'll share the dng i took with the camera, maybe you'll have a better shot.
DNG Image from OPPO find 7
https://drive.google.com/file/d/0B2sKOiZ3x1KWNFFXTlpCVk9CZW8/edit?usp=sharing
Camera:
Oppo stock camera APK
http://forum.xda-developers.com/attachment.php?attachmentid=2729121&d=1399395019
And from a new OPPO chinese beta 2.0 rom but working in their stable 1.2 releases is this apk
http://www12.zippyshare.com/v/73078312/file.html
jaceace32 said:
I'll share the dng i took with the camera, maybe you'll have a better shot.
DNG Image from OPPO find 7
https://drive.google.com/file/d/0B2sKOiZ3x1KWNFFXTlpCVk9CZW8/edit?usp=sharing
Camera:
Oppo stock camera APK
http://forum.xda-developers.com/attachment.php?attachmentid=2729121&d=1399395019
And from a new OPPO chinese beta 2.0 rom but working in their stable 1.2 releases is this apk
http://www12.zippyshare.com/v/73078312/file.html
Click to expand...
Click to collapse
Gave Stock App A try
Need to redirect OppoUsbEnviroment to Android/os/environment
will need any apk's found in /system/framework as well as framework. jar if framework2.jar exists that also so I can decompile the apk correctly then we should get the apk to run on aosp
No problem! I went ahead and zipped the system/frameworks folder in case you see anything else in there that's helpful. 29mb https://docs.google.com/file/d/0B2sKOiZ3x1KWOTVjMDZETjFOVTA/edit?usp=docslist_api
jaceace32 said:
No problem! I went ahead and zipped the system/frameworks folder in case you see anything else in there that's helpful. 29mb https://docs.google.com/file/d/0B2sKOiZ3x1KWOTVjMDZETjFOVTA/edit?usp=docslist_api
Click to expand...
Click to collapse
Can't get the XML files in the apk to Decompile correctly dunno what's up will try different apktool/baksmali/vts.
go here forum.xda-developers.com/showthread.php?t=2753946&page=1 in Picture Formats do you see Jpeg+Dng?
Just loaded cm11. On freedcamera I'm seeing
jpeg,bayer-mipi-10bggr,bayer-ideal-qcom-10bggr,bayer-qcom-10bggr,yuv422sp
And just to confirm instead of seeing grbg I'm seeing bggr
Edit: those are also the same values while in the native Color OS
jaceace32 said:
Just loaded cm11. On freedcamera I'm seeing
jpeg,bayer-mipi-10bggr,bayer-ideal-qcom-10bggr,bayer-qcom-10bggr,yuv422sp
And just to confirm instead of seeing grbg I'm seeing bggr
Edit: those are also the same values while in the native Color OS
Click to expand...
Click to collapse
choose
bayer-mipi-10bggr
attach a sample file.
will recheck the oppo camera apk and try to emulate the way it saves dng in color os
defcomg said:
choose
bayer-mipi-10bggr
attach a sample file.
will recheck the oppo camera apk and try to emulate the way it saves dng in color os
Click to expand...
Click to collapse
15mbs here you go
https://drive.google.com/file/d/0B2sKOiZ3x1KWVGtZbWtJaHQ3S1U/edit?usp=sharing
Thanks for taking a look into this!
jaceace32 said:
15mbs here you go
https://drive.google.com/file/d/0B2sKOiZ3x1KWVGtZbWtJaHQ3S1U/edit?usp=sharing
Thanks for taking a look into this!
Click to expand...
Click to collapse
yeah dcraw decodes it it was an image of raw camera thread.
Oppo Camera uses standard raw picture callback then saves the bytestream with .dng extension will enable it in freedcam the method exists just disabled not sure if the cm11 libs will pull raw stream but it will not hurt to try.
What's Poster Mode in the Camera? it uses jni libs that I could import into freedcam.
defcomg said:
yeah dcraw decodes it it was an image of raw camera thread.
Oppo Camera uses standard raw picture callback then saves the bytestream with .dng extension will enable it in freedcam the method exists just disabled not sure if the cm11 libs will pull raw stream but it will not hurt to try.
What's Poster Mode in the Camera? it uses jni libs that I could import into freedcam.
Click to expand...
Click to collapse
I haven't used the new camera but i believe it might be a locale feature (china) like QR scanner but with posters
http://forum.xda-developers.com/find-7/themes-apps/oppocamera-apk-chinese-beta-rom-t2809177
The only other features worth exploiting if even possible would be
"Super Zoom", a 50mp photo compilation of multi shots
and maybe a color profile for Adobe Camera/Lightroom since it appears that native C.OS Raw files are appearing very purpleish (70s retro feel)
jaceace32 said:
I haven't used the new camera but i believe it might be a locale feature (china) like QR scanner but with posters
http://forum.xda-developers.com/find-7/themes-apps/oppocamera-apk-chinese-beta-rom-t2809177
The only other features worth exploiting if even possible would be
"Super Zoom", a 50mp photo compilation of multi shots
and maybe a color profile for Adobe Camera/Lightroom since it appears that native C.OS Raw files are appearing very purpleish (70s retro feel)
Click to expand...
Click to collapse
Having issue with rawcallback code because oppo uses a hidden api
the method is this android. hardware . Camera . addRawImageCallbackBuffer
in the stock camera apk that code is executed before take picture executes raw call back I've tried using reflection to allow me to access that method see this commit https://github.com/troop/FreeDCam/commit/1539cf777a29023bd7c1c2c3e088ed62de0c973b
but I still get the method not found error even the the method exists in the framework once I get this right I believe it should be matter of saving the bytes to file as dng
defcomg said:
Having issue with rawcallback code because oppo uses a hidden api
the method is this android. hardware . Camera . addRawImageCallbackBuffer
in the stock camera apk that code is executed before take picture executes raw call back I've tried using reflection to allow me to access that method see this commit https://github.com/troop/FreeDCam/commit/1539cf777a29023bd7c1c2c3e088ed62de0c973b
but I still get the method not found error even the the method exists in the framework once I get this right I believe it should be matter of saving the bytes to file as dng
Click to expand...
Click to collapse
Silly question but worth checking. Does it matter the camera is based on 4.3? Wondering if it has anything to do with the androidmanifest.xml
jaceace32 said:
Silly question but worth checking. Does it matter the camera is based on 4.3? Wondering if it has anything to do with the androidmanifest.xml
Click to expand...
Click to collapse
try this open FreedCam goto Quality Settings then in Picture format select jpeg then take a picture see if it saves a dng file in dcim freedcam
Tried the attached APK. Setting to jpg and taking a photo, nothing is saved.. in any format.
Pls create the folder FreeCam in /sdcard/DCIM
Then it works
Sent from my LG-D855 using XDA Free mobile app

how to change hardware device name

hey guys,
this might be a more broader android question, but either way: is there a way to change the hardware device name of a device?
i.e. my issue is the following - i use the "good for work" application for my work emails. My company basically has every manufacturer added to their approved list (HTC, Samsung, even Nexus devices work no problem). Now that I have my sweet OP3, I get the below error message (pic attached)
"the device hardware version is 'oneplus a3000 android 6.0.1' and is not permitted. Install the application on a permitted device."
now - before you tell me to go to my network admins and have the device added - I can't do that for reasons I won't go into here. Basically i want to understand if there's a way to change certain files on the phone that will make this application think it's a nexus device and clear it.
I tried editing the build.prop file (using twrp and adb - since I don't have root) to remove all mention of oneplus, etc. and replacing with "nexus" or something else (used the build.prop file from my 5x for reference). But the app still does not work and the OP3 still shows the model as One Plus 3 in the "about phone" section. This is really fascinating to me. What is driving this device's identity?
Appreciate any thoughts/suggestions you might have.
Try xposed mods... I think it is possible
Wrong forum.
Sent from my ONEPLUS A3000 using XDA-Developers mobile app
wrong section.
post this in Q&A
@piotrus22, If you correctly modified your build prop then it's almost impossible to come as Oneplus name in about section of setting.
as far as I know the name in about section is read from build prop.
can you provide link to your modified build.prop file so i can see what's a problem.
Have you applied correct permissions (rw-r--r-- or 0644) to build prop after side loading
Go to your Bluetooth settings, select the menu, and Rename this device.
JumboMan said:
@piotrus22, If you correctly modified your build prop then it's almost impossible to come as Oneplus name in about section of setting.
as far as I know the name in about section is read from build prop.
can you provide link to your modified build.prop file so i can see what's a problem.
Have you applied correct permissions (rw-r--r-- or 0644) to build prop after side loading
Click to expand...
Click to collapse
thanks @JumboMan. attached are both build.props (edited and non-edited). I ran the command "adb shell chmod 644 /system/build.prop" after I pushed the file onto the phone. I believe it worked because I added the line about LCD density (ro.sf.lcd_density=420) and the density did indeed change. Also - I am able to view the updated build.prop in a file browser when I open the phone with the changes I've made.
...still confused...
piotrus22 said:
thanks @JumboMan. attached are both build.props (edited and non-edited). I ran the command "adb shell chmod 644 /system/build.prop" after I pushed the file onto the phone. I believe it worked because I added the line about LCD density (ro.sf.lcd_density=420) and the density did indeed change. Also - I am able to view the updated build.prop in a file browser when I open the phone with the changes I've made.
...still confused...
Click to expand...
Click to collapse
I have carefully inspected build.prop file and i found that build.prop doesn't have "ro.product.model" line . That's why you are not able to change device name.
So if you have to change device name you have to manually add above line with whatever device name you want and push file to phone and apply proper permissions
e.g ro.product.model=device name you want
In your case above line will look like ro.product.model=Nexus 5x
Though not required,change lines containing OnePlus to your custom device name
JumboMan said:
I have carefully inspected build.prop file and i found that build.prop doesn't have "ro.product.model" line . That's why you are not able to change device name.
So if you have to change device name you have to manually add above line with whatever device name you want and push file to phone and apply proper permissions
e.g ro.product.model=device name you want
In your case above line will look like ro.product.model=Nexus 5x
Though not required,change lines containing OnePlus to your custom device name
Click to expand...
Click to collapse
ok - making progress here. the model name now shows up as Nexus 5x, but when the computer recognizes the phone it still shows up as ONEPLUS A3000... and what about the build? I've tweaked everything I can think of but still can't change the build number from "ONEPLUS A3000_16_0705"
any ideas?
piotrus22 said:
ok - making progress here. the model name now shows up as Nexus 5x, but when the computer recognizes the phone it still shows up as ONEPLUS A3000... and what about the build? I've tweaked everything I can think of but still can't change the build number from "ONEPLUS A3000_16_0705"
any ideas?
Click to expand...
Click to collapse
now I think I'm going out of ideas.
I think you have to ask some experienced dev
JumboMan said:
now I think I'm going out of ideas.
I think you have to ask some experienced dev
Click to expand...
Click to collapse
how do I do that? just hope one of them sees this post? LOL
piotrus22 said:
how do I do that? just hope one of them sees this post? LOL
Click to expand...
Click to collapse
Yesterday I researched a lot about your question but I only found half answer.
Now Today I'm back with more build prop lines that will 100% solve your question.
This time I tested myself first before posting to confirm the changes
So here is a Trick
=====
1.To change Model Number
ro.product.model=Nexus 5x
2.To Change Build Number
ro.build.display.id=Nexus 5x
ro.build.display.full_id=Nexus 5x
ro.build.id.hardware=Nexus 5x
=====
Note - value "Nexus 5x" is used just as an example.
You change this value to anything you want.
JumboMan said:
Yesterday I researched a lot about your question but I only found half answer.
Now Today I'm back with more build prop lines that will 100% solve your question.
This time I tested myself first before posting to confirm the changes
So here is a Trick
=====
1.To change Model Number
ro.product.model=Nexus 5x
2.To Change Build Number
ro.build.display.id=Nexus 5x
ro.build.display.full_id=Nexus 5x
ro.build.id.hardware=Nexus 5x
=====
Note - value "Nexus 5x" is used just as an example.
You change this value to anything you want.
Click to expand...
Click to collapse
you sir are amazing. just tried it and it worked. will test it out to see if it causes other issues. may I buy you a beer?
piotrus22 said:
may I buy you a beer?
Click to expand...
Click to collapse
For me Thanks=Beer, so thanks are sufficient
JumboMan said:
For me Thanks=Beer, so thanks are sufficient
Click to expand...
Click to collapse
Ok @JumboMan, so now my phone won't save video. Basically when I try to take a video with the camera app, it hangs up on the "saving" section. Then the only way to get the camera running again is to reboot. I can't believe this is related to what I did in the build.prop files right?
The driver names will ever be the real device name. So...
:thumbup:
Sent from my XT320 using xda premium
piotrus22 said:
Ok @JumboMan, so now my phone won't save video. Basically when I try to take a video with the camera app, it hangs up on the "saving" section. Then the only way to get the camera running again is to reboot. I can't believe this is related to what I did in the build.prop files right?
Click to expand...
Click to collapse
It may be due to build prop changes but I'm not sure. can you use 3rd party camera app check for your problem. or it only occurs with stock camera.
JumboMan said:
It may be due to build prop changes but I'm not sure. can you use 3rd party camera app check for your problem. or it only occurs with stock camera.
Click to expand...
Click to collapse
Third party camera app has the same problem. Will revert to original build prop and see if that fixes the issue. Will report back.
JumboMan said:
For me Thanks=Beer, so thanks are sufficient
Click to expand...
Click to collapse
Dethfull said:
The driver names will ever be the real device name. So...
:thumbup:
Sent from my XT320 using xda premium
Click to expand...
Click to collapse
@Dethfull do you know which items in the build prop coordinate to the drivers for the camera?
ok so I think I fixed it. I played around with the build.prop file and it appears changing the ro.product.manufacturer =OnePlus back from Nexus5 did the trick. Camera seems to be much faster than before and videos can save now, and the Good app still works.
Will update if things change but hopefully not!

Disable high volume warning

Hi, I want to disable the High volume warning, I already have a solution, right now I use terminal shortcut pro and have created a shortcut to run the command
Code:
settings put global audio_safe_volume_state 0
it work great but doesn't survive a reboot so I have to run the shortcut after every reboot. I found an old thread on reddit that say adding the line
Code:
audio.safemedia.bypass=true
to build.prop can also disable the high volume warning, but the thread was so old, they were talking android 6.0
I plan to try to add this prop on boot using the magisk module MagiskHide Props Config, I know it work great because I already added a prop to reduce the media volume steps to 15 instead of 30, but i dont know if the prop
Code:
audio.safemedia.bypass=true
is still working on android 10
Another solution would be to have an app that run the terminal command
Code:
settings put global audio_safe_volume_state 0
automatically after boot, but I would prefer to add the prop line if anyone can confirm it still work on android 10
Thank you all !
Nice to know.... what's also wondering from time to time how to overcome the warning. let me know if you get it to a working solution.
Just for the last part: tasker would be the way to go.
Gesendet von meinem HD1903 mit Tapatalk
xe0r said:
Nice to know.... what's also wondering from time to time how to overcome the warning. let me know if you get it to a working solution.
Just for the last part: tasker would be the way to go.
Gesendet von meinem HD1903 mit Tapatalk
Click to expand...
Click to collapse
After 24 hours testing the audio.safemedia.bypass=true with MagiskHide Props Config, I have not seen the warning yet, but I need to test it longer to be sure it work
Just a quick update for future search, the prop
Code:
audio.safemedia.bypass=true
seem to work, I have not seen the high volume warning for the whole week, so problem solved !
Hey one question, how were you able to edit the build.prop file? Whenever I try to do so with Root Explorer, it doesn't save my changes. OnePlus 8 Pro Android 10
memocatcher said:
Hey one question, how were you able to edit the build.prop file? Whenever I try to do so with Root Explorer, it doesn't save my changes. OnePlus 8 Pro Android 10
Click to expand...
Click to collapse
Only with Magisk module MagiskHide Props Config
jacobyo7 said:
Just a quick update for future search, the prop
Code:
audio.safemedia.bypass=true
seem to work, I have not seen the high volume warning for the whole week, so problem solved!
Click to expand...
Click to collapse
Hello and thank you for finding a workaround for this stupid issue! Do you know if this is still working on android 11? After installing the module, how can I correctly set it? Thank you so much for your help
I tried setting it with termux but it's not working
addsfsds said:
I tried setting it with termux but it's not working
Click to expand...
Click to collapse
I still use it with 11 on my OP7T but I am unsure if this prop remove the audio warning or if there is no warning at all on my device. Never tried 11 wihtout the prop so IDK.
Another way you can try is the system UI tuner app on the play store, there is a setting to disable the warning under the audio & sound category. Good luck !
jacobyo7 said:
I still use it with 11 on my OP7T but I am unsure if this prop remove the audio warning or if there is no warning at all on my device. Never tried 11 wihtout the prop so IDK.
Another way you can try is the system UI tuner app on the play store, there is a setting to disable the warning under the audio & sound category. Good luck !
Click to expand...
Click to collapse
Thank you for your reply! I kept trying to no avail. Can't make it work unfortunately. When you upgraded to android 11, did you make the procedure again from scratch? Can you please explain what you did on termux?
Is the system ui app an app that it's aways on background?
Thank you so much!
addsfsds said:
Thank you for your reply! I kept trying to no avail. Can't make it work unfortunately. When you upgraded to android 11, did you make the procedure again from scratch? Can you please explain what you did on termux?
Is the system ui app an app that it's aways on background?
Thank you so much!
Click to expand...
Click to collapse
No the system UI tuner app just change some hidden android settings, it do not run in the background. The description of the app even state you can delete the app once you changed the desired setting. Read the whole description to understand how it work. Try it, I think this might be the best solution.
SystemUI Tuner - Apps on Google Play
PLEASE READ ENTIRE DESCRIPTION BEFORE INSTALLING
play.google.com
jacobyo7 said:
No the system UI tuner app just change some hidden android settings, it do not run in the background. The description of the app even state you can delete the app once you changed the desired setting. Read the whole description to understand how it work. Try it, I think this might be the best solution.
SystemUI Tuner - Apps on Google Play
PLEASE READ ENTIRE DESCRIPTION BEFORE INSTALLING
play.google.com
Click to expand...
Click to collapse
Thank you for your kind suggestion. I tried and again it didn't work, really don't know why.
addsfsds said:
Code:
settings put global audio_safe_volume_state 0
Thank you for your kind suggestion. I tried and again it didn't work, really don't know why.
Click to expand...
Click to collapse
i can confirm that no app does change the setting of safe volume limit.
All tests on rooted device from LOS14-LOS19. Tried different apps like systemuituner, safevolumelimitdisabler, volumesteps+, jamesdsp etc.
Tried to patch the global variable "safe_media_volume" like described here on a rooted device but no luck.
Just ran
[adb shell] settings put global audio_safe_volume_state 0
via adb, when the message popped up, afterits i had to confirm the nag-screen, to raise the volume. it's so weird..

Categories

Resources