yashsingh1/xdaforums huggingface dataset:
[One (M8) Android Development] NZJon:
How to mount SD card's 2nd partition?

Hi there,

I have a question, which I've not been able to figure out. Maybe someone here is able to help me.

I am using ViperOne (v 6.1.0) on my HTC One M8. For a long time I have used a 64GB Micro SD card (SanDisk Extreme U3) as external storage. However, I am now finding that my internal 16GB of storage just isn't quite enough. I thought I had two options:

1) Create a second partition on the SD Card, and use that, along with an app such as Link2SD, or Apps2SD, to allow me to create symbolic links, and shift some of my installed apps onto the SD card. Or

2) "Adopt" the entire SD Card as internal storage.

Whenever I tried doing option 2--adopting the SD Card as internal storage--once the reformatting of the card completed, my phone would reboot itself (maybe there was a "kernel panic" type error, which caused the reboot??), and then it would get stuck in a continual reboot cycle. The phone would reboot, and then Android would report it was initialising X of Y apps... and when that had completed, it would reboot itself, and attempt to re-initialise all the apps... :(

I tried option 1) above--creating a second partition. This was generally OK, except that the second partition did not seem to get mounted when the phone was rebooted. This meant that apps which had been linked to the SD card would no longer work. Link2SD would offer to do a "quick reboot" (which, maybe is just a restart of the Android shell??), and after that, things seemed to be OK.

I wonder whether it is possible to create a script that is executed on *every* reboot, which will correctly mount the second partition. My basic Linux knowledge would suggest that a script in /etc/init.d should do the trick... except I don't think init.d is used/supported in ViperOne.

So... does anyone know a way to get things going for me?

Many thanks for your time,

Jon
[One (M8) Android Development] cine$ref:
Hi, I cant login Snapchat please help me
[One (M8) Android Development] justsomeguy007:
You need to hide root
[One (M8) Android Development] DahakePL:
Flash unSu then login to snapchat and then root again by flashing your desired root method (superSU for example)
[One (M8) Android Development] Harakiri187187:
MIC is not working when I turn on the loudspeaker. Anyone else having this issue?

Another question: How can I use camera from Lock Screen without having to unlock the device?

Thanks.
[One (M8) Android Development] demian12:
Install Magisk and you are good to go.
[One (M8) Android Development] cine$ref:
Hi, I tryed with unSu, but I cant login :(
[One (M8) Android Development] demian12:
Extract boot.img from the rom then flash it.

Flash latest magisk.

Enjoy snapchat.
[One (M8) Android Development] magicalpig76:
No prompt for adb debugging authorization

I'm having a problem that I think you are describing here. I cannot adb to my phone because it is listed as "unauthorized" and I am never prompted by my phone to allow access. I have a question about this workaround. When you say "use fastboot" are you talking about the fastboot.exe utility on my computer? Will fastboot be able to communicate with my phone being that it's "unauthorized?"

Thanks
[One (M8) Android Development] seliver:
Yesterday I clean-flashed this rom, installed magisk but couldn't make the phone to wake up on double tap, even with the option turned on on motion launch menu of system settings. What can I do to make it work? Thanks
[One (M8) Android Development] Black-FR:
You use the sense lock screen? Or did you enable the aosp lock screen?

The gestures works only, with the sense lock screen.
[One (M8) Android Development] seliver:
Sense.
[One (M8) Android Development] seliver:
Any ideas?
[One (M8) Android Development] vladimir.jz:
on developer options , select "Revoke USB debugging authorizations", and plug again.
[One (M8) Android Development] magicalpig76:
My phone did not have that option. I think I read it was missing because of an update to the ViperOneM8 ROM. Somehow I got past this problem, though. I did so much with my phone these past couple of days, I can't even remember what I did to solve it.
[One (M8) Android Development] vladimir.jz:
In the "About" menu, touch 7 times (i dont' remember) on Build Number, this activate the developer menu options.
[One (M8) Android Development] moonlight4u:
how to install Magisk correctly in this rom ?
[One (M8) Android Development] romirom:
Can you provide a list what to delete? The link is dead.

Now trying to get magisk and motion launch working. When i change the original boot image (with SuperSu flashed by VenomRom installer) ML stops working immediately.

When i want to install magisk it says that boot.img is modified and won't continue.

Anyone found solution to that?

EDIT:

found this in the installer-script. It seems, that it installs the root, and then copies some files onto /su (su.img from boot)

package_extract_dir("additions/supersu", "/tmp/supersu");

run_program("/sbin/busybox", "unzip", "/tmp/supersu/SuperSU.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");

run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/SuperSU.zip");

ifelse(is_mounted("/su") == "/su", unmount("/su"));

run_program("/sbin/mount", "-t", "ext4", "/data/su.img", "/su");

run_program("/sbin/sleep", "2");

package_extract_dir("additions/suimg", "/su");

set_perm_recursive(0, 2000, 0755, 0755, "/su/su.d");

set_perm_recursive(0, 2000, 0755, 0755, "/su/xbin");
[One (M8) Android Development] m6284505:
Still is for me. If there is a fix I haven't been able to locate it.
[One (M8) Android Development] Azaeel:
Hello guys,

I would need advice from you. My speaker stopped working. When someone calls me and I pick up the call I can not hear anything :( I already replace the speaker for a new, reinstall with full wipe and speaker worked one day and again the same thing :( Yesterday I did several times again full wipe but without success. I think the speaker is alright and there is some software problem.

Have someone some idea where is a problem ??

Thanks for your help (sorry for my English)
[One (M8) Android Development] demian12:
Try to flash stock RUU.
[One (M8) Android Development] frostinide:
Patch for Trusted Face

When you go into Settings > Security > Smart Lock > Trusted Face and try to set it up, you will get an error message.

Cause

There is a missing system library: libfacelock_jni.so

Solution

You can grab this file from opengapps, place this in /system/lib/, then do chmod 644 on it.

Alternatively, you can install the attached file from recovery which will fix this automatically.

NOTE: to use Trusted Face, the 'Bypass Lockscreen' setting must be 'Off' in Venom Tweaks. If you still have issues then reboot your phone. I have tested this myself and it works.
[One (M8) Android Development] Azaeel:
thx for help. I'm on stock RUU but speaker still doesn't work :( Any other idea ??
[One (M8) Android Development] Anonaru:
My bottom speaker is dead, I'm 99% sure the cause is hardware failure. Did yours go out one day during normal use, or did it specifically die immediately after you flashed something ?
[One (M8) Android Development] Monzer_:
Hello , I just went thro the install and everything worked fine just wondering - because I can't remember well - when I checked the apps in the installer does that mean I wanted to exclude them or install them ? because I can't find google apps ?
[One (M8) Android Development] xunholyx:
One section is uninstall, one is install. It says at the top of the pages what it is. It sounds like you chose to uninstall the Google apps.

Dirty flash the ROM and do your selections again
[One (M8) Android Development] Monzer_:
erm .. I already installed everything dang it ! I will see but it doesn't matter if I install them from store right ?

also when I chose to disable allow peaking from apps so I don't get double notification I find out that they are enabled again !! any idea what's causing that ??
[One (M8) Android Development] xunholyx:
Just dirty flash it. You won't lose any data.
[One (M8) Android Development] frostinide:
FM Radio Patch

I have attached a patch that should add the FM Radio app, widget, and service. This will also allow you to use some third-party apps such as NextRadio. Please install the attached file from recovery.

Note: I was not successful in picking up any stations and only get static. The antenna pins may be grounded to intentionally disable FM Radio functionality. I've read this is common on many phones (not just the One M8). If you only get static, you're out of luck unfortunately. My model is not Verizon so it's not limited to just that carrier.
[One (M8) Android Development] Monzer_:
Rom great I only have 2 issues so far. I'm missing messages stock app [emoji53][emoji53].and when I turn off allow peaking for certain apps it goes back on! Any fix?
[One (M8) Android Development] romirom:
Motion launch & magisk

Anyone got both working on 6.1.0?
[One (M8) Android Development] Wojciech Bielawski:
Hello all,

I have a problem after moving from 6.0.0 to 6.1.0. Namely

As under 6.0 I had a card formatted as internal memory that was all right and with LTE there was no problem.

After updating I can not format my card as internal memory and although I have an LTE logo I do not have internet connection, I have to disable and enable mobile data or reset the device and just return the Gprs connection ...

What may be the problem ?

sorry for my English.
[One (M8) Android Development] Azaeel:
After replace and full wipe speaker working almost all day until actualization of the apps. After that, I try it full wipe without actualization but nothing :/ From this time I trying to install other customs ROM and last change was stock ROM but the same result, speaker doesn't work :(

In my case, the problem may be in the upper board or flex cable :/
[One (M8) Android Development] Azaeel:
Hi, did You try a full wipe ??
[One (M8) Android Development] Wojciech Bielawski:
Hi.

I think I always do before installation full wipe

---------- Post added at 11:35 AM ---------- Previous post was at 11:17 AM ----------

Now i WIPE

\Dalvik / ART cache

\cache

\System

\Data

and install again ViperOneM8 6.1.0

M8 with SD card formatted as internal memory does not start, no card starts..

When i want to format the sd card. Receives the message.

http : / / tufotki.pl / LOi2c

(delate spaces)

I did not have this before :(
[One (M8) Android Development] Azaeel:
Try format card in TWRP . Try used in TWRP Wipe - > advanced wipe.
[One (M8) Android Development] Wojciech Bielawski:
I did so, but every formatting from the system ended up with such an error.

And formatting the card as internal memory ends with resetting the phone.
[One (M8) Android Development] Wojciech Bielawski:
Can I install ViperoneM8_5.0.2 on an existing 6.1.0
[One (M8) Android Development] Wojciech Bielawski:
I installed android and still have a problem.

Problem connecting to the internet (icon shows there is connection) no connection - i need to turn it off and on.

Problem with SD card formatting. Ends with an error.

Can someone help me
[One (M8) Android Development] Black-FR:
You did full wipe, if you switched from viper 6.x.x to 5.x.x?

If no, then issues are expected.
[One (M8) Android Development] edinrh:
Can i install this on My M8 AT&T coming from Lollipop 5.0.2 ?
[One (M8) Android Development] Black-FR:
Same as on the m7. ;)

You should update your firmware to the latest version and then you could flash the ROM.
[One (M8) Android Development] Wojciech Bielawski:
I was WIPE

\Dalvik / ART cache

\cache

\System

\Data

And Aroma installer forces a full wipe and always does ...

---------- Post added at 05:34 AM ---------- Previous post was at 04:55 AM ----------

So i did ...

I've been working on ViperoneM8 6.0.0 for a long time and it was not a problem. After updating to 6.1.0 problems have arisen.
[One (M8) Android Development] andreasyeah:
How do I install Magisk on 6.1.0? Any help?
[One (M8) Android Development] Monzer_:
guys I lost all system configuration today and motion lunch stopped working also 3 finger guster not working when I use that it says stopped working and some other weird stuff started to happen all the sudden , I wiped the rom and reinstalled everything to find that the device is not rooted so I had to flash supersu again anyidea whats going on ???
[One (M8) Android Development] GillaxGurilla:
You have to find a stock boot.img for your device, flash it, remove root then flash magisk..

Running magisk 13.3 on my m8 with 6.1

Only issue I'm having is my battery stuff is messed up.. Always says it's charging even when unplugged and percentage is 4 digits.. Dunno if it's related..

Link to Magisk thread

https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

And screenshot of whack battery percentage
[One (M8) Android Development] mobileman88:
That's one mighty battery!
[One (M8) Android Development] GillaxGurilla:
Ha! Right?
[One (M8) Android Development] kevincharlie:
I can't find "Motion Launch Gestures" in Lock screen tab any where....
[One (M8) Android Development] dsulliii:
It seems to me that OEM lock/unlock didn't require ADB authentication. I don't know absolutely anymore, but it may be worth it to you to try. You will lose everything on your phone, though.
[One (M8) Android Development] MBT93:
Honest opinion time! I work two jobs so before people start yelling to do some research or to try the rom myself, I can't try every rom out there. I remember using this rom waay back. All I need to now is:

1) how bad is the lag compared to android 6.0

2) is the wifi and bluetooth reception good on Canadian networks with the 6.12.401.4
[One (M8) Android Development] MistaMasta77:
Can anyone upload gallery fix please? Old links are dead. Much appreciated. :)
[One (M8) Android Development] serkan911:
While this ROM is being installed, instagram and twitter are giving an error. Applications are constantly closing.
[One (M8) Android Development] MistaMasta77:
Instagram and Messenger gets FC when tryin to send photo or video. Any fix?
[One (M8) Android Development] jdub55:
I've been experiencing force closing on every app like this when going into any kind of camera / video chat mode. I suspect it's because the rom originally came from the HTC One 10, which only has 1 camera lens on the back. And since the m8 has 2 lenses, I think it results in a crash.

Of course I could be wrong, I'm not a dev or anything. I would love a fix as well, if it can be done.
[One (M8) Android Development] Monzer_:
Hey guys I'm having issue with sound when screen turns off I read some stuff here and they said i need to re flash the HK mod or something but I can't understand well what im going to do . I don't want to reflash the whole rom :S i barely go it stable now
[One (M8) Android Development] MBT93:
What is the best Radio/baseband for this device for Bell, Canada? My cellular signals are just fine, but Wifi and Bluetooth reception is terrible. Wont even transmit sound to my headphones if its in my pocket, or if I am more than 5 feet away! Links to a flashable radio would be greatly appreciated.
[One (M8) Android Development] Monzer_:
hey , I have same issue what is ADSP ? what do i need to flash please help ?
[One (M8) Android Development] xunholyx:
Here: https://www.androidfilehost.com/?fid=889764386195905002
[One (M8) Android Development] Monzer_:
Flashed it , still having the issue :( :confused:
[One (M8) Android Development] Hedigehog:
How to fix battery display bug 4000% ?

with flash stock boot or another boot.img , there is a problem with the display of the battery

original post

https://xdaforums.com/showpost.php?p=73637980&postcount=32313

[IMG="battery bug"]https://xdaforums.com/attachment.php?attachmentid=4260539&d=1504370341[/IMG]

add Screenshot

picshare.ru/view/8285209/

picshare.ru/view/8285210/

Yea!, found a solution to the problem

1 flash rom

2 flash unroot and flash boot again (with the same rom)

3 flash the magisk v14
[One (M8) Android Development] Black-FR:
Well... use the boot.img which is included into the ROM zip and you won't have those issues.
[One (M8) Android Development] GillaxGurilla:
Thanks buddy, I'll give it a go in a bit.

So, could I just flash rom's boot.img on top of what I already have going? Or should I start all over?
[One (M8) Android Development] Black-FR:
Extract the boot.img from within the ROM zip, depending on your carrier.

Then flash boot.img and afterwards flash magisk again.

If you use "default", then you find the boot.img in the root of the ROMzip.

If you use any other carrier, then you find the needed boot.img in the /"additions/carrier/your carrier/tmp" folder, within the ROM.zip.
[One (M8) Android Development] GillaxGurilla:
You're the man.. Thank you.
[One (M8) Android Development] Wojciech Bielawski:
I tried to re-install another problem.

Can anyone help me
[One (M8) Android Development] Hedigehog:
1 create twrp backup

2 install 6.1.0 with full wipe

3 restore data in Nandroid Manager and Titanium Backup
[One (M8) Android Development] Hedigehog:
But I was found a couple more unpleasant bugs, and I do not know how to cope with them

1. venom status bar - don't work hide icons (NFC, Bluetooth, may be more)

2. sense unlock - don't work Motion launch (double tap, camera, and other)

3. headset - the previous track does not work (at least on the bluetooth headset) / FIX edit system\usr\keylayout\AVRCP.kl (key 165) camera -> MEDIA_PREVIOUS

4. I can only do this with me, but when I exit the maximum power saving mode, I get an error com.android.systemui
[One (M8) Android Development] glesius:
Instagram gets FC when tryin to upload video. Any fix?
[One (M8) Android Development] hm.castelo:
anyone tried to play lineage 2 revolution on this rom?
[One (M8) Android Development] Wojciech Bielawski:
does not help

Right after the full wipe and installation of pure romu are problems.

Earlier it was not
[One (M8) Android Development] Hedigehog:
check md5 rom (MD5: 7e73c9bc8531b0bd2faf33055217c451) and version twrp (https://dl.twrp.me/m8/twrp-3.1.1-0-m8.img.html)
[One (M8) Android Development] decybelus:
I can't log in into VenomHub because im not a first owner... What i must to do?
[One (M8) Android Development] xunholyx:
Send me a PM with the last 6 digits of your IMEI, and I will detach the phone from the previous owner's account so that you can start a new account of your own with it.
[One (M8) Android Development] blackroseMD1:
Did a search but didn't see anything. Is anyone else having trouble adding custom Dot View wallpapers? After I click on the + sign, choose my image and then crop it in Gallery, I don't get any option to apply it and it doesn't show up under My Themes. Any help would be greatly appreciated.

Edit: Nevermind, figured it out. I had to go to APK Mirror and download the 2.12.838527 version of the Dot View APK and now it's working properly. For some reason, the Play Store wasn't updating past APK version 2.12.829328.
[One (M8) Android Development] Murrfk:
I was happy to get Android Pay to work with this rom and Magisk. I restored a stock M8 file with twrp 3 and then did an erase, then flashed this rom. All went as expected except that my battery is at 3817% and therefore is being reported as fully charged. When I turn off the phone and charge, I get the correct reading of 51%. This only happened with the display in this rom. When the phone is off it charges to 100% and stays there. But when I turn it on the phone displays 4357% when it is fully charged. I saw there was a post on August 1, 2016 in this thread where the same issue was reported, but that seemed to be due to flashing a different kernel. Any suggestions on how to fix this one bug would be appreciated. TIA.
[One (M8) Android Development] redpoint73:
Why did you restore a stock TWRP file before flashing this ROM? I don't understand why you did that.

What partitions exactly did you wipe, before flashing Viper ROM?
[One (M8) Android Development] Murrfk:
I did that due to problems I had with getting android pay to work when coming from non stock. However, I have spent the morning on this and found that the issue is caused by the boot.img that was created by Magisk. I ref lashed with the venom zip and the battery was right. Then I flashed the boot.img required by Magisk and when i rebooted the indicator went to 3800%. I have now read other posts with the same issue, and flashing the boot.img fixed the problem.
[One (M8) Android Development] Black-FR:
You used the wrong boot.img.

I already said it on the previous page of the thread...

https://xdaforums.com/showthread.php?t=2705292&p=73825848

https://xdaforums.com/showthread.php?t=2705292&p=73828206
[One (M8) Android Development] Murrfk:
Magist, to get android pay to function, requires the use of a patched STOCK boot.img. The one with the viperone Rom will not work. I tried it. But since this is not a Viperone issue, I will discuss it in a separate thread. Thanks.
[One (M8) Android Development] Black-FR:
The one, which is within the ROM zip, will work...

Just read back the last two pages of the thread...
[One (M8) Android Development] Murrfk:
You were absolutely right. Thanks. Needed to flash UnSU and then flash the ROM boot.img using TWRP flash image function (after extracting boot.img from the viperone.zip file), then flash magisk14.zip, and all appears to be working, including the proper battery level.
[One (M8) Android Development] Leon:
Make new account ?
[One (M8) Android Development] xunholyx:
The phone has to be detached from the previous owner's account first.

Anyway, I've already helped him out with that :)
[One (M8) Android Development] x000x:
I was just wondering about this. I really like this rom, but wish it was updated to 7.x :( seems like unfortunately that won't happen
[One (M8) Android Development] x000x:
This is also happening with me. Have any of you managed to figure out how to update the prl?
[One (M8) Android Development] omar8a:
good day, I hope I can help I have a htc one m8 with s-off, unlocked, I had it with android 4, but my brother wanted to update it through the most current viper rom, but did not understand that the wifi was not to serve, I want to revert the process or install a rom that adds the problem to the wifi, any suggestions ??, greetings and thanks for any possible help
[One (M8) Android Development] Wojciech Bielawski:
I still have a problem

Maybe someone has another idea ???
[One (M8) Android Development] Black-FR:
What is the problem?

I don't wanna search the whole thread, just to find your issue, so that I then might be able to help you.
[One (M8) Android Development] redpoint73:
You need to update your firmware (hboot, radio, etc.).

https://xdaforums.com/htc-one-m8/development/progress-fuu-m8-t2813792

Be aware, that flashing firmware with s-off, you better know what you are doing. Otherwise read up, ask questions, and mark sure you are flashing the right version firmware. Otherwise, a brick is possible.

Also, anyone flashing ROMs should know to make a TWRP backup before flashing the ROM, and that would be an easy way to "revert" back to the previous ROM.
[One (M8) Android Development] Wojciech Bielawski:
Hello

i hava a probem with my M8

After updating with viperrom 6.0 to 6.1 problems have occurred with GSM data transmission.

and whether it's GMS or H + or LTE, sometimes I see the icon but there is no connection, I have to turn off the mobile data and turn it on again ... the connection is restored - but after the time it hangs again.

The second problem is formatting the card

After updating, I can not format the card, and as an internal memory ... it reaches 40% and finishes restarting the phone is impossible, I have to take out the card and formatted on the computer.

Any formatting of the card from the phone ends with an error.
[One (M8) Android Development] Black-FR:
Format as internal, isn't supported on the port.

It's known, that it isn't working.

And about your data connection, did you select the correct carrier, during the install?

Is your firmware updated to the latest available version?

Did you check your apn settings?